Discussion about Texas Instruments Z-Stack 3.0 and CC2652 and CC1352 Zigbee Coordinator adapters with openHAB ZigBee Binding

Update! A new “zstack” driver in development by leonschenk for Texas Instruments Z-Stack 3 dongles is now ready for testing if anyone to help test any CC2652 based adapter with openHAB’s ZigBee Binding:

Back-story; openHAB’s ZigBee Binding does not yet support new Zigbee Coordinator dongles/adapters based on Texas Instruments CC2652 or CC1352 with Z-Stack 3 (TI Z-Stack 3.x.x firmware) that other projects such as Zigbee2MQTT recommend because there is not yet driver for it in the open-source com.zsmartsystems.zigbee library which it depends on.

FYI @t-8ch started looking at rebasing com.zsmartsystems.zigbee zstack driver rewrite by @chris

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/1280

See feature request issue for tracking and more information:

PR #1226 is a first attemt to add Z-Stack 3 support for com.zsmartsystems.zigbee which in turn would add support in ZigBee Binding for all Texas Instruments Z-Stack 3.x based Zigbee Coordinators:

https://www.openhab.org/addons/bindings/zigbee/#supported-coordinators

https://github.com/openhab/org.openhab.binding.zigbee/issues/605

https://github.com/openhab/org.openhab.binding.zigbee/issues/649

Support for Texas Instruments Z-Stack 3.0 (Z-Stack 3.x) in the ZigBee Binding is of interest since inexpensive yet very powerful Texas Instruments CC2652P, CC2652R, CC2652RB, CC1352R and CC1352P SimpleLink MCU with 2.4 GHz based radio USB adapters with Zigbee 3.0 (Zigbee Coordinator) support are already widely available worldwide, easily competing with Silicon Labs EFR32 Series 2 USB adapters with equivalent microcontroller CPU performance and RAM-memory + Flash-Storage sizes (e.g. Silabs EFR32MG21 which suffer from the current chip shortage or postponed EFR32MG23/EFR32MG24 so out-of-stock almost everywhere).

https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/Z-Stack_3.x.0/bin/README.md

That is, if it is merged upstream it will allow adding TI Z-Stack 3.x to the ZigBee Binding for openHAB.

https://github.com/openhab/org.openhab.binding.zigbee/issues/605

https://github.com/openhab/org.openhab.binding.zigbee/issues/649

Note! In its current state end-user testing of branch is still very limited so it is still only for developers:

https://github.com/t-8ch/com.zsmartsystems.zigbee/tree/zstack_driver

I think support for this newer hardware is imported since long ago noted that many still recommend Zigbee adapters based on older CC2530/CC2531 chips for use with openHAB ZigBee Binding simply because they are inexpensive and easy to get a hold of, with CC253x chips being end-of-life and using unmaintained firmware from TI or are underpowered so can not control a bunch of Zigbee 3.0 devices in a larger Zigbee network.

PS: Firmware can easily be updated on these via USB without pressing BTL button by using Auto-BSL:

https://github.com/JelmerT/cc2538-bsl/

https://github.com/JelmerT/cc2538-bsl/pull/114

1 Like

A tip to developers is that ITead has their Sonoff branded CC2652P based USB dongle is back in stock:

https://community.openhab.org/t/sonoff-zigbee-3-0-usb-dongle-plus-by-itead-is-based-on-texas-instruments-cc2652p-can-now-be-ordered-for-10-99/126738

https://itead.cc/product/sonoff-zigbee-3-0-usb-dongle-plus/

It is the least inexpensive of available CC2652P adapters, however, note that it is probably not at good for development debugging as Electrolama ZZH CC2652R adapter or Slaesh CC2652RB development stick.

Recommend also buy their “1.5M USB Male to Female Extension Cable” to avoid EMF. See more tips:

https://community.openhab.org/t/sonoff-zigbee-3-0-usb-dongle-plus-by-itead-is-based-on-texas-instruments-cc2652p-can-be-pre-ordered-for-10-99/126738/16

PS: Zigbee developers will regardless also want an additional Silicon Labs EmberZNet NCP “Ember” adapter (Silabs EFR32MG13 or EFR32MG21) like Elelabs ELU013/ELR023, Popp ZB-Stick, or Itead’s Zigbee 3.0 USB Dongle as well for Zigbee sniffing:

https://github.com/zsmartsystems/com.zsmartsystems.zigbee.sniffer

https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html

Any news/updates on Z-Stack 3.0 Zigbee Coordinator driver support for openHAB ZigBee Binding?

Again, t-8ch had started looking at rebasing com.zsmartsystems.zigbee zstack driver rewrite by chris

and

4 Likes

Hi all,

I have continued the branch of @t-8ch. See my repository at GitHub - leonschenk/com.zsmartsystems.zigbee at zstack/initial. Please have a look.

For those who are interested. It would be great if other people will be joining the effort. I have tested this with my own Sonoff dongle and got it working.

Thank you

1 Like

@leonschenk That is awesome! And just to clarify, that new “zstack” driver will initially only add support for the newer the newer Z-Stack 3.x.0 Zigbee Coordinator firmware (used on the new C2652/CC1352 based adapters) and will at this time not even affect the existing “CC2531” driver for the older Z-Stack Home 1.2 firmware (used on the old CC253x/C2530/CC2531 based adapters) that use from Texas Instruments, is that correct?

@Hedda you are correct. I can only test with my Sonoff device at home.
It may also not have all capabilities people want.

1 Like

All people who want to can try the following version:
It has been developed on my machine using:

Please try it and notify me on any issues

(https://github.com/leonschenk/com.zsmartsystems.zigbee/releases/download/openhab-binding-3.4.0/openhab-binding-zigbee-3.4.0-SNAPSHOT.kar)

2 Likes

I guess that means that this new “zstack” should new driver should be a non-breaking change as the new driver does not at this point replace the “cc2531” driver but is instead available as an alternative?

The follow-up question to that is if this new “zstack” driver is also compatible with the Z-Stack Home 1.2 API/CLI so that it still has backwards compatibility with older CC2530 and CC2531 Zigbee Coordinator adapters flashed with the Z-Stack Home 1.2 firmware that is no longer being updated/maintained?

Have you done any testing “zstack” driver testing using CC253x adapter(s) with Z-Stack Home 1.2 FW?

And the follow-up question to that is if that means if the “CC2531” driver in com.zsmartsystems.zigbee could eventually be removed and perhaps even be replaced seamlessly via a redirect to the new “zstack” driver?

By the way, also noticed that your pull request #1352 for the com.zsmartsystems.zigbee library which openHAB’s ZigBee Binding depends on is now ready to be reviewed and possibly merger soon. Nice!

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/1352#issuecomment-1316681112

Hello everyone, I was wondering if the support of CC2652 chip in the Zigbee binding was progressing (sorry I’m not really able to help for the development) and if you thought it would one day support this zigbee dongle : SMLIGHT SLZB-06.

I am happy to test and provide feedback if it can help the developers.

Thanks,

Unfortunately no, there does not look to have been any public updates since February 2023. See:

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/1352

and

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/1280

You can still test it and report anything that seems to have been broken or do not work dorrectly.

Probably the version from November will not work any more - unless you use an old version of OH as well.

No updates from @leonschenk or @t-8ch in PR 1352 or 1280 for com.zsmartsystems.zigbee?

Any chance someone elese here would be willing in taking over those and update to get them merged?