473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to use pyUsb to read data?

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
1 10276
Max M
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: francis70 | last post by:
Hi, I have these 2 problem? Is there a way in Oracle to read UNCOMMITED data. i.e. in Oracle the normal behaviour is that a user's updates to a table are visible to other users ONLY when the...
11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
18
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
0
by: phplasma | last post by:
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made...
5
by: TonyAm | last post by:
Hi, Just wondering if anyone has any simple examples of PyUSB. Thanks, Tony
3
by: robingfx | last post by:
This seems like a pretty straight forward thing to do, but I just can't get pyUSB to install properly. I download the .gz file from SourceForge and run the normal "python setup.py install". I get...
6
by: arnuld | last post by:
This works fine, I welcome any views/advices/coding-practices :) /* C++ Primer - 4/e * * Exercise 8.9 * STATEMENT: * write a program to store each line from a file into a *...
0
angelie
by: angelie | last post by:
im trying to communicate with an humain interface device using python's pyusb. i need to acquire data using the interrupt transfer type. i have two endpoints, EP1 = interrupt, out EP2 =...
4
by: zl2k | last post by:
hi, there I have a appendable binary file of complex data structure named data.bin created by myself. It is written in the following format: number of Data, Data array Suppose I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.