Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

psingh01

macrumors 68000
Original poster
Apr 19, 2004
1,586
629
I have a USB EVDO modem with GPS that I'm trying to read data off of. I understand you have to treat it as if it were connected to the serial port (in my case using /dev/cu.wwangps ). Does anyone know how to do this on OS X (read from the serial port)? I would prefer to use Java...but any language would suffice. I've seen examples for windows that use COM1 and COM2 but this doesn't exist in the Mac world.

Perhaps a pointer to a library or open source project. Thanks :)
 

numero

macrumors regular
Jul 23, 2002
106
3
OR
I have not done anything with a modem, but I have done raw reads of a USB drive through the /dev file. There are (probably) two pointers to the device in /dev. Do a "ls -l" and look in the far left hand column. The "c" is for character and the "b" is for binary. Open the one that fits your needs. Then you will just need to know the protocol. Write to send data and read to receive data.

Hope this gets you started.
 

psingh01

macrumors 68000
Original poster
Apr 19, 2004
1,586
629
Thanks. I was originally just trying to read like a normal file but it wasn't working....because I had another gps utility running. It was tying up the device. Now just simply doing readLine() works fine.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.