Optimize firmwares for larger networks
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.
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 ? :-) In the mean time, it might be the time I start compiling my own firmware :-)
@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: https://github.com/Koenkk/zigbee2mqtt/issues/543#issuecomment-433951590
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? Network with 32 devices, mostly routers (TrΓ₯dfri-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?