473,729 Members | 2,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 20567
On Apr 18, 12:54 am, "robinp...@gmai l.com" <robinp...@gmai l.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*******@gmai l.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*******@gmai l.com" <ro*******@gmai l.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
1458
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 dialog. How do I use the port number (filled in the first dialog) when installing the web service? I reckon I should change the propety for the port of the web service, perhaps in a custom action, but I don't know how to make this change. I already...
10
6178
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 stopped before the client, in which case the client "hangs", waiting to talk to the server. This is how it works: Server: Starts listening on a tcp port, say 3000 (by registering a TcpServerChannel and invoking RegisterWellKnownServiceType). When...
5
7425
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 instance of the same channel it returns an exception with socket code 10048 (already in use). My server code is, ....for openning:
3
2778
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. I do not want to use Java Applets, ActiveX controls or force the clients to download .NET Assemblies (and install the .NET Runtime...) If at all possible I do not want to use some sort of Javascript loop where a
9
7134
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 when I tried the program on the Win98 system it will be running on, I get the following error: Cast from string "2076719" to type 'Long' is not valid I am not sure why I only get this error on the Win98 system or how to go about correcting...
4
2359
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 running on a server, waiting for clients to send it commands. The service would then do something based on the command and send the information back to the client. This is exactly what any database does. What is the best method for doing this? The...
2
16365
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 and client (administration client) installed on Windows. #_____________________________________________________________________ Protocol specific error code(s): "10065", "*", "*". SQLSTATE=08001
4
2141
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 taken a vow of poverty. If you want to really piss me off, send me money.
2
2734
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( "127.0.0.1" ); TcpListener server = new TcpListener(port); server = new TcpListener( localAddr, port ); server.Start(); // Get error here
0
8917
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8148
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.