-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Optimize firmwares for larger networks #533
Comments
For those wanting to test the new firmware: https://drive.google.com/open?id=1xcGP5tGBBeAaU8VNQG7BiE70H2Bty5pe I've currently migrated my production zigbee network to this firmware. First impression: bulbs respond better Note: advised to be used with the latest dev branch. |
@Koenkk What do you think it optimizes? Allows you to add more routers? |
The coordinator can now keep more paths to other devices, which avoid rediscovery of paths. |
@Koenkk would you be able to provide a cc2530+cc2591 firmware with hardware flow control disabled please ? :-) |
@lolorc Yes please do! I think many users have raised issues with cc2531's short range, and cc2530 + cc2591 looks like a nice cost effective replacement. But for us non-technical people, we really need a good tutorial (covering the right equipment and firmware) like the one for the cc2531. |
Just pushed the instructions to https://github.com/Koenkk/Z-Stack-firmware/tree/optimize/coordinator/CC2531. Will try this week if I can also compile it for CC2530+CC2591. |
@HKC001 will try, but I'm not a windows user, I wish this could compiled on linux with a "free" compiler |
for people who don't have a debugger, i compiled a .bin that works with TI's SerialBootTool. See comment here: #543 (comment) |
Please compile cc2530 (w/o cc2591) firmware too. |
Is the max number of ZigBee end devices without any router still 15 with this firmware? |
@layanto the number has been increased to 20 |
#Koenkk when you migrate your network, do you have a method for backup / restore of devices or are you manually repairing everything? |
@ben423423n32j14e you have to manually pair it again. |
@lolorc the CC2530_CC2591 is up: https://github.com/Koenkk/Z-Stack-firmware/tree/optimize/coordinator/CC2530_CC2591 |
@Koenkk Could you please update the simple CC2530, too? |
Is there a chance that this optimization will remedy the occasional error 205 (No network route) on some bulbs? |
@Skeletorjus yes |
Requesting that @ptvoinfo consider if this will enhance his very useful CC2531 Router firmware and update if necessary. :) |
This is great work but isn't there Z-Stack 3 in progress which supports even more devices? |
@Koenkk The document in the first message says that MAX_RTG_SRC_ENTRIES is related to concentrators (coordinators). Do you think it may help on routers too? What value do you use in your firmware? |
@ptvoinfo here you can see the parameters I use: https://github.com/Koenkk/Z-Stack-firmware/tree/optimize/coordinator/CC2531 This parameter is not useful for routers. See http://www.ti.com/lit/an/swra427c/swra427c.pdf (4 Z-Stack Knobs), it specifies which parameters are relevant for routers/coordinator. I think especially |
@ben423423n32j14e I did some test with z-stack 3.0; my guess is that there is still lot of work needed to get this stable. |
@Koenkk Thanks, my network got the can't find route error last night on previous firmware, I'll upgrade to this one. Cheers |
Using version CC2530_CC2591ZNP-Prod_20181030, flashed the CC2531 yesterday morning and till now looks only beter then the previous version 👍 |
Thanks @Koenkk |
@lolorc Interestingly some of my devices did not require repairing, in particular: Xiaomi Temp Hum Baro sensor My other devices did require repairing, still interesting that some didn't, I wonder why. |
@ben423423n32j14e are you sure you're still using the same channel & panid ? |
@lolorc I have no idea, I just used the Texas SmartRF Flash Programmer tool. Would be really nice if we could figure out how to upgrade firmware and keep device associations, seems it may be possible. |
It is possible via TI's Serial Boot Tool. I've never had to repair my devices since i use this method. ATTN! You can't use the same firmware as for the flasher. |
@ben423423n32j14e you should be able to find that in your logs if you run in debug mode. |
The new firmware on a CC2530 + RF isn't working for me. I had 26 devices joined, and everything was working fine. After adding 2 more devices (WXKG03LM & WXKG01LM), 2 previously attached QBKG03LMs started getting 205 errors. Errors persisted even after removing and re-joining the QBKG03LMs. Network Map:
Also, the network map may not be fully accurate. At least one device shown as having no connection (stud_dwds_1) is working fine. |
Optimized CC2530 firmware is now available for testing: https://github.com/Koenkk/Z-Stack-firmware/tree/optimize/coordinator/CC2530/bin |
If you want me to create a new issue, i will be happy to. I thought i'd post here, first though. I have decent number of Aqara devices; for some reason, they keep "falling off" the network with this firmware. I can't seem to identify a pattern or a way to reliably reproduce it, but here's the general problem that i've observed:
I do not know if this is related to a similar issue i observed (but didn't document!) earlier... when using the If there's anything specific you'd like me to check, please do let me know!\ |
@kquinsland what is the linkquality of the devices? This can happen in case of a bad connection. |
Hi all, I am using this firmware (https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/CC2530/bin) for my CC2530 . Is max number of devices with this firmware? |
@hoangtuit this one (note master but dev branch) has a limit of 15: https://github.com/Koenkk/Z-Stack-firmware/tree/dev/coordinator/CC2530/bin |
Which one should we use? Dev or Master? |
I recommend dev, it will (probably) be the next default firmware as it's more stable and has group support. |
@Koenkk Tks you. |
@hoangtuit 15 devices connected directly to the coordinator. |
Thanks for asking / getting back to me. One of the devices is "attached" to the coordinator and has a link quality of Here's the real kicker, though: I have a device that is currently not connected at all (using the network map graph...) but the As of right now, my |
|
@Koenkk, thanks. that's good to know. |
@lolorc: |
According to http://www.ti.com/lit/an/swra427c/swra427c.pdf (4 Z-Stack Knobs) there are a few parameters which can be tuned to improve the stability of larger networks.
I found
MAX_RTG_SRC_ENTRIES
the most interesting one. This parameter determines how much routes are saved. By default it only saves 12 routers, that means if having more than 12 devices, the coordinator has to rediscover routers to devices using the AODV mechanism.@ptvoinfo @kirovilya I think some of the parameters can also be used to optimize the router firmwares.
The text was updated successfully, but these errors were encountered: