Identify USB device and discover its name and port

2859 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

SMS on PI

Posted by - November 22, 2015 0
SMS on your Raspberry Pi… Adapted from :  http://www.smssolutions.net/tutorials/gsm/receivesmsat/ This assumes you have set up your sim card, wired your…

Altoids Game Box Road Test

Posted by - July 16, 2016 0
A Holiday Inn Express made the perfect testing place for the altoids box game system.  Would it work from battery…

Turn string into array with split

Posted by - October 18, 2015 0
textWithCommas = “bee,apple,pear,dog,carrot,robot” wordList = textWithCommas.split(“,”) print “the second item is : ” + textWithCommas[1] Keep Reading : Identify USB…

Serial Commands used by our Satellite transciever.

Posted by - October 17, 2015 0
We will need the crc16 python code library : http://code.google.com/p/pycrc16/downloads [crayon-67a30a3cbc9f0793602498/] [crayon-67a30a3cbc9fa357355380/]   [crayon-67a30a3cbc9fe746672942/] Keep Reading : Serial Communication with…

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.