You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Anthony Hinsinger cb1de9bc8c Added boostrap doc 7 years ago
profiles Added battery level in lora stack and nano libc profile 7 years ago
scripts Used NVStore to keep lora device keys and added a boostrap mode 7 years ago
sensors Updates sensor libs 7 years ago
.clang-format added NUCLEO L073RZ board, minimal-printf 7 years ago
.gitignore Added files to ignore 7 years ago
.mbedignore added NUCLEO L073RZ board, minimal-printf 7 years ago
Cayenne-LPP.lib Initial commit 8 years ago
README.md Added boostrap doc 7 years ago
lora_radio_helper.h added NUCLEO L073RZ board, minimal-printf 7 years ago
main.cpp Reorder 7 years ago
mbed-lora-radio-drv.lib added NUCLEO L073RZ board, minimal-printf 7 years ago
mbed-os.lib Updated mbed-os to 5.11.5, update libs, format code with new clang conf 7 years ago
mbed_app.json Used NVStore to keep lora device keys and added a boostrap mode 7 years ago
mbedtls_lora_config.h added NUCLEO L073RZ board, minimal-printf 7 years ago

README.md

WaveOfHoney - a lorawan beehive sensor

Compilation

Clone this repository, then :

mbed deploy
mbed config root .
# set the desired compiler
mbed toolchain GCC_ARM
# set the desired board
mbed target NUCLEO_L073RZ
# set-up the compiler path if needed
mbed config -G GCC_ARM_PATH /opt/gcc-arm-none-eabi-7-2017-q4-major/bin

Bootstrap mode

This mode is used to initialize a mbed NVStore on the flash and store board-specific parameters. To compile the bootstrap binary you have to set "mode-bootstrap" to true into mbed_app.json and set lorawan EUIs and key.

mbed compile --profile profiles/release.json

Then you can use flash the board and start it. You can check the serial console to see

Production mode

Just reset "mode-boostrap" to false and compile it (you can delete BUILD folder from previous compilation) :

mbed compile --profile profiles/release.json

In this mode, lorawan parameters are ignored (because the program get it from the flash) but leave it as-is because they are used to determine the stored size ot the euis and key.

Notes

Tested boards

  • MTB_RAK811
  • NUCLEO_L073RZ + SX1272MB2xAS

From STlink CN4 Connector to RAK811 "shortest" connector (pin 1 at the same side of antenna connectors)

2 -> 3 (CLK)
3 -> 1 (GND)
4 -> 4 (DATA)
5 -> 2 (RST)

From STlink CN4 Connector to Nucleo CN7

2 -> 15 (CLK)
3 -> 19,20,22 (GND)
4 -> 13 (DATA)
5 -> 14 (RST)

From STLink CN3 Connector to Nucleo CN7 (stdio through USB)

rx -> 1 (USART4_TX)
tx -> 2 (USART4_RX)