-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bridge on ESP32 with CC1101 stops receiving after transmitting #1197
Comments
@vspek I'm going to try to recreate this later today/tomorrow. A little pro tip, the status message that comes out every few minutes includes the active receiver. {"uptime":124,"version":"v0.9.11","freemem":110872,"mqttport":"1883","mqttsecure":false,"freestack":3208,"rssi":-52,"SSID":"NEUF_ERIC","ip":"192.168.0.11","mac":"24:0A:C4:59:B7:20","actRec":2,"mhz":433.92,"modules":["RF","RF2","Pilight","RTL_433"]} And the value definition can be found here OpenMQTTGateway/main/config_RF.h Line 159 in 3fb34af
|
Well I was not able to recreate the issue....this is the latest development build. Let me try again with the binary release This is from my test environment
|
Thank you for looking into it. |
@vspek Those ports are just how my breadboard is wired up. I tried to wire it up that way so that all the gpio pins were on that side. I have started with getting the pre-built binaries loaded onto my ESP32, but ran into some issues getting it running. My thought is that something in the pre-build binary is causing your issue, hence the need to get it working. |
I download the git repository and build and uploaded with platformio esp32dev-multi_receiver:
|
I did my testing with RF for both sending and receiving, what combination did you use? |
I have the issue with pilight, so this one esp32dev-pilight-cc1101 or pilight activated in esp32dev-multi_receiver: |
I was able to identify the issue and prepared a fix #1202 Problem was identified as the PiLight receiver module going deaf after a PiLight signal was transmitted. |
I can confirm that it works, thank you very much for the fix. |
Describe the bug
The bridge it is receiving signals and displaying them in the serial port / forwarding them to the mqtt boker.
When it receives an instruction from the mqtt broker to transmit, it will transmit a signal but after that it will not display any incoming signals anymore. Reboot restores receiving. Changing to a different RF library also restores receiving.
To Reproduce
Upload from the web
https://docs.openmqttgateway.com/upload/web-install.html
esp32dev-multi_receiver or esp32dev-pilight-CC1101
Configure the bridge
Push button of rf remote
see received signal
Send out message to transmit
mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTto433" -m '{"value":1315156}'
bridge is showing that it is transmitting
Expected behavior
After transmitting it should start receiving again.
Environment (please complete the following information):
esp32dev-multi_receiver
esp32dev-pilight-CC1101
Hardware ESP-32 Dev Kit C V4
https://www.az-delivery.de/en/products/esp-32-dev-kit-c-v4
Tried two different CC1101 receivers
logs
N: RF_EMITTER_GPIO: 12
N: RF_RECEIVER_GPIO: 27
N: ZgatewayRTL_433 setup done
N: Switching to RF Receiver: 433.92
N: OpenMQTTGateway modules: ["RF","RF2","Pilight","RTL_433"]
N: ************** Setup OpenMQTTGateway end **************
W: MQTT connection...
N: Connected to broker
N: Send on /SYStoMQTT msg {"uptime":4,"version":"v0.9.11","freemem":103608,"mqttport":"1883","mqttsecure":false,"freestack":4680,"rssi":-54,"SSID":"NEUF_ERIC","ip":"192.168.0.11","mac":"24:0A:C4:59:B7:20","actRec":2,"mhz":433.92,"modules":["RF","RF2","Pilight","RTL_433"]}
N: Send on /433toMQTT msg {"value":44739241,"protocol":29,"length":26,"delay":235,"tre_state":"-","binary":"10101010101010101010101001","raw":"10833,259,288,249,299,258,329,234,1325,217,311,261,1292,246,300,259,1301,261,314,204,1313,256,300,264,1292,249,310,232,1301,264,304,228,1313,245,319,229,1326,238,288,249,1304,260,298,236,1335,226,312,244,1317,234,1304,259,288,","mhz":433.92}
N: Send on /433toMQTT msg {"value":425,"protocol":29,"length":9,"delay":235,"tre_state":"1FF0","binary":"110101001","raw":"10833,255,2567,257,1291,247,315,232,303,257,1310,224,1333,231,325,217,314,258,1318,","mhz":433.92}
N: Send on /433toMQTT msg {"value":1429427541,"protocol":29,"length":31,"delay":236,"tre_state":"-","binary":"1010101001100110101010101010101","raw":"10864,258,284,248,1321,257,301,260,1318,228,307,245,1320,231,328,234,1316,249,1312,222,338,218,311,240,1337,238,1316,249,305,222,339,218,1338,235,303,255,1313,224,319,245,1313,243,312,261,1317,226,309,247,1316,234,325,234,1308,252,307,247,1315,245,310,236,1317,258,284,","mhz":433.92}
N: Send on /433toMQTT msg {"value":2795945,"protocol":29,"length":22,"delay":236,"tre_state":"-","binary":"1010101010100110101001","raw":"10853,257,2566,257,1293,247,317,258,300,235,1318,250,1316,246,309,235,1321,259,282,247,1318,257,299,234,1319,250,1314,247,314,220,311,240,1339,235,313,227,1334,223,313,260,1325,236,1310,224,329,","mhz":433.92}
N: Send on /SYStoMQTT msg {"uptime":124,"version":"v0.9.11","freemem":110872,"mqttport":"1883","mqttsecure":false,"freestack":3208,"rssi":-52,"SSID":"NEUF_ERIC","ip":"192.168.0.11","mac":"24:0A:C4:59:B7:20","actRec":2,"mhz":433.92,"modules":["RF","RF2","Pilight","RTL_433"]}
N: [ MQTT->OMG ]: {"value":1315156}
N: RF Protocol:1
N: RF Pulse Lgth: 350
N: Bits nb: 24
N: Transmit mhz: 433.92
N: MQTTtoRF OK
N: Send on /433toMQTT msg {"value":1315156}
N: Switching to RF Receiver: 433.92
Here is stops receiving
nothing is showing up anymore
Only after creating mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"active":true}'
N: [ MQTT->OMG ]: {"active":true}
N: Send on /PilighttoMQTT msg {"active":true}
N: Switching to Pilight Receiver: 433.92
after changing of library type it starts receiving again
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"smartwares_switch","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"arctech_switch","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"up"},"protocol":"arctech_screen","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"arctech_dimmer","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"opened"},"protocol":"arctech_contact","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"smartwares_switch","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"arctech_switch","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"up"},"protocol":"arctech_screen","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"arctech_dimmer","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"opened"},"protocol":"arctech_contact","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /SYStoMQTT msg {"uptime":364,"version":"v0.9.11","freemem":110024,"mqttport":"1883","mqttsecure":false,"freestack":3208,"rssi":-54,"SSID":"NEUF_ERIC","ip":"192.168.0.11","mac":"24:0A:C4:59:B7:20","actRec":1,"mhz":433.92,"modules":["RF","RF2","Pilight","RTL_433"]}
N: [ MQTT->OMG ]: {"message":"{"systemcode":12,"unitcode":22,"on":1}","protocol":"elro_400_switch"}
N: Send on /PilighttoMQTT msg {"message":"{"systemcode":12,"unitcode":22,"on":1}","protocol":"elro_400_switch"}
N: Send on /PilighttoMQTT msg {"message":"{"systemcode":12,"unitcode":22,"on":1}","protocol":"elro_400_switch"}
N: Switching to Pilight Receiver: 433.92
here it stopped receiving after transmitting
N: [ MQTT->OMG ]: {"active":true}
N: Send on /PilighttoMQTT msg {"active":true}
tried to trick with sending again mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"active":true}', but that did not work, need to really change the library
N: Switching to Pilight Receiver: 433.92
N: Send on /SYStoMQTT msg {"uptime":484,"version":"v0.9.11","freemem":110024,"mqttport":"1883","mqttsecure":false,"freestack":3208,"rssi":-54,"SSID":"NEUF_ERIC","ip":"192.168.0.11","mac":"24:0A:C4:59:B7:20","actRec":1,"mhz":433.92,"modules":["RF","RF2","Pilight","RTL_433"]}
N: [ MQTT->OMG ]: {"active":true}
N: Send on /433toMQTT msg {"active":true}
N: Switching to RF Receiver: 433.92
N: [ MQTT->OMG ]: {"active":true}
N: [ MQTT->OMG ]: {"active":true}
N: Send on /PilighttoMQTT msg {"active":true}
N: Switching to Pilight Receiver: 433.92
** after switching back,, receiving again messages **
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"smartwares_switch","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"arctech_switch","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"up"},"protocol":"arctech_screen","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"on"},"protocol":"arctech_dimmer","length":"1677610","value":"1677610","repeats":2,"status":2}
N: Send on /PilighttoMQTT msg {"message":{"id":1677610,"unit":0,"state":"opened"},"protocol":"arctech_contact","length":"1677610","value":"1677610","repeats":2,"status":2}
The text was updated successfully, but these errors were encountered: