cannot write the XBEE series 2-with the invalide command

I design an xbee-gate based the XBEEPRO SERIES2@API,
the downnode are XBEE series 2 MODULE,!
As i send the data through my soft based tcp/ip to the xbeegate to write the XBEE series 2 MODULE D0 ,SO can turn on/off the led using the D0 AT CAMMAND
(20) 7E 00 10 17 10 00 13 A2 00 40 52 60 DB 41 F4 02 44 01 04 D6,BUT RESPONSE IS (15:02:15)(19) 7E 00 0F 97 10 00 13 A2 00 40 52 60 DB 41 F4 44 01 02 5A

0X02 --invalide command
what is corret commang to SET or clear D0(D1-D3)is??

To set DIO0, the AT command bytes in your API frame should be 0x44 0x30 (instead of 0x44 0x01). For DIO1, they should be 0x44 0x31, etc.