Query state of D0 D1 with Arduino - invalid command

Hi,

I’ve read through the Book “Building wireless sensors networks” from Robert Faludi - which I think is a great book for starters.

Now I want to query the current state of one of my XBee Radios (XB24-Z7CIT-004) with a arduino uno (with the same XBee Radio connected to it - in API mode).

So if I create a packet like describes in the book:
0x7e
0x00
0x04
0x08
0x52
0x4E
0x4A
0x00

i’ve get back a packet with command state 0 (OK) - and the right values.

If I create a packet that should query the state of D0 - which looks like:
0x7E
0x00
0x04
0x08
0x52
0x44 (D)
0x00 (0)
0x(Checksum is calculated by arduino :wink: )

I’ll get a packet with the command status 2 - which means invalid Command.

I don’t get it - what am I doing wrong, is it impossible to query the state of D0/1/2/3/4/5/6/7 with a 0x08? is there another way to do this?

Thanks a lot in advance for helping…

Bjoern

To query the state of D0 you need the ASCII characters: 0x44 0x30, not 0x44 0x00.

Hope it helps