Greg Heimlicha | 11 Jul 2012 06:35
Picon

External HD stops responding

Hi folks,

recently I bought an Owon scope which uses LibUsb-Win32 v1.2.1.0 for 
PC-communication. Data transfer works perfectly fine, but as soon as the
DSO is connected to the computer my external HD stops responding.

The "Power"-field shown by USBDeview.exe switches from 2 mA to 0 mA, so
I think that there is a problem with power managemant during 
initialisation.

Computer: IBM T42 (2373-tg5) running Windows XP/SP3
Driver: usbd.sys (5.1.2600.0), usbhub.sys (5.1.2600.5512),
        USBSTOR.SYS (5.1.2600.5512)
HD-Enclosure: Fujitsu/Siemens 35EV830/2T containing a JM20336
              USB2SATA-Bridge (VID:152d, PID:2336).

a) Update to V1.2.6.0 using inf-wizard.exe -> same behaviour
   (Clean installation by removing all things related to libusb and
   OEMxx.* using devmgr/regedit and verified with USBDeview previously)

b) Install a filter driver -> unchanged

c) Using another HD-Enclosure with VID:174c,PID:55aa -> unchanged

d) Disable "power saving" in corresponding root hub -> unchanged

e) Physically reconnecting HD while DSO is active -> unknown device
   USB\Vid_0000&Pid_0000\5&85ede88&0&1

f) Using libusb instead of USBSTOR.SYS -> Power sticks at 0 mA, even
(Continue reading)

Xiaofan Chen | 11 Jul 2012 06:41
Picon

Re: External HD stops responding

On Wed, Jul 11, 2012 at 12:35 PM, Greg Heimlicha <dev.nulll <at> aon.at> wrote:
> Hi folks,
>
> recently I bought an Owon scope which uses LibUsb-Win32 v1.2.1.0 for
> PC-communication. Data transfer works perfectly fine, but as soon as the
> DSO is connected to the computer my external HD stops responding.
>
> The "Power"-field shown by USBDeview.exe switches from 2 mA to 0 mA, so
> I think that there is a problem with power managemant during
> initialisation.
>
> Computer: IBM T42 (2373-tg5) running Windows XP/SP3
> Driver: usbd.sys (5.1.2600.0), usbhub.sys (5.1.2600.5512),
>         USBSTOR.SYS (5.1.2600.5512)
> HD-Enclosure: Fujitsu/Siemens 35EV830/2T containing a JM20336
>               USB2SATA-Bridge (VID:152d, PID:2336).
>
> a) Update to V1.2.6.0 using inf-wizard.exe -> same behaviour
>    (Clean installation by removing all things related to libusb and
>    OEMxx.* using devmgr/regedit and verified with USBDeview previously)
>
> b) Install a filter driver -> unchanged
>
> c) Using another HD-Enclosure with VID:174c,PID:55aa -> unchanged
>
> d) Disable "power saving" in corresponding root hub -> unchanged
>
> e) Physically reconnecting HD while DSO is active -> unknown device
>    USB\Vid_0000&Pid_0000\5&85ede88&0&1
>
(Continue reading)

Greg Heimlicha | 11 Jul 2012 08:20
Picon

Re: External HD stops responding

Xiaofan Chen wrote:
> It seems to me this has nothing to do with libusb-win32 but rather
> your host PC USB Ports current driving capability and the current
> consumption of your DSO and external USB HDD.
> 
> You can try to use a powered USB hub to drive either the DSO or
> the USB HDD to see if that solves the problem.

Hmm, the HD has an external power supply and requests 2 mA out of 500.
The the scope has an internal mains supply circiut too, but seems to 
lack a correct power requirement announcement. At least I can't see it
with USBDeview.
You notice, I'm not to deep into this whole USB thing.

Anyway, I'll try to use an USB hub as soon as I can dig one, and let 
you know about the results.

Many thanks,
Greg

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Xiaofan Chen | 11 Jul 2012 09:31
Picon

Re: External HD stops responding

