SIM7600G-H 4G HAT (B) for Raspberry Pi GPS stopped working

Hi

I had this HAT working with Python and was getting GPS coordinates. But since last week or thereabouts, I have stopped getting GPS fixes. I am only getting +GPSINFO, result.

The sample GPS script fails to execute as it exits.

I thought this was due to the cloudy weather but I tried in an open area with bit of clear sky with still no luck.

Minicom returns the same result with AT command.

Any ideas of what’s wrong?

Hi Priyath,

This HAT is sensitive to weather so clouds and rain will lead to it losing it’s position. I also takes some time for it to get a lock.

Can you elaborate on this? What is printed when you try AT+CGPSINFO?

From the Product’s Wiki, this is how you test the GPS once it has a lock.

AT+CGPS=1	       //Open GPS
AT+CGPSINFO          //Print GPS information to the serial port
AT+CGPS=0          //Close GPS

Hi Jack

I am getting +CGPSINFO and a bunch of commas continuously.

This used to work perfectly week before. I continuously ran the script with no change.

Its hard to test if this is the GPS not getting a lock or a hardware issue. , are the commas consistent with the amount of things that should be printed?

Send us an email with your findings and we can start exploring the possibility of a hardware issue.

AT+CGPS=1,1
OK

+CGPSINFO: ,

after following waveshare FAQ I issued the below AT commands and now it is giving the below output
AT+CGPSNMEAPORTCFG=3
AT+CGPSNMEA=197119
AT+CGPSINFOCFG=10,31
AT+CGPSAUTO=1

OK
$GPGGA,0,66
$GPVTG,T,M,N,K,N
2C
$GPRMC,V,N*53
$GPGSA,A,1,*1E

['AT+CGPSINFO\r\r\n+CGPSINFO: ', β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜\r\n\r\nOK\r\n$GPGGA’, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜0’, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜66\r\n$GPVTG’, β€˜β€™, β€˜T’, β€˜β€™, β€˜M’, β€˜β€™, β€˜N’, β€˜β€™, β€˜K’, 'N2C\r\n$GPRMC’, β€˜β€™, β€˜V’, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜N*53\r\n$GPGSA’, β€˜A’, β€˜1’, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜β€™, β€˜*1E’]
AT+CGPSINFO
+CGPSINFO: ,

when I run the Demo GPS.py I get the below output

1 Like

Hey @Priyath72854,

That output doesn’t seem to indicate any particular issue with your setup.

I would double-check your hardware setup for potential issues, especially the connection between the board and the antenna.

The output line $GPGSA,A,1,*1E tells us that the module is trying to find a GPS fix but can’t find one so it is likely a hardware or interference issue.

I would try disconnecting and securely reconnecting the antenna and giving the module as open a view of direct sky as you can.

If this doesn’t change the outcome let us know! :slight_smile:

Did you check the power supply? Is it sufficient?

1 Like