Here's how we send a #LoRaWAN Data Packet on #NuttX OS ... And validate the Packet Size before sending
https://github.com/lupyuen/lorawan_test/blob/main/lorawan_test_main.c#L311-L339
#LoRaWAN Gateway now receives the correct Data Packet from our #NuttX App! 🎉
https://gist.github.com/lupyuen/83be5da091273bb39bad6e77cc91b68d
#LoRaWAN Data Rate has been increased to 3 ... Max Message Size is now 53 bytes for our #NuttX App
https://gist.github.com/lupyuen/83be5da091273bb39bad6e77cc91b68d
Here's how we increase the #LoRaWAN Data Rate to 3 in our #NuttX App
https://github.com/lupyuen/lorawan_test/blob/main/lorawan_test_main.c#L57-L70
#Pine64 PineTalk - Behind the curtains
https://www.pine64.org/2021/12/28/s02e04-pinetalk-behind-the-curtains/
Our #NuttX App sent an empty #LoRaWAN Message because our message is too long for LoRaWAN Data Rate 2 (max 11 bytes) ... Let's increase the Data Rate to 3
https://gist.github.com/lupyuen/5fc07695a6c4bb48b5e4d10eb05ca9bf
"Linux Rewind 2021"
Our #LoRaWAN Gateway receives Data Packets from #NuttX OS! 🎉 The Message Payload is empty ... Let's figure out why 🤔
Log: https://gist.github.com/lupyuen/0d301216bbf937147778bb57ab0ccf89
After disabling logging, our #NuttX App successfully joins the #LoRaWAN Network! 🎉 Now we transmit some Data Packets over LoRaWAN
Log: https://gist.github.com/lupyuen/0d301216bbf937147778bb57ab0ccf89
Our #NuttX App was too busy to receive the #LoRaWAN Join Response ... Let's disable the logging
Log: https://gist.github.com/lupyuen/8f012856b9eb6b9a762160afd83df7f8
Our #NuttX App now sends Random #LoRaWAN Nonces to the LoRaWAN Gateway ... And are happily accepted by the gateway! 🎉
Log: https://gist.github.com/lupyuen/8f012856b9eb6b9a762160afd83df7f8
Here's how we generate #LoRaWAN Nonces on #NuttX OS ... With Strong Random Numbers thanks to Entropy Pool
https://github.com/lupyuen/LoRaMac-node-nuttx/blob/master/src/nuttx.c#L136-L153
$1.8 XT-ZB1 Zigbee & BLE devkit features BL702 #RISCV module
https://www.cnx-software.com/2021/12/27/xt-zb1-zigbee-ble-devkit-bl702-risc-v-module/
#LoRaWAN gets the Nonce from the Secure Element's Random Number Generator ... Let's simulate the Secure Element on Apache #NuttX OS
https://github.com/lupyuen/LoRaMac-node-nuttx/blob/master/src/mac/LoRaMacCrypto.c#L980-L996
Our #NuttX App resends the same Nonce to the #LoRaWAN Gateway ... Which (silently) rejects the Join Request due to Duplicate Nonce ... Let's fix our Random Number Generator
https://gist.github.com/lupyuen/b38434c3d27500444382bb4a066691e5
Our #NuttX Background Thread handles the GPIO Interrupts (SX1262 DIO1) ... By adding to the #LoRaWAN Event Queue
https://github.com/lupyuen/lora-sx1262/blob/lorawan/src/sx126x-nuttx.c#L863-L892
We handle GPIO Interrupts (SX1262 DIO1) in a #NuttX Background Thread ... Awaiting the Signal for GPIO Interrupt
https://github.com/lupyuen/lora-sx1262/blob/lorawan/src/sx126x-nuttx.c#L835-L861
IoT Techie and Educator / Apache NuttX PMC