Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Support Z-Stack 2.6.x firmware #16

Merged
merged 9 commits into from
Mar 21, 2015
Merged

Support Z-Stack 2.6.x firmware #16

merged 9 commits into from
Mar 21, 2015

Conversation

presslab-us
Copy link
Contributor

The new versions of Z-Stack firmware do not work with zigbee4java. This is because the firmware does not support the ZDO_xxx_RSP commands. This code translates from the ZDO_MSG_CB_INCOMING command to the ZDO_xxx_RSP commands. It also fixes a few other problems that were exposed when using the new firmware.

Tested with the Z-Stack 2.6.2 ZNP firmware CC2531ZNP-Pro-Secure_Standard.hex that is bundled with Z-Stack Home 1.2.2. Support for the older firmware remains.

The new versions of Z-Stack firmware do not support the ZDO_xxx_RSP commands.
This adds a translater for ZDO_MSG_CB_INCOMING to create ZDO_xxx_RSP packets
based on the cluster ID.  Tested with the Z-Stack 2.6.2 ZNP firmware that is
bundled with Z-Stack Home 1.2.2.
Some devices have extra bytes on the end of AF_INCOMING_MSG packets.  Use the
length specified in the packet to define the size of the data, rather than the
total packet length.  This fixes a problem with attribute subscriptions.
The format of ZDO_MGMT_PERMIT_JOIN_REQ has changed in the new firmware.
Add the AddrMode field to specify the address type.
The firmware CC2531ZNP-Pro-Secure_LinkKeyJoin.hex uses the TC_LINKKEY_JOIN
build parameter.  This feature adds Trust Center Link Key encryption to
the device join phase.  Without this the network key can be sniffed
whenever a device joins.
@presslab-us
Copy link
Contributor Author

I have just added support for the CC2531ZNP-Pro-Secure_LinkKeyJoin.hex firmware.

The default timeout of 1 second is not long enough when over 12
devices are added to the network, and will occasionally time out
on startup.
@tlaukkan tlaukkan merged commit 08646d3 into tlaukkan:master Mar 21, 2015
@tlaukkan tlaukkan added this to the 2.0.1 milestone Mar 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants