What I have done so far:
Despite all that GPS Info app still states "0 satelites". Even after an hour long walk away from tall buildings.
To debug I used following code:
Bangle.setGPSPower(1); Bangle.on('GPS-raw', function(gps) { print(gps); });
Output is:
| |_ ___ ___ _ ||___ ___ | |_ -| . | _| | | | | . | ||_| || |_|||_|_| |_| espruino.com 2v05.1 (c) 2019 G.Williams ÿ$GNTXT,01,01,02,u-blox AG - http://www.u-blox.com*4E $GNTXT,01,01,02,HW UBX-M8130 00080000*61 $GNTXT,01,01,02,ROM CORE 3.01 (107888)*2B $GNTXT,01,01,02,FWVER=SPG 3.01*46 $GNTXT,01,01,02,PROTVER=18.00*11 $GNTXT,01,01,02,GPS;GLO;BDS*06 $GNTXT,01,01,02,QZSS*58 $GNTXT,01,01,02,GNSS OTP=GPS;BDS*26 $GNTXT,01,01,02,LLC=FFFFFFFF-FFFFFFED-FFFFFFFF-FFFFFFBF-FFFFFFF9*57 $GNTXT,01,01,02,ANTSUPERV=AC SD PDoS SR*3E $GNTXT,01,01,02,ANTSTATUS=DONTKNOW*2D $GNTXT,01,01,02,PF=3FB*4F $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 $GNTXT,01,01,02,ANTSTATUS=INIT*3B $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 $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
| |_ ___ ___ _ ||___ ___ | |_ -| . | _| | | | | . | ||_| || |_|||_|_|
|_| espruino.com
2v05.1 (c) 2019 G.Williams
ÿ$GNTXT,01,01,02,u-blox AG - http://www.u-blox.com*4E $GNTXT,01,01,02,HW UBX-M8130 00080000*61 $GNTXT,01,01,02,ROM CORE 3.01 (107888)*2B $GNTXT,01,01,02,FWVER=SPG 3.01*46 $GNTXT,01,01,02,PROTVER=18.00*11 $GNTXT,01,01,02,GPS;GLO;BDS*06 $GNTXT,01,01,02,QZSS*58 $GNTXT,01,01,02,GNSS OTP=GPS;BDS*26 $GNTXT,01,01,02,LLC=FFFFFFFF-FFFFFFED-FFFFFFFF-FFFFFFBF-FFFFFFF9*57 $GNTXT,01,01,02,ANTSUPERV=AC SD PDoS SR*3E $GNTXT,01,01,02,ANTSTATUS=DONTKNOW*2D $GNTXT,01,01,02,PF=3FB*4F $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 $GNTXT,01,01,02,ANTSTATUS=INIT*3B $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 $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
Afterwards I updated the code to print GPS data every 5 seconds:
Bangle.setGPSPower(1); Bangle.on('GPS-raw', function(gps) { if (Date().getSeconds() % 5 === 0){ print(gps); } });
And noticed a repeating block of values:
$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
I have attached a screenshot from a phone showing satellite coverage if it's of any help.
1 Attachment
@Martin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
What I have done so far:
Despite all that GPS Info app still states "0 satelites". Even after an hour long walk away from tall buildings.
To debug I used following code:
Output is:
Afterwards I updated the code to print GPS data every 5 seconds:
And noticed a repeating block of values:
I have attached a screenshot from a phone showing satellite coverage if it's of any help.
1 Attachment