
DocID026814 Rev 1
49/52
UM1811
Basic G3 operations
52
10.5
ADP layer data exchange
To be able to execute an ADP command, the Node 1 and 2 working modes need to be set to
the ADP mode, as explained in
.
To be able to send data at the ADP level, the macPANId and macShortAddress attributes
need to be configured for both nodes as in the MAC layer scenario (
The 6LoWPAN layer uses data encryption by default; so the MAC layer of the two nodes
needs to be configured with the same security keys.
In this scenario, the following key is used: [AF4D6DCCF14DE7C1C4235E6FEF6C151F],
as show in
. To configure it, go into the MAC / MLME_IB menu (1). In the list of
attributes for the set command, select the attribute macKeyTable (2). Then, enter the
security key in the Text area (3), leave the Index set to 0 and click on the MLME-
SET.Request button (4).
Figure 41. Configure Node 1 GMK
The same sequence needs to be repeated for the Node 2.
Once the security key has been configured for both nodes, data can be sent at the ADP
layer. The ADPD-DATA.Request command is available in the ADP root panel. No
destination PANId/macShortAddress needs to be entered at the ADP level, as the message
is an IPv6 packet that already contains the source and destination addresses. The IPv6
packet must be correctly formatted to perform the data exchange.
As a reference, the following is a working configuration for this test scenario, shown in
:
Node 1
–
Short address: 002A
–
PANId: 781D
–
Key entry : AF4D6DCCF14DE7C1C4235E6FEF6C151F