AT commands
Networking and security commands
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
81
KY (AES Encryption Key)
Sets the 128-bit network security key value that the device uses for encryption and decryption.
This command is write-only. If you attempt to read
KY
, the device returns an
OK
status.
Set this command parameter the same on all devices in a network.
The entire payload of the packet is encrypted using the key and the CRC is computed across the
ciphertext.
Parameter range
128-bit value (up to 16 bytes)
Default
0
NI (Node Identifier)
Stores the node identifier string for a device, which is a user-defined name or description of the
device. This can be up to 20 ASCII characters.
n
XCTU prevents you from exceeding the string limit of 20 characters for this command. If you
are using another software application to send the string, you can enter longer strings, but the
software on the device returns an error.
Use the
ND
(Network Discovery) command with this string as an argument to easily identify devices
on the network.
The
DN
command also uses this identifier.
Parameter range
A string of case-sensitive ASCII printable characters from 1 to 20 bytes in length. The string cannot
start with the space character. A carriage return or a comma automatically ends the command.
Default
0x20 (an ASCII space character)
NP (Maximum Packet Payload Bytes)
Reads the maximum number of RF payload bytes that you can send in a transmission.
NP
is based on multiple factors including the length of the source address, the length of the
destination address, the length of the APP header, and whether or not encryption is enabled.
For the purposes of this command, it always assumes a long destination address. This means that if
you select a short destination address, you will be able to send up to
NP
+ 6 bytes in a single packet.
Note
NP
returns a hexadecimal value. For example, if
NP
returns 0x66, this is equivalent to 102 bytes.
Parameter range
0 - 0xFFFF (bytes) [read-only]
Default
N/A