Skip to content
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

[REQUEST] Z-Stack 3.0.x router firmware for CC2530 and CC2531 USB sticks/dongles? #153

Closed
Hedda opened this issue Mar 6, 2020 · 10 comments
Labels

Comments

@Hedda
Copy link
Contributor

Hedda commented Mar 6, 2020

@Koenkk Any chance that you could release Z-Stack 3.0.x router firmware files for CC253x (CC2530/CC2531) USB sticks/dongles?

https://github.com/Koenkk/Z-Stack-firmware/tree/master/router

That is, base a Zigbee router firmware for CC253x on Z-Stack 3 (3.0) instead of the older Z-Stack Home 1.2 stack?

http://www.ti.com/tool/Z-STACK-ARCHIVE

The reason is that that many users are now asking if it is possible to use cheap CC2530 and/or CC2531 hardware adapters as fully compliant Zigbee 3.0 router hardware in a Zigbee 3.0 network.

Main scenario I am personally thinking about that could great benifit the community is repurposing CC2530/CC2531 USB sticks/dongles that you already own when upgrading newer Zigbee coordinator hardware, plus the fact that CC2530/CC2531 USB sticks/dongles cost a lot less than newer Texas Instruments Zigbee coordinators if you want TI sticks as your Zigbee routers.

I know that a ZHA 1.2 router can already be used in Zigbee 3.0 networks, and I also understand that many (if not most) devices can run in ZHA 1.2 backwards-compatibility mode, but I believe that those Zigbee 1.2 routers are then limited to only route the ZHA 1.2 (Zigbee Home Automation) protocol/profile and not other Zigbee 3.0 and Zigbee PRO protocols/profiles (i.e. the full Zigbee 3.0 protocol stack), also known by their different "Zigbee Application Profiles" names.

Hence requesting capability to be a fully compliant Zigbee 3.0 router, inc. for protocols/profiles like:

  • Zigbee Home Automation (ZHA)
  • Zigbee Light Link (ZLL) 2.0
  • Zigbee Remote Control (ZRC) 2.0
  • Zigbee Building Automation (ZBA)
  • Zigbee Retail Services (ZRS)
  • Zigbee Health Care (ZHC)
  • Zigbee Telecommunication services (ZTS)

As you probably all already know, the new Zigbee 3.0 standard is a variation to previous Zigbee standards that are referred to as "Zigbee Application Profiles". The important outtake from this is that the Zigbee 3.0 specification enables interoperability among those different "Zigbee Application Profiles". Due to this, Zigbee 3.0 allows devices from different application areas to communicate and form single homogeneous network, including allowing Zigbee 3.0 devices to act as a router for other Zigbee 3.0 devices that are using a different "Zigbee Application Profile". For example, device#1 from Zigbee Light Link profile can coexist with device#2 from Zigbee Health Care profile with same Zigbee 3.0 network. Zigbee 3.0 provides backward compatibility with other Zigbee application profiles such as Zigbee Light Link 1.0 profile, Zigbee Home Automation 1.2 profile, etc. and more.

Is it even possible to use CC2530/CC2531 hardware as a Zigbee 3.0 router with TI Z-Stack 3 firmware?

I understand that CC253x based hardware is not recommended by Zigbee2mqtt developers to use as a Zigbee 3.0 coordinator hardware as the MCU in those chips might not be powerful enough to run the TI Z-Stack 3 coordinator firmware without performance-related issues. However, might not CC253x based hardware be good enough to in most cases be used as fully Zigbee 3.0 compliant router devices if they could run TI Z-Stack 3?

Could Z-Stack 3 (3.0.x / 3.x) router application firmware be compiled for CC253x based USB sticks/dongles?

https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator

That is, is it possible to compile TI Z-Stack 3.0 firmware with router application config instead of coordinator application config?

Koenkk/zigbee2mqtt#1445

@Hedda
Copy link
Contributor Author

Hedda commented Mar 6, 2020

Maybe the request should go to ptvo @ptvoinfo who looks to be credited for existing router firmware?

@ptvoinfo would it be possible to port your Zigbee Switch Configurable Firmware to TI Z-Stack 3.0.x?

That is, make your Zigbee Switch Configurable Firmware into a fully compliant Zigbee 3.0 solution?

@ptvoinfo
Copy link

ptvoinfo commented Apr 9, 2020

@Hedda There are no advantages of ZStack3 in home environments. Therefore I didn't plan to create a router firmware based on ZStack3.

@Hedda
Copy link
Contributor Author

Hedda commented Apr 9, 2020

