Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX 6.6 detecting cable connection to PC: (3 Items)
   
QNX 6.6 detecting cable connection to PC  
Hello all,

We are looking at ways to detect USB cable connection from a Laptop to our target. Following commands are used to 
startUSB stack and RNDIS drivers on target. Is there an elegant way to detect cable attach and detach?

## Start USB Stack
    io-usb-dcd -dusbrndis-mx6sabrelite-ci ioport=0x02184000,irq=75
    waitfor /dev/io-usb-dcd/io-usb 4
    waitfor /dev/io-usb-dcd/devu-usbrndis-mx6sabrelite-ci.so 4

# echo Start USB RNDIS function driver
    waitfor /dev/socket
    mount -Tio-pkt -o mac=3CD92B010203,usbdnet_mac=3CD92B010204,protocol=rndis devnp-usbdnet.so 
    ulink_ctrl -l1
Re: QNX 6.6 detecting cable connection to PC  
Note that the drivers started above are always operational. For now we do not wish to start and kill drivers during 
runtime . 
Re: QNX 6.6 detecting cable connection to PC  
Under QNX 7, there is a second driver devnp-usbnet.so (without the 'd' in the middle of the name!).

http://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.neutrino.utilities/topic/d/devnp-usbnet.so.html

It appears to be a new development, supporting more protocols and obviously switching the protocols automatically, since
 there is no option "protocol=" anymore.

It does have an option "pnp" which is probably doing what you want.

Is this driver available for SDP 6.6?

Regrads,
Albrecht