Software Programming Referenc
silabs.com | Building a more connected world. Page 3
R
R
S
S
9
9
1
1
1
1
3
3
Z
Z
i
i
g
g
B
B
e
e
e
e
S
S
a
a
m
m
p
p
l
l
e
e
A
A
p
p
p
p
U
U
s
s
e
e
r
r
G
G
u
u
i
i
d
d
e
e
V
V
e
e
r
r
s
s
i
i
o
o
n
n
1
1
.
.
7
7
.
.
9
9
Table of Contents
RS9113 ZigBee Sample App ................................................................................................. 1
1 ZigBee Sample Application Overview ........................................................................... 6
1.1 Architecture ...................................................................................................................... 6
1.2 Application source code contents ..................................................................................... 7
1.2.1 Reference Project .................................................................................................................... 7
1.2.2 Reference API’s ....................................................................................................................... 7
1.2.3 Reference Driver ..................................................................................................................... 8
1.3 Prerequisites to run the sample application ..................................................................... 9
1.4 Operating Mode ................................................................................................................ 9
1.5 Building the ZigBee API’s along with sample application .................................................. 9
1.5.1 Compiling Application .............................................................................................................. 9
1.5.2 Compiling Driver ...................................................................................................................... 9
1.6 Execute ZigBee sample application ................................................................................. 11
1.6.1 Installing Driver ..................................................................................................................... 12
1.6.2 Running Application .............................................................................................................. 12
1.6.2.1 For USB/SPI interface ......................................................................................................... 12
1.6.2.2 For UART/USB-CDC ............................................................................................................ 12
1.7 Application State machine states .................................................................................... 13
1.8 Event callbacks ................................................................................................................ 15
1.9 Functionality of sample application for End device ......................................................... 16
1.9.1 Simple Descriptor .................................................................................................................. 16
1.9.2 Scan ...................................................................................................................................... 17
1.9.3 Network Information ............................................................................................................. 17
1.9.4 Match descriptor ................................................................................................................... 17
1.9.5 Data ...................................................................................................................................... 18
1.10 Functionality of sample application for Router ........................................................... 18
1.10.1 Scan ...................................................................................................................................... 18
1.10.2 Network Information ............................................................................................................. 18
1.10.3 Permit Join ............................................................................................................................ 19
1.10.4 Event Callbacks ...................................................................................................................... 19
1.11 Test Setup for Router .................................................................................................. 19
1.12 Functionality of sample application for coordinator .................................................... 20
1.12.1 Form Network ....................................................................................................................... 20
1.12.2 Permit Join ............................................................................................................................ 20
1.12.3 Energy scan ........................................................................................................................... 21
1.12.4 AppEnergyScanResultResp..................................................................................................... 21
1.13 Test Setup for Coordinator .......................................................................................... 21
1.13.1 Screenshot for RS9113 association to the coordinator ........................................................... 23
1.13.2 Screenshot for RS9113 sending Toggle command to the Coordinator ..................................... 24
2 HAL Porting Instructions ............................................................................................. 25
2.1 Frame write..................................................................................................................... 25
2.2 Frame Read ..................................................................................................................... 25
3 Test Mode .................................................................................................................. 27
3.1 Test Application source code .......................................................................................... 27
3.1.1 Reference Project: ................................................................................................................. 27