Detecting Usb Enumeration error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Detecting Usb Enumeration error

1,032 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

632 次查看
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