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.

Home Page:https://docs.openmqttgateway.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Watchdog reset when using nodemcuv2-pilight and receiving rf codes.

Ketturi opened this issue · comments

ESP8266 crashes hard when using pilight build, and receiver is getting input (eg, by pressing kaku/nexa RF remote)

Serial console output:

************* WELCOME TO OpenMQTTGateway **************
N: OpenMQTTGateway Version: version_tag
N: WiFi ok with manual config credentials
N: Switching to Pilight Receiver: 433.92
N: RF_EMITTER_GPIO: 4 
N: RF_RECEIVER_GPIO: 5 
N: OpenMQTTGateway modules: ["Pilight"]
N: ************** Setup OpenMQTTGateway end **************
W: MQTT connection...
N: Connected to broker
N: Send on /RFtoMQTT msg {"active":1}
N: Send on /SYStoMQTT msg {"uptime":5,"version":"version_tag","disc":true,"ohdisc":false,"env":"nodemcuv2-ketturi","freemem":23256,"mqttp":"1883","mqtts":false,"msgprc":0,"msgblck":0,"maxq":0,"eth":false,"rssi":-59,"SSID":"wlanssid","BSSID":"00:11:22:33:44:55","ip":"172.20.1.132","mac":"5C:CF:7F:D9:23:9D","modules":["Pilight"]}

 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 3584, room 16 
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld
N: 
************* WELCOME TO OpenMQTTGateway **************

Issue is present with OpenMQTTGateway 1.7.0, and also with current development version.

Environment used:

[env:nodemcuv2-ketturi]
platform = espressif8266@^2
board = nodemcuv2
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.wifimanager8266}
  ${libraries.esppilight}
  ${libraries.esp8266_mdns}
build_flags =
  ${com-esp.build_flags}
  '-DZgatewayPilight="Pilight"'
  '-DGateway_Name="OMG_ESP8266_Pilight"'
  '-DESPWifiManualSetup=true'
  '-Dwifi_ssid="wlanssid"'
  '-Dwifi_password="wlanpw"'
  '-DRF_EMITTER_GPIO=4'
  '-DRF_RECEIVER_GPIO=5'
  '-DENV_NAME="$PIOENV"'
  '-DZmqttDiscovery="HADiscovery"'
  '-DMQTTsetMQTT'
  '-DMQTT_HTTPS_FW_UPDATE'
  '-DMQTT_USER="mqttuser"'
  '-DMQTT_PASS="mqttpass"'
  '-DMQTT_SERVER="172.20.1.100"'
  '-DMQTT_PORT="1883"'
board_build.flash_mode = dout
custom_description = Gateway using ESPilight without the need of CC1101
commented

Hi all, I can confirm the issue. I get exactly the same crash report for the following config:

[env:nodemcuv2-pilight-pin45]
platform = espressif8266@^2
board = nodemcuv2
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.wifimanager8266}
  ${libraries.esppilight}
  ${libraries.esp8266_mdns}
build_flags =
  ${com-esp.build_flags}
  '-DZgatewayPilight="Pilight"'
  '-DRF_RECEIVER_GPIO=4'
  '-DRF_EMITTER_GPIO=5'
  '-DGateway_Name="OMG_ESP8266_Pilight"'
board_build.flash_mode = dout
custom_description = Gateway using ESPilight without the need of CC1101

There are no crashes with the same config and OpenMQTTGateway 1.6.0.

Do you reproduce with the development branch ?