Re: How to Interface to USB



Mocacius wrote:

I posted this in Activex.Writing and was told this might be a better place for it, so here it goes...

-----

Using Delphi5.  I'm writing an OCX to track a vehicle position from live GPS
data.  I was using a serial GPS and had no problems, I was reading the data,
processing it, etc..  However, a client needs to use this with a GPS
connected through the USB port, and I don't know how to read the data from
it.  Is there any specific information, on how to get data from the USB
port?  Are there any controls that I may need to get/license to let me
communicate with the USB?  What can I do?

I am really desperate, so any information, help, suggestions would be great!

There is no USB port at all. At least not on software level.
You can only talk to specific devices. It is just like ethernet where you also would not dream of talking to the ethernet port.


Many GPS receivers do have driver which installs a virtual COM port which works like a real one. Without more information about the device it is impossible to tell more. Please tell the prcise name of the device.
The device can have a custom driver which is only accessible through DeviceIoControl calls. Without documentation from the manufacturer there is no way to tell.
.




Relevant Pages

  • Re: Low level testing of USB GPS receiver, Navibe?
    ... I use it in a Thinkpad laptop that has only USB 1.1. ... file that cretaes a virual com port by name Prolific USB-to-serial ... I could not get any signal at all when running it in SeaClear. ... I have used SeaClear since years with a similar type GPS and I ...
    (sci.geo.satellite-nav)
  • Re: Looking for Notebook GPS with both USB and Serial outputs
    ... > Is there such a GPS with both USB and serial connectors? ... simply look for a GPS with that will output non-proprietary NMEA ... serial to USB adapter on a USB port, or with a Socket R-I/O PCMCIA ...
    (sci.geo.satellite-nav)
  • Re: OT: GPS with Autoroute 2007
    ... Now, I connected using USB, and no other program was using the GPS. ... Is the Vista C60 compatible with Autoroute? ... Should I be using a COM port? ...
    (uk.rec.walking)
  • Re: How to Interface to USB
    ... I was using a serial GPS and had no problems, ... >> connected through the USB port, and I don't know how to read the data ... on how to get data from the USB ... without knowing the specific device apriori. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Delorme SA2006 vs MS Streets and Trips 2006
    ... >>>with other GPS units. ... >>>port defaults to 9600 baud, so it needs to be changed in device manager. ... This was in the first USB to ... >>>Serial drivers that DeLorme put out. ...
    (rec.outdoors.rv-travel)