XBee Error Receive data

I'm using XBee S1, and here's my XBee configuration:
TX

CH = C
PAN ID = 1111
DL = DDDD
MY = AAAA
CE = 0
AP = 2

RX

CH = C
PAN ID = 1111
DL = 4444
MY = DDDD
CE = 1
AP = 2

in TX, the xbee successfully sent the data, I know that because it's come from this code:
if (xbee.getResponse().getApiId() == TX_STATUS_RESPONSE) {
xbee.getResponse().getTxStatusResponse(txStatus);
// get the delivery status, the fifth byte
if (txStatus.getStatus() == SUCCESS) { //the value here is true

but in RX, the xbee got an Error, it's from this code:
} else if (xbee.getResponse().isError()) { // the value here is true

complete code:

How could it be happen?
Thank you

The TX XBee is talking to DDDD, and listening using the name AAAA.

The RX Xbee is listening to DDDD, and talking to 4444.

What we have here is a failure to communicate.

ah,, I didn't realise that. thank you

now I've changed the RX DL to AAAA but it's still give the same Error, how is that?

what I know is when isError is true, Error codes include: CHECKSUM_FAILURE, PACKET_EXCEEDS_BYTE_ARRAY_LENGTH, UNEXPECTED_START_BYTE

but how is that possible because the payload is only uint8_t payload[] = { 'H', 'i' }; ?

Can't tell from tiny snippets. Post the code on both devices. All of it.

I'm sorry for the inconvenience Sir,
Before, I just checking the data using LED and it give me error result.
But when I checking data using software serial, it give me the right result and Error sometimes,, I think it's normal isn't it?
(even though I don't know why the led just give me the error result, not both of them)

Problem solved, thank you everyone :slight_smile: