element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Why are my wifi Xbee not commuinicating while one connected to PC and other to the aduino board
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 417 subscribers
  • Views 665 views
  • Users 0 members are here
Related

Why are my wifi Xbee not commuinicating while one connected to PC and other to the aduino board

e14 Contributor
e14 Contributor over 12 years ago

This may seem to be a questions already solved, but trust me it is not - And i am a total newbie so i don't actually understand so much of those. I have been to all questions and tried out all answers but have not succeed.

Here is my instrument list:
1) Two XBee-s6b units, One with in-built antenna and other with external antenna
2) One Arduino Mega 2560 board
3) One USB-explorer.
4) I am using cool-term as my serial monitor and arduino IDE.
5) An XBee shield

This is how i configured my XBees (From cool-term)
XBee1 : ATID2244,ATMY1234,ATDL5678,ATWR
XBee2 : ATID2244,ATMY5678.ATDL1234,ATWR

this is my program that goes on to the board :

int led = 13; 
int temp = 0;
void setup()
{     
     Serial.begin(9600);
     pinMode(led, OUTPUT);
}
void loop()
{          
     if (Serial.available() > 0)
     {
          temp = Serial.read();     
          digitalWrite(led, HIGH);
          delay(1000);
          digitalWrite(led, LOW);
          delay(1000);     
     }
}

Now what i do is, I connect the board (which has the XBee on top of it connected via XBee shield) to my laptop, and select COM port whichever the board is on.
Then I'll connect the USB-Explorer with the second XBee on top of it and start cool-term, select the COM port of the second XBee.
Now if I try to write something that will make LED on board to blink, It won't do that.
Now if I select the COM port of the first XBee on Cool-Term and try to write anything on screen, It will make the LED Blink.
This implies that the xbees are not talking to each other, and I can not figure out why.
Need help, please.

P.S. The connection tutorial i am following can be found here :
http://www.norwegiancreations.com/2013/10/arduino-tutorial-1-lets-make-xbee-talk/

  • Sign in to reply
  • Cancel
Parents
  • vaghasiamadhuri
    0 vaghasiamadhuri over 12 years ago

    Hey Yash, just use another serial port lets say Serial1 because default serial port is connected to USBtoUART converter on Arduino mega so it will create problem for communicating with Xbee or any other serial peripheral when USB cable plugged in for say serial debug purpose or any other purpose to PC...There are four (0 to 3, 0default) Hardware serial port available on arduino mega u can use any one other then default(TX0,RX0)

     

    Just change Serial to Serial1 and new connection for tx rx is D19-RX1 and D18-Tx1......

     

    May be this information will help you....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to vaghasiamadhuri

    Thanks madhuri for your reply,
    But this dint work.
    It even stopped the LED to start and stop(which were working fine for serial, and not to mention without the Xbee - just directly connected to board through IDE) as I think serial1 is not the one that can read inputs to Mega 2560.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • e14 Contributor
    0 e14 Contributor over 12 years ago in reply to vaghasiamadhuri

    Thanks madhuri for your reply,
    But this dint work.
    It even stopped the LED to start and stop(which were working fine for serial, and not to mention without the Xbee - just directly connected to board through IDE) as I think serial1 is not the one that can read inputs to Mega 2560.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube