kismetwireless / kismet

Github mirror of official Kismet repository
Other
1.63k stars 308 forks source link

Kismet not recognizing GPSD data #515

Open OnyxDash opened 8 months ago

OnyxDash commented 8 months ago

I recently started using Kismet Wireless on my Raspberry Pi 5, and everything works fine excluding the GPS. When I first tested it using my MediaTek wifi card and u-blox 7 GPS dongle, it connected fine. Once I set up a script to automatically launch Kismet on startup (since I don't have a monitor for my Pi in my car), the GPS doesn't connect, and hangs with the error "No readable data from GPSD in the last 30 seconds, reconnecting."

Full error: (GPS) Connected to a JSON-enabled GPSD (3.22), enabling JSON mode (GPS) Connected to gpsd server [::1]:2947 (GPS) Connecting to GPSD on localhost:2947 (GPS) No usable data from gpsd in over 30 seconds, reconnecting...

The startup script contains the following: sudo airmon-ng start wlan1 sudo gpsd /dev/ttyACM0 kismet -c wlan1mon

It's very possible there's something I'm missing, but in case I'm not I wanted to make an issue report.

k-rku commented 8 months ago

I also had multiple issues with GPSD 3.22. After updating it to 3.25, things were working for me.

These are the steps I did to update to 3.25.

Stop possibly interfering gpsd services:

sudo systemctl stop gpsd.socket sudo systemctl disable gpsd.socket

Here's the subsequent install:

sudo apt install -y scons \ libncurses-dev python-dev-is-python3 pps-tools git-core asciidoctor python3-matplotlib\ build-essential manpages-dev pkg-config python3-distutils

wget http://download.savannah.gnu.org/releases/gpsd/gpsd-3.25.tar.gz tar -xzf gpsd-3.25.tar.gz

cd gpsd-3.25/

sudo scons sudo scons udev-install sudo reboot

Source: https://austinsnerdythings.com/2021/10/01/how-to-update-gpsd-by-building-from-source/

ODenssi commented 8 months ago

This step helped me with gpsd issues:

Run: "sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock"

Then run: "sudo nano /etc/default/gpsd" --> add: DEVICES="/dev/ttyACM0".

"/dev/ttyACM0" is where your GPS is mounted. It may be different for you. "ttyACM0" is default for bookworm in my experience.

Also add: GPSD_OPTIONS="-n -b".