X-BEE 1 (PROBLEMS WITH REMOTE COMMAND RESPONSE)

Dear Friends,

I´ve got two XBee serie 1 and I´m working in API mode.

From time to time, when I send a data the acknowledge received is wrong. An example. I send a remote AT command (0x17) and I receive a right remote comand response (0x97), but, sometimes the ack is wrong or even I don´t receive any ack.

An example:

I send this package
7E 00 10 17 01 00 00 00 00 00 00 00 00 00 01 01 44 35 05 67

And sometimes I receive (which I think is correct):
7E 00 0F 97 01 00 13 A2 00 40 AA 5E A0 00 01 44 35 00 50

However, other times I receive:
7E 00 0F 97 01 00 00 00 00 00 00 00 00 00 01 44 35 04 EA

And in many other times I don´t receive any response. But even in the last two cases I know that the package was sent and received because in the other Xbee DIO5 changes to Do High.

Do you know what is el problem?

Thanks a lot for your help.

Mario
Madrid (spain)
anroza@ono.com

I suspect part of the problem is if you are using 16 bit addressing vs 64 bit addressing on the receiving side. As for why you do not get a response back, that would have to be determined by other means.

First, thanks for your answer.

I have tried to use 64 bit but, unfortunately, it doesn´t work, i.e., sometimes Works, othertimes the ack is wrong and another times there is not any ack.

Do you suggest any other possibility?

thank you very much for your valuable help ¡

Best regars
Mario
Madrid (Spain)

What are you putting in for the 64 bit address?

Hello,

First, I tried to send this package (I was working with 16bits adress):

7E 00 10 17 01 00 00 00 00 00 00 00 00 00 01 01 44 35 05 67

And de Xbee which has to receive the message has:
DH=0000 and MY=0001 (both xbees working in API mode)

then after what you told me, i tried sending this package:

7E 00 10 17 01 00 13 A2 00 40 AA 5E B4 FF FE 01 44 35…

And the Xbee, which has to receive the message, has:
DH=FFFE and MY=FFFE (both xbees working in API mode). So, answering to your question I put for de 64 bit adress: 0013A20040AA5EB4

I think both options should work correctly. And sometimes I receive the ACK correct, but other times (without change nothing) I get a ACK with error and other times I get no ACK.

I forgot it, XD

Thank you very much for your help ¡

Best regards
Mario
Madrid (Spain)

Don’t forget to increment the frame counter this way you know which TX status frame is for which 0x17 API frame.

Dear friend,
What do you mean frame counter.
I´m sorry but I don´t understand your answer.
Please, could you explain it with more detail.
Thanks a lot and best regards
Mario

Byte 4 in your TX request packet. It is the byte just after the frame type indicator (0x17).