AG Electronica XBee 2 Series Manual page 29

Table of Contents

Advertisement

www.agelectronica.com
XBee Series 2 ZigBee OEM RF Modules v1.x2x [2007.07.019]
www.agelectronica.com
64-bit Addressing (API)
To send a packet to an RF module using its 64-bit Address (API Mode)
Use the ZigBee Transmit Request API frame to set 64-bit destination address of the source
node to match the 64-bit Address (SH (Serial Number High) and SL (Serial Number Low)
parameters) of the destination node.
If the 16-bit address of the destination node is not known, set 16-bit destination network
address to 0xFFFE (refer to the 'API Addressing section below).
To send an API transmission to a Coordinator using its 16-bit network address:)
Set the 64-bit Destination Address field to all 0's.
API Mode provides the ability to store and maintain 16-bit network address tables on an external
processor. The 16-bit network address information is provided to the application through the
following:
• The ZigBee Transmit Status Frame
(contains the current 16-bit network address of the remote)
• The ND and DN commands
(return 64-bit and 16-bit network addresses of remote nodes)
With this information, a table can be built in an application that maps a 64-bit Address to the
corresponding 16-bit network address.
The ZigBee Transmit Request API frame specifies the 64-bit Address and the network address (if
known) that the packet should be sent to. By supplying both addresses, the module will forego
network address Discovery and immediately attempt to route the data packet to the remote. If the
network address of a particular remote changes, network address and route discovery will take
place to establish a new route to the correct node. Upon successful packet delivery, the TX Status
Frame will indicate the correct network address of the remote.
Table 4‐02. Sample table mapping 64‐bit Addresses to 16‐bit Network Addresses
Index
64-bit Address
0
0013 4000 4000 0001
1
0013 4000 4000 0002
2
0013 4000 4000 01A0
3
0013 4000 4000 0220
NI-String Addressing
The NI string can alternatively be used to address a remote module.
To send a packet to an RF module using its NI-string (Transparent Mode)
Issue the DN (Destination Node) command using the NI (Node Identifier)-string of the destina-
tion node as the parameter.
To send a packet to an RF module using its NI-string (API Mode)
Issue the DN command as stated above using the AT Command API frame.
When the DN command is issued, a broadcast transmission is sent across the network to discover
the module that has a matching NI (Node Identifier) parameter. If a module is discovered with a
matching NI-string, the DH and DL parameters will be configured to address the destination node
and the command will return both the 64-bit Address and the 16-bit network address of the
discovered node. Data can be transmitted after the DN (Destination Node) command finishes.
the AO command. See "API Frames" section for details.
Coordinator Addressing
A Coordinator can be addressed using its 64-bit address or NI string as described in the "NI-String
Addressing" section. Alternatively, since the ZigBee Coordinator has a network address of "0", it
can be addressed by its 16-bit network address.
© 2007 Digi International, Inc.
Chapter 4 ‐ RF Module Configuration
16-bit Network Address
1234
5678
A479
1F70
www.agelectronica.com
     28
www.agelectronica.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xb24-buit-004

Table of Contents