Use Android Phone As GPS With Kismet
Installing
- Install "GPSd Client" app on the Android phone. It will be called "GPSd Forwarder" once it's installed.
- Install gpsd and kismet on the laptop.
Using
- If you will be mobile, then turn off the wifi on the phone, turn on its mobile hotspot, and connect the laptop to the hotspot before doing the rest of this.
- Run the "GPSd Forwarder" app, specifying the IP of your laptop plus the random port number that you will tell gpsd to listen on.
- Start gpsd with
sudo gpsd -N udp://*:NNNN
with "NNNN" being the port number from the previous step.
You can make this permanent by settingOPTIONS="udp://*:NNNN"
in the /etc/sysconfig/gpsd file. Then you can use systemd to start/stop gpsd. - Use the
gpsmon
command to confirm that gpsd is receiving data from the phone. - Uncomment this line in /etc/kismet/kismet.conf:
# gps=gpsd:host=localhost,port=2947
and start kismet:sudo kismet
Note that this line will cause kismet to automatically start gpsd via systemd if it is not running.