vshymanskyy / TinyGSM

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

GPS start command does not work on SIM7600 (AT command missing mode parameter) #557

Closed wjcloudy closed 3 years ago

wjcloudy commented 3 years ago

Currently enable GPS uses:

bool enableGPSImpl() { sendAT(GF("+CGPS=1")); if (waitResponse() != 1) { return false; } return

This returns ERROR from the modem, at least on the SIM7600 - you need both the on and the mode -requirement is: AT+CGPS=1,1 (<on/off>,)

http://www.mt-system.ru/sites/default/files/documents/sim7906_series_at_command_manual_v1.00.pdf (page 168)

<on/off> 0 – stop GPS session 1 – start GPS session

Ignore - standalone mode < This doesn't appear to actually work 1 – standalone mode 2 – UE-based mode 3 – UE-assisted mode