Difference between revisions of "GPS daemon"

From ArmadeusWiki
Jump to: navigation, search
(creation)
 
(Usage)
Line 22: Line 22:
  
 
==Usage==
 
==Usage==
gpsd is automatically launched at startup by ''/etc/init.d/S50gpsd''
+
* gpsd is automatically launched at startup by ''/etc/init.d/S50gpsd''. At first startup you may need to add the following line in the start() method of this script:
 +
<pre class="apf">
 +
# nano /etc/init.d/S50gpsd
 +
 
 +
 
 +
start() {
 +
        stty -F /dev/ttySMX4 raw -echo -echoe -echok 38400
 +
        echo -n "Starting $NAME: "
 +
        start-stop-daemon -S -q -p $PIDFILE --exec $DAEMON -- -P $PIDFILE $DEVICES && echo "OK" || echo "Failed"
 +
}
 +
</pre>
  
 
==Links==
 
==Links==
 
* [http://gpsd.berlios.de/ gpsd website]
 
* [http://gpsd.berlios.de/ gpsd website]

Revision as of 18:55, 9 June 2010

About

From gpsd website: gpsd is a service daemon that monitors one or more GPSes or AIS receivers attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried on TCP port 2947 of the host computer. With gpsd, multiple location-aware client applications (such as navigational and wardriving software) can share access to receivers without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than the NMEA 0183 emitted by most GPSes. The gpsd distribution includes a linkable C service library, a C++ wrapper class, and a Python module that developers of gpsd-aware applications can use to encapsulate all communication with gpsd.

Installation

$ make menuconfig
Package Selection for the target  --->
    Hardware handling / blockdevices and filesystem maintenance  --->
        [*]   gpsd
                devices/protocol support  --->
                gpsd features  --->
  • Let default devices/features if you don't know what they mean.
$ make
  • reflash your rootfs

Usage

  • gpsd is automatically launched at startup by /etc/init.d/S50gpsd. At first startup you may need to add the following line in the start() method of this script:
# nano /etc/init.d/S50gpsd


start() {
        stty -F /dev/ttySMX4 raw -echo -echoe -echok 38400
        echo -n "Starting $NAME: "
        start-stop-daemon -S -q -p $PIDFILE --exec $DAEMON -- -P $PIDFILE $DEVICES && echo "OK" || echo "Failed"
}

Links