Atmel AVR2070 User Manual

Page of 93
 
40 
AVR2070 
8240B-AVR-06/09 
Table A-5-11. Association response (direct) 
R1  FCF – assoc rsp 
0x8C63 
Seq 
03 
PID 
0x1234 
R2 MAC addr 
0x5555444433332222 
R1 SA 
0x0003 
MAC 
02 
R2 SA 
0x0006 
 
R2 saves its parent's short address and its own short address. 
A.5.5 Example 5 – End node E2 connects to network 
This example shows an end node connecting to the network, through two routers R2 
and R1. 
E2 scans for routers, and selects R2 based on LQI/hops/RSSI. It then sends a direct 
association request. 
Table A-5-12. Association request (direct) 
E2  FCF –assoc req 
0xC863 
Seq 
05 
PID 
0x1234 
R2 SA 
0x0006 
E2 MAC addr 
0x8877665544332211 
MAC 
01 
Parent SA
0x0006 
 
R2 forwards the packet to R1, converting it to an “indirect association request”. 
Table A-5-13. Association request (indirect) 
R2 FCF 
assoc req 
0x8863 
Seq 
05 
PID 
0x1234 
R1 SA 
0x0003 
R2 SA 
0x0006
MAC 
01 
Par SA 
0x0006 
E2 MAC addr 
0x8877665544332211 
Type 
0x03 
 
R1 forwards the packet to C. 
Table A-5-14. Association request (indirect) 
R1 FCF 
assoc req 
0x8863 
Seq 
06 
PID 
0x1234 
C SA 
0x0000
R1 SA 
0x0003
MAC 
01 
Par SA 
0x0006 
E2 MAC addr 
0x8877665544332211 
Type 
0x03 
 
C assigns E2 a short address, add E2's SA and Parent SA to its table, sends a 
routing packet to E2, and then sends an association response to R1. 
Table A-5-15. Association response (indirect) 
C  FCF – assoc rsp 
0x8863 
Seq 
07 
PID 
0x1234 
R1 SA 
0x0003
C SA 
0x0000
MAC 
02 
Parent SA
0x0006 
E2 MAC ad 
0x88776... 
E2 SA 
0x0007 
 
R1 forwards the packet to R2. 
Table A-5-16. Association response (indirect) 
R1  FCF – assoc rsp 
0x8863 
Seq 
08 
PID 
0x1234 
R2 SA 
0x0006
R1 SA 
0x0003
MAC
02 
Par SA 
0x0006 
E2 MAC ad 
0x88776... 
E2 SA 
0x0007 
 
R2 notices that the new node's parent is R2, and sends a “direct association 
response” packet to E2, and stores E2's SA in its child table. 
Table A-5-17. Association response (direct) 
R2  FCF – assoc rsp 
0x8C63 
Seq 
09 
PID 
0x1234 
E2 MAC addr 
0x887766... 
R1 SA 
0x0003 
MAC 
02 
E2 SA 
0x0007