Home/Support/Support Forum/Newbie Problem setting remote Pin to High with API Frame

Newbie Problem setting remote Pin to High with API Frame

0 votes
I have 2 x Series 1 xBee with the following config:-

xBee 1
Product Family: XB24
Function Set: XBEE 8092.15.4
Firmware version: 10ed
ID: 3001
DL: 1
MY: 2
CE: Coordinator [1]
AP: API enabled w/PPP [2]
DD: 10000
D1: DO Low [4]

xBee 2
Product Family: XB24
Function Set: XBEE 8092.15.4
Firmware version: 10ed
ID: 3001
DL: 2
MY: 1
CE: End Device [0]
AP: API enabled w/PPP [2]
DD: 10000
D1: DO Low [4]

I have both xBee connected to PCs with USB UART and have successfully passed data between them. I am now trying to use the Coordinator xBee1 to set the D1 pin of the End Point xBee2 to High[5] using an API frame created in XCTU. The frame I have created is as follows:

0x17 – Remote AT Command
16-bit dest. Address: 00 02
AT Command: 44 31 (D1)
Parameter Value: 35 (5)
Generated Frame = 7E 00 10 17 01 00 00 00 00 00 00 00 00 00 01 02 44 31 35 3A

The Remote command response is as follows:
7E 00 0F 97 01 00 13 A2 00 40 B5 DE 9C 00 01 44 31 01 CC

- Start delimiter: 7E
- Length: 00 0F (15)
- Frame type: 97 (Remote Command Response)
- Frame ID: 01 (1)
- 64-bit source address: 00 13 A2 00 40 B5 DE 9C
- 16-bit source address: 00 01
- AT Command: 44 31 (D1)
- Status: 01 (Status Error)
- Checksum: CC

Question: Why am I returning a Status Error? What configuration have I missed? Everything else works as documented, but when I try and change the pin settings, something is blocking it? Any help would be very much appreciated.
asked Sep 12, 2014 in RF Solutions and XBee by shunt New to the Community (2 points)
edited Sep 12, 2014 by shunt

Please log in or register to answer this question.

2 Answers

0 votes
Newbie problem, newbie error; the Parameter Value needs to be 05 and not 35 and then it works. 05 sets it to high and 04 sets it to low, simples. I can see I'm going to need to get a better handle on hex (0x or base16) to program an xBee.
answered Sep 14, 2014 by shunt New to the Community (2 points)
edited Sep 15, 2014 by shunt
0 votes
Ok, I get it now. If its a character string (incl alphanumeric) then you do an ASCII to Hex conversion; if it's numeric then a decimal to hex conversion.
answered Sep 15, 2014 by shunt New to the Community (2 points)
...