Identify USB device and discover its name and port

1791 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

google map link

Posted by - October 18, 2015 0
http://www.google.com/maps/place/40.625027,-73.957774/@40.625027,-73.957774,17z Change RED part to current GPS in Python   http://maps.google.com/maps?q=40.37494164,-73.57485968   Keep Reading : GPS AT Commands GPS RESPONSE…

Phase One

Posted by - August 15, 2015 2
“Phase One” is where we learned basic raspberry pi use. we started with the unboxing of our model 2 B raspberry…

Unboxing

Posted by - August 15, 2015 5
First I unboxed my raspberry pi and took it out of it’s bag. The first thing I thought when I…

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.