Skip to content

Commit f652731

Browse files
committed
Apply SX1262 register 0x8B5 patch for improved GC1109 RX sensitivity
Sets the LSB of undocumented SX1262 register 0x8B5 on Heltec V4 and Wireless Tracker V2 boards with the GC1109 FEM. This patch was recommended by Heltec/Semtech and tested in MeshCore PR #1398, where it significantly reduced packet loss on the Heltec V4.
1 parent 4ce554e commit f652731

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/mesh/SX126xInterface.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,19 @@ template <typename T> bool SX126xInterface<T>::init()
171171
LOG_INFO("Set RX gain to power saving mode (boosted mode off); result: %d", result);
172172
}
173173

174+
#ifdef USE_GC1109_PA
175+
// Undocumented SX1262 register patch recommended by Heltec/Semtech for improved RX sensitivity
176+
// on boards with the GC1109 FEM. Sets LSB of register 0x8B5.
177+
// Reference: https://github.com/meshcore-dev/MeshCore/pull/1398
178+
{
179+
uint8_t regVal = 0;
180+
lora.readRegister(0x8B5, &regVal, 1);
181+
regVal |= 0x01;
182+
lora.writeRegister(0x8B5, &regVal, 1);
183+
LOG_INFO("Applied SX1262 register 0x8B5 patch for GC1109 RX improvement");
184+
}
185+
#endif
186+
174187
#if 0
175188
// Read/write a register we are not using (only used for FSK mode) to test SPI comms
176189
uint8_t crcLSB = 0;

0 commit comments

Comments
 (0)