I set up P2P XBee network with 2 S1 XBees modules. one module(RX-XB) connected with TX and RX to arduino's RX and TX, and other is a standalone module(TX-XB) connected to power and pins 20 to a LDR (LDR is wired to 3.3v),19 & 18 to jumpers to input digital signals by toggling between 3.3v and ground, and VREF to same 3.3v. Both modules are on the same breadboard close to each other.
I have configured:
TX-XB:
IR= 64
IT= 1
DIO0= ADC
DIO1= DI
DIO2= DI
AP: enabled
RX-XB:
AP: enabled
And I tried the series1_IoSamples sketch in XBee Library. But Im getting Errors
Received I/O Sample from: 35E5
Sample size is 1
Sample contains analog data
Sample contains digtal data
Sample 1:
Analog (AI0) is 1023
Digtal (DI1) is 1
Digtal (DI2) is 1
Error reading packet. Error code: 1
Received I/O Sample from: 35E5
Sample size is 1
Sample contains analog data
Sample contains digtal data
Sample 1:
Analog (AI0) is 1023
Digtal (DI1) is 1
Digtal (DI2) is 1
Error reading packet. Error code: 3
Error reading packet. Error code: 1
Error reading packet. Error code: 3
Error reading packet. Error code: 1
Error reading packet. Error code: 1
Error reading packet. Error code: 3
Error reading packet. Error code: 3
Error reading packet. Error code: 1
Error reading packet. Error code: 3
Error reading packet. Error code: 3
Error reading packet. Error code: 3
Error reading packet. Error code: 1
Error reading packet. Error code: 3
Error reading packet. Error code: 3
Error reading packet. Error code: 3
Error reading packet. Error code: 1
Error reading packet. Error code: 3
Error reading packet. Error code: 3
Error reading packet. Error code: 3
Error reading packet. Error code: 1
Error reading packet. Error code: 3
Error reading packet. Error code: 1
Received I/O Sample from: 35E5
Sample size is 1
Sample contains analog data
Sample contains digtal data
Sample 1:
Analog (AI0) is 1023
Digtal (DI1) is 1
Digtal (DI2) is 1
What are the meanings of these error codes and what may cause them?