I know that there were no real advantages before today as practically all devices sold for home use used either the ZHA 1.2 or ZLL 1.0 profiles and most devices that used the ZLL profile are also backwards-compliant with the ZHA 1.2 profile, but now more and more Zigbee devices are coming to market that is fully compliant with Zigbee 3.0 certified products and also newer Zigbee coordinator hardware/chips that are fully Zigbee 3.0 compatible.

https://zigbeealliance.org/product_type/certified_product/

I believe that from now on Zigbee Alliance only certify devices that are fully Zigbee 3.0 compliant(?)

@dzungpv
Copy link
Contributor

dzungpv commented Apr 13, 2020

It not possible, TI not update SDK for CC2530/2531/2538 devices to 3.x

@Hedda
Copy link
Contributor Author

Hedda commented Apr 14, 2020

@dzungpv it is too possible. You are right that TI will not officially release Z-Stack 3.0.x SDK for the older CC2530 and CC2531 chips but independent developers have already compiled and released inofficially backported Z-Stack 3.0.x firmware to CC2530 and CC2531 based devices:

https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator

Again it is true that @Koenkk is not recommending running CC2530 or CC2531 hardware as a Zigbee 3.0 coordinator in a production environment because of performance issues, but using Z-Stack 3.0.x firmware as a switch and router firmware on CC2530 and CC2531 hardware might not have the same performance issues are running Z-Stack 3.0.x coordinator firmware.

@dzungpv
Copy link
Contributor

dzungpv commented Apr 14, 2020

@dzungpv it is too possible. You are right that TI will not officially release Z-Stack 3.x SDK for older chips like CC2530/2531/2538 but independent developers have already inofficially backported Z-Stack 3.x firmware to older chips like CC2530/2531/2538 as you can see here:

https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator

Again it is true that @Koenkk is not recommending running CC2530/2531/2538 hardware as a Zigbee 3.0 coordinator in a production environment because of performance issues, but using Z-Stack 3.x firmware as a switch and router firmware on CC2530/2531/2538 hardware might not have the same performance issues are running Z-Stack 3.x coordinator firmware.

It is 3.0.x not 3.x. No dev could backport it, because it is close sourced both in firmware and asic level. You can read Readme in that respo. Simpler solution, just bought cc1352/cc2652 to use 3.x

@Hedda
Copy link
Contributor Author

Hedda commented Apr 14, 2020

OK my mistake typing 3.x when I meant 3.0.x to get Zigbee 3.0 router support on CC2530/2531/2538.

Only title was wrong saying 3.x instead 3.0.x but I think most other people understood what I meant.

Again, Koenkk does already provide Z-Stack 3.0.x based coordinator firmware for CC2530/2531/2538:

https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator

What what I am requesting here is matching Z-Stack 3.0.x based router firmware for CC2530/2531/2538

https://github.com/Koenkk/Z-Stack-firmware/tree/master/router

PS: Buying CC1352/CC2652 based hardware to use as Zigbee 3.0 routers make very little economic sense as they are still relatively expensive. The point here is that that CC2530/2531/2538 hardware is inexpensive and also many of us already own several of them, so if you buy a CC1352/CC2652 based hardware to upgrade your coordinator then you might want to repurpose all your CC2530/2531/2538 hardware as a routers.

@Hedda Hedda changed the title [REQUEST] Z-Stack 3.x router firmware for CC2530 and CC2531? [REQUEST] Z-Stack 3.0.x router firmware for CC2530 and CC2531? Apr 14, 2020
@fi-sch
Copy link

fi-sch commented Apr 16, 2020

I would be so glad if @ptvoinfo would make a router firmware for cheaper cc modules. I personally use a few of cc2530+cc2591 so it would be great to be able to use Z-Stack 3.0 as I add more and more devices to my network.

BTW, thanks for providing both firmwares and firmware configurator. That is so awesome!
Only one thing that I'm lacking is ConBee (deCONZ) support for inputs that I configure in firmware for my routers. Possibility to make DIY binary routers with sensors based on cheap cc modules would be so cool.

@Gamester17
Copy link
Contributor

Gamester17 commented May 25, 2020

FYI, @kirovilya have backported Z-Stack 3.0 (with Zigbee 3.0) support to CC2530 as a proof-of-concept:

He tested end device firmware on Sonoff BASICZBR3 and it also acts as a Zigbee 3.0 router device:

@kirovilya any chance you are willing to make a Z-Stack 3.0 router firmware for CC2530 and CC2531?

Just considering that you seem to be the only one who has made Z-Stack 3.0 run on CC253x or?

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Aug 11, 2020
@Hedda Hedda changed the title [REQUEST] Z-Stack 3.0.x router firmware for CC2530 and CC2531? [REQUEST] Z-Stack 3.0.x router firmware for CC2530 and CC2531 USB sticks/dongles? Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants