Reply
Thread Tools
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#1
This is an early alpha, but functional. GPL v3.

http://www.zdez.org/minigps-n0.1.tgz

It is a replacement for the stock GPSD with logging and developer features. It will automatically choose a bluetooth GPS over the internal one (if available) and can log other data (mainly J1850 streams for my motorcycle so I can get gear, rpm, etc.).

It is all fixed point so should be much faster.

Data is logged to the external card (/media/mmc1) in a zmaplog directory. It creates KML files (google earth), one new every 5 minutes which contains speed and location.

The GPS data will be in XML comments within the KML file, both internal and external (internal changes the initial $ to & when a BT gps is working).

Also, if you do http://localhost:8888/dogmap.html it will bring up a google map window and will recenter on tht GPS location every 5 seconds. You may need to uncheck Fit Width for it to display.

(I have one of those PHS Personal Hot Spots, so the maps are normally available to me).

Quickstart - download, untar, copy minigpsd to the Nokia where it can be executed (chmod +x if needed), and run it (maybe as root but I don't know if it is necessary).

If you want the kml files automatically compressed into kmz (zipped) files, also copy kml2kmz to /usr/local/bin (path is hardcoded, but the source is there).
 

The Following 4 Users Say Thank You to tz1 For This Useful Post:
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#2
It does turn the internal GPS on, but it doesn't turn it off. I'm working on that. Also it works with zmapper and apparently with the included (wayfinder?) mapping program.
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#3
slight revision - if you got it before 5:15 CDT, redownload it. There were some hiccups.

And you will need to do ". ./bindgps" to create the symlink if you have a BT gps (". ./relgps" reverses it - but might not remove the symlink, though it won't work since it won't point to anything).

The system seems to freeze (in the kernel?) when opening a bluetooth rfcomm device. Probably doing the association and handshakes, but they should really let other tasks run. I expect to file a bug report on this, but if you have /dev/gps and bluetooth is off but you haven't done relgps, it might stop for about 5 seconds every 10 as it tries to search for it. Do the relgps or turn on the BT.
 

The Following User Says Thank You to tz1 For This Useful Post:
Posts: 17 | Thanked: 2 times | Joined on Apr 2008
#4
This is very exciting! I'm not ready to play with it, but I'm thrilled that you're working on it.

thank you for creating and sharing this with us!
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#5
I just used it to compare the Wintec at 10Hz (see my thread in Accessories) and the internal. I had to use some unix sed scripts and one of the utils to pull the Nok out separate, but here they are - the Nok doesn't begin for a while. Note if you have the time slider enabled, you will have to select the time you want to see.

The Wintec and Nokia were to either side the center of the top of my dash and I was listening to an MP3 and for the first part doing the google maps web page.

http://www.zdez.org/NokIntVWinTec.zip - rename the zip to kml. It is about 1/2 meg and is google-earth's save so it doesn't have the extra details.
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#6
Part of the log. The three digit prefix is the number of milliseconds from gettimeofday() so I can tell latency, at least generally (e.g. find delays or interpolate other data). $GPxxx is wintec, @GPxxx is Nokia. Interesting that Nokia dumps all the sentences at once in a big blob on the pty, where as bluetooth acts more like a normal serial port.

<!--552( $gpgrs,022632.70,1,-4.2,-6.2,-7.8,-2.0,-0.9,4.3,-1.6,11.5,2.3,,,*52 )-->
<!--589( $gprmc,022632.800,a,4405.7669,n,09314.8134,w,1.11, 170.78,280408,,,a*77 )-->
<!--590( $gpgga,022632.800,4405.7669,n,09314.8134,w,1,09,1. 1,361.9,m,-31.9,m,,0000*69 )-->
<!--614( $gpgsa,a,3,16,23,06,25,13,19,03,07,27,,,,2.9,1.1,2 .6*31 )-->
<!--622( $gpgsv,3,1,11,16,34,053,21,23,56,175,23,06,32,059, 18,25,67,317,14*7a )-->
<!--629( $gpgsv,3,2,11,13,70,277,19,08,10,285,17,19,34,148, 23,03,51,113,11*70 )-->
<!--645( $gpgsv,3,3,11,07,47,298,15,27,39,297,17,10,03,334, 21*4a )-->
<!--653( $gpgrs,022632.80,1,-4.8,-5.9,-7.8,-2.2,-1.1,3.5,-1.5,11.6,2.4,,,*52 )-->
<!--700( $gprmc,022632.900,a,4405.7669,n,09314.8133,w,1.12, 170.69,280408,,,a*72 )-->
<!--700( $gpgga,022632.900,4405.7669,n,09314.8133,w,1,10,0. 9,361.9,m,-31.9,m,,0000*6e )-->
<!--715( $gpgsa,a,3,16,23,06,25,13,08,19,03,07,27,,,1.8,0.9 ,1.5*32 )-->
<!--732( $gpgsv,3,1,11,16,34,053,21,23,56,175,23,06,32,059, 18,25,67,317,15*7b )-->
<!--732( $gpgsv,3,2,11,13,70,277,19,08,10,285,17,19,34,148, 23,03,51,113,11*70 )-->
<!--758( @gpgga,022633.000,4405.77059,n,09314.81452,w,1,08, 1.3,362.5,m,-31.1,m,,*62 )-->
<!--758( $gpgsv,3,3,11,07,47,298,15,27,39,297,17,10,03,334, 21*4a )-->
<!--758( @gpgll,4405.77059,n,09314.81452,w,022633.000,a,a*4 1 )-->
<!--758( $gpgrs,022632.90,1,-4.8,-5.9,-7.1,-2.5,-1.6,-42.3,3.6,-1.5,12.1,2.4,,*6b )-->
<!--759( @gpgsa,a,3,19,13,07,23,25,16,03,27,,,,,3.0,1.3,2.7 *3c )-->
<!--759( @gpgst,022633.000,128.0,33.1,62.2,7.2,30.9,56.6,14 0.9*6b )-->
<!--759( @gpgsv,3,1,11,10,03,334,,19,34,148,24,08,10,285,,0 6,32,059,*74 )-->
<!--759( @gpgsv,3,2,11,13,70,277,18,07,47,298,19,23,56,175, 22,25,67,317,18*72 )-->
<!--759( @gpgsv,3,3,11,16,34,053,16,03,51,113,22,27,39,297, 20*4d )-->
<!--759( @pnoku,33,62,7,141,,*48 )-->
<!--759( @gprmc,022633.000,a,4405.77059,n,09314.81452,w,,,2 80408,,,a*70 )-->
<!--760( @gpvtg,,t,,m,,n,,k,n*2c )-->
<!--802( $gprmc,022633.000,a,4405.7669,n,09314.8131,w,0.99, 169.71,280408,,,a*7b )-->
<!--802( $gpgga,022633.000,4405.7669,n,09314.8131,w,1,10,1. 0,361.9,m,-31.9,m,,0000*6c )-->
<!--825( $gpgsa,a,3,16,23,06,25,13,08,19,03,07,27,,,1.8,1.0 ,1.5*3a )-->
<!--825( $gpgsv,3,1,11,16,34,053,21,23,56,175,23,06,32,059, 18,25,67,317,15*7b )-->
<!--833( $gpgsv,3,2,11,13,70,277,20,08,10,285,17,19,34,148, 23,03,51,113,11*7a )-->
<!--848( $gpgsv,3,3,11,07,47,298,15,27,39,297,17,10,03,334, 21*4a )-->
<!--856( $gpgrs,022633.00,1,-4.7,-5.6,-6.5,-2.6,-1.6,-41.1,3.5,-2.1,13.2,2.7,,*61 )-->
<!--887( $gprmc,022633.100,a,4405.7669,n,09314.8130,w,0.96, 167.89,280408,,,a*7d )-->
<!--895( $gpgga,022633.100,4405.7669,n,09314.8130,w,1,10,0. 9,361.9,m,-31.9,m,,0000*64 )-->
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:44.