понеделник, 31 май 2010 г.

gpsd test install log - tangogps

gpsd - get and install from berlios:

tangoGPS - from home page

start like root:
gpsd -N -G -D 4 /dev/ttyUSB0

GPS device - /dev/ttyUSB0 - for My
-N to get data continuously
-G to listen on all interfaces
-D debug Level

To test:
telnet 0.0.0.0 2947

To get log from GPSD:
cgpxlogger > track.gpx
- for quick test cgps is used.
- do not use tee or other - will broke XML at END.

If all working well and GPS get signal:
- see in telnet:
$GPGSA,A,2,,,,,,,,,,,,,0.0,0.0,0.0*33
$PGRME,93.08,M,28.68,M,97.40,M*22
$GPGGA,083522,4241.2008,N,02315.3579,E,2,00,,643.98,M,36.847,M,,*5B
$GPRMC,083522,A,4241.2008,N,02315.3579,E,0.6999,168.376,310510,,*23
- in cgpxlogger:

2d


- in gpsd debug:
gpsd: PrintSERPacket(, 0x33, 0x40, ) = 0x100383fa
gpsd: SendPacket(), writing 6 bytes: 100600fa1003
gpsd: PrintSERPacket(, 0x6, 00, )
gpsd: ACK
gpsd: PrintSERPacket(, 0x6, 00, ) = 00
gpsd: => GPS: 100600fa1003
gpsd: SendPacket(), wrote 6 bytes
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,083717,4241.2020,N,02315.3574,E,2,00,,646.51,M,36.847,M,,*58\x0d\x0a$GPRMC,083717,A,4241.2020,N,02315.3574,E,0.2071,344.474,310510,,*22\x0d\x0a$GPGSA,A,2,,,,,,,,,,,,,0.0,0.0,0.0*33\x0d\x0a$PGRME,86.39,M,28.69,M,91.03,M*24 gpsd: => client(0): $GPGGA,083717,4241.2020,N,02315.3574,E,2,00,,646.51,M,36.847,M,,*58\x0d\x0a$GPRMC,083717,A,4241.2020,N,02315.3574,E,0.2071,344.474,310510,,*22\x0d\x0a$GPGSA,A,2,,,,,,,,,,,,,0.0,0.0,0.0*33\x0d\x0a$PGRME,86.39,M,28.69,M,91.03,M*24
gpsd: => client(1): $GPGGA,083717,4241.2020,N,02315.3574,E,2,00,,646.51,M,36.847,M,,*58\x0d\x0a$GPRMC,083717,A,4241.2020,N,02315.3574,E,0.2071,344.474,310510,,*22\x0d\x0a$GPGSA,A,2,,,,,,,,,,,,,0.0,0.0,0.0*33\x0d\x0a$PGRME,86.39,M,28.69,M,91.03,M*24
gpsd: garmin_ser_parse() Type: 0x33, Len: 0x40, chksum: 00

In EVERY LOG is seen :
DIGIT:2
A,2
2d
This mean that GPS Lock position from Two satelites! This is very important.

If not Lock acquired, you will see:
"GPS has no fix" in gpsd log
and
A,1 - in telnet log
and no gpx log will be created from cgpslogger.
Any program will not work and give strange results :).


Google Maps:
First:
http://code.google.com/apis/maps/signup.html

And then:
http://norman.walsh.name/2006/06/20/gpxGoogle - this tool will make from GPX ready for use html - many thanks to creator.


http://www.obviously.com/gis/gpx_loader.html - load GPX file to google maps
Some KEY need :)

http://www.chrislacy.net/map/current/index.html - another loader for GPX file

See here for more:
http://www.topografix.com/gpx_resources.asp

Няма коментари: