The Things Node : new low power library development

3 posts were merged into an existing topic: The things node : units of measurement

I don’t think it is related to the new sketch,

red and blue are oldskool december Cayenne sketches in a standard TTN node
purple is a TTN node with TTN sketch

Seems to me Cayenne code caps the reading at 1000

Hi, first I want to thanks for all the work.
I have started with the lib from Charles and the CayenneLPP sample.

I have modified the sample to get first moving detected with a timeout (MOVE_TIMEOUT) to not send a new moving if some stop occur during this timeout, the timeout is reset after each stop.

I have also add two params in the case of the node is Always Moving and stop.

So after MAX_NBSTART restart detected during MOVE_TIMEOUT time, the node will send data after the second timeout MOVE_INTERVAL has expired.

To do this I use watchdog because I can’t use timing objects during deep sleep mode.

I need to make minor change to the file TheThingsNode.cpp in the Arduino-node-lib.
Watchdog was not restarted after stop for example.

As I use ConfigInterval, to switch from Lora wake up to watchdog when move occurs, I need to add some change when node is connected to USB.

Here is my changes to the code.

arduino-node-lib-modif

2 Likes

Nice, thanks for your work.
I need to take a look into this. What about a Pull request so I can integrate your changes?

beginner in GitHub, I will try.

OK, it’s done

2 posts were split to a new topic: RN2903 disconnect after powersave