You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • Wed 2020.04.22

    While taking a break from evaporating memory discovery ;-) this post caught my eye as I hadn't played with GPS in over a year, and hadn't attempted on a Bangle, yet. Now mine is a Beta KickStarter,

    >process.env
    ={
      VERSION: "2v04.218",
      GIT_COMMIT: "5439331a",
      BOARD: "BANGLEJS",
      FLASH: 524288, RAM: 65536,
    
    >process.memory()
    ={ free: 2035, usage: 65, total: 2100, history: 31,
    



    After reviewing my post from a year ago, contains links and images:

    Programming the Ublox NEO-6M GPS

    plucked out the spec on data packets:

    http://www.gpsinformation.org/dale/nmea.htm#RMC



    Here is what I did while sitting at my kitchen table fifteen feet from my sliding patio door/window:

    Used verbatim the second code block provided by @Martin

    Bangle.setGPSPower(1);
    Bangle.on('GPS-raw', function(gps) {
      if (Date().getSeconds() % 5 === 0){
        print(gps);
      }
    });
    



    As the GPS has never been activated before, the return data is null as expected:

    $GNTXT,01,01,02,ANTSTATUS=OK*25
    $GNRMC,,V,,,,,,,,,,N*4D
    $GNVTG,,,,,,,,,N*2E
    $GNGGA,,,,,,0,00,99.99,,,,,,*56
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,00*79
    $GNGLL,,,,,,V,N*7A
    $GNRMC,,V,,,,,,,,,,N*4D
    $GNVTG,,,,,,,,,N*2E
    $GNGGA,,,,,,0,00,99.99,,,,,,*56
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,00*79
    $GNGLL,,,,,,V,N*7A
    $GNRMC,,V,,,,,,,,,,N*4D
    $GNVTG,,,,,,,,,N*2E
    



    After two to five minutes, the first satellite was detected and packet GNRMC starts to render the first [ 161332.70 ] detected:

    $GNGGA,,,,,,0,00,99.99,,,,,,*56
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,01,08,,,30*73
    $GNGLL,,,,,,V,N*7A
    $GNRMC,161332.70,V,,,,,,,,,,N*60
    $GNVTG,,,,,,,,,N*2E
    $GNGGA,161332.70,,,,,0,00,99.99,,,,,,*7B
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,01,08,,,30*73
    $GNGLL,,,,,161332.70,V,N*57
    $GNRMC,161333.00,V,,,,,,,,,,N*66
    $GNVTG,,,,,,,,,N*2E
    $GNGGA,161333.00,,,,,0,00,99.99,,,,,,*7D
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,01,08,,,30*73
    $GNGLL,,,,,161333.00,V,N*51
    $GNRMC,161334.00,V,,,,,,,,,,N*61
    



    And after five minutes the date [ 220420 ] 22nd of April, 2020 popped up:

    $GNGGA,161342.00,,,,,0,00,99.99,,,,,,*7B
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,01,08,,,31*72
    $GNGLL,,,,,161342.00,V,N*57
    $GNRMC,161343.00,V,,,,,,,,,,N*61
    $GNVTG,,,,,,,,,N*2E
    $GNGGA,161343.00,,,,,0,00,99.99,,,,,,*7A
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,01,08,,,31*72
    $GNGLL,,,,,161343.00,V,N*56
    $GNRMC,161344.00,V,,,,,,,,,,N*66
    $GNVTG,,,,,,,,,N*2E
    $GNGGA,161344.00,,,,,0,00,99.99,,,,,,*7D
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,01,08,,,32*71
    $GNGLL,,,,,161344.00,V,N*51
    $GNRMC,161345.00,V,,,,,,,220420,,,N*61
    $GNVTG,,,,,,,,,N*2E
    $GNGGA,161345.00,,,,,0,00,99.99,,,,,,*7C
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,01,08,,,32*71
    $GNGLL,,,,,161345.00,V,N*50
    $GNRMC,161346.00,V,,,,,,,220420,,,N*62
    $GNVTG,,,,,,,,,N*2E
    



    After a good ten minutes I started to notice data populate GPGSV and slot three (option base 1) of that data packet now shows three sattelites detected, and five seconds after that, ten:

    $GNGGA,163756.00,,,,,0,00,99.99,,,,,,*78
    $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*2E
    $GPGSV,1,1,03,04,,,19,09,,,27,11,,,22*7A
    $GNGLL,,,,,163756.00,V,N*54
    $GNRMC,163801.00,V,,,,,,,220420,,,N*68
    $GNVTG,,,,,,,,,N*2E
    $GNGGA,163801.00,,,,,0,03,4.49,,,,,,*4F
    $GNGSA,A,1,11,04,09,,,,,,,,,,4.60,4.49,1.00*19
    $GPGSV,3,1,10,01,03,153,,04,17,179,18,05,00,301,,07,69,312,*74
    $GPGSV,3,2,10,08,68,090,,09,39,209,26,11,37,141,22,16,14,066,*78
    $GPGSV,3,3,10,27,40,051,,28,14,257,*72
    $GNGLL,,,,,163801.00,V,N*59
    $GNRMC,163802.00,V,,,,,,,220420,,,N*6B
    $GNRMC,163806.00,V,,,,,,,220420,,,N*6F
    



    Would it make sense to attempt to flash the older firmware, just to allow @Martin a sanity test, as that version will not load current widgets or apps? (still waiting my device to flash my Bangle)

About

Avatar for Robin @Robin started