-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 S26R2ZB Smart Plug Zigbee Router devices by ITead disconnect from network after a day or two - Firmware bug or? #10282
Comments
It might be related with #10276 but since these are made by another manufacturer I don't know ... |
I am having the same issue with two different firmwares and multiple different adapters, granted all are CC2652P. Routers:
The two firmwares I have tried flashing all these devices with are:
I will see these devices behave normally for anywhere from 1-3 days consistently pinging in however eventually they will no longer ping in. I usually only notice this when the last seen for all gets toward the 12hour + range. It does seem that they all stop reporting in around the same time but I cannot verify for sure. Running a network map request reports back that the devices are unreachable. I have tried doing a packet capture but in all honesty I am not exactly sure what I should be looking for in this case. Simply power cycling the devices seems to return them to a working state in all cases. I just did this to all of them around 2-3 hours ago, so please let me know if there is anything else I can capture that would help troubleshoot this issue.
One thing I want to point out, none of my other devices are exhibiting this behavior these include but are not limited to: The issue only appears with the custom router devices and seems to have been happening fairly consistently across multiple versions of zigbee2mqtt, currently on 1.22.1. My coordinator is a https://www.tubeszb.com/product/cc2652_coordinator/1?cp=true&sa=false&sbp=false&q=false&category_id=2 with firmware version 20210708 |
Great to see that we're not the only one ! :)
I also get the same LQI error message as you. I bought a Sonoff ZigBee 3.0 USB Dongle plus and I'll do test once I receive it. I'd like to provide more debug info but on't know where to start. |
I flashed the latest firmware (20211217) for the new sonoff dongle 3.0 plus, 2 days ago and every routers disconnected today. :( |
So I ordered new plug/sonoff dongle, create a new network from scratch with
|
@daufinsyd
Standard devices tested (using both zstack router firmware and ptvo basic configured router firmware)
Custom devices (using ptvo firmware, tested configured with 60 second ping. "enable watchdog timer was enabled in some, and not in others to check for any difference". I created some custom PCB boards based on the designs of the popular coordinator sticks available (tubes router/zigstar/zzh) only with intent of using them as router devices loaded with various sensors (temperature/humidity/voc/ect), currently only using temperature/humidity. These were configured with ptvo firmware, additionally as I had added an additional LED to the board I was able to create a virtual switch in ptvo's firmware that would allow me to control the LED on the board. The intent here was to see if the device would respond to an on/off request when it went into a state of no longer pinging in. result: device works perfectly pinging in every 60 seconds for days, seemingly 4-5 days? At a certain point I will notice that temperature data is not updating or changing in home assistant, I check back in zigbee2mqtt and the devices will show that they havented pinging in for X hours. Attempting to flip the virtual switch to trigger the LED on the board produces a timeout in zigbee2mqtt. Unplugging the device from power and instantly plugging it back in seems to fix everything with that device until the next "crash". I have setup a second testing instance of home assistant with ZHA, will probably also install zigbee2mqtt. I have plenty of zigbee devices I can throw at the test network but I would really need a better understanding from @Koenkk or someone with more knowledge on this to help collect useful debugging data. |
I can also confirm this behavior with Sonoff Stick flashed with latest router firmware. |
I have a Sonoff usb stick (using the 20220103 firmware) configured as a coordinator, and a bunch of zzh's as routers along with some Sonoff s26r2zb's. Interestingly, I see the same behaviour, but only in the s26r2zb devices. All of the zzhs remain connected to the mesh. |
I contacted the Sonoff Support and linked this case, I got a reply :
(I guess they meant zigbee2mqtt and @Koenkk). |
@daufinsyd they haven't contacted me about this. Could you make a sniff when command execution fails? https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html#with-cc2531 |
I buy a CC2531 Stick and I'll post the ouput. |
I can also confirm this behaviour. ZigBee Smart Plug DE Type S26R2ZBTPF |
I have also experienced the S26R2ZB going offline. ZigBee Smart Plug DE Type S26R2ZBTPF |
I experience the same issue, FR version of the plugs. I can also confirm pretty low LQI values. They do seem to work as routers though. |
@daufinsyd @Koenkk I would be more than happy to do a sniff when the issue happens again. Interestingly enough however since my last update ( 8 days ago) all of my routers are online and showing strong signal without any restarts. I did however rearrange my mesh slightly on that day and removed 2 router/repeaters that had terrible signal strength. Could this issue be related to this? Both devices I removed were cc2652p based routers, could this lead to them attempting to router messages and failing due to signal strength and causing other devices to overflow? I will continue monitoring closely and let you now if there is any change. |
@Koenkk It looks like my network is partially back to that same state. It seems half of my routers have not responded in 23 hours (running the standard zstack router firmware). The other half of my routing devices are using ptvo firmware they are all pinging but they do have this feature enabled: I am going to get a sniffer out, is there anything specific you need that would help troubleshoot this? |
Hey @Koenkk and @daufinsyd I was able to get a capture of my network. One without attempting to trigger any devices manually and once flipping a couple devices that are alive and a few of the routers mentioned above. I see the message to the router but no response back. I am also not all that familiar with what I should be seeing but it does seem that maybe my network is being bombarded with too many packets? Regardless I put the two captures together with a list of the devices on my network with their status and my key.. What is the best way of providing this to you? |
@irakhlin could you put upload the |
@Koenkk Here is the capture, in my case the router nodes going out are not s26r2zb but cc2652p boards. The key, a few different captures and a spreadsheet of my network addresses with the affected DOWN nodes is included. |
@irakhlin thanks for the logs, checked some sniff and it seems the devices don't send "Link status" messages anymore (which routers should do). I don't expect this to be a z2m bug, rather a bug in the TI SDK. My router fw is using a quite old sdk, I will try to provide an update in the coming days. |
@Koenkk I would tent to agree that this is probably an issue in the firmware. But I just wanted to make sure you saw my earlier comments; half of the affected devices are running your router firmware but the other half are running @ptvoinfo (https://ptvo.info) firmware. Additionally none of my "none diy" devices are affect, other than lower AQI when the router nodes crash. I did spend some time trying to test using the new SDK with some changes to the patch file but in that case the devices would join and almost instantly leave the network. This is probably because of something I did however. Let me know if you need me to test the firmware when you get around to it. |
@ptvoinfo also uses the TI stack, however I don't know which version. |
@Koenkk If I understand this correctly, the proper solution would then be to flash an updated firmware onto the S26 plugs? If yes, is there a possibility that this can be done OTA through zigbee2mqtt, or would I need to disassemble the units and flash them? (sorry if these questions are stupid - I am a newbie in all these home automation/hobby small electronic devices). |
@Koenkk I use "simplelink_cc13x2_26x2_sdk_5_10_00_48". This problem looks like a memory leak somewhere in the SDK. After some time the firmware cannot allocate memory for current tasks and stop responding. |
I'm trying these out atm... https://www.amazon.co.uk/dp/B0B9NF7D22 |
I opened a ticket about 2 1/2 weeks ago and I'm yet to hear anything |
I never got a response to my ticket. Rather disappointing! |
Hello, I'm testing that solution:
|
@zomar76 I've just tried this however the test device didn't automatically rejoin unless I enabled joining and as I expected it forgot it's name. If this can all be done with MQTT though this could be set up as part of a script. I'll have a look. EDIT: I've just set up this script which I'll run as an automation at 4am going forward and see what happens. hopefully, it'll do the trick, as they're not critical devices it doesn't matter at all if they're unavailable for a few seconds at that time. I went for the 35-second delay after a bit of testing the rejoining/interviewing time was consistently completed before that had elapsed.
|
@tungmeister How is that script working for you? I have the same plugs, just wondering if there is some workaround to fix the disconnect. |
@jaanek They've remained online since implementing it so although it's not a proper fix it's a good enough solution for my use case. I've not had anything in my network go offline at all since implementing it. |
Still working after 10 days. |
@eokgnah did you happen to have time to install and test these plugs with the 2.1.1 firmware? Mine are on 2.0.1 and are quite buggy. |
I have a few 2.1.1 firmware and a few 2.0.1 and I can confirm that the 2.0.1 are not working well. |
I can confirm that @tungmeister 's script is working for me as a workaround on three S26R2ZB. (I had bought a pack of four but threw one away convinced it must be faulty. Doh!) |
Same problem here with firmware 2.0.1 |
@gmangoesgit that's a Home Assistant script that's triggered by an automation. |
I've a question regarding that workaround script. The plugs stay online with the script but how do the plugs behave as routers? Do all the connected devices which rely on it reconnect? I've a load of sensors, rad valves that keep dropping off my network because the plugs go offline. Question 2: if I buy replacement plugs directly from Itead, are they guaranteed to be 2.1.1? |
I have not observed similar problems, with FW2.1.1 (20220420) , device model S26R2ZB. |
Is it possible to upgrade the firmware if we open up the plug? Is the new firmware available somewhere? |
Yes it is possible to flash manually CC2652/CC1352 via compatible cJTAG debug probe adapter (for ”c/JTAG which is not same as standard JTAG) using J-Link Commander or similar https://electrolama.com/radio-docs/advanced/flash-jtag/ It is based on Texas Instruments CC2652P (CC2652P1) so you can build your own unofficial custom image using PTVO Zigbee Configurable Firmware tool You first need to figure out inputs and outputs for IO. |
@Hedda that's very useful, thank you! |
@skorokithakis It has RX and TX pads on the small board. Maybe, you can flash the firmware using UART and the serial bootloader feature (I didn't try it). |
Has anyone tried flashing Tasmota on one of these to see if that'd be a stable fix? 🤔 I've never flashed Tasmota on a device https://tasmota.github.io/docs/devices/Sonoff-S26-Smart-Socket/ |
@phillystafford I have, but that's for the wifi version of the plug, this issue is about the Zigbee one. |
Not possible on the Sonoff S26R2ZB model and thus off-topic as that is the Zigbee model and those are not based on an Espressif’s ESP32 or ESP8266 WiFi chip so it can not be flashed with Tasmota firmware (which only works on those Espressif WiFi radio chips and not on Zigbee radio chips as those chios from Texas Instruments or Silicon Labs are). |
Hello everyone, did anyone manage to update the firmware? |
No, just put it into trash like most Sonoff zigbee devices. Waste of money.
śr., 15 lis 2023, 18:53 użytkownik hbkhalil ***@***.***>
napisał:
… Hello everyone, did anyone manage to update the firmware?
—
Reply to this email directly, view it on GitHub
<#10282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAY2JJV4XMMJFM5Y2ROXKSLYET6SZAVCNFSM5KOWETCKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBRGI4TSNZUGM2A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Should I create new file with File editor or I should put this example in the scripts.yaml ? Sorry, I'm newbee :) |
@tungmeister , can you please help me ? Where I should put this script ? |
As I have same issue with sonoff plug (router disconnecting), can anybody let me know the name of a better zigbee plug with router capabilities? Thank you. |
I'm having the same issue:
Devices listed as offline after several days, power cycling the devices bring them back online. It's sounding like a firmware issue on the plugs itself and unless I'm mistaken there is no other way to flash either the official sonoff firmware or a 3rd party alternative? |
Read the whole thread above as both of those been asked and answered; Yes it is a firmware bug and Sonoff screwed up so OTA flashing is not possible, thus the only way to flash those are manually via a cJTAG programmer / debug probe, see #10282 (comment) PS: This issue is closed so unless you found a new alternative solution then please start a new discussion thread if have other questions that are not direly related, like asking what other Zigbee Router devices can be used. |
Hello :)
What happened
After a day or two running perfectly fine, routers kind of disconnect from the network; trying to execute any command results in timeout.
It happens for all routers I have (6 sonoff s26r2zb). End devices (sonoff snzb02 / 03) (directly connected to the coordinator) don't appear to be affected.
example of failed command:
After the router "disconnected", most of the time, simply plugging it off and back solve the issue for a day or two.
I tried increasing the TX power but it didn't help, all devices (with either good or bad LQI disconnect).
What did you expect to happen
Devices are working.
How to reproduce it (minimal and precise)
Debug info
Zigbee2MQTT version: 1.22.1
Adapter hardware: CC2652RB (from slae.sh, as recommended in the official website)
Adapter firmware version: transportrev 2, product 1, majorrel 2, minorrel 7, maintrel 1, revision: 20210708
Edit: typo
The text was updated successfully, but these errors were encountered: