Repository navigation
LR2021 support - #3697
LR2021 support#3697
Conversation
Just a copy of the 1121 driver # Conflicts: # src/html/package.json # src/lib/CONFIG/config.cpp # src/src/common.cpp
# Conflicts: # src/src/common.cpp
Or else you get errors
General cleanup of the LR2021 driver code Reshuffling so to be more like the 1121 driver Fix TX parameter order # Conflicts: # src/src/common.cpp # Conflicts: # src/src/rx_main.cpp # src/src/tx_main.cpp
# Conflicts: # src/lib/LBT/LBT.cpp
# Conflicts: # src/html/build-plugins/feature-blocks-plugin.js # src/html/features.js
Other cleanup/casting
Add specific timeouts for long commands. Add debugging code that always waits for "busy" to complete, then log the time if greater than timeout.
|
Paul, are there any receiver and/or transmitter devices, that use the LR2021 radio, expected to appear on the market soon ? |
That I cannot say, but I'm sure that in time there will be devices that use this chipset. |
|
Thank you, Paul, for the incredible work on adding LR2021 support. Cross-band compatibility with LoRa, FLRC, and FSK opens exciting possibilities for the future of ExpressLRS. We truly appreciate your time and effort! 🩵 |
This one, according to the product name, is supposed to use LR2021 radio
Same statements should be applied to this item as well.
|
Is the new LR-2021-M-TX module already compatible with PR #3697, or will it need a separate hardware target/configuration before it can be used with ExpressLRS 4.2? |
Unsupported hardware. The dev team has not tested or approved this hardware let alone even seen this. |
Unsupported hardware. The dev team has not tested or approved this hardware let alone even seen this. |
CapnBry
left a comment
There was a problem hiding this comment.
I tried to approve this yesterday before I left but Github was having a moment so you're gonna get the short version today!
I tested this with the development RX, and apart from it having absolutely terrible RF performance (hardware design issue seems likely) I could find no other issues. The code seems fine going by you and Mickey's real hardware testing so garbage RSSI aside the code seems to do what it is supposed to.
I ran overnight tests with (one night each):
- SX1280 TX to LR2021 - F500, D500, 500Hz, 100Hz
- LR1121 TX to LR2021 - K1000 Full, K1000, 500Hz, 200Hz
Also checking for regressions in existing RF paths, but maybe an hour switching between rates on each:
- SX1280 TX to SX1280
- LR1121 TX to LR1121
- SX127x TX to SX127x
I had one issue when I first installed the firmware, but I can not remember what the problem was and it went away never to be seen again throughout testing. Something about the TX being in Gemini mode and it didn't switch out but it was likely due to the terrible RF performance I encountered.
|
I successfully tested all LR2021 modes with two different development RXs in rx and rx-as-tx configuration against SX128x, SX127x and LR1121 hardware. Establishing connections, up- and down link works as expected. Apart from the already mentioned poor RF performance (RF power) everything looked good. |
# Conflicts: # src/html/headers/web-lr1121-rx.h # src/html/headers/web-lr1121-tx.h # src/html/headers/web-sx127x-rx-8285.h # src/html/headers/web-sx127x-rx.h # src/html/headers/web-sx127x-tx-8285.h # src/html/headers/web-sx127x-tx.h
|
Hi, I think for TCXO mode, |
What? Change the line to exactly the same thing? |
Issue report: ESP32-S3 + E80-900M2213S — observed on master after PR #3697 mergedReposting this from discussion #3313 since PR #3697 also enables LR1121 TCXO config ( Hardware
Setup
Observed behavior
Experiments done
The same failure mode (LR1121 Reference
What I am NOT claiming in this report
|
Ha sorry typo. Change to |
Nope, from the user manual rev 2.1, section 6.3.2
But in the Config() function it doesn't really matter if it's RC or XOSC mode that is set. It's only while configuration is happening. |
This has nothing to do with the LR1121 TCXO config. The version number is read before the TCXO mode is set. |
Yes I understand Config() do nothing about the TCXO configuration step. I mean in the dual-band RX/TX flow Config() is called on every hop (900 ↔ 2.4GHz), and switching from STBY_RC into the active radio config means one extra RC↔XOSC transition per hop. Going directly into STBY_XOSC skips that. SetTcxoMode is still only called once in Begin() under STBY_RC, so UM §6.3.2 is not violated. I am not sure if it is necessary to do this hop-frequency optimiazion. |
|
Config is not called for every hop, it's only called when you change the packet rate. |
|
You're right that CheckVersion itself doesn't read TCXO state — the version read happens before SetTcxoMode. My bad for framing it under the TCXO config heading. Filed the issue properly now: #3744. The single new experiment that makes the symptom stop happening is externally powering VTCXO on the E80 module — same firmware, same JSON, same ESP32-S3, same E80 module, only the VTCXO power source changes. With external VTCXO power: 100% CheckVersion success. With LR1121's internal VTCXO regulator: ~50% failure on ESP32-S3, 0% on ESP32 (WROOM-32). I have not scoped BUSY or SPI at the failing boot — observations only. I posted under TCXO because I was following the symptom from your recent TCXO change. New issue has the full details and what I have and haven't measured. |
Ah you are right, seems not worth to change. |
|
@pkendall64 Hi, I’m not sure if this should be posted here, but I occasionally get I’ve tried adding I’ve ordered an E80-900M2212S (LR2021) module and will test it once I receive it. |



Support for the Semtech LR2021.
Why would I want this?
The LR2021 is cross-universe compatible! It supports the subGHz bands compatible with the SX127x (LoRa) and LR1121 in all modes (FSK and LoRa). In the 2.4 modes it's compatible with SX128x (LoRa and FLRC) and the LR1121 (LoRa and FSK).
So you get the packet rate you can possibly want!
The LR2021 is quite different to the, although the command structures and sequences are similar. The DIO controls are very different and for working the ExpressLRS we have a calculator for configuring
radio_rfsw_configin the JSON file. https://pkendall64.github.io/rfsw-config/What's left to do?
Theres still a little bit of work around the power configuration that may be required as the chip has a few extra controls for refining the power output, unlike the LR1121 where you just give it the dBm output level, theres also a "PA_LF_DUTY_CYCLE" and "PA_HF_DUTY_CYCLE", and for subGHz a "PA_LF_SLICES" which should be configured., for different targeted power levels.
We may have to introduce new hardware parameter(s) for these if it can't be built into the driver or if they are materially different for different hardware.
For those that love pretty pictures...
First step, hop and send!
Second, third & fourth step, reading packets
So we got our TXDONE, so we get and clear the interrupts, and swicth to RX mode

Them, some time later... we get an RXDONE interrupt