Testing SX127x on NuttX

I’m testing the TTGO_LORA32 board (sch here: https://raw.githubusercontent.com/LilyGO/TTGO-LORA32/master/schematic1in6.pdf) with NuttX RTOS and noticed the `sx127x` app is not working with default LoRa Modulation, but at least I got it working with FSK modulation:

$ ./tools/configure.sh ttgo_lora_esp32:sx127x

$ make -j flash ESPTOOL_PORT=/dev/ttyUSB0

Board 1:

NuttShell (NSH) NuttX-10.4.0                                                    
nsh> sx127x -m 1 -t                                                             
Start sx127x_demo                                                               
FSK modulation                                                                  
Set frequency to 868000000                                                      
Set power to 14

Board 2:

nsh> sx127x -m 1
Start sx127x_demo
FSK modulation
Set frequency to 868000000
Set power to 14
Waiting for data

Received:
SNR  = 0
RSSI = -66
len  = 5
0x00 0x01 0x02 0x03 0x04 

wait 5 sec ...

Update:

I discovered an interesting fact (that at least happens for TTGO_LORA32 board) :
If CONFIG_LPWAN_SX127X_MODULATION_DEFAULT=3 the sx127x app doesn’t work on LoRa mode (-m 0), but works on FSK mode (-m 1). If CONFIG_LPWAN_SX127X_MODULATION_DEFAULT=2 the app will work fine for LoRa and FSK mode, but not for OOK. If CONFIG_LPWAN_SX127X_MODULATION_DEFAULT=1 none mode will work.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s