-
Notifications
You must be signed in to change notification settings - Fork 639
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
Sonoff RF Bridge cant change "Boot Mode" of switch #1597
Comments
looks like common problem with "save". Espurna current git / LWIP 1.4 |
Can't reproduce with rfbridge built with 2.4.2, with or without DEBUG_SUPPORT flags active. |
@reaper7 yes, save problem. TELNET_SUPPORT & DEBUG_TELNET_SUPPORT & DEBUG_WEB_SUPPORT didnt work Espurna current git / LWIP 1.4 AND Espurna current git / V2 Low mem didnt work. @mcspr loopDelay 10, 20, 55, 200 didnt work I have a IR RECEIVE problem maybe these problems are related. #1596 I will fallback to 1.13.3 v |
I uploaded espurna-1.13.5-itead-sonoff-rfbridge.bin with esptool.py and it saves no reboot. I think main problem is we are downloading external libraries like https://github.com/markszabo/IRremoteESP8266 and other 10-15 libraries and they are crushing something. (i downloaded all latest external libs and i cant save which is the most basic thing) Please add external libaries with exact relase in source.zip of nice Espurna. Is there any way to enable IR receive-send from terminal? |
my observations: custom config:
with the same settings, I enable and disable mqtt support only (MQTT_SUPPORT): with MQTT_SUPPORT disabled all works, I can SAVE, when SAVE button pressed wireshark show: and I see popup window like "No changes detected" or "Changes saved" with MQTT_SUPPORT enabled I can't SAVE, when SAVE button pressed wireshark show: No popup window! arduino libs used:
|
@reaper7 thanks for showing all info. Did you try https://github.com/xoseperez/espurna/releases/download/1.13.5/espurna-1.13.5-itead-sonoff-rfbridge.bin I enabled MQTT everything is fine, i can save. |
@kiralikbeyin - it's better for me to find the cause, because I use custom config with predefined settings for each of my devices (ip addresses, relays boot modes, way the diodes works, topics for mqtt etc...) |
@reaper7 @mcspr Also i can receive IR codes :) more info :arendst/Tasmota#5379 |
@kiralikbeyin binaries are built by platformio. libraries are pinned, like this: Line 89 in e62d0df
and it is using 2.3.0 core, single option of lwip1.4. glad that you solved your problem with ir lib. so does it mean that the latest version works ok and that was some kind of power problem? But, @reaper7 mentioned the same problem with different devices. patch: dev...mcspr:check-1.13.5 edit: formatting... |
@mcspr Thanks for information i never tried rc2.3 or IR REMOTE LIB v2.2.0 (20170922) but i will check this file everytime in the future. Strange thing about this lib 1technophile/OpenMQTTGateway#367 works fine with USB power (without cutting) and also FTDI connection. When i cut USB -GPIO4-GPIO5 connection Espurna and Tasmato libs also work (IR receive) My strange idea for this strange problem is esp chip needs more power if it loops more code like MQTT SUPPORT :) (Note that OpenMQTTGateway is smaller than Espurna / Tasmota ) @reaper7 cut the USB-GPIO4-5 connection and you will save your config |
Yeah, that is strange. One thing that comes to mind are recent weblog changes that could be more power-hungry. But there are not much weblog messages after config upload, so 🤷♂️ For comparison: |
@mcspr - looks like you've solved my problem! now all my sonoff devices saves changes :) |
Ok, assuming MQTT client is at fault then. Probably related to the #1115
> websock.send('{"config": {"mqttEnabled": 1, "mqttServer": "...server address..."}}') I don't see any crashes though. @reaper7 what mqtt server are you using? |
@mcspr - mosquitto 1.4.10-3 (with user/pass!!!) on rpi |
Well, turns out it is not about the server. #1115 (comment) already described the solution for the mqtt client codebase. pr for async-mqtt-client is still hanging there. The culprit is lwip's tcp_output, which does not check if connection is closed. While inside websocket callback, mqttReset() does immediately disconnect leaving connection object NULL and causing the crash. Ofcourse, doing the exact same thing inside loop() + yield() right after is a possible workaround (while making things somewhat slower...) Also note, that this only affects git version. Release version of async-mqtt-client is still ok, and is being used by the platformio builds. |
Espurna 1.13.5
rc2.5.0 and rc2.4.2
When i want to change "Always OFF" to "Same as before" it doesnt save and restarts...
So my switches turns off everytime SRFB restarts.
The text was updated successfully, but these errors were encountered: