floodnet-nyc / flood-sensor

This repo contains source code, manuals, and additional information needed to build, deploy, and maintain a Flood Sensor
https://www.floodnet.nyc
Other
45 stars 12 forks source link

Remote app change for deployed devices #19

Closed cmydlarz closed 3 years ago

cmydlarz commented 3 years ago

Each device is setup with a default appkey pointing to our dev application. On first boot, device receives onJoin downlink containing deployment apppkey. We catch this first onJoin event and inject the new appKey. The appkey to send is decided by deveui. We maintain database of devEUIs to AppKeys.

jatinpalchuri commented 3 years ago

So as soon as we receive a downlink we have to update the key values and lmic library should be reset thereby making the mcu point to a different app.(code) While implementing this there is an error assertion in lmic library here Assertion error Is there a better way to stop or check for completion of all tasks in lmic library?

jatinpalchuri commented 3 years ago

The downlink is not always received by the micro controller we are facing a similar issue to this

Praneethsvch commented 3 years ago

Remote App Change is implemented in 4402f90b690a4cc6f768a3785630dfa90e52daeb. Need to implement database of Keys and automate the process of adding a node

Praneethsvch commented 3 years ago

bac3104c23c4484a1277ef45b0ecec923dfcc22a Latest remote app change commit - Verified