After my last post (here) I kind of gave up on my project of creating a custom ZLL device to control with the Hue. It was to time consuming and there was no real progress. Until yesterday.
I knew I needed a certain master key to get the NXP ZLL sample code to connect to my Hue. Some unsuccessful-fiddling with this key later, I compared my binary with the dump from the last post and noticed the keys were in a very different place. With a few searches through the sources I found the field sMasterKey. With the key defined here, it was pretty much in the same place as in the dump. Et voila! The Mesh Bee with custom firmware connects to my Hue.
This proves my project is viable, so this morning I ordered the Beyond Debug Key to make my life a little more easy!
To be continued!
I’ve been receiving some questions regarding the keys I used, here is some explanation:
There are two keys used in the Zigbee protocol, one for the Home Automation- and one for the Light Link Profile. The HA (trust center link key) key is used for classical Zigbee commissioning and allows the device to join non Light Link networks. The other key is the light link master key, this key is used to decrypt the network key during the touchlink phase and allows the device to connect to the network.
The Default Trust Center Link Key is public: ZigBeeAlliance09 (5A 69 67 42 65 65 41 6C 6C 69 61 6E 63 65 30 39)
The other one, the Light Link master Key is easily found : source 1, source 2, many other sources
The complete use of these keys is explained in full detail in the ZigBee Light Link Standard.
My project has been on hold for some time and I’ve been having trouble with my Mesh Bee’s. The Bee’s are showing inconsistent behavior, and I believe it is hardware related. So, last week I got some JN5168 modules and now I’m waiting for the breakout boards. I hope to update the blog with some actual working examples soon!
Last week I succeeded in creating a custom ZLL device (2 actually, RGB and Monochrome). Read all about how you can connect your Mesh Bee to your Hue here: Custom firmware Hue lights.