Atmel ATSAM3S-EK2 データシート

ページ / 71
 
 
 
 
 
22 
Atmel AVR2055 
 
 
8348D-AVR-06/12 
time = <time> 
 
At the 
startTime
  received in  the  Load  Control Event  command, the application 
sends a Report Event Status command to ESP with status Started. And finally, after 
the 
durationInMinutes
  expires,  a  Report Event Status command with status 
Completed is sent. 
On successful transmission of the  Report Event Status  command, 
reportEventStatusResponse()
  callback is invoked,  and the following  message is 
output to the UART: 
+Report Event Response Status (<status>) 
 
Every 180 seconds,  when 
thermostatDrlcTimer
  fires,  a  Get Scheduled Events 
command is transmitted to the  ESP without any response. On successful 
transmission, 
getScheduledEventsRequestResponse()
 callback is invoked, and the 
following message is sent to the UART: 
+Get Scheduled Events Request Response Status (<status>) 
4.9 Energy Service Portal (ESP) 
The Energy Service Portal application makes use of the following clusters: 
Table 4-10. ESP application in/out clusters. 
In clusters (server clusters) 
Out clusters (client clusters) 
Messaging 
Demand response and load control 
Time 
Price 
OTAU (when enabled) 
Key establishment (when enabled) 
Metering 
 
  shows how the device application, in its default configuration, interacts 
with each of the clusters it registered. 
Table 4-11. ESP application cluster interactions. 
Cluster 
Requests/response and indication 
callback 
Remarks 
Messaging 
ZCL_CommandReq() -> 
displayMessageResp() 
 
Demand response and load control 
ZCL_CommandReq() -> 
loadControlEventResp() 
reportEventStatusInd() 
getScheduledEventsInd() 
 
Time 
ZCL_WriteAttributeValue() 
Writes time attribute 
Price 
ZCL_CommandReq() -> 
publishPriceResponse() 
getCurrentPriceInd() 
 
Metering 
ZCL_AttributeReq() -> 
ZCL_ReadAttributeResp() 
ZCL_ReportInd() 
ZCL_AttributeReq() gets current 
summation delivered attribute