why i don't have Hello, world! packet: in serial monitor xbee coordinator

why i don't have message receiving packet hello world in serial monitor xbee coordinator

**// This example broadcasts a Hello, world! message every 10 second **
#include <XBee.h>
#include <AltSoftSerial.h>

XBeeWithCallbacks xbee;

AltSoftSerial SoftSerial;
#define DebugSerial Serial
#define XBeeSerial SoftSerial

void setup() {
// Setup debug serial output
DebugSerial.begin(115200);
DebugSerial.println(F("Starting..."));

// Setup XBee serial communication
XBeeSerial.begin(9600);
xbee.begin(XBeeSerial);
delay(1);

// Send a first packet right away
sendPacket();
}

void sendPacket() {
// Prepare the Zigbee Transmit Request API packet
ZBTxRequest txRequest;
txRequest.setAddress64(0x0000000000000000);
uint8_t payload[] = {'H', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', '!'};
txRequest.setPayload(payload, sizeof(payload));

// And send it
uint8_t status = xbee.sendAndWait(txRequest, 5000);
if (status == 0) {
DebugSerial.println(F("Succesfully sent packet"));
} else {
DebugSerial.print(F("Failed to send packet. Status: 0x"));
DebugSerial.println(status, HEX);
}
}

unsigned long last_tx_time = 0;

void loop() {
// Check the serial port to see if there is a new packet available
xbee.loop();

// Send a packet every 10 seconds
if (millis() - last_tx_time > 10000) {
last_tx_time = millis();
sendPacket();
}
}

// This example prints any received ZigBee radio packets to serial.

#include <XBee.h>
#include <Printers.h>
#include <AltSoftSerial.h>

XBeeWithCallbacks xbee;

AltSoftSerial SoftSerial;
#define DebugSerial Serial
#define XBeeSerial SoftSerial

void setup() {
// Setup debug serial output
DebugSerial.begin(115200);
DebugSerial.println(F("Starting..."));

// Setup XBee serial communication
XBeeSerial.begin(9600);
xbee.begin(XBeeSerial);
delay(1);

// Setup callbacks
xbee.onZBRxResponse(processRxPacket);
}

void processRxPacket(ZBRxResponse& rx, uintptr_t) {
DebugSerial.print(F("Received packet from "));
printHex(DebugSerial, rx.getRemoteAddress64());
DebugSerial.println();
DebugSerial.print(F("Payload: "));
DebugSerial.write(rx.getData(), rx.getDataLength());
DebugSerial.println();
}

void loop() {
// Check the serial port to see if there is a new packet available
xbee.loop();
}

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom.. :slight_smile: