Skip to content

LoRa replication not working on SX1262 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mixmix opened this issue Mar 13, 2025 · 3 comments
Open

LoRa replication not working on SX1262 #8

mixmix opened this issue Mar 13, 2025 · 3 comments

Comments

@mixmix
Copy link
Contributor

mixmix commented Mar 13, 2025

Problem

I don't think LoRa replication is happening from TBeam => TBeam for me (LilyGo with SX1262 on)

Method

  1. flash both TBeams with same firmware (commit : 8b44a47cb548b0e8b68bbd562d37c9baf9d7eb50)
  2. turn on TBeam1
  3. turn on Android, post a message in TinySsb app, watch it arrive on TBeam 1
  4. turn Android off
  5. turn TBeam2 on... wait for messages to be replicated from TBeam1 over LoRa (fail)

Results

Image

I plugged a running board in, and ran make BOARD=TBeam monitor
Then I pushed the reset button and here's the output

I plugged a running board in, and ran make BOARD=TBeam monitor
Then I pushed the reset button and here's the output

Image

@mixmix
Copy link
Contributor Author

mixmix commented Mar 13, 2025

@tschudin said:

Just freshly compiled and flashed, from the main branch: Heltec3 has the new sx1262 chip, the TBeam is the old one (sx1276), but they interwork.
I know that other Lilygo devices with the sx1262 chip work too (TWatch, for example), but I don't have a recent TBeam.
I reckon you made sure your devices work with the same frequency plan? So it seems that I need to get a new TBeam device to test more ..

Image

@mixmix
Copy link
Contributor Author

mixmix commented Mar 16, 2025

@nanomonkey and @mixmix had a look at the src code, tried a quick hack which disabled switching between SX1276 + SX1262 : branch https://github.com/tinySSB/esp32-firmware/tree/bug/sx1262 (commit: 023c330)

✅ firmware compiles + flashes
✅ BLE replication
❌ LoRa peers not visible
❌ LoRa replication seems broken

Monitoring seeing this sort of logging on repeat:

-- 461.678 F=5 E=6 C=5 |dmxt|=10 |chkt|=0 |heap|=101432
   G: mk full claim (98B)
l# GosC 105B send failed for 613dfa70c47aba..cecf77751205 @464019, code=-5
   our DreQ=[ 4.1 0.1 1.1 2.2 3.6 ] 13B
l# DreQ 20B send failed for 970f1761d34d23..0a010a020a06 @466483, code=-5
   our DreQ=[ 0.1 1.1 2.2 3.6 4.1 ] 13B
l# DreQ 20B send failed for 970f1761d34d23..0a020a060a01 @470731, code=-5
   our DreQ=[ 1.1 2.2 3.6 4.1 0.1 ] 13B
l# DreQ 20B send failed for 970f1761d34d23..0a060a010a01 @474903, code=-5

@mixmix
Copy link
Contributor Author

mixmix commented Mar 18, 2025

For completeness, here's the versions from the end of the firmware build:

Used library                                       Version Path
RadioLib                                           7.1.2   /home/username/projects/TINY-SSB/esp32-firmware/loramesh/lib/shared/RadioLib-7.1.2
SPI                                                3.1.1   /home/username/.arduino15/packages/esp32/hardware/esp32/3.1.1/libraries/SPI
LittleFS                                           3.1.1   /home/username/.arduino15/packages/esp32/hardware/esp32/3.1.1/libraries/LittleFS
FS                                                 3.1.1   /home/username/.arduino15/packages/esp32/hardware/esp32/3.1.1/libraries/FS
TinyGPSPlus                                        1.0.3   /home/username/projects/TINY-SSB/esp32-firmware/loramesh/lib/shared/TinyGPSPlus-1.0.3
AXP202X_Library                                    1.1.2   /home/username/projects/TINY-SSB/esp32-firmware/loramesh/lib/shared/AXP202X-1.1.2
Wire                                               3.1.1   /home/username/.arduino15/packages/esp32/hardware/esp32/3.1.1/libraries/Wire
BLE                                                3.1.1   /home/username/.arduino15/packages/esp32/hardware/esp32/3.1.1/libraries/BLE
Adafruit GFX Library                               1.2.9   /home/username/projects/TINY-SSB/esp32-firmware/loramesh/lib/shared/Adafruit-GFX-1.2.9
ESP8266 and ESP32 OLED driver for SSD1306 displays 4.6.1   /home/username/projects/TINY-SSB/esp32-firmware/loramesh/lib/shared/ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays
Button2                                            2.3.3   /home/username/projects/TINY-SSB/esp32-firmware/loramesh/lib/shared/Button2-2.3.3

Used platform Version Path
esp32:esp32   3.1.1   /home/username/.arduino15/packages/esp32/hardware/esp32/3.1.1
esptool.py v4.8.1
Flash params set to 0x002f
SHA digest in image updated
Wrote 0x166980 bytes to file ./build/firmware-TBeam.bin, ready to flash to offset 0x0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant