By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

How to use pyUsb to read data?

P: 3
Hi..

My supervisor just asked to me to "learn" python... and write a script that gets info from a "GPS receiver" that it's connected to the "usb" port..

so i downloaded and built the pyUsb and libusb..
and i managed to learn the syntax which was quite easy..

and now am left with the job of the "coding"..

to be honest i never in my life wrote a code that reads from serial, usb or parallel ports .. and i have no clue about how to do it..

i just need a headstart..

or a link to a useful tutorial..

notes..
* it has to be done by Python..
* the device is "GPS Receiver bu-353"
* i have to read the "sentences" that the GPS receives from the satellite..
* am good in C and Java.. but not that good in python "yet"
Thanks folks...
Jul 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: 3
I am pissed ... why no one replied to me :(


anyway.. for you guys.. if you wanna know how to read from GPS Receiver that's connected to USB.. that's the way..

Linux will treat the device like if it's connected to Serial Port (by default :) )

so .. just use readline().. to read from the "serial port"

easy and neat.. lol

my friend just figured that out .. while i spent few days trying to interface the USB as serial..

:D

Have fun :D
Jul 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.