Re: Problem with Windows CE 5.0 USB OHCI Host Controller driver



Sounds like you've tried it all. Next step is to get a USB analyzer and log a good transaction and a bad one, and do a compare to see where exactly it is going wrong. With that information you should be able to determine exactly where the problem lies; device side or host side.


Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
http://GuruCE.com
Consultancy, training and development services.


JochenD wrote:
Hi all,

I am running Windows CE 5.0 with all available QFEs (including January 2008) on a Samsung SMDK2410 CPU.

I have a problem with the USB OHCI (1.1) Host Controler:
-start device with a USB device attached to the single OHCI (USB 1.1) Host Controller port
-occasionally (approximately 5-10 times out of 400 starts) the USB device is not recognized

The problem occurs in the CHub::AttachDevice() function (…\DRIVERS\USB\HCD\COMMON\cdevice.cpp):
-in the state machine in the DEVICE_CONFIG_STATUS_SCHEDULING_GET_DEVICE_DESCRIPTOR_TEST step, I get an USB_DEVICE_NOT_RESPONDING_ERROR (= 0x5).
-now the state machine goes back to the DEVICE_CONFIG_STATUS_RESET_AND_ENABLE_PORT state and tries 2 more times
-ultimately after the 3 reties get the same error message the attach fails

The only way that I found to fix that problem is:
-physically unplugging the USB device and plugging it back in
-rebooting the system

Both solutions are not an option for me!

I also tried:
-more reties (10)
-timeout (100ms) before each retry
-powering off and repowering USB port between the reties
-making CHub::HubStatusChangeThread() belief the device was unplugged so do a DetachDevice() and then (even after powering off and repowering the USB port) let CHub::HubStatusChangeThread() do the AttachDevice() again

With all of these attempts the problem persisted: the device descriptor could not be retrieved and the attach failed.

Any help is appreciated

Thanks
-Jochen

.



Relevant Pages

  • Re: USB
    ... I have attached usb adsl modem in the back next to the ps2 and i tried to ... attach other usb device through extn cable the devices are camera / pen ... Try unplugging the adsl modem and using that port to ...
    (microsoft.public.windowsxp.hardware)
  • Re: Pioneer d606
    ... If this is a drive which uses USB and/or firewire the first thing to try is ... to attach it to the alternative connection. ... >update sp1. ...
    (microsoft.public.windowsxp.hardware)
  • Re: USB drivers
    ... Usb is a little complicated in this area, ... >mentioned that a pointer must be present for a driver to attach to a ... If there is only one pointer for a device, only one driver may ... >functionality is there and is compatible with FreeBSD drivers, ...
    (freebsd-current)
  • Why USB must be so hard to use ?
    ... to a -stable box, and "of course" attach failed, even though the ... why dealing with usb peripherals in FreeBSD must be ...
    (freebsd-current)
  • USB and stop 0x00000050
    ... bluescreening after attaching a USB or firewire device for the 2nd ... Any time we attach her iPod or my Canon A70 camera (or with my USB ... I have the SIIG drivers but cannont seem to get them installed. ...
    (microsoft.public.windowsxp.general)