On Wed, Jul 11, 2012 at 2:20 PM, Greg Heimlicha <dev.nulll <at> aon.at> wrote:
> Xiaofan Chen wrote:
>> It seems to me this has nothing to do with libusb-win32 but rather
>> your host PC USB Ports current driving capability and the current
>> consumption of your DSO and external USB HDD.
>>
>> You can try to use a powered USB hub to drive either the DSO or
>> the USB HDD to see if that solves the problem.
>
> Hmm, the HD has an external power supply and requests 2 mA out of 500.

I see. Then probably it is not the culprit here.

> The the scope has an internal mains supply circiut too, but seems to
> lack a correct power requirement announcement. At least I can't see it
> with USBDeview.
> You notice, I'm not to deep into this whole USB thing.
>
> Anyway, I'll try to use an USB hub as soon as I can dig one, and let
> you know about the results.

The DSO may be the culprit here. Is it bus powered? Even though
it has a power supply, the USB part may still be bus powered.

You can try to use a external hub with the DSO first to see if
that helps if you do not have a powered external USB hub
right now. But a powered external USB hub may be the
real solution.

--

-- 
(Continue reading)

Greg Heimlicha | 12 Jul 2012 09:36
Picon

Re: External HD stops responding

Xiaofan Chen wrote:
> You can try to use a external hub with the DSO first to see if
> that helps if you do not have a powered external USB hub
> right now. But a powered external USB hub may be the
> real solution.

I didn't found any usefull device in my basement, therefore I have to
order a powered hub. Not even a Y-Cable usually used for high-power
drives pops up. So I've soldered one with additional power drawn from
the PS2 keyboard connector. 

Then I tried to interchange the USB connectors available.

T42               USBDeview
Docking station = (no info)  = HD (2->0 mA, USB 2.0)
Upper connector = Hub3/Port4 = DSO (no info about current or version)
Lower connector = Hub1/Port1 = HID USB to RS232 (USB 1.0, 100 mA)
                               This DMM was not connected previously
T42               USBDeview
Docking station = (no info)  = HD (2->0 mA, USB 2.0)
Upper connector = Hub1/Port2 = HID USB to RS232 (USB 1.0, 100 mA) 
Lower connector = Hub3/Port3 = DSO (no info about current or version)

T42               USBDeview
Docking station = Hub1/Port1 = HID USB to RS232 (USB 1.0, 100 mA)
Upper connector = Hub0/Port4 = DSO (no info about current or version) 
Lower connector = (no info)  = HD (USB 2.0, 2 mA)

Device Manager - USB Root Hub Properties - Power:

(Continue reading)

Xiaofan Chen | 12 Jul 2012 14:36
Picon

Re: External HD stops responding

On Thu, Jul 12, 2012 at 3:36 PM, Greg Heimlicha <dev.nulll <at> aon.at> wrote:
> Xiaofan Chen wrote:
>> You can try to use a external hub with the DSO first to see if
>> that helps if you do not have a powered external USB hub
>> right now. But a powered external USB hub may be the
>> real solution.
>
> I didn't found any usefull device in my basement, therefore I have to
> order a powered hub. Not even a Y-Cable usually used for high-power
> drives pops up. So I've soldered one with additional power drawn from
> the PS2 keyboard connector.
>
> Then I tried to interchange the USB connectors available.
>
> T42               USBDeview
> Docking station = (no info)  = HD (2->0 mA, USB 2.0)
> Upper connector = Hub3/Port4 = DSO (no info about current or version)
> Lower connector = Hub1/Port1 = HID USB to RS232 (USB 1.0, 100 mA)
>                                This DMM was not connected previously
> T42               USBDeview
> Docking station = (no info)  = HD (2->0 mA, USB 2.0)
> Upper connector = Hub1/Port2 = HID USB to RS232 (USB 1.0, 100 mA)
> Lower connector = Hub3/Port3 = DSO (no info about current or version)
>
> T42               USBDeview
> Docking station = Hub1/Port1 = HID USB to RS232 (USB 1.0, 100 mA)
> Upper connector = Hub0/Port4 = DSO (no info about current or version)
> Lower connector = (no info)  = HD (USB 2.0, 2 mA)
>
> Device Manager - USB Root Hub Properties - Power:
(Continue reading)

Greg Heimlicha | 12 Jul 2012 15:44
Picon

Re: External HD stops responding

Xiaofan Chen wrote:
>> What's your opinion?
> 
> I do not think it is because of the driver. Why USBDeview
> does not show the fields may be because the device does
> not report the correct value.
> 
> Could you post the device descriptor? You can use
> testlibusb-win from libusb-win32 or better use klist
> from libusbK.
> 
> But you can try the WinUSB driver as well to see if that helps.
> You can use Zadig or libusbK driver installer.

I've installed a filter driver for the HD. After an automatically
triggered reconnect the disc works properly. Although this leads to a
dual connction process - first is the regular connection followed by an
additional disconnect/reconnect a few seconds later.

Its device descriptor as reported by testlibusb-win.exe:
DLL version:	1.2.6.0
Driver version:	1.2.6.0

bus/device  idVendor/idProduct
bus-0/\\.\libusb0-0001--0x152d-0x2336     152D/2336
- Manufacturer : JMicron
- Product      : JM20336 SATA, USB Combo
- Serial Number: 1121A3888888
bLength:             18
bDescriptorType:     01h
(Continue reading)

Greg Heimlicha | 13 Jul 2012 04:43
Picon

Re: External HD stops responding

After installing libusbK-3.0.5.16-setup.exe I created three legacy inf
packages using libusbK-inf-wizard.exe whilst solely connected to the
DSO. To activate a package I've used the devmgr with a
deinstall-reboot-install sequence. Further test without rebooting.

                     WinUSB.sys      libusbK.sys      libusb0.sys
Connect HD              OK               OK               OK
Connect DSO           2->0 mA          2->0 mA          2->0 mA
Reconnect HD        unknown dev      unknown dev      unknown dev
Disconnect DSO/
Reconnect HD            OK               OK               OK
Install filter        2->0 mA          2->0 mA        2->0->2 mA
Reconnect HD          0->2 mA          0->2 mA           n/a
                    Error loading    Error loading
                     USBSTOR.SYS      USBSTOR.SYS
Remove filter           OK               OK              n/a

Now I'm doomed, right?

I think it's not worth to spend much more time on this issue.

Perhaps there comes a moment of enlightenment, but for now, I just
shrug and go ahead with my programming using libusb0.dll API thus
accepting, not being able to use HD and DSO simultaneously.

Thank you very much for your kind assistance.

Greg

p.s.: kList output for the different setups
(Continue reading)

Xiaofan Chen | 13 Jul 2012 13:16
Picon

Re: External HD stops responding

On Fri, Jul 13, 2012 at 10:43 AM, Greg Heimlicha <dev.nulll <at> aon.at> wrote:
> After installing libusbK-3.0.5.16-setup.exe I created three legacy inf
> packages using libusbK-inf-wizard.exe whilst solely connected to the
> DSO. To activate a package I've used the devmgr with a
> deinstall-reboot-install sequence. Further test without rebooting.
>
>                      WinUSB.sys      libusbK.sys      libusb0.sys
> Connect HD              OK               OK               OK
> Connect DSO           2->0 mA          2->0 mA          2->0 mA
> Reconnect HD        unknown dev      unknown dev      unknown dev
> Disconnect DSO/
> Reconnect HD            OK               OK               OK
> Install filter        2->0 mA          2->0 mA        2->0->2 mA
> Reconnect HD          0->2 mA          0->2 mA           n/a
>                     Error loading    Error loading
>                      USBSTOR.SYS      USBSTOR.SYS
> Remove filter           OK               OK              n/a
>
> Now I'm doomed, right?

This just proves that the driver is not the issue.

> I think it's not worth to spend much more time on this issue.
>
> Perhaps there comes a moment of enlightenment, but for now, I just
> shrug and go ahead with my programming using libusb0.dll API thus
> accepting, not being able to use HD and DSO simultaneously.

Yes this is a good workaround for now.

(Continue reading)


Gmane