Author Topic: RFM69/SX1231 deadlock  (Read 216 times)


  • Newbie
  • *
  • Posts: 2
RFM69/SX1231 deadlock
« on: September 07, 2019, 11:47:51 AM »
Hi all,

in the RFM69 library I spotted the following code snipped in various places:
Code: [Select]
writeReg(REG_PACKETCONFIG2, (readReg(REG_PACKETCONFIG2) & 0xFB) | RF_PACKET2_RXRESTART); // avoid RX deadlocks

What kind of deadlock is this supposed to avoid?

I'm wondering because I am currently experiencing deadlocks that happen when the chip is put into RX mode for a while.
Occasionally it looks like the AFC is dragged away, tuning the carrier way off and thus rendering the chip deaf.
I have already enabled PacketConfig2_AutoRxRestartOn and AfcFei_AfcAutoclearOn and I have set up reasonable timeouts
for RegRxTimeout1 and RegRxTimeout2 (twice the packet length for the former, four times for the latter).

Now considering some noise activating the AFC and dragging it away, shouldn't at least RegRxTimeout1 expire due to no
RSSI and then restart the receiver, which in turn would auto-clear the AFC?

Thanks in advance & best regards,