Skip to content

Commit

Permalink
fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
tve committed Feb 1, 2024
1 parent f5729ca commit 8f0c4b5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ISSUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,19 @@ The format looks like:

The hanging is fixed by using the serialport module instead of just opening the port as a file.
It's not clear why I switched to opening the port as a file in the first place.

## GPSd doesn't detect or work with Adafruit GPS HAT

Typically it is shown as no-dev in the Web UI. Most likely this is due to baud rate mismatch
or perhaps due to the probing of GPSd putting the GPS into a weird state.

GPSd is supposed to "autobaud" but in reality this was broken and is fixed in 3.23 or 3.24 (not
sure). Debian sits on 3.22 and only provides 3.25 in unstable at the moment.
Installing 3.25 from sources shows that it does autobaud but ends up being unreliable and
frequently finds a checksum error in the stanzas coming from the GPS and then starts detection
essentially from scratch. It is unclear whether the GPS sends garbage or something else happens
(this was at 38400 baud). It seems that rather than having gpsd use the GPS' baud rate that the
baud rate should be changed to 9600.

Gist with a script that detects and changes the baud rate:
https://gist.github.com/tve/19ab477ba43b685103c107d1cbb1dc34
1 change: 1 addition & 0 deletions sg-armv7-rpi-bullseye.pifile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN rm /usr/share/userconf-pi/sshd_banner
# Configure sensorgnome repository
#INSTALL sensorgnome-pub.gpg /etc/apt/trusted.gpg.d/sensorgnome.gpg
RUN bash -c "curl -1sLf -o /usr/share/keyrings/sensorgnome.gpg 'https://sensorgnome.s3.amazonaws.com/sensorgnome.gpg'"
RUN gpg --keyring /usr/share/keyrings/sensorgnome.gpg --list-keys
RUN bash -c "echo deb [signed-by=/usr/share/keyrings/sensorgnome.gpg] https://sensorgnome.s3.amazonaws.com/ $CODENAME main >/etc/apt/sources.list.d/sensorgnome.list"
RUN apt update

Expand Down

0 comments on commit 8f0c4b5

Please sign in to comment.