zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Running on Z-Stack 3.0

Open kirovilya opened this issue 8 years ago • 68 comments

I tried running zigbee-shepherd on the Z-stack 3.0. I built the firmware with Z-stack 3.0, then flash it to cc2531 stick.

By default, it does not start.

It was necessary to substitute on fork of cc-znp from HalleyAssist (thank you @splitice) and to little correct a zigbee-shepherd. After that, it was successfully launched and even worked a little.

I tried to connect a xiaomi temperature sensor - successfully connected and sent data. But with the round button it did not work out that way - it could not connect correctly and as a result did not work.

Do you think it makes sense to move towards Z-stack 3.0? What will it give to us? Stable? Touchlink? More devices?

kirovilya avatar Jul 23 '18 08:07 kirovilya

FYI we only run Z-Stack 3.0 these days and can confirm that our fork of ZS works fine.

If you are using our cc-znp you also need to use our zigbee-shepherd or copy over the changes to binding cc-znp since we changed the interface to make it possible to close and restart ZS (e.g for firmware updates)

splitice avatar Jul 23 '18 09:07 splitice

@splitice Thank you for the clarification. What improvements have you got with the Z-stack 3.0?

kirovilya avatar Jul 23 '18 10:07 kirovilya

@kirovilya See here: fully compliant ZigBee 3.0 solution: Z-Stack 3.0

Especially: Supports the CC2592 and CC2590 RF front ends which extend up to +22dBm and +14dBm transmit power, respectively, and provide improved receiver sensitivity

Supports Green Power Proxy, allowing energy-harvesting and ultra-low power devices to connect seamlessly to a Zigbee network

tb-killa avatar Jul 24 '18 12:07 tb-killa

We did it for:

  • compatibility with Zigbee 3.0 devices
  • Future: Green Power support (PR's for our fork welcome, we currently don't have the manpower to tackle this on our own)
  • Reliability (we had some issues with 1.x)
  • no patches needed for PA/LNA support

splitice avatar Jul 24 '18 16:07 splitice

Are we planning to switch to this version?

tb-killa avatar Aug 10 '18 19:08 tb-killa

Yes! When I have some more time I will look into this.

Koenkk avatar Aug 13 '18 17:08 Koenkk

Z-stack 3 ZNP has more advance, you can increase NWK_MAX_DEVICE_LIST to 120 without any problem. Now with ZNP Z-stack home 1.2.2, NWK_MAX_DEVICE_LIST 15 is the max i could build

dzungpv avatar Aug 26 '18 09:08 dzungpv

@dzungpv that sounds great!

Koenkk avatar Aug 26 '18 15:08 Koenkk

@Koenkk This man can do 660 devices: https://sunmaysky.blogspot.com/2018/07/400-zigbee-devices-in-same-zigbee_29.html

dzungpv avatar Aug 28 '18 04:08 dzungpv

This man can do 660 devices:

Wow!!! One question: HOW?! :)

kirovilya avatar Aug 28 '18 05:08 kirovilya

@kirovilya I am sure he not use ZStack HA 1.2.2, he is an expert on TI forum: YiKai Chen. You can always ask and he will answer you. I have ask him some hundreds question.

dzungpv avatar Aug 28 '18 05:08 dzungpv

@dzungpv Understandably. Since this is not a ZNP-firmware (ZStack HA), there are no questions yet :)

kirovilya avatar Aug 28 '18 06:08 kirovilya

I think Touchlink will be extremely valuable as it could allow a way for resetting Hue Lightstrips without a Hue Bridge or the dimmer?

ben423423n32j14e avatar Sep 02 '18 21:09 ben423423n32j14e

I'm looking forward to use Z-stack 3, can zigbee-sheperd/cc-znp forks from @Koenkk be simply replaced by @splitice ones ? IOW, has more progress been done in that way ? I'm struggling with all these zigbeer forks ;-)

lolorc avatar Sep 05 '18 10:09 lolorc

@lolorc I will start working on this once I finished moving to a new place (will have more time then :smile:)

Koenkk avatar Sep 05 '18 10:09 Koenkk

Our fork works with Z-Stack 3.0, you should be able to just use our ZS fork. We believe it to be API compatible.

splitice avatar Sep 05 '18 11:09 splitice

so many zigbee-sheperd divergent forks... I guess the changes that have been made for zigbee2mqtt to zigbee-sherperd and cc-znp shoud be merged/rebased against HalleyAssists

@splitice what are you using your zigbee-sheperd fork for ? It might be easier for me to try z-stack 3.0 with it.

lolorc avatar Sep 06 '18 09:09 lolorc

@splitice Can you tell us where to find your fork with Z-Stack 3.0 support? Thanks.

EDIT: My bad for not paying attention. I found your fork at HalleyAssist ;-)

hdo avatar Oct 13 '18 19:10 hdo

Fork is here: https://github.com/HalleyAssist/zigbee-shepherd

FYI we run CC2538+92 hardware which is required for some of the added APIs (increased processing power). Not that it should impact you too much as our firmware with these added MT commands is not currently released. Also be aware Z-Stack 3.0 is heavier than 1.2.

splitice avatar Oct 13 '18 23:10 splitice

@splitice

Hey thanks. Just noticed that :-)

Do you also offer precompiled firmware for the CC2530 or do i need to compile it from source (TI Z-Stack 3.0 Source).

I don't have the CC2538+98 hardware so hope that it will also run with my CC2530.

Fork is here: https://github.com/HalleyAssist/zigbee-shepherd

FYI we run CC2538+92 hardware which is required for some of the added APIs (increased processing power). Not that it should impact you too much as our firmware with these added MT commands is not currently released. Also be aware Z-Stack 3.0 is heavier than 1.2.

hdo avatar Oct 14 '18 07:10 hdo