Identify USB device and discover its name and port

2349 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.

Facebooktwitterredditpinterestlinkedinmail

Related Post

Wire camera to pi

Posted by - October 24, 2015 0
Install camera software & configure pi One picture program One picture per blink cycle Print proto time on picture  …

GPS AT Commands

Posted by - October 18, 2015 0
AT+CGPSPWR? if off : AT+CGPSPWR=1 Get status : AT+CGPSSTATUS? Get GPS : AT+CGPSINF RESET CODES : What mode ? –…

Pi Camera Resolution Fix

Posted by - October 24, 2015 0
[crayon-6605d3e2667f1239236700/] Keep Reading : Wire camera to pi while loop Hello World Remote ssh connect from iPad P.C. and laptop…

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.