Thanks Robin ....
The nordic doc has the cct and pin under ( see GPS antenna section )
I found the fix from examining the source in ..
The pin is defined but the code never turns the power on ?? ...
the comment says
line 118 // FIXME: GPS_EN pin?
GPS_EN is mapped to D39 in PINS earlier ...
So I used this in my code ..
//turn GPS antenna power on.
sets the GPS antenna power on.
Checked it ( carefully ... ) with the voltmeter .... 3.6 volts with D39 set to 1 and zero volts when D39 set to 0.
So I my RAK 5010 is now kinda working for GPS ... I am using the setGPSOn from espruino site example code .. but the parsing is broken maybe because debug is now telling me Im getting position info from the GPS but I am getting broken output. ( which I wasnt before with the antenna power turned off ;-) ) ... I was not getting any output LOL.
When I turn on the GPS using ...
require("iTracker").setGPSOn(true, function(err, gps) .. blah blah
The setGPSOn does not apparently turn the power on to the GPS antenna . The GPS antenna is active and requires power to be set on.
P1.07 has to be set high ....
from the RAK5010 overview doc ...
GPS Antenna Power Supply Control
To support low power and long battery life, the active GPS antenna power supply should be shut down when system doesn’t access the data from the GPS module. The GPS power supply is controlled by nRF52840 with MOSFET. The pin map of GPS_EN on Nrf52840 is P1.07, and the circuit is shown in Figures 13 and 14:
Set P1.07=1, GPS antenna power is on.
Set P1.07=0, GPS antenna power is off.
I cant see where P1.07 is defined in espruino in order to write it ...
Any suggestions ? TIA.
I am a js noob ...but you are right it looks like the RAK5010 takes a few minutes to acquire initial GPS lock and the code seems to re-request the Quectel 96 before it's replied to previous requests.