LilyGO-T-A76XX icon indicating copy to clipboard operation
LilyGO-T-A76XX copied to clipboard

modem.enableGPS() might get stuck due to misinterpreting the OK response

Open NeariX67 opened this issue 4 months ago • 2 comments

After starting up the A7670 and enabling the GPS functionality, the library sometimes fails to interpret the "OK" response. It does not happen on every boot but happens fairly often.

I'm using a SoftwareSerial connection with 38400 baud rate on the Waveshare board. A corresponding failure timeout is missing too.

[...]
[5341] ### Modem: A7670E-FASE
[5341] ### Modem: A7670E-FASE
AT+CTZR=0

OK
AT+CTZU=1

OK
AT+CPIN?

+CPIN: READY

OK
Modem initialized
Enabling GPS...
AT+CGNSSPWR=1

OK
[15472] ### Unhandled: OK
AT+CGNSSPWR=1

OK
[26977] ### Unhandled: OK
AT+CGNSSPWR=1

OK
[38482] ### Unhandled: OK
AT+CGNSSPWR=1

OK
[49987] ### Unhandled: OK
AT+CGNSSPWR=1

OK
[61492] ### Unhandled: OK
AT+CGNSSPWR=1

OK
[...]

Sometimes it works, but the response is different:

+CPIN: READY

OK
Modem initialized
Enabling GPS...
AT+CGNSSPWR=1

OK

SMS DONE

+CGEV: EPS PDN ACT 1

+CGNSSPWR: READY!
GPS enabled
Setup finished

NeariX67 avatar Oct 01 '24 22:10 NeariX67