Техническая Спецификация для Atmel ATSAM3S-EK2
Atmel AVR2055
29
8348D-AVR-06/12
6 Building automation reference applications
Commercial Building Automation (BA) reference applications are provided in the form
of Python scripts, which execute in the Runner environment on the PC (see Section
6.1 Building Automation devices
implemented as part of the reference applications supplied with BitCloud PS.
Table 6-1. Reference ZigBee Building Automation devices.
Table 6-1. Reference ZigBee Building Automation devices.
Device
Description
BACNet Tunneled Device
BACNet Tunneled device is a flexible device type
available to represent devices that offer BACNet
functionality over the Generic Tunnel and BACNet
Protocol Tunnel clusters.
Detailed specifications for these and other BA devices can be found in ZigBee
6.2 Running the demo
for references to hardware-specific programming instructions). For further
convenience, the user may select to pre-configure the COM ports and the channel
mask used by the application, as follows:
1. Connect the boards to the PC and check
1. Connect the boards to the PC and check
Start > Control Panel > System >
Hardware > Device Manager
for the assigned COM ports
2. Open the
wsnrunner.property
file in the
C:\Documents and
Settings\<account name>\.config
directory
3. Add the line
nodes=COM:COM<X>,COM:COM<Y>
to the file, where
<X>
and
<Y>
are
corresponding COM ports for the connected boards
4. Add the line
var.chmask=1L<<0x0F
to the file to run the applications on channel
0x0F
The Runner application must first be configured with the host application’s specific
parameters required for the actual host application to run. Configure one device as
the coordinator and the other as a router, as follows:
1. Change to the
1. Change to the
./Evaluation Tools/Runner/scripts/CBAscripts/
directory
where the BA scripts are located
2. From the command line, run:
runner.exe start_coordinator.py
3. From the command line, run:
runner.exe start_router.py
The scripts set common ZigBee parameters (for example, extended address, device
role, channel mask), security information (for example, trust center address and link
key, and network address), and then start ZCL and issue APS bind requests for all
the clusters defined by the host application.
NOTE
The COM ports will be selected automatically based on the
nodes
parameter in the
wsnrunner.properties
file.