Техническая Спецификация для Atmel ATSAM3S-EK2

Скачать
Страница из 71
 
 
Atmel AVR2055 
 
 
 
 
15
 
8348D-AVR-06/12 
BitCloud Profile Suite includes an implementation of an OTA upgrade cluster as 
defined i
 (rev 12). A demonstration of the OTA upgrade mechanism has been 
integrated into all SE applications, which can be upgraded over the air with a new 
application  image from a specially-configured ESP device. The configuration steps 
and procedure for exercising OTA cluster functionality for SE applications is 
described in Section 
. 
4.2 Compile-time configuration 
At compile-time, each application can be easily configured by modifying the 
configuration.h
  header file located in the 
./Applications/Profiles/SEDevice 
folder.  This file can  also be accessed through  the 
Configuration
  folder inside the 
IAR workspace. 
configuration.h
 defines a number of important parameters used by the application 
at runtime. Additionally, the 
appSecurity.h
  file provides all the  security-related 
definitions. 
 describes parameters of particular interest to the user. Note that 
parameters starting with 
APP_
  are application specific (defined only in reference 
applications), while those starting with 
CS_
 are stack-level parameters implemented in 
the ConfigServer component. 
Table 4-2. Key parameters and their meanings. 
Parameter 
Meaning 
APP_DEVICE_TYPE_<> 
The device type for which a reference 
application is to be compiled 
CS_UID 
The device’s extended address (also, 
IEEE MAC address). Assigned to device-
specific value in 
appConsts.h  
CS_APS_TRUST_CENTER_ADDRESS 
The trust center address. Usually set to 
ESP’s extended address. If using a third 
party ESP, set this parameter to the 
ESP’s extended address 
CS_CHANNEL_MASK 
The channel mask. Modify this 
parameter for the device to operate on a 
different channel 
CS_NETWORK_KEY 
The network key. Setting it to 0 means 
the network key is unknown and will be 
acquired through a secure join and 
authentication procedure at runtime 
METER_LINK_KEY 
The link key a Meter device uses to talk 
to ESP. Defined in 
appSecurity.h and 
installed at runtime 
DISPLAY_LINK_KEY 
The link key a Display device uses to talk 
to ESP. Defined in 
appSecurity.h 
and installed at runtime 
THERMOSTAT_LINK_KEY 
The link key a Thermostat device uses to 
talk to ESP. Defined in 
appSecurity.h 
and installed at runtime 
APP_<device>_ICERT_PUBLIC_KEY 
The implicit certificate public key used by 
<device>. Used by the Key 
Establishment cluster and Certicom 
library. Defined in 
appSecurity.h and 
installed at runtime