Quick
guide for creating and
using gpsd on Raspberry Pi
Download wheezy image from here
start with settings for the local wifi system
update and upgrade the system
$ sudo apt-get update
$ sudo apt-get upgrade
plugin the usb gps and control the port
$ sudo lsusb
$ more /var/log/syslog
e.g. my ublox gps runs under /dev/ttyACM0
get the gpsd tools
$ sudo apt-get install gpsd gpsd-clients python-gps
start gpsd
$ sudo gpsd /dev/ttyACM0 -n -G -F /var/run/gpsd.sock
Local test with
$ cgps -s
stop gpsd
$ sudo killall gpsd
publish test data
$ gpsfake
now change the wifi system to an acces point
$ sudo apt-get install hostapd iw
try a mini configuration edit hostapd-minimal.conf
#change wlan0 to your wireless device
interface=wlan0
driver=nl80211
ssid=test
channel=1
and test
$ sudo hostapd ./hostapd-minimal.conf
I got some problems in this situation:
invalid/unknown driver 'nl80211'
so I need to install and compile a new hostapd
$ wget http://w1.fi/releases/hostapd-2.0.tar.gz
$ tar xzvf hostapd-2.0.tar.gz
$ cd hostapd-2.0/hostapd
and these additional libs
$ sudo apt-get install libnl-dev
$ sudo apt-get install libssl-dev
and the clearing
$ modprobe mac80211
At the end when all is running set up your AFTrack with this gps settings:
- Gps Mode. Online
- Online Gps: ip of your raspi
- Online Gps Port: 2947
- Select TCP