Hello everyone. I have two Xbee Pro modules. I need to send data from sensors to other Xbee module. I want to use those modules without using a shield. I configured Xbee modules API[2] mode and I tested in XCTU. I can send and recieve frame with Transmit Request succesfully in XCTU.
I connected one Xbee's TX to Arduino's RX (pin 10 ,SoftwareSerial) and Arduino's TX(pin 11,SoftwareSerial) to Xbee's RX with a bidirectional logic converter and I connected other Xbee module to my PC with PL2303 USB TTL converter.
When I try send data with Coordinator Xbee in Arduino Nano I don't see any data in XCTU.
Can I use Xbees without a shield or Do I need to buy a shield?
There are my test code,connection and configuration settings below. If you say what is wrong or what should I do, I will be very happy and very thanksful to you.
Arduino 3.3V <==> XBee 3.3V
Arduino GND <==> XBee GND
Arduino TX(pin11) <==> XBee DIN (or RX)
Arduino RX(pin10) <==> XBee DOUT (or TX)
#include <XBee.h>
#include <SoftwareSerial.h>
// Define SoftwareSerial TX/RX pins
#define ssRX 10
#define ssTX 11
SoftwareSerial nss = SoftwareSerial(ssRX, ssTX);
//Create an XBee object
XBee xbee;
//Define the Destination address of the packets
XBeeAddress64 destaddress = XBeeAddress64(0x0013A200, 0x4191195E);
char Hello[] = "Hello World\n";
void setup()
{
Serial.begin(9600);
nss.begin(9600);
//We hook the XBee into the Software Serial
xbee.setSerial(nss);
Serial.println("Goodnight moon!");
}
void loop() // run over and over
{
Serial.println("in the loop");
ZBTxRequest zbtx = ZBTxRequest(destaddress, (uint8_t *)Hello, strlen(Hello));
xbee.send(zbtx);
delay(1000);
}

