How to use pyUsb to read data?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Max M
    New Member
    • Jul 2006
    • 3

    How to use pyUsb to read data?

    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...
  • Max M
    New Member
    • Jul 2006
    • 3

    #2
    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

    Comment

    Working...