Communicating with a USB device
- From: Joey Gray <mjg@xxxxxxx>
- Date: Sun, 30 Oct 2005 18:08:52 -0600
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
.
- Prev by Date: Odd Memory Behavior... WinXP
- Next by Date: Keyboard.asynckeydown -> keyboard.keyname -> to txt file: unknown character?
- Previous by thread: Odd Memory Behavior... WinXP
- Next by thread: Keyboard.asynckeydown -> keyboard.keyname -> to txt file: unknown character?
- Index(es):
Relevant Pages
|
Loading