Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Urgent: sending and recieving example: simple question.
PostPosted: Sat Jul 07, 2012 7:44 am 

Joined: Sat Jul 07, 2012 7:40 am
Posts: 1
Hello,
I've been trying to connect two waspmotes by uploading your XBee examples of sending and recieving a and b and then connecting the XBee modules and serial monitor the a waspmote.
I also tried adding these to the main codes
uint8_t PANID[2]={0X12,0X34};

void setup()
{
// Inits the XBee 802.15.4 library
xbee802.init(XBEE_802_15_4,FREQ2_4G,NORMAL);

// Powers XBee
xbee802.ON();
if( !xbee802.error_AT ) XBee.println("ON!");
else XBee.println("Error while begining XBee");

// Chosing a channel : channel 0x0D
xbee802.setChannel(0x0D);
if( !xbee802.error_AT ) XBee.println("Channel set OK");
else XBee.println("Error while changing channel");

// Chosing a PANID : PANID=0x1234
xbee802.setPAN(PANID);
if( !xbee802.error_AT ) XBee.println("PANID set OK");
else XBee.println("Error while changing PANID");
}

but it is not working ! :( please help me as fast as you can.


Top
 Profile  
 
 Post subject: Re: Urgent: sending and recieving example: simple question.
PostPosted: Mon Jul 09, 2012 8:13 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7818
Sumayya,

You need to be sure that both XBee modules has same network parameters.

You can check it by X-CTU tool from Digi, or just sending simple AT commands to the module and seeing response. Besides that you can use functions you show in your code.

What is exactly your problem? Could you please describe steps you carried out and where exactly are you having problems?

Let us know.

regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use