Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kismet not recognizing GPSD data #515

Open
OnyxDash opened this issue Mar 29, 2024 · 2 comments
Open

Kismet not recognizing GPSD data #515

OnyxDash opened this issue Mar 29, 2024 · 2 comments

Comments

@OnyxDash
Copy link

OnyxDash commented Mar 29, 2024

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
Copy link

k-rku commented Apr 4, 2024

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
Copy link

ODenssi commented Apr 4, 2024

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants