vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.93k stars 715 forks source link

SARA-R410 enableGPS() always returns false #505

Open MaffooClock opened 3 years ago

MaffooClock commented 3 years ago

[X] I have read the Troubleshooting section of the ReadMe

What type of issue is this?

[ ] Request to support a new module [ ] Bug or problem compiling the library [X] Bug or issue with library functionality (ie, sending data over TCP/IP) [ ] Question or request for help

What are you working with?

Modem: SARA-R410M-02B Main processor board: N/A TinyGSM version: 0.10.9 Code: N/A

Scenario, steps to reproduce

Call modem.enableGPS() function with TINY_GSM_MODEM_SARAR4 defined.

Expected result

modem.enableGPS() returns true when modem responds with OK.

Actual result

Modem responds to AT+UGPS with OK, but enableGPSImpl() returns false.

Debug and AT command log

I don't have logs available at this time, as I am reporting the issue after the fact.

Additional Information

It appears to me that the function is expecting to receive more than just an OK response; I could be wrong, but it seems that Line 443 is expecting the modem to also return a +UGPS: response.

I suspect the same problem will be in disableGPSImpl() at Line 448.

Commenting out those lines produces the expected result.