Howto Xbee API command

I am trying to understand the how to construct api commands
I have 2 type 1 radios configured with api 2
Remote unit has address 13A200 405C420C
I want to check the status of D1 on the remote unit
Using assemble packet of XCTU to send this line
7E 00 0F 17 01 00 7D 33 A2 00 40 5C 42 0C FF FE 00 44 31 D2
I just get no response

Richard

have u checked that the both modules have the same channel and pan id?

The MAC address you provided in the text and the one appearing in the API string do not match. Your mac starts with 13 but you used 33… That might be the reason…

Sorry bout that
It was a bad checksum
Should be D6

Richard

You wouldn’t have been able to use my packet-check program to solve this one because I had never told it how to understand escape sequences. Spurred on by your post, I’ve now added that capability and the current version is now 0.5.

Here’s how the new version of the program decodes your original packet. Note that to tell it to convert escape sequences it’s necessary to add “-api2” as a command line argument.

[john@eccles ~]$ packet-check -api2
API Packet analyzer version 0.5 for Series 1 XBee
Enter packet: 7E 00 0F 17 01 00 7D 33 A2 00 40 5C 42 0C FF FE 00 44 31 D2
Packet: 7E 00 0F 17 01 00 7D 33 A2 00 40 5C 42 0C FF FE 00 44 31 D2
Found an escape character

Packet: 7E 00 0F 17 01 00 13 A2 00 40 5C 42 0C FF FE 00 44 31 D2
7E // Correct packet header byte
00 0F // payload length (decimal 15)
17 // Packet type: remote AT command with 64-bit or 16-bit destination address
01 // frame id
00 13 A2 00 40 5C 42 0C // 64-bit destination address
FF FE // 16-bit destination address
00 // apply changes at next AC command
44 31 // AT command “D1”
D2 // checksum - SHOULD BE D6

[end of program output]
Sorry I didn’t do it in time to help here, but maybe it’ll come in useful in the future.