Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - USB device over current detection (QNX 6.5.0 SP1 ): (4 Items)
   
USB device over current detection (QNX 6.5.0 SP1 )  
How to detect a USB device or hub over current on x86 board ? Is there any call back to register to the usb server which
 sends a notification? Does QNX usb driver monitor that condition and what kind of action is taken? 
RE: USB device over current detection (QNX 6.5.0 SP1 )  
The USB stack will detect the condition and broadcast a notification to all clients, I think it will also attempt to 
toggle power to the port and those are the only actions taken. To get such notifications you need to register an event 
callback along with your insertion and removal callbacks, please see the documentation for usbd_connect() for details.

The event types you can watch for are defined in sys/usbdi.h, in your case you likely want IOUSB_EVENT_BUS_OVERCURRENT.
Re: RE: USB device over current detection (QNX 6.5.0 SP1 )  
Thanks  for the message. I guess the solution is good for 6.6 not for 6.5. The 6.5 version sys/usbdi.h does not define 
such a event. Could you clarify if that even would be also generated by 6.5 driver? 
Thanks in advance.
RE: RE: USB device over current detection (QNX 6.5.0 SP1 )  
Sorry about that, yes this is only available in 6.6.