Atmel ATSAM3S-EK2 データシート
![Atmel](https://files.manualsbrain.com/attachments/0369829915bda09f9c2e00fb805a7753579683b5/common/fit/150/50/8d2bf08978ec3e5bc63f4343ac5e91ce8d0e40045619fa520d910d64af8f/brand_logo.png)
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 in
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 in
Table 4-4. Meter application in/out clusters.
In clusters (server clusters)
Out clusters (client clusters)
Basic
Metering
Metering
OTAU (when enabled)
Key establishment (when enabled)
Key establishment (when enabled)
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
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
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)
};
{
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
ESP and Displays periodically read the Current Summation Delivered attribute
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: