ImperialSpaceSociety / picotracker-Lora

This is the code base and hardware design files for the Lora pico tracker to be flown around the world
12 stars 3 forks source link

make work on helium and TTN network #125

Closed MedadRufus closed 2 years ago

MedadRufus commented 2 years ago
MedadRufus commented 2 years ago

Consider using the last release on loramac-node for LoraWAN 1.0.3

MedadRufus commented 2 years ago

Just commenting out LmHandlerJoin( ); in main.c will prevent it from rejoining each time. It will use NVM data if its available. Otherwise, it will join. Since helium network only uses OTAA, then use NVM to store the otaa data for each region. At the very least, US, EU and CN. It takes around 1.3 kb of space though. Could be feasible to use EEPROM

MedadRufus commented 2 years ago

Each struct for device credentials will contain the following info:


typedef struct
{
activation_type_t activation_type, // abp or Otaa
bool use_nvm, // to or not to use NVM for credential storage.
uint32_t nvm_location,  // Address of beginning of NVM data

}device_credentials_t