Skip to content

Instantly share code, notes, and snippets.

@MagneFire
Last active March 2, 2023 21:37
Show Gist options
  • Save MagneFire/22f64c94cb72a2d1ef730ac2f1c54166 to your computer and use it in GitHub Desktop.
Save MagneFire/22f64c94cb72a2d1ef730ac2f1c54166 to your computer and use it in GitHub Desktop.
`koi` GPS commands

GPS commands for koi (and probably medaka too)

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

#POWER,0\r\n
#POWER,1\r\n

Expected response:

[POWER] Done

Version

This appears to be used to check whether the GPS module is online.

@VER\r\n

Expected response:

[VER] Done

CSPS

@CSPS 8 0 1 1\r\n

Expected responses:

[CSPS] Done

Theres a 300 ms delay after the response.

STPAR

Set parameter command

#STPAR,%d,%d,%d,%d\r\n"

Values are unknown at the time of writing.

CEP

@CEPE\r\n

And

@CEPW %d\r\n

A valid value for the decimal is 0.

Valid response:

[CEPW]

GSTA

Actually starts the GPS.

#GSTA %d,%d,%d\r\n

Values for the parameters are unknown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment