Identify USB device and discover its name and port

699 0

Download latest PyUSB from :

http://sourceforge.net/projects/pyusb/files/PyUSB%201.0/1.0.0-beta-2/pyusb-1.0.0b2.tar.gz/download

Place file “pyusb-1.0.0b2.tar.gz” on your desktop

gunzip <pyusb-1.0.0b2.tar.gz |tar xvfp -
cd pyusb-1.0.0b2
sudo ./setup.py install

Make a new python script with the following code — don’t forget your #! line

Save the file,  change permissions and run.

We now know the name of our USB device and we can write an if/then line in our script to give the usb port location (filename) to our Hex/Serial code in order to speak with our Satellite USB device.

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Related Post

GPS RESPONSE CODE ORDER

Posted by - October 18, 2015 0
in response to AT+CGPSINF=0 0 longitude 1 latitude 2 altitude 3 UTC Broadcast Time 4 TTFF Time To First Fix…

Hello World

Posted by - August 15, 2015 0
We use python to write all of our scripts. On our raspberry pi every python script starts with a shebang…

while loop

Posted by - October 18, 2015 0
[crayon-59c35e8e0c0a9808829579/] Keep Reading : Pi Camera Resolution Fix Hello World LED Blinking Wire camera to pi

Leave a comment

Your email address will not be published. Required fields are marked *