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
SX1262 will trigger a GPIO Interrupt on #NuttX OS when it receives a #LoRa Packet ... We wait for the GPIO Interrupt to be Signalled in a Background Thread
https://github.com/lupyuen/lora-sx1262/blob/lorawan/src/sx126x-nuttx.c#L742-L778
Here's how we check the SX1262 Busy Pin on #NuttX OS ... By reading the GPIO Input
https://github.com/lupyuen/lora-sx1262/blob/lorawan/src/sx126x-nuttx.c#L184-L199
#LoRaWAN runs neater on Apache #NuttX OS ... After implementing Timers and Multithreading with NimBLE Porting Layer ... No more polling and sleep()!
https://gist.github.com/lupyuen/cad58115be4cabe8a8a49c0e498f1c95
To build NumBLE Porting Layer on #NuttX OS we need to enable: 1️⃣ POSIX Timers & Message Queues 2️⃣ Clock Monotonic 3️⃣ Work Queues 4️⃣ SIGEV_THHREAD
Our #NuttX App was waiting for the #LoRaWAN Join Request to be transmitted before receiving the Join Response ... But because we're polling SX1262, we missed the Join Response ... Let's fix this with the multithreading functions from NimBLE Porting Layer
Log: https://gist.github.com/lupyuen/d3d9db37a40d7560fc211408db04a81b
#NuttX OS doesn't handle the Join Response from #LoRaWAN Gateway ... Let's fix this
Run Log: https://gist.github.com/lupyuen/a8e834e7b4267345f01b6629fb7f5e33
#LoRaWAN Gateway receives the Join Request from #NuttX OS ... And accepts the Join Request! 🎉
Run Log: https://gist.github.com/lupyuen/a8e834e7b4267345f01b6629fb7f5e33
LoRa Frequency and Sync Word are OK ... Let's fix the Device EUI and Join EUI for #LoRaWAN on #NuttX OS
Run Log: https://gist.github.com/lupyuen/b91c1f88645eedb813cfffa2bdf7d7a0
#LoRaWAN on #NuttX OS sends a Join Request to the LoRaWAN Gateway ... But the values are incorrect though 🤔
Run Log: https://gist.github.com/lupyuen/b91c1f88645eedb813cfffa2bdf7d7a0
#LoRaWAN builds OK on #NuttX OS! 🎉 ... Will it run? 🤔
https://github.com/lupyuen/incubator-nuttx/tree/lorawan
https://github.com/lupyuen/incubator-nuttx-apps/tree/lorawan
#LoRaWAN on #NuttX OS: Let's stub out the functions for Non-Volatile Memory and Real Time Clock ... And watch what happens 🌋
https://github.com/lupyuen/LoRaMac-node-nuttx/blob/master/src/nuttx.c
Fixing the missing references for #LoRaWAN on Apache #NuttX OS
https://docs.google.com/spreadsheets/d/12EFS72JFjjuK-2yWQVYrImkUjyEA_iGlnsEu1d42r68/edit#gid=0
IoT Techie and Educator / Apache NuttX PMC