WM1302 Pi HAT Built-In GPS

The WM1302 Pi Hat has a built-in GPS chip. I have the Gateway OS setup and working and the shield is showing events. How do I setup the GPS or verify the GPS is being used?

Thanks in advance

Hi,
Make sure your hat have a uBlock chip.

To run commands to your RPI, use SSH, with tool like PuTTY.

Then you can see NMEA with this command

cat /dev/ttyAMA0

To get decoded location run

/opt/libloragw-sx1301/utils/test_loragw_gps

If you get no data from either command. It means your GPS isn’t working or is not compatible.

cat /dev/ttyAMA0 returns data like this:
image

/opt/libloragw-sx1301/utils/test_loragw_gps
Beginning of test for loragw_gps.c
*** Library version information ***
Version: 5.0.1;


~~ UBX NAV-TIMEGPS sentence, triggering synchronization attempt ~~
No valid reference GPS time available, synchronization impossible

Does your gateway have line-of-sight with the sky? It should have a fix (e.g. xxGGA should not have a 0 for the quality status, xxRMC should have a A for the fix status).

NMEA-0183 message: GGA
NMEA-0183 message: RMC

@sp193 indeed, having a clear LOS to the sky can help . mostly if you’re in a valley or your building act as faraday cage. Try to place your GPS antenna near of a windows or outside.

Here an example from one of my recent topic with GPS issue, i got correct GPS location but not time sync while the NMEA have timestamp: No GNSS time but correct location

Thank you for your help. I was able to use an extended wire to help get GPS working.