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
#LoRa Message transmitted by our #NuttX SX1262 Library ... Received OK by RAKwireless WisBlock! 🎉
https://gist.github.com/lupyuen/5fdede131ad0e327478994872f190668
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
Adding our Library to the #NuttX Makefiles and Kconfig
https://lupyuen.github.io/articles/sx1262?6#update-makefiles-and-kconfig
How #LoRa SX1262 is wired up on #PineDio Stack BL604 ... And how we configure the pins on Apache #NuttX OS
https://lupyuen.github.io/articles/sx1262?8#connect-sx1262-transceiver
What are DIO1, BUSY and NRESET Pins on #LoRa SX1262 ... Nope we're not using them on #NuttX OS yet
https://lupyuen.github.io/articles/sx1262?8#connect-sx1262-transceiver
How we call our #NuttX #LoRa Library ... To read the SX1262 Registers
https://lupyuen.github.io/articles/sx1262?9#read-sx1262-registers
Building our #NuttX Firmware for #LoRa SX1262
https://lupyuen.github.io/articles/sx1262?10#build-the-firmware
Yep our #NuttX #LoRa Library reads the SX1262 Registers OK! 🎉
https://lupyuen.github.io/articles/sx1262?11#run-the-firmware
Setting the #LoRa Parameters for #NuttX OS
https://lupyuen.github.io/articles/sx1262?15#lora-parameters
Here's how we send a #LoRa Message on #NuttX OS
https://lupyuen.github.io/articles/sx1262?16#transmit-lora-message
Now our #NuttX SX1262 Library shall receive a #LoRa Message ... Transmitted by #RAKwireless WisBlock
https://github.com/lupyuen/wisblock-lora-transmitter