Here's how we init the SPI Bus and SPI Chip Select (GPIO Output) ... In our #NuttX SX1262 Library
https://github.com/lupyuen/lora-sx1262/blob/nuttx/src/sx126x-nuttx.c#L663-L675
Our #NuttX SX1262 Library calls the SPI Test Driver to transfer data over SPI
https://github.com/lupyuen/lora-sx1262/blob/nuttx/src/sx126x-nuttx.c#L677-L703
Let's read some SX1262 Registers ... With our SX1262 Library for #NuttX OS
Yep our #NuttX SX1262 Library reads the SX1262 Registers correctly! 🎉
https://gist.github.com/lupyuen/1e732f5b1e0e4a80d1eb351ab3aadede
Our #NuttX SX1262 Library transmits a #LoRa Message ... We sniff the message with Airspy R2 SDR
SDR shows the #LoRa Chirp transmitted by our #NuttX SX1262 Library 🎉 ... Let's inspect the message with a LoRa Receiver
https://gist.github.com/lupyuen/5fdede131ad0e327478994872f190668
Let's use #RAKwireless WisBlock to inspect the #LoRa Message transmitted by our #NuttX SX1262 Library
#LoRa Message transmitted by our #NuttX SX1262 Library ... Received OK by RAKwireless WisBlock! 🎉
https://gist.github.com/lupyuen/5fdede131ad0e327478994872f190668
Now our #NuttX SX1262 Library shall receive a #LoRa Message ... Transmitted by #RAKwireless WisBlock
Our #NuttX SX1262 Library correctly receives the #LoRa Message transmitted by #RAKwireless WisBlock! 🎉
https://gist.github.com/lupyuen/0d78b13871fca41ac6d812407890b29b
Why #LoRaWAN is so complex ... And why we should stick to the official Semtech Drivers for LoRa and LoRaWAN
#NuttX Libraries vs Drivers ... Libraries are easier to code and troubleshoot
https://lupyuen.github.io/articles/sx1262?4#library-vs-driver
Here's how we create a Library in #NuttX OS
https://lupyuen.github.io/articles/sx1262?5#appendix-create-a-nuttx-library
Yesterday we created an empty #NuttX Library for SX1262 ... Today we fill in the #LoRa SX1262 Driver Code
https://qoto.org/@lupyuen/107451151962228189