mini guide debugging GPS
identify the serial port for your usb gps module
$ dmesg | grep tty | grep -i usb
[ 197.458376] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
#identify the baudrate
odds are your baudrate will be 9600
check for gps lock
where your device is “ttyACM0”
$ grep "GPGSA" --line-buffered < /dev/ttyACM0
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
– this is bad
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
– this is good
$GPGSA,A,3,07,06,27,30,51,07,11,28,23,01,,,1.84,0.97,1.33*0D
great now you have a gps lock.
update your config.yml
main:
plugins:
gps:
enabled: true
speed: 9600
device: /dev/ttyACM0
restart pwnagotchi service
touch /root/.pwnagotchi-auto && systemctl restart pwnagotchi
done