Hi my aim is to transmit some data from remote place to some another location. For this i am using xbee s2 module.
Modem type is XB24-ZB.
XCTU version is 5.2.8.6
I configured both in command mode and able to communicate.
Now i want to use it in API mode.
I one as coordinator API mode with dl an dh =0.
and another as router as a router AT with dl and dh of coordinator.
PAN is same for both i used 4567.
I am using xbee library.
i am transmitting data from router to coordinator.
In this case:
1. Some time i did not get data at coordinator. means data is not available.
and after resetting or removing and fitting again xbee without any change in configuration as well as code
2. Some i get error UNEXPECTED_START_BYTE.
In this case when saw on XCTU i can their are two frames
data is like (direact from xbee out)
Quote:
7E 00 25 90 00 13 A2 00 40 B7 A1 6f 21 2C 41
Quote:
7E 00 14 10 01 00 7D 33 A2 00 40 B7 A1 73 FF FE 00 00 01 02 03 04 43 31 B3
F7
you can see i am getting response frame with data but data is complete transmit request sent from router .i.e.
Quote:
7E 00 14 10 01 00 7D 33 A2 00 40 B7 A1 73 FF FE 00 00 01 02 03 04 43 31 B3
3. Some times i get no error but data is corrupted in frame only actual data which i have sent not frame.
I am not able to understand, Why?
Please help...