LowPowerLab Forum

Hardware support => RF - Range - Antennas - RFM69 library => Topic started by: ray4452 on March 24, 2020, 08:37:42 AM

Title: Can RFM69 generate interrupt in Listen Mode?
Post by: ray4452 on March 24, 2020, 08:37:42 AM
As the question, I want to know could RFM69 generate an interrupt in Listen Mode? (default DIO0)
In Datasheet, it only said, "If a wanted signal is detected, the receiver is kept on and the data is demodulated.".
When I set RegOpMode to 0x44; // Listen Mode (+ STDBY Mode), it only saves the received data and does not generate an interrupt from DIO0.

How do I set it up? Or this is unreachable? I’m new here ....
Thank you!


Ray.
Title: Re: Can RFM69 generate interrupt in Listen Mode?
Post by: lemonforest on June 06, 2020, 12:41:03 AM
if you define RF69_LISTENMODE_ENABLE, you can then use the sleepy listening stuff for dealing with that. I think one is that the tx unit needs to use the listenModeSendBurst as well.

Edit: had my face in the datasheet again today and bounced through listen mode stuff a bit. If you're setting registers yourself and if you've missed something, there may be things that aren't happening when a packet is received that would otherwise be happening if you define the listenmode build flag in your code. This snip from the datasheet shows that 2 of 3 possible settings on what to do after decoding a wanted packet will even raise a payloadready interrupt. Not saying that's your problem, just that it's one of several other register settings that you may need to set for your particular usage requirements.
(https://i.imgur.com/yo2IQSG.png)