UBX protocol help: configuring a NEO 6M Arduino GPS Module... Fletcher checksum?

macdonaldtomw:
Yep, if you look at the code I posted, you'll see that it is based on that exact same example "GPS Level Convertor Board Test Script"

Sorry I didn't do that. My bad.

@Brad Burleson: When you run the code you posted, do you receive an ACK-ACK message in response from the module? (a.k.a. your serial monitor would spit out "Success!"

I'm not sure. I never used the code I posted, only what I derived from it. I doubt it will help but here is the code I'm using

    // Set MAX-6 to flight mode
    sendUBX(setNav, sizeof(setNav)/sizeof(uint8_t));
    gps_status = getUBX_ACK(setNav);
    if (!gps_status) 
      while (1)
        blinker(100, 1, 2000);

    // Switch baud rate
    sendUBX(setBaudRate, sizeof(setBaudRate)/sizeof(prog_char));

    // Now don't forget to switch our serial baud rate to match
    Serial.flush();                              // Empty the buffer
    delay(100);                                  // give it a moment
    Serial.end();                                // Close serial port
    Serial.begin(38400);                         // Re-open w/ at new rate

    // Finally turn off any NMEA sentences we don't need (in this case it's 
    // everything except GGA and RMC)
    sendUBX(setGLL, sizeof(setGLL)/sizeof(uint8_t));   // Disable GGL
    sendUBX(setGSA, sizeof(setGSA)/sizeof(uint8_t));   // Disable GSA
    sendUBX(setGSV, sizeof(setGSV)/sizeof(uint8_t));   // Disable GSV
    sendUBX(setVTG, sizeof(setVTG)/sizeof(uint8_t));   // Disable VTG

    // Finally save the configuration in case we have power issues
    // (or try to sleep)	
    sendUBX(saveConfig, sizeof(saveConfig)/sizeof(prog_char));
    gps_status = getUBX_ACK(saveConfig);
    if (!gps_status)
      while (1)
        blinker(100, 2, 2000);

I believe that sendUBX and getUBX_ACK is the same as you (and I) have already posted.

I doubt it helped but...

Regards,

Brad
KF7FER

PS Going on IRC to #highaltitude would probably be your best bet; the authors of code posted usually lurk there