Closed cgmckeever closed 2 years ago
If you look at the OpenMQTTGateway implementation I have implemented that particular use case, as I use it all the time.
Listen with RTL_433 and Transmit with RC_SWITCH
Thanks! Least Im not crazy .. Confirming this project https://github.com/1technophile/OpenMQTTGateway/blob/development/main/main.ino .. any hint to which hood to lift up? Appreciate it
Unfortunately multiple. I had to update the driver for each protocol decoder to support switching etc
This was the PR with the enhancement
real good .. Thanks @NorthernMan54 ... looks very similiar to the way I approached it ... Ill dig in!
Similar patterns .. no 💡
I did notice rf.initReceiver(-1);
.. which I cant do. Probably an earlier library version.
two new discoveries. If I just rf.disableReceiver();
and dont even do Tx, I cant cant seem to get back to Rx
ie
rf.disableReceiver();
ELECHOUSE_cc1101.SetRx(config.frequency);
ELECHOUSE_cc1101.setMHZ(config.frequency);
rf.setCallback(rtl433Callback, messageBuffer, messageBufferLen); rf.enableReceiver(config.receivePin);
I more often than not, get no Rx. With that, attempting to `rf.initReceiver(config.receivePin, config.frequency);` throws
WARNING: low memory? malloc() failed in blueline_create() from /Users/cgmckeever/Documents/Arduino/libraries/rtl_433_esp/blueline.c:416 21:05:05.746 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
It seems (or at least works) magic combo was
void disableRX() {
rf.enableReceiver(-1);
rf.disableReceiver();
}
Thanks for leading me to that other code!!
I'm trying to
RTL_433_ESP
library to listen for sensorsThe good news (that may be surprising) is that it works ... prototype is here
The bad news is, after a few toggles Rx just stops. I can't figure out if it similar to the deaf-state or even the freq change Rx stop OR if Im just doing something either impossible or missing something silly.
The swap works, sometimes. I usually get 1 swap before I can't get any more Rx. But there are some times I can get a few. But it always goes deaf. Any ideas .. appreciate it
The main bits for enabling/disabling are