473,385 Members | 1,641 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 communicate via USB "port"

Can someone explain how I would read the data from the USB "port"? I
don't know if it matters, but I am trying to read the data from a GPS
plugged in to the USB port.

Thank you,
Robin

Apr 18 '07 #1
4 20517
On Apr 18, 12:54 am, "robinp...@gmail.com" <robinp...@gmail.com>
wrote:
Can someone explain how I would read the data from the USB "port"? I
don't know if it matters, but I am trying to read the data from a GPS
plugged in to the USB port.

Thank you,
Robin
Just a guess, but can you use pyserial to talk to USB001?

-- Paul

Apr 18 '07 #2
On 2007-04-18, ro*******@gmail.com <ro*******@gmail.comwrote:
Can someone explain how I would read the data from the USB "port"?
You can't. There's no such thing from a SW point of view. ;)
I don't know if it matters, but I am trying to read the data
from a GPS plugged in to the USB port.
It's probably a serial device. Try using pyserial to talk to
/dev/ttyUSB0.

--
Grant Edwards grante Yow! Used staples are good
at with SOY SAUCE!
visi.com
Apr 18 '07 #3
jkn
Have a look for PyUSB - there are (confusingly) two different packages
called pyUSB. one interfaces to FTDI chips connected to a USB port:

http://bleyer.org/pyusb/

The other uses libusb to interface to devices generally under windows:

http://pyusb.berlios.de/
HTH
jon N

Apr 18 '07 #4
"ro*******@gmail.com" <ro*******@gmail.comwrote:
>
Can someone explain how I would read the data from the USB "port"? I
don't know if it matters, but I am trying to read the data from a GPS
plugged in to the USB port.
USB is a "protocol" bus. It isn't like a serial port, where you can just
start reading bits. Each device has one or more "interfaces", and each
interface has one or more "pipe" for transmitting data. You have to know
which "pipe" to talk to, what kind of pipe it is, and how to force the
device to send before you can talk to it.

On the other hand, as someone else pointed out, many types of USB devices
fall into standard device classes, and the operating system supplies
drivers for those classes. If your GPS device is in the communication
class, you might be able to pretend it is a serial device.
--
Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Apr 19 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Roper | last post by:
Hi, I have a web deployment project that asks for the port number in the standard dialog (along with the virtual directory). I also install a web service and this does not have an associated...
10
by: Jako Menkveld | last post by:
I'm building a relatively simple client-server app. One of the functions of the client is to notify the server when it terminates, this all works fine. The problem comes in when the server is...
5
by: EdgarBM | last post by:
Hi, I'm working with .NET Remoting. I have a problem unregistering the server channel when I try to reuse it closing and reopening it in the same application. The second time I try to get an...
3
by: Oscar Thornell | last post by:
Hi, I am looking for a technique where you from the serverside push/update a standard web browser with small piceces of data. An exempel could be sports result or stock exchange information. ...
9
by: rsine | last post by:
I have developed a program that sends a command through the serial port to our business system and then reads from the buffer looking for a number. Everything worked great on my WinXP system, but...
4
by: SH | last post by:
I wish to create a program (really a Windows Service) that sits and waits for a client PC to communicate with it, but I can't come up with a good method of doing so. I want to have a service...
2
by: Madhu | last post by:
Hello All, I am getting the below error message when I am trying to connect from client to remote database server installed on Linux. DB2 UDB ESE database is running on a trail version on Linux...
4
by: Lloyd Dupont | last post by:
I can't use Control.ResolveUrl because I need to write the conversion in a utility class. However I know the current context. How could I convert the URL to one usable by the user? -- I have...
2
by: Charlie | last post by:
Hi: I'm creating a simple port listener. When I call start() method it returns "AddressAlreadyInUse" error. He is my code... Int32 port = 80; IPAddress localAddr = IPAddress.Parse(...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.