Serial communication failing

I’ve been working on a small project which implies the serial communication between a XBee ZB S2 module and a ATTiny84 (at 8MHz - 9600 baud). It had been working 95% of the time. Sometimes I had some issues with the serial communication, but was nothing serious.

Last week I’ve upgraded my XBee firmware to 29A0, and from that point forward nothing comes out of DOUT anymore. I even tried using a Arduino Uno to monitor if there was anything comming out from the DOUT, but no luck.

My XBee is configured as a XBee ENDNODE API with pin-sleep, so for the purpose of testing I have always DTR set to LOW.

Configuration:

XB24-ZB_29A0.xml

1335045

1FFE

3

0

FF

0

0

0

DOOR SENSOR

1E

0

30000

3C

0

3

4

1

0

0

3

0

0

0

0

1

0

1

7530

7D0

3

0

0

3

0

0

0

0

1

0

0

0

0

0

0

0

1

0

Could you shed some light on what it might be happening?

Thank you very much.

Best regards,

Carlos Vicente

Configure the node for Router AT 2xA7

Hi mvut,

Thank for the answer, but I fail to see the point on changing it to ROUTER AT, since I want to use API and have it sleeping by pin. Could you clarify?

In order to use the sleeping functions, you must use CTS flow control. You also should use transparent mode till you have worked out everything before you switch to API mode and sleeping. This makes it easier for you to work with and get it running correctly with your processor. I would also suggest using Cyclic sleep with Pin wake to start with. This way you can work out getting our Code correct with respect to CTS flow control and the Pin sleep function without having the module leave the network from the result of a long sleep cycle.

Hi mvut,

Thank for the answer. Actually is was something that already went through my mind. Actually I was also thinking on using RTS just to make sure that the XBee is ready to receive the commands I issue.

But anyway, in the meanwhile, I found out why everything stop working from one day to another. I had a XBee break-out board that I was using when everything was working. While I was debugging my circuit for the occasional lack of data (maybe CTS and RTS control will help on that) I have changed the break-out board for another that I had soldered along with an update of the XBee firmware… and basically that was the problem. I concentrated my self on the firmware and completely forgot about the other variable I had inserted.

I end up by going to square one on the project, thinking the problem was somewhere where it actually wasn’t.

In the meanwhile, I found out why everything stop working from one day to another. I had a XBee break-out board that I was using when most of the circuit was working. While I was debugging my circuit for the occasional lack of data (maybe CTS and RTS control will help on that) I have changed the break-out board for another that I had soldered along with an update of the XBee firmware… and basically that was the problem. I concentrated my self on the firmware and completely forgot about the other variable I had inserted… the break-out board!!

I end up by going to square one on the project, thinking the problem was somewhere where it actually wasn’t.

Sorry for wasting anyone time…