Repository navigation
Prevent SX1262 AGC lockup on all boards - #3824
Open
ahalekelly wants to merge 1 commit into
Open
ahalekelly wants to merge 1 commit into
ahalekelly wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Generated with Claude Fable 5.2
Sets bit 0 of register 0x08B5 on every SX1262 board at init and after an AGC reset, instead of only the five boards with
SX126X_REGISTER_PATCH. Without it, a strong signal a few MHz off channel can leave the AGC stuck at low gain: RSSI sits near −76 dBm, 0x08BF/0x08C0 read 08/12 instead of 60/6C, and the node is deaf until receive restarts. A RAK4631 companion here went deaf with the same symptoms for up to hours at a time.Tested at 910.525 MHz, BW 62.5 kHz, SF7, CR 4/5. The blocker was a 30 ms unmodulated carrier of about 1 mW from a second SX1262 board, antennas about 20 cm apart, within ±5 MHz of the channel and −20 to −37 dBm at the victim by its own RSSI. The bit was toggled by register write in alternating blocks on v1.18.0.
Lock rate peaks in a level window about 2 dB wide that differs by board and frequency; the bit-clear column is each board's worst level. With this change cherry-picked onto v1.18.0, a Wio Tracker L1 read 05 after boot and after an AGC reset and locked in 0 of 120 bursts, against 54 of 60 with the bit then cleared. Without a carrier, the RAK4631 heard 91.3% of a reference node's packets with the bit clear and 89.6% with it set (±7 points).
SX1268, LLCC68 and STM32WL are unchanged because only SX1262 was measured. Debug firmware and test script: https://github.com/ahalekelly/MeshCore/tree/agc-lock-test/agc-lock-test