1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.56k stars 786 forks source link

ZgatewayRF and ZgatewayRF2 doesn't work together for receiving #130

Closed 1technophile closed 5 years ago

1technophile commented 6 years ago

With the following setup: Only RF gateways NODEMCU V1.0 Arduino 1.8.3 Boards ESP8266 2.3.0 OpenMQTTGateway V0.4 Default pinout

ZgatewayRF receives 433Mhz if ZgatewayRF2 is commented ZgatewayRF2 receives 433Mhz if ZgatewayRF is commented

1technophile commented 6 years ago

@larsenglund are you using both gateways for receiving?

larsenglund commented 6 years ago

Nope, I think you would have to implement support for that yourself (simultaneous receiving of both protocols). I suppose you would have to share the interrupt handler between them somehow since one is overwriting the other now. Maybe have one interrupt routine that just signals the rcswitch and newremotereceiver.. Or for a quick and dirty fix you could just attach the receiver to two pins on the ESP8266 and use one for ZgatewayRF and the other for ZgatewayRF2 so the interrupts won't overwrite one another..

1technophile commented 6 years ago

Thanks for the clarification!

NDR008 commented 6 years ago

Can to RX units be installed in such a way to keep RF2 and RF functionality or...?

1technophile commented 5 years ago

See #329 I would prefer to add CC1101 support rather than trying merging both libraries.

There is also a chance that Zgatewaypilight answer now to your need