 |
There are currently, 16 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here
|
Select Interface Language:
|
|  |
Running a GPS on Omnifi
Posted on Wednesday, November 02 @ 11:02:40 PST by lincomatic
|
|
While trying to get a Car2PC USB headunit adapter working on my DMP1, I was getting nowhere, so I decided to try getting another USB->Serial device working. My Royaltek Sapphire USB GPS seemed like a good candidate ... it uses a Prolific PL2303 USB->Serial converter, for which a driver exists for the Omnifi.
I have created a little sample app, written in C++, which can read a raw NMEA stream from a USB GPS, parse the NMEA, and output some info to a the console.
It uses the usbserial driver, which in turn talks to the pl2303 driver to emulate the USB GPS as a tty.
This is just a simple demo, and to make it truly useful, someone needs to interface it to the LCD display & control panel buttons. The LCD & control panel logic can easily be lifted from Openfi.
Here is some sample output of the program running in an rlogin session to the DMP1:
UTC: 2005/11/02 18:10:01 34.099270 -118.174400 5/9 fix valid
UTC: 2005/11/02 18:10:02 34.099270 -118.174400 5/9 fix valid
UTC: 2005/11/02 18:10:03 34.099270 -118.174385 5/9 fix valid
To compile it, you need a suitable c++ crosscompiler, such as crosstool.
Download GPL'ed src and binaries: omnigps.zip
Many thanks to Dan for his help, and all his work in compiling the drivers for ARM.
|
| |
|
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.
|
|
|
|