Home/Support/Support Forum/Xbee communication between S2 and S2C

Xbee communication between S2 and S2C

0 votes
Am using two XBee's s2c as coordinator and S2 as a router to interface Arduino UNO and rpi3. I am able to able to communicate with the coordinator to the router but the reverse is not happening. Please suggest me ways to deal the issues.

This is my Arduino code(Router):
#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
// Open serial communications and wait for port to open:
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only

Serial.println("Goodnight moon!");

// set the data rate for the SoftwareSerial port
mySerial.println("Hello, world?");

void loop() { // run over and over
if (mySerial.available()) {
//int receive = mySerial.read();
if (Serial.available()) {
//int serialreceive = Serial.read();
asked Jun 20, 2017 in RF Solutions and XBee by hari6493 New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
Check the baud rate and if your Lib files require the XBee be in API mode or not.
answered Jun 20, 2017 by mvut Veteran of the Digi Community (15,323 points)