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
NuttShell (NSH) NuttX-10.4.0 nsh> sx127x -m 1 -t Start sx127x_demo FSK modulation Set frequency to 868000000 Set power to 14
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 ...
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.