Use Android Phone As GPS With Kismet

From Nearline Storage
Revision as of 21:11, 16 January 2021 by Dlk (talk | contribs) (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 "...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to navigation Jump to search

Installing

  1. Install "GPSd Client" app on the Android phone. It will be called "GPSd Forwarder" once it's installed.
  2. Install gpsd and kismet on the laptop.

Using

  1. 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.
  2. Run the "GPSd Forwarder" app, specifying the IP of your laptop plus the random port number that you will tell gpsd to listen on.
  3. Start gpsd with sudo gpsd -N udp://*:NNNN with "NNNN" being the port number from the previous step.
    You can make this permanent by setting OPTIONS="udp://*:NNNN" in the /etc/sysconfig/gpsd file. Then you can use systemd to start/stop gpsd.
  4. Use the gpsmon command to confirm that gpsd is receiving data from the phone.
  5. 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.