Atmel ATSAM3S-EK2 データシート

ページ / 71
 
 
 
 
 
18 
Atmel AVR2055 
 
 
8348D-AVR-06/12 
In addition to terminal output, the applications provide LED indications described for 
each platform in the sections referenced i
. 
4.5 Endpoints 
All Smart Energy reference applications, except integrated ESP and Meter, register 
two endpoints. Device-specific clusters reside on the first endpoint, while the second 
endpoint  carries service clusters such as Basic, OTAU, and Key Establishment 
clusters. 
4.6 Meter 
The Meter reference application makes use of the clusters shown i
. 
Table 4-4. Meter application in/out clusters. 
In clusters (server clusters) 
Out clusters (client clusters) 
Basic 
Metering 
OTAU (when enabled) 
Key establishment (when enabled) 
 shows how the device application, in its default configuration, interacts with 
each of the clusters it registered. 
Table 4-5. Meter application cluster interaction. 
Cluster 
Request/response and indication 
callbacks 
Remarks 
Metering 
ZCL_WriteAttributeValue() 
Used to update attribute value 
appAttributeEventInd() 
Indicates remote access to cluster’s attributes 
After initialization of stack parameters, the application attempts to enter the network 
using the association procedure. 
On startup the application sets the Current Summation Delivered attribute (Metering 
cluster). The attribute is not changing after that. 
Likewise, every four seconds, the application reports to the ESP device the value of 
the Current Summation Delivered attribute through the ZCL internal functionality. The 
interval is set to 4 seconds in the macro defining meter attributes’ instance:  
static SimpleMeteringServerClusterAttributes_t meterAttributes = 

  DEFINE_SIMPLE_METERING_SERVER_ATTRIBUTES(4, 4) 
}; 
The  Current Summation Delivered  attribute is configured as “reportable” through a 
sequence of special ZCL macros. 
NOTE 
The reporting transactions themselves are completely transparent to the application. 
ESP  and Displays periodically read the  Current Summation Delivered attribute 
remotely from the Meter (see Section 
 for more details). Upon such event, Meter 
outputs the following message to the UART: 
The Attribute (0x0) on cluster (0x702) has been read
.
 
4.7 In-Premise Display (IPD) 
The Display reference application makes use of the following clusters: