Closed hb9tvk closed 9 months ago
Ok, I got it working: Key was changing the board type to "ESP32 Dev Board" (instead of "TTGO Lora 32"), as suggested on the Arduino IDE screenshot on the lilygo page. In platform.ini, this is
[env:esp32dev] board = esp32dev platform = espressif32
I could successfully receive data from a RS41 sonde. The sensitivity of the module seems not so great though.
As this is a 'custom compiled' version, the OTA update will no longer work now (as it would install a non-working version), but that's not a big issue.
Seems like the board is not very popular (have not seen anyone else using it with my software), and there is a (manual) way to get it to work, I will close this issue and not look into how to possibly extend the auto detection.
The latest LILYGO Lora board v1.4 is unknown and hence the autodetection is wrong.
According to the "datasheet" at
https://www.lilygo.cc/products/lora-v1-4-esp32-sx1278-433mhz
the pins are:
SX1278: MOSI: 23 MISO: 19 SCLK: 18 CS: 5 RST: 4 DIO: 26
OLED SSD1306: SDA: 21 SCL: 22
I set the pins via the hardware config (except RST and DIO which can not be configured). Unfortunately, the SX1278 is still not recognized:
Configuing SX1278FSK SPI with miso=19, mosi=23, sck=18, ss=5 0 Setting freq: SUCCESS Frequency set to 0.00 0 Setting freq: SUCCESS Frequency set to 0.00 RX LNA Gain is -999 SX1278 configuration finished
(On a working T-Beam 1.0 this looks like that: Frequency set to 402699936.00 Setting freq: SUCCESS Frequency set to 402699936.00 RX LNA Gain is 0 SX1278 configuration finished)
Later in the "sonde loop":
MAIN: Running loop in state 0 [currentDisp:0, lastDisp:0]. free heap: 136676, unused stack: 5096
0 Setting SX1278 power on FAILED Sonde::setup() done: Type RS41 Freq 0.000000, AFC BW: 500000, RX BW: 500000 TOO MUCH DATA
Tested with latest dev version: master_v0.9.2-B16-full.bin
Device: LILYGO Lora v1.4 (aka T95_V1_1)
I can compile/upload the code in platform.io, let me know if I can test/verify anything.