Avatar for user133902

user133902

Member since Sep 2021 • Last active Sep 2021
  • 0 conversations
  • 3 comments

Most recent activity

  • in Other Boards
    Avatar for user133902

    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.

  • in Other Boards
    Avatar for user133902

    Thanks Robin ....
    The nordic doc has the cct and pin under ( see GPS antenna section )
    https://docs.rakwireless.com/Product-Cat­egories/WisTrio/RAK5010-M/Datasheet/#har­dware

    I found the fix from examining the source in ..
    https://github.com/espruino/Espruino/blo­b/master/libs/js/rak/RAK5010.js

    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.
    digitalWrite(D39,1);

    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.

    moodz

  • in Other Boards
    Avatar for user133902

    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.

    moodz

Actions