-
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"}
-
-
-
-
-
-
-
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! - accelerometer lis3dh
-
-
Hello,
I'm using Espruino on the Rak8212 board and I would to know what is the lowest power consumption I can reach.
So i'm using the following program:var iTracker; function onInit() { setTimeout(function () { Bluetooth.setConsole(true); iTracker = require("iTracker"); iTracker.setCellOn(false, function () { print("cell off"); }); iTracker.setAccelOn(true, function () { iTracker.setAccelOn(false); print("acc off"); }); iTracker.setMagOn(true, function () { iTracker.setMagOn(false); print("mag off"); }); iTracker.setEnvOn(true, function () { iTracker.setEnvOn(false); print("env off"); }); iTracker.setOptoOn(true, function () { iTracker.setOptoOn(false); print("opto off!"); }); iTracker.setCharging(true); print("charg off"); setTimeout(function () { setPmode("opendrain"); NRF.sleep(); }, 2000); }, 2000); } function setPmode(pm) { D0.mode(pm); D1.mode(pm); D2.mode(pm); D3.mode(pm); D4.mode(pm); D5.mode(pm); D6.mode(pm); D7.mode(pm); D8.mode(pm); D9.mode(pm); D10.mode(pm); D11.mode(pm); D12.mode(pm); D13.mode(pm); D17.mode(pm); D18.mode(pm); D19.mode(pm); D20.mode(pm); D22.mode(pm); D23.mode(pm); D24.mode(pm); D25.mode(pm); D26.mode(pm); D27.mode(pm); D28.mode(pm); D29.mode(pm); D30.mode(pm); D31.mode(pm); }
Furthermore, I detached the passive GSSN antenna because it produces a 10mA power consumption even with the BG96 module switched off.
Running that code I can get a 0.9mA power consumption.
Now, I would like to get a lower power consumption, in the order of 0.02mA.
Is it possible and how I could make it?
Thank you
The BG96 issue is solved by switching the RX and TX pins within Serial setup:
Now the BG96 get GPS positions and the http get request works on Rak5010!