The commands below are executed in order starting at the function: void start_gps2(uint32_t fd, uint8_t* result_buffer)
.
result_buffer
is a 14 byte buffer that's used to store command responses.
#POWER,0\r\n
#POWER,1\r\n
Expected response:
[POWER] Done
This appears to be used to check whether the GPS module is online.
@VER\r\n
Expected response:
[VER] Done
@CSPS 8 0 1 1\r\n
Expected responses:
[CSPS] Done
Theres a 300 ms delay after the response.
Set parameter command
#STPAR,%d,%d,%d,%d\r\n"
Values are unknown at the time of writing.
@CEPE\r\n
And
@CEPW %d\r\n
A valid value for the decimal is 0
.
Valid response:
[CEPW]
Actually starts the GPS.
#GSTA %d,%d,%d\r\n
Values for the parameters are unknown.