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.54k stars 782 forks source link

V0.8 Don't work with sonoff rf bridge R1 (433RFBRIDGE v2.0 board reference) #295

Closed bapt1080 closed 5 years ago

bapt1080 commented 5 years ago

Describe the bug Flash is OK Wifi connection OK MQTT subcribe and post OK (example : home/OpenMQTTGateway/LWT => Online) switch is on Red led blink if i press a 433mhz remote but nothing on MQTT broker or serial console (she works too)

The bridge works fine with the tasmota firmware

i try to replace tasmota to receive KAKU protocol (it's possible with RF bridge? red led don't blink with KAKU remote)

Environment

PS : i don't know if a previous version of openMQTTgateway works on this version board, maybe i will try

1technophile commented 5 years ago

Could you post your user_config.h without credentials and what you see on your serial monitor ? Did you think on changing the rf bridge switch position after flashing ?

bapt1080 commented 5 years ago

psx_20181105_003832 Yes the switch is ok, changed after flashing

User_config.txt

and the serial monitor log :

gatewaySRFB setup done Serial Baud19200 MQTT_MAX_PACKET_SIZE 1024 Setup OpenMQTTGateway end MQTT connection... Connected to broker Subscription OK to the subjects Uptime (s) 120 Remaining memory 46416 RSSI -60 SSID WLANFB Activated modules SRFB

only 3 topics as created,even if i press a remote (and the red led blink 1 time, and my second Sonoff RF on tasmota publish the 433mhz json code data)

image

bapt1080 commented 5 years ago

I flash the EFM8BB1 with https://github.com/Portisch/RF-Bridge-EFM8BB1

always work on tasmota and not on openMQTTgateway

1technophile commented 5 years ago

never tested the sonoff rf bridge with this firmware do you know if it modify the way EFM8BB1 talk to the ESP?

1technophile commented 5 years ago

could you try with last master code, I have implemented a correction?

DJBenson commented 5 years ago

Error when compiling 0.9beta;

`Arduino: 1.8.7 (Mac OS X), Board: "Generic ESP8285 Module, 80 MHz, Flash, ck, 26 MHz, 1M (64K SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Build options changed, rebuilding all /Users/jonathan.thomson/Documents/GitHub/OpenMQTTGateway/ZgatewaySRFB.ino: In function 'void _rfbDecode()': ZgatewaySRFB:130:17: error: 'repeatSRFBwMQTT' was not declared in this scope if (repeatSRFBwMQTT){ ^ exit status 1 'repeatSRFBwMQTT' was not declared in this scope

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.`

DJBenson commented 5 years ago

I applied the fix to the Arduino project file for v0.8 and it works - not sure why 0.9beta won't compile but I'm happy with a working 0.8 build.

Thanks for the fix!

1technophile commented 5 years ago

I've just published a v0.8.1 https://github.com/1technophile/OpenMQTTGateway/releases/tag/v0.8.1

1technophile commented 5 years ago

I Will take a look to 0.9beta

DJBenson commented 5 years ago

Superb, thanks. And many thanks for this project!

bapt1080 commented 5 years ago

it works! thx and with portisch on EFM8BB1 , but i cant use the advanced fonctionnality of portish with openMQTTGateway

and KAKU is not recognized by portisch (sniffing fonction activated with tasmota don't detect KAKU remote, the led blink but nothing is send by serial between EFM8BB1 and esp :-( )

i will use rf2 with wemos, it works but my receiver is not so powerfull, i wait a new one

1technophile commented 5 years ago

issue corrected with 0.9beta, thanks for pointing it.

I close the issue, if there is something wrong don't hesitate to reopen it