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??

Maybe the frame what you are sending is incorrect.
Refer the following link to generate the frame, http://ftp1.digi.com/support/utilities/digi_apiframes2.htm
enter the details and click “Build Packet”