Communicating with a USB device



Hello, I'm trying to communicate with some different GPS devices over
both a serial port connection and/or via a USB connection.

On a Mac the only thing that works is using a Serial/USB converter
(I've been using a KeySpan) and a serial cable connection to the GPS
device. I know that because I lack USB drivers for the GPS devices
themselves that talking to them directly via USB is not possible. I can
scan the available serial ports and find one for the KeySpan with no
problem, and then I can just read/write to/from that connection with no
communications issues. The application works wonderfully in this
scenario.

On Windows, I can use the exact same code as I do on the Macintosh to
talk with a device connected to the serial port on the back of the
Windows machine. Everything is good there. However, when I plug in the
exact same device using the USB cable (and install the drivers from the
CD that came with the GPS) I can't find the appropriate serial port to
talk to the GPS with/through. I know I'm comparing apples and oranges
here, but I'm lost. The only serial ports I see on Windows are COM1 and
COM3. COM1 is the serial port on the back of my machine, and I believe
that COM3 is the built-in modem. Shouldn't I be able to see another
serial port for the recognized GPS device? I suppose that depends upon
how the USB driver was constructed though, right?

Okay, so if the GPS device isn't going to show up as a serial port, how
would I go about connecting to it? Would I have to write a REALbasic
plugin that serves as simple glue between my application and the USB
driver? I have some very poorly constructed C code (not mine!) that
will do what I want to do with the USB GPS devices that I could
probably pull some code from if it comes down to writing my own plugin.
Can I write a Windows plugin on my Mac OS X machine? I have access to a
Windows XP machine, but there aren't any development tools on it, and
I'm really loathe to purchase tools for such a simple task.

Could somebody please help me figure out what I'm missing here?

Thanks!

-Joey
.



Relevant Pages

  • Re: USB Function Driver ERROR !
    ... The Activesync connection is using a virtual serial port over the physical ... USB connection. ...
    (microsoft.public.windowsce.embedded)
  • Express Scribe and foot pedal woes :(
    ... life of me I cant get it work with the footpedal. ... It's a serial port ... that i have connected to a USB converter. ... connection and the USB connection. ...
    (sci.med.transcription)
  • Re: electronic id card reader visual basic
    ... This is completely controlled by the card reader. ... If the connection is by serial port, then you would use System.IO.Ports.SerialPort, and the documentation from the card reader manufacturer to decode the actual data received. ... However, it is possible that the device uses a HID USB connection, and then you would have to wrap the USB APIs. ...
    (microsoft.public.dotnet.general)
  • Re: SerialPort control using RTS/CTS seems to loose bytes
    ... This particular serial port is external. ... sitting in a charging cradle that has a USB and an RS232 connection. ... We will be using the USB for ActiveSync for the technical folks and the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Garmin 60CS, snow skiing, use in coat pocket
    ... >> And I assume it uses the serial port, not the USB port? ... > All ports to GPS devices are serial. ... hey Peter, of course you are right, but you should note that the present ... People speak about a "serial port" in terms of RS232, ...
    (sci.geo.satellite-nav)

Loading