Detecting Usb Enumeration error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Detecting Usb Enumeration error

711 Views
elettro86
Contributor I

Hi guys,

 

I am developed USB device protocol. My stack work fine and the device is correctly enumerated by the host. I assume that the enumeration process is correctly terminated when a set_configuration is send by the host, so I have "an event" in order to detect when the device is correcly enumerated.

But if the enumeration failed, how I can detect this error? I could use a time-out (if a set_configuration is not receive in 10sec i.e.) but it it is potentially dangerous, I could assume uncorrect decision based on my time out.

 

Can anyone help me?

 

 

Sorry for the bad English

 

King Regards

Francesco

Labels (1)
Tags (2)
0 Kudos
1 Reply

311 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Francesco,


The enumeration time may vary depending the Host (and its Operating System). On the following link you could find some useful information regarding enumeration process on Windows:
http://blogs.msdn.com/b/usbcoreblog/archive/2009/10/31/how-does-usb-stack-enumerate-a-device.aspx


Additionally, you may find additional information at the following thread:
https://community.freescale.com/message/107572

Hope this will be useful for you.

Best regards!

/Carlos