Difference between revisions of "Use Android Phone As GPS With Kismet"
Jump to navigation
Jump to search
(Created page with "==Installing== #Install "[https://play.google.com/store/apps/details?id=io.github.tiagoshibata.gpsdclient&hl=en_US GPSd Client]" app on the Android phone. It will be called "...") |
(No difference)
|
Revision as of 21:11, 16 January 2021
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.