<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 394: Device rescan needed every time because of changing USB bus/device number</title><link>https://sourceforge.net/p/gscan2pdf/bugs/394/</link><description>Recent changes to 394: Device rescan needed every time because of changing USB bus/device number</description><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/394/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 15 Jan 2022 18:55:39 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/394/feed.rss" rel="self" type="application/rss+xml"/><item><title>#394 Device rescan needed every time because of changing USB bus/device number</title><link>https://sourceforge.net/p/gscan2pdf/bugs/394/?limit=25#0d5a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your response. I like the idea of fuzzy matching. As a suggestion - if only the bus and device number are different and only one device matches when ignored, then you could safely assume it is the same device. In case of multiple devices you could keep the old behavior to be on the safe side.&lt;br/&gt;
Best Wishes&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John S.</dc:creator><pubDate>Sat, 15 Jan 2022 18:55:39 -0000</pubDate><guid>https://sourceforge.net57666f71fad5c1880cd547762a5a269164230209</guid></item><item><title>#394 Device rescan needed every time because of changing USB bus/device number</title><link>https://sourceforge.net/p/gscan2pdf/bugs/394/?limit=25#2dd9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;So the problem is really that because gscan2pdf considers every different device name a different device, the device settings are only remembered if the bus and device numbers match.&lt;/p&gt;
&lt;p&gt;I don't see a way to find the new device name without scanning for devices, but I could certainly do some fuzzy matching to ignore differences in the device and bus numbers when restoring the settings.&lt;/p&gt;
&lt;p&gt;Good idea! Thanks for the report!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeffrey Ratcliffe</dc:creator><pubDate>Sat, 15 Jan 2022 16:44:51 -0000</pubDate><guid>https://sourceforge.net1ecaa45ab9eeda3ec6c3d6b534bdd3b254ab93a0</guid></item><item><title>Device rescan needed every time because of changing USB bus/device number</title><link>https://sourceforge.net/p/gscan2pdf/bugs/394/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have a USB scanner that regularly receives dufferent USB bus and device numbers when restarting the host or when replugging. When these numbers change, gscan2pdf resets all scan settings and I must rescan the devices.&lt;/p&gt;
&lt;p&gt;I compared the configuration file gscan2pdfrc in both cases and found the following differences:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="mf"&gt;78&lt;/span&gt;&lt;span class="n"&gt;c78&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;    &lt;span class="s"&gt;"device"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"pfufs:fi-7140:003:002"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="o"&gt;---&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;    &lt;span class="s"&gt;"device"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"pfufs:fi-7140:002:003"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="mf"&gt;96&lt;/span&gt;&lt;span class="n"&gt;c96&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;          &lt;span class="s"&gt;"label"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"FUJITSU fi-7140 on pfufs:fi-7140:003:002"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="o"&gt;---&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;          &lt;span class="s"&gt;"label"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"FUJITSU fi-7140 on pfufs:fi-7140:002:003"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="mf"&gt;98&lt;/span&gt;&lt;span class="n"&gt;c98&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;          &lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"pfufs:fi-7140:003:002"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="o"&gt;---&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;          &lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"pfufs:fi-7140:002:003"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Apparently, the device identifier changed because of the changed bus and device numbers.&lt;/p&gt;
&lt;p&gt;Can gscan2pdf be changed to identify the device in a stable manner? For example, identifying by manufacturer ID and device ID would work well in my case, because I have only one scanner of this type. Maybe this could be an alternative mode to address devices if a configuration option is set (config file and command line).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John S.</dc:creator><pubDate>Fri, 14 Jan 2022 16:58:16 -0000</pubDate><guid>https://sourceforge.net790e0960e86a1aeeb142228e7f20a971f89c4087</guid></item></channel></rss>