Update of rtl_433_ESP to version 0.1.3 - Support for SX127X transceiver module (#1291)
The main features of the upgrade to 0.1.3 of rtl_433_ESP are 1 - Change Transceiver Library to RadioLib 2 - Add support for SX127X transceiver module ( I used the 433 Mhz version of this Heltec module for development ). 3 - Added automatic calibration of the RSSI Signal detection Threshold 4 - Removed dependency on loop for start and end of signal detection, and moved to a ESP32 Task 5 - Moved received signal decoding to a ESP32 Task 6 - Identified Blueline PowerCost Monitor decoder as source of significant memory overhead and disabled. 7 - Multi Receiver support has been validated with RF, RF2 and PiLight
This commit is contained in:
1 parent
c570eead82
commit
8bc65d62dc
10 files changed
+186
-73
No files matched your search
@@ -187,7 +187,10 @@ void MQTTtoPilight(char* topicOri, JsonObject& Pilightdata) {
|
||||
int msgLength = rf.stringToPulseTrain(raw, codes, MAXPULSESTREAMLENGTH);
|
||||
if (msgLength > 0) {
|
||||
# ifdef ZradioCC1101
|
||||
ELECHOUSE_cc1101.SetTx(CC1101_FREQUENCY); // set Transmit on
|
||||
disableActiveReceiver();
|
||||
ELECHOUSE_cc1101.Init();
|
||||
pinMode(RF_EMITTER_GPIO, OUTPUT);
|
||||
ELECHOUSE_cc1101.SetTx(receiveMhz); // set Transmit on
|
||||
rf.disableReceiver();
|
||||
# endif
|
||||
rf.sendPulseTrain(codes, msgLength, repeats);
|
||||
@@ -215,7 +218,10 @@ void MQTTtoPilight(char* topicOri, JsonObject& Pilightdata) {
|
||||
if (message && protocol) {
|
||||
Log.trace(F("MQTTtoPilight msg & protocol ok" CR));
|
||||
# ifdef ZradioCC1101
|
||||
ELECHOUSE_cc1101.SetTx(CC1101_FREQUENCY); // set Transmit on
|
||||
disableActiveReceiver();
|
||||
ELECHOUSE_cc1101.Init();
|
||||
pinMode(RF_EMITTER_GPIO, OUTPUT);
|
||||
ELECHOUSE_cc1101.SetTx(receiveMhz); // set Transmit on
|
||||
rf.disableReceiver();
|
||||
# endif
|
||||
int msgLength = rf.send(protocol, message);
|
||||
@@ -287,6 +293,7 @@ extern void enablePilightReceive() {
|
||||
# endif
|
||||
|
||||
# ifdef ZradioCC1101
|
||||
ELECHOUSE_cc1101.Init();
|
||||
ELECHOUSE_cc1101.SetRx(receiveMhz); // set Receive on
|
||||
# endif
|
||||
rf.setCallback(pilightCallback);
|
||||
|
||||
Reference in new issue
Block a user