Skip to content

Commit fec6047

Browse files
authored
Add outline ZLL Commissioning definition (#1446)
Signed-off-by: Chris Jackson <[email protected]>
1 parent 22af9f8 commit fec6047

File tree

4 files changed

+73
-2
lines changed

4 files changed

+73
-2
lines changed

com.zsmartsystems.zigbee.autocode/src/main/java/com/zsmartsystems/zigbee/autocode/ZigBeeCodeGenerator.java

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public static void main(final String[] args) {
110110
zclParser.addFile("src/main/resources/0B04_ElectricalMeasurement.xml");
111111
zclParser.addFile("src/main/resources/0B05_Diagnostics.xml");
112112

113+
zclParser.addFile("src/main/resources/1000_ZllCommissioning.xml");
114+
113115
List<ZigBeeXmlCluster> zclClusters = zclParser.parseClusterConfiguration();
114116

115117
ZigBeeXmlParser zdoParser = new ZigBeeXmlParser();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:noNamespaceSchemaLocation="zigbee-description.xsd" code="0x1000">
3+
<name>Light Link Commissioning</name>
4+
<description>Cluster used for commissioning ZLL devices, including touchlinking and network management.</description>
5+
</cluster>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* Copyright (c) 2016-2024 by the respective copyright holders.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*/
8+
package com.zsmartsystems.zigbee.zcl.clusters;
9+
10+
import java.util.Map;
11+
import java.util.concurrent.ConcurrentSkipListMap;
12+
13+
import javax.annotation.Generated;
14+
15+
import com.zsmartsystems.zigbee.ZigBeeEndpoint;
16+
import com.zsmartsystems.zigbee.zcl.ZclAttribute;
17+
import com.zsmartsystems.zigbee.zcl.ZclCluster;
18+
19+
/**
20+
* <b>Light Link Commissioning</b> cluster implementation (<i>Cluster ID 0x1000</i>).
21+
* <p>
22+
* Cluster used for commissioning ZLL devices, including touchlinking and network
23+
* management.
24+
* <p>
25+
* Code is auto-generated. Modifications may be overwritten!
26+
*/
27+
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-11-19T22:12:16Z")
28+
public class ZclLightLinkCommissioningCluster extends ZclCluster {
29+
/**
30+
* The ZigBee Cluster Library Cluster ID
31+
*/
32+
public static final int CLUSTER_ID = 0x1000;
33+
34+
/**
35+
* The ZigBee Cluster Library Cluster Name
36+
*/
37+
public static final String CLUSTER_NAME = "Light Link Commissioning";
38+
39+
@Override
40+
protected Map<Integer, ZclAttribute> initializeClientAttributes() {
41+
Map<Integer, ZclAttribute> attributeMap = super.initializeClientAttributes();
42+
43+
return attributeMap;
44+
}
45+
46+
@Override
47+
protected Map<Integer, ZclAttribute> initializeServerAttributes() {
48+
Map<Integer, ZclAttribute> attributeMap = super.initializeServerAttributes();
49+
50+
return attributeMap;
51+
}
52+
53+
54+
/**
55+
* Default constructor to create a Light Link Commissioning cluster.
56+
*
57+
* @param zigbeeEndpoint the {@link ZigBeeEndpoint} this cluster is contained within
58+
*/
59+
public ZclLightLinkCommissioningCluster(final ZigBeeEndpoint zigbeeEndpoint) {
60+
super(zigbeeEndpoint, CLUSTER_ID, CLUSTER_NAME);
61+
}
62+
}

com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/protocol/ZclClusterType.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import com.zsmartsystems.zigbee.zcl.clusters.ZclKeyEstablishmentCluster;
4242
import com.zsmartsystems.zigbee.zcl.clusters.ZclLeafWetnessMeasurementCluster;
4343
import com.zsmartsystems.zigbee.zcl.clusters.ZclLevelControlCluster;
44+
import com.zsmartsystems.zigbee.zcl.clusters.ZclLightLinkCommissioningCluster;
4445
import com.zsmartsystems.zigbee.zcl.clusters.ZclMessagingCluster;
4546
import com.zsmartsystems.zigbee.zcl.clusters.ZclMeterIdentificationCluster;
4647
import com.zsmartsystems.zigbee.zcl.clusters.ZclMeteringCluster;
@@ -75,7 +76,7 @@
7576
*
7677
* @author Chris Jackson
7778
*/
78-
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-07-16T22:58:38Z")
79+
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-11-19T22:12:16Z")
7980
public enum ZclClusterType {
8081
BASIC(0x0000, ZclBasicCluster.class, "Basic"),
8182
POWER_CONFIGURATION(0x0001, ZclPowerConfigurationCluster.class, "Power Configuration"),
@@ -130,7 +131,8 @@ public enum ZclClusterType {
130131
KEY_ESTABLISHMENT(0x0800, ZclKeyEstablishmentCluster.class, "Key Establishment"),
131132
METER_IDENTIFICATION(0x0B01, ZclMeterIdentificationCluster.class, "Meter Identification"),
132133
ELECTRICAL_MEASUREMENT(0x0B04, ZclElectricalMeasurementCluster.class, "Electrical Measurement"),
133-
DIAGNOSTICS(0x0B05, ZclDiagnosticsCluster.class, "Diagnostics");
134+
DIAGNOSTICS(0x0B05, ZclDiagnosticsCluster.class, "Diagnostics"),
135+
LIGHT_LINK_COMMISSIONING(0x1000, ZclLightLinkCommissioningCluster.class, "Light Link Commissioning");
134136

135137
private static final Map<Integer, ZclClusterType> idValueMap = new ConcurrentHashMap<>();
136138

0 commit comments

Comments
 (0)