Home/Support/Support Forum/What are the kind of informations inside the NI part of a AT response?

What are the kind of informations inside the NI part of a AT response?

0 votes
I'm trying to discover devices, from a coordinator, in my network.
So I sent an ND command to the coordinator and I'm correctly receiving response from other Xbee.

The next step will be to store the information I've received in a web application, in oder to send commands and data.

However, what I'm still missing is some parts in the frame respose. So far I've mapped the frame like this:

==== =================== HEADER
1 7E start frame
===== =================== MESSAGE LENGHT
2-3 0x00 0x19 -> 25
===== =================== PACKET TYPE
4 88 -> response to a remote AT command
5 02 frame ID
===== =================== AT COMMAND
6-7 0x4E 0x44 "ND"
8 00 status byte (00 -> OK)
===== =================== PARAMETER VALUE
===== =================== MY - Remote Address
9-10 0x17 0x85
===== =================== SH - SERIAL NUMBER HIGH
11-14 0x00 0x13 0xA2 0x00
===== =================== SL - SERIAL NUMBER LOW
15-18 0x40 0xB4 0x50 0x23
===== =================== SIGNAL
19 20
= ======== NI - Node Identifier
20 00
21 FF
22 FE
23 01
24 00
25 C1
26 05
27 10
28 1E
===== ===== CHECKSUM (25th bytes from MESSAGE LENGHT)
29 19


But I can't figure out what kind of informations are displayed form Node Identifier and the checksum byte.
asked Oct 31, 2014 in XBee Programmable Development by mfcava New to the Community (2 points)

Please log in or register to answer this question.

1 Answer

+1 vote
 
Best answer
Do you have a value stored for the NI? From the looks of it you don't.
The full response would be broken up as fallows:

SH<CR>

SL<CR>

NI<CR> (Variable length)

PARENT_NETWORK ADDRESS (2 Bytes)<CR>

DEVICE_TYPE<CR> (1 Byte: 0=Coord, 1=Router, 2=End Device)

STATUS<CR> (1 Byte: Reserved)

PROFILE_ID<CR> (2 Bytes)

MANUFACTURER_ID<CR> (2 Bytes
answered Oct 31, 2014 by mvut Veteran of the Digi Community (12,657 points)
selected Oct 31, 2014 by mfcava
So, If I've understand correctly (from the response I've received)

00  --- Node Identifier variable, (here 1 byte = 00 because no value is set up).
FFFE --- parent network address (bytes)
01 --- device type  
00 --- status
C105 --- profile id
101E --- manufacturing id

So, in this last part of the frame, no information about address of the device are given and the only information are the SL and SH.
Is it correct?
That is correct.
...