Hi,
I’m having trouble with the GNSS setup on an HL7812.5.7.4.0. Right after boot, if I put the modem into airplane mode using AT+CFUN=4 and then immediately try to start GNSS with AT+GNSSSTART=0, it fails. I get the error/URC that indicates LTE is still active (+GNSSEV: 1,0).
See the log from my tesT:
[00:00:05.109,000] : +WDSI: 0
[00:00:05.218,000] : +KSUP: 0
[00:00:05.256,000] : +KSRAT: 0
[00:00:05.256,000] : KSRAT: +KSRAT: 0
[00:00:05.256,000] : hl78xx_post_restart_chat_script: step: 2
[00:00:05.256,000] : sending: AT+KSTATEV=1
[00:00:05.256,000] : OK
[00:00:05.257,000] HL78XX modem rat mode changed: 0
[00:00:05.291,000] : OK
[00:00:05.291,000] : sending: AT+CFUN=4,0
[00:00:05.327,000] : OK
[00:00:05.327,000] : sending: AT+CFUN?
[00:00:05.361,000] : +CFUN: 4
[00:00:05.361,000] : OK
[00:00:05.361,000] : dynamic_script: step: 0
[00:00:05.361,000] : sending: AT+GNSSNMEA=0,1000,0,4d
[00:00:05.418,000] : OK
[00:00:05.418,000] : sending: AT+GNSSNMEA?
[00:00:05.458,000] : +GNSSNMEA: 0 1000 0 4D
[00:00:05.458,000] : dynamic_script: complete
[00:00:05.458,000] : OK
[00:00:05.558,000] : sending: AT%STATUS="RRC"
[00:00:05.565,000] modem_chat_log_received_command: RRC: UNKNOWN
[00:00:05.565,000] dynamic_script: aborted
[00:00:05.560,000] : sending: AT+GNSSSTART=0
[00:00:05.605,000] modem_chat_on_unknown_command_received: OK
[00:00:05.605,000] modem_chat_log_received_command: +GNSSEV: 0 1
[00:00:05.605,000] evnt_listener: GNSS engine initialized
[00:00:05.605,000] modem_chat_log_received_command: +GNSSEV: 1 0
If I add a delay before sending the GNSS start command, it works fine, so it looks like LTE just needs some time to settle into idle.
The documentation says to check that LTE is idle before starting GNSS using:
AT%STATUS="RRC"
But when I try that, I just get:
RRC: UNKNOWN
OK
So my questions are:
- Why does
AT%STATUS="RRC"return an error (UNKNOWN) on the HL78xx? (It is not in the at command reference guider28.pdf but it is the AirPrime HL78xx GNSS Behavior 2174294-1) - Is there another reliable way to confirm LTE is idle before starting GNSS?
- Is this delay-before-GNSS-start approach expected/normal for HL78xx? If yes, how long is the max waitiging time before starting the gnss search?
Thanks for any tips!
