GPS.resetMode(mode)

This method resets GPS controller. It is equivalent to the AT$GPSR command.

The input parameter mode is a Python integer and can have the following values:

0 - Hardware reset

1 - Coldstart (No Almanac, No Ephemeris);

2 - Warmstart (No Ephemeris);

3 - Hotstart (with stored Almanac and Ephemeris)

The return value is a Python integer which is -1 if an error occurred otherwise is 1.

This method is available only for product versions from 12.00.xx6 and from 13.00.xx7.

 

Example:

 

res = GPS.resetMode(1)

 

executes a cold restart of GPS controller, assigning the return value to res.