Техническая Спецификация для Atmel ATSAM3S-EK2
20
Atmel AVR2055
8348D-AVR-06/12
Message timeout (<id>)
Display will confirm a Display Message command by sending a Confirm Message
command if the confirmation is required. When this command is sent, the following
message is output to the UART:
->Confirm message:
Message ID: <id>
Message ID: <id>
4.7.2 Getting and publishing price
Every 60 seconds, when
displayGetCurrentPriceTimer
fires, the application sends
the Get Current Price command to get the value of current price stored in the Price
cluster on the ESP. When this happens, the application outputs:
->Get Current Price
On successful transmission,
getCurrentPriceResponse()
callback is invoked, and
the following message is sent to the UART:
+Get Current Price Response Status (<status>)
When the ESP receives Get Current Price command it sends a Publish Price
command to the display. Whenever such command is received
publishPriceInd()
callback is invoked on the Display, and the following message is sent to the UART:
<-Publish Price
Provider id: <id>
Rate Label: <label>
Current Time: <time>
Unit Of Measure: <unit>
Price <price> USD
Start Time: <start time> 0 - means now
Duration in minutes: <time>, 0xFFFF – means until next change
Provider id: <id>
Rate Label: <label>
Current Time: <time>
Unit Of Measure: <unit>
Price <price> USD
Start Time: <start time> 0 - means now
Duration in minutes: <time>, 0xFFFF – means until next change
4.7.3 Interaction with the Meter
When an attribute report is received from the Meter, the Display outputs:
<-Attribute Report:
t = <value>
t = <value>
Every 15 seconds, when
displayGetMeterDataTimer
fires, the application invokes
ZCL_AttributeReq()
to send a Read Attribute command to Meter (see Section
to read the current value of the Current Summation Delivered attribute in the Metering
cluster. The output is:
->Simple Metering: read attr
4.7.4 Time
Every 15 seconds, when
displayReadTimeTimer
fires, the application invokes
ZCL_AttributeReq()
to read the current value of the Time attribute stored in the
Time cluster on the ESP device (see Section
). When this happens, the application
outputs:
->Time: read attribute