Files
ZephCore/zephcore/boards/common/gps_debug.conf
T

37 lines
1.5 KiB
Plaintext

# GPS diagnostic overlay — dumps the raw NMEA stream to the USB console.
#
# For a receiver that reports no satellites. From the application's point of
# view a module with no sky view, a module silenced by a disabled output
# protocol, and a module stranded at a baud rate saved by a previous host all
# look identical: zero satellites, no fix. Seeing the actual bytes separates
# them in seconds.
#
# west build -b rak3401_1watt zephcore --pristine -- \
# -DEXTRA_CONF_FILE="boards/common/repeater.conf;boards/common/gps_debug.conf"
#
# Then watch the USB serial port. Expect one burst per second:
# NMEA: $GNRMC,... NMEA: $GNGGA,... NMEA: $GPGSV,...
#
# Sentences flowing -> module is alive at 9600; any remaining
# problem is signal or antenna.
# Nothing at all -> module is silent, at another baud, or not
# connected. Check "get gps diag" (rx=0 confirms).
# Garbled/partial lines -> wrong baud rate.
#
# Deliberately NOT boards/common/debug.conf: that routes logging to SEGGER RTT
# only, which needs a debug probe. This sends it to the console UART, which on
# these boards is the USB CDC port already used by the CLI.
# Logging to the console rather than RTT
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_LOG_BACKEND_RTT=n
CONFIG_USE_SEGGER_RTT=n
# The GNSS driver logs the sentence dump and the module version at INF
CONFIG_GNSS_LOG_LEVEL_INF=y
CONFIG_ZEPHCORE_GPS_LOG_LEVEL_INF=y
# Dump every NMEA sentence received
CONFIG_ZEPHCORE_GPS_NMEA_DUMP=y