SX1302 RX state get

Hello,

When there is power fluctuations, SX1302 stop receiving and didn’t receive any data till sx1302 reset.

But for resetting, I need to know the state of sx1302, if it is receiving or not.

So, How do I know SX1302 is in receving mode or not?

Thank You

I suggest opening an issue at GitHub - Lora-net/sx1302_hal: SX1302 Hardware Abstraction Layer and Tools (packet forwarder...).

The loragw_hal has lgw_status function that can return the status of each rf_chain.
It looks to only be used for TX status in the packet forwarder.

The best focus of your attention would probably be on eliminating the “power fluctuations”.

Power failure is a different matter; there most if not all of the gateway would have to restart.

But “fluctuations” indicate a design problem.

Power Fluctuation is a test condition where high voltages switching took place outside of system condition to get Hardware failure rate.
In this, system have to recover to its state again if anything fails, As gateway is places at higher altitude and also there may be lighting that also can cause this type of issue.
So we have to make it recoverable in this state. we can’t make system to stuck somewhere.
Thank You

Thanks for your suggestion.