Avatar for LorenzoG

LorenzoG

Member since Jul 2019 • Last active Sep 2021
  • 1 conversations
  • 12 comments

Most recent activity

  • in Other Boards
    Avatar for LorenzoG

    The BG96 issue is solved by switching the RX and TX pins within Serial setup:

    Serial1.setup(115200,{tx:PINS.LTE_RXD, rx:PINS.LTE_TXD, cts:PINS.LTE_RTS});
    

    Now the BG96 get GPS positions and the http get request works on Rak5010!

  • in Other Boards
    Avatar for LorenzoG

    I solved by using the poke32 to set/clear the P1.07 pin like this:

    poke32(0x50000300 + 0x518, 1 << 7);
    // set
    poke32(0x50000300 + 0x508, 1 << 7);
    // clear
    poke32(0x50000300 + 0x50C, 1 << 7);
    

    But the gps response was always:

    {"error": "Timeout"}
    

    The http get request always returns:

    {"code": -15, "message": "no response"}
    
  • in Other Boards
    Avatar for LorenzoG

    Hi Gordon,
    I need to activate the GPS power supply on the Rak5010.
    The rakwireless doc says to set the pin P1.07 to activate the power supply.

    But the P1.07 pin is not included into the RAK8212 espruino version.
    How can I add the missing pin?
    Thanks in advance ;-)

  • in Other Boards
    Avatar for LorenzoG

    Yes, I just flashed the .hex file and it worked except for the BG96 module.

  • in Other Boards
    Avatar for LorenzoG

    I'm using the standard build espruino_2v04_RAK8212.hex then I changed the pins values into the RAK8212.js and the lis3dh reference

  • in Other Boards
    Avatar for LorenzoG

    Do you mean the RAK8212.js file or the entire project?

  • in Other Boards
    Avatar for LorenzoG

    I noticed that the LED1 has the same old pin value but now I have to reset() it to switch on and set() to switch off.
    Maybe the same thing happens with the BG96...

  • in Other Boards
    Avatar for LorenzoG

    I'm trying this values:

    PWR_GPRS_ON : D31,
        LTE_RXD : D6, 
        LTE_CTS : D11, 
        LTE_TXD : D8, 
        LTE_RTS : D7, 
        GPRS_RESET : D29, 
        GPRS_PWRKEY : D28,
    

    instead of

    PWR_GPRS_ON : D6, 
        LTE_RXD : D7,
        LTE_CTS : D8,
        LTE_TXD : D9,
        LTE_RTS : D10,
        GPRS_RESET : D14,
        GPRS_PWRKEY : D15,
    

    But I'm not sure they are correct

  • in Other Boards
    Avatar for LorenzoG

    Hello Gordon,
    I developed a Rak8212 firmare using espruino.
    My firmware use the following sensors:

    • accelerometer lis3dh
    • the bluetooth advertising and gatt protocol
    • the bg96 module for gps and internet connection

    Now I'm trying to adapt that firmware to run it on the Rak5010 by using the Rak8212 firmware but changing only the pins values because the two schematic seem to be similar .
    For the lis3dh javascript module it was enough to change the interrupt and pins parameters, like this:

    i2c['setup']({"sda": D14, "scl": D13});
    lis3dh = accel['connectI2C'](i2c, {"int": D16});
    

    in place of

    i2c['setup']({"sda": D19, "scl": D18});
    lis3dh = accel['connectI2C'](i2c, {"int": D25});
    

    The bluetooth functions are working perfectly despite the nordic chip differences.
    But now I'm stuck with the bg96 module.
    Could you tell me if this is the right way to proceed or if there is other code to change into the espruino sources before I can use it?
    Thank you!

Actions