You are reading a single comment by @raymondw and its replies. Click here to read the full conversation.
  • Fixed it :)
    Don't know really what was set where, so I used a reset command I found in a threat AND I used the reset command I use for my own custom Ublox device.
    After another car ride (same ride as above to pickup the van) it looks nice!
    No more jitters and speed jumps!

    To be completely sure I "need" another session windsurfing, but the wind prediction is quite bad.
    So I probably continue working on my custom code and test somewhere in the next week.

    Below is the code I used via the web ide to reset the Ublox.

    function log_debug(o) {
      let timestamp = new Date().getTime();
      console.log(timestamp + " : " + o);
    }
    
    function writeGPScmd(cmd) {
      var d = [0xB5,0x62]; // sync chars
      d = d.concat(cmd);
      var a=0,b=0;
      for (var i=2;i<d.length;i++) {
        a += d[i];
        b += a;
      }
      d.push(a&255,b&255);
      Serial1.write(d);
    }
    
    function UBX_CFG_RESET() {
      log_debug("UBX_CFG_RESET()");
      writeGPScmd([0x06,0x09,
                   0x0D,0x00,
                   0xFF,0xFF,0x00,0x00,
                   0x00,0x00,0x00,0x00,
                   0xFF,0xFF,0x00,0x00,
                   0x07]);
    }
    
    function UBX_CFG_RESET2() {
      log_debug("UBX_CFG_RESET2()");
      writeGPScmd([0x06, 0x09,   // class id
                   0x0D, 0x00,
                   0xFF, 0xFB, 0x00, 0x00,  // clear mask
                   0x00, 0x00, 0x00, 0x00,  // save mask
                   0xFF, 0xFF, 0x00, 0x00,  // load mask
                   0x17]);
    }
    
    function setupGPS() {
      Bangle.setGPSPower(1);
      UBX_CFG_RESET();
      //wait(100);
      UBX_CFG_RESET2();
      setTimeout('console.log("Hello World");', 1000);
      setTimeout('Bangle.setGPSPower(0);', 1000);
    }
    
    setupGPS();
    
About

Avatar for raymondw @raymondw started