Hi there.
I am using two customs boards with atmega128rfa1 and wsndemo from LwMesh_1_1_1 (because i want to use the OTAServerDemo from the same package ).
I have write a terminal-like program to read the incoming data-bytes.
One board is the coordinator and the other one is the router.The lenght of the package from coordinator to pc is 60 bytes.For router,the same.
My problem is:
As i wrote before,the normal lenght of the packet from coordinator (on UART) to pc is 60 bytes.
But ,some times cordinator sending 61 or 59 or 58 or less bytes to pc.After this , the terminal program is stop responding.
Also i have another problem too.
The first time,coordinator sending to pc its packet and after some time -lets say 100 ms-coordinator sending router's packet.
Second time , coordinator sending its packet and after 90 ms,coordinator sending router's packet.
Third time , coordinator sending its packet and after 80 ms,coordinator sending router's packet and so on.
Finally, coordinator sending its packet and after 0ms,coordinator sending router's packet ,all as one (lenght packet becames 120 bytes).
After this, coordinator stop sending data to pc, but i can still send commands-data to router with out problems.
I have try to change the baudrate (9600 or 600) but the some problem .
Also i have try to change APP_SENDING_INTERVAL from 2000 ms to 4000ms or more ,but the same thing.
I know that the problem is not on the terminal program because i have test it with another board (Arduino Uno).
I have the same problem with smaller packets of 10 or 20 bytes.
OTAServerDemo is working ,without problems,for both boards.The distance between boards is about 10 cm.
Can anyone tell me what the problem might be or what i have to look for?
Why is this happening?
Any ideas are welcome.
Thanks in advance.