Skip to content

Instantly share code, notes, and snippets.

@M0LTE
Created April 3, 2018 21:12
Show Gist options
  • Save M0LTE/78fe5857393c91c4bed5b71769b08592 to your computer and use it in GitHub Desktop.
Save M0LTE/78fe5857393c91c4bed5b71769b08592 to your computer and use it in GitHub Desktop.
Configure the u-blox neo-6m for minimal output with 500ms updates from Arduino / C
// configure the u-blox neo-6m for minimal output with 500ms updates
byte startup[] = {
/* 500ms updates
B5 62 06 08 06 00 F4 01 01 00 01 00 0B 77 */
0xB5, 0x62, 0x06, 0x08, 0x06, 0x00, 0xF4, 0x01, 0x01, 0x00, 0x01, 0x00, 0x0B, 0x77
/* disable $GPGSV
B5 62 06 01 03 00 F0 03 00 FD 15 */
, 0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x03, 0x00, 0xFD, 0x15
/* disable $GPVTG
B5 62 06 01 03 00 F0 05 00 FF 19 */
, 0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x05, 0x00, 0xFF, 0x19
/* disable $GPGGA
B5 62 06 01 03 00 F0 00 00 FA 0F */
, 0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x00, 0x00, 0xFA, 0x0F
/* disable $GPGSA
B5 62 06 01 03 00 F0 02 00 FC 13 */
, 0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x02, 0x00, 0xFC, 0x13
/* disable $GPGLL
B5 62 06 01 03 00 F0 01 00 FB 11 */
, 0xB5, 0x62, 0x06, 0x01, 0x03, 0x00, 0xF0, 0x01, 0x00, 0xFB, 0x11
};
gpsSerial.write(startup, sizeof(startup));
// you'll probably get 60 bytes(10 bytes x 6 messages) of acks back, maybe interspersed with the first GPRMC message
// B5 62 05 01 02 00 06 08 16 3F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment