Post a new topicPost a reply Page 2 of 5   [ 43 posts ]
Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Help Required
PostPosted: Mon Jul 16, 2012 7:03 pm 

Joined: Wed Jul 11, 2012 11:53 am
Posts: 23
Thanks for reply.

We are using
Waspmote V1.1
FCC ID:XKM-WASP01

Communication on both (Waspmote + Xbee) and (Gateway +Xbee) occur successfully but strange characters are found on serial monitor as shown in the previous posts.
Please help us in removing these characters from output.

In the following code there is no error and it has been upload successfully but there is no output at serial monitor. Kindly if you have a small piece of tested code for these version for simple communication without packet header information.

float value_temperature = 0;
float value_pressure = 0;

void setup()
{
SensorAgr.setBoardMode(SENS_ON);
RTC.begin();
delay(100);
SensorAgr.setAnemometerThreshold(90.0);
}
void loop()
{
RTC.begin();
delay(100);
value_temperature = SensorAgr.readValue(SENS_AGR_TEMPERATURE);
delay(100);
SensorAgr.setSensorMode(SENS_ON, SENS_AGR_PRESSURE);
delay(100);
value_pressure = SensorAgr.readValue(SENS_AGR_PRESSURE);
XBee.setMode(XBEE_ON);
delay(100);
XBee.print(value_temperature);
XBee.print(value_pressure);
delay(100);
XBee.setMode(XBEE_OFF);
}




Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Tue Jul 17, 2012 8:15 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7516
Hi rahimgiki,

I'm sorry for the confusion, when I asked you about the version of the board I meant the Agriculture board, not the Waspmote.

Regards.


Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Tue Jul 17, 2012 11:59 am 

Joined: Wed Jul 11, 2012 11:53 am
Posts: 23
Dear Sir,
We have purchased these nodes on 21/03/2011 and the invoice no is :Proforma Invoice Document No 22961 - 21/03/2011.
the node is Agriculture Sensor board and there is number on board is 3046-0002-7. There is no information about the version on the board.

So our questions in the previous posts still stands and we are relying on your kind reply about the problem in code.

Kindly guide us and also send us a simplest code of wireless communication between (Waspmote+XBee) and (Gateway+XBee). So that we can test our boards.

We are desperately looking for your reply.

Thanks.


Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Tue Jul 17, 2012 2:32 pm 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7516
Hi rahimgiki,

It should work if you add the statement XBee.begin(); after the XBee.setMode(XBEE_ON); line.

Regards.


Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Wed Jul 18, 2012 7:12 am 

Joined: Wed Jul 11, 2012 11:53 am
Posts: 23
Dear Sir,
Thank you for your kind reply. We have added XBee.begin(); statement after the XBee.setMode(XBEE_ON); but still no output at the serial monitor. Our problem still stands. The code is given below.

float value_temperature = 0;
float value_pressure = 0;

void setup()
{
SensorAgr.setBoardMode(SENS_ON);
RTC.begin();
delay(100);
SensorAgr.setAnemometerThreshold(90.0);
}
void loop()
{
RTC.begin();
delay(100);
value_temperature = SensorAgr.readValue(SENS_AGR_TEMPERATURE);
delay(100);
SensorAgr.setSensorMode(SENS_ON, SENS_AGR_PRESSURE);
delay(100);
value_pressure = SensorAgr.readValue(SENS_AGR_PRESSURE);
XBee.setMode(XBEE_ON);
XBee.begin();
delay(100);
XBee.print(value_temperature);
XBee.print(value_pressure);
delay(100);
XBee.setMode(XBEE_OFF);
}



Waiting for your kind reply.
Thanks.


Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Wed Jul 18, 2012 8:33 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7516
Hi rahimgiki,

then probably you have an Agriculture PRO board, please add this statement just after turning on the board:

Code:
SensorAgr.setSensorMode(SENS_ON, SENS_AGR_RADIATION);


Regards.


Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Wed Jul 18, 2012 7:28 pm 

Joined: Wed Jul 11, 2012 11:53 am
Posts: 23
Dear Sir,
Thank you for your kind reply.
we have added the statements given in your last post to our code but still no out put at the serial monitor. The code is given below.

float value_temperature = 0;
float value_pressure = 0;

void setup()
{
SensorAgr.setBoardMode(SENS_ON);
SensorAgr.setSensorMode(SENS_ON, SENS_AGR_RADIATION);
RTC.begin();
delay(100);
SensorAgr.setAnemometerThreshold(90.0);
}
void loop()
{
RTC.begin();
delay(100);
value_temperature = SensorAgr.readValue(SENS_AGR_TEMPERATURE);
delay(100);
SensorAgr.setSensorMode(SENS_ON, SENS_AGR_PRESSURE);
delay(100);
value_pressure = SensorAgr.readValue(SENS_AGR_PRESSURE);
XBee.setMode(XBEE_ON);
XBee.begin();
delay(100);
XBee.print(value_temperature);
XBee.print(value_pressure);
delay(100);
XBee.setMode(XBEE_OFF);
}


The second thing is that, we checked this code on Agricultural Pro board as well as Agriculture board but did not work on any.
Kindly send us a tested and simplest code (like printing a hello world at the serial monitor) compatible with our boards.
Until now, we are unable to get reasonable out put at serial monitor and our team leader is extremely worried about the wireless communication. So, we request you to please help us in this regard by sending us a simplest piece of code.
best wishes
Rahim GIKI


Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Thu Jul 19, 2012 9:14 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7516
Hi rahimgiki,

ok, I'm sorry for the misunderstood, I hadn't seen your previous posts and thought we were dealing with a problem with the agriculture board, but it is a communication problem.

According to the first codes you posted, you have your modules configured in API mode, not transparent mode, that is the example is configured for. You will have to merge both codes to replace the use of the XBee library with the xbee802 library you used in your first examples (I'd advice you to start from your first codes, since it will be easier to add the agriculture board lines than all the XBee configuration code).

Regards.


Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Thu Jul 19, 2012 7:47 pm 

Joined: Wed Jul 11, 2012 11:53 am
Posts: 23
Dear Sir,

Thanks for reply,

We want your help in running this code, this code has been compiled and uploaded successfully but there is no output at serial monitor.
Please test this code on the module practically so that our problem can be solved.(This code has been attached.)

void setup()
{
SensorAgr.setBoardMode(SENS_ON);
RTC.begin();
delay(100);
SensorAgr.setAnemometerThreshold(90.0);
}
void loop()
{
RTC.begin();
delay(100);
XBee.setMode(XBEE_ON);
XBee.begin(38400);
delay(100);
XBee.print("Hello World"); // We just want that this msg will display on Serial Monitor using wireless communication.
XBee.print("0013A200407620F5", "Hello World"); // This statement is also not showing output.
XBee.setMode(XBEE_OFF);
}

Thanks.


Top
 Profile  
 
 Post subject: Re: Help Required
PostPosted: Fri Jul 20, 2012 1:20 pm 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7516
Hi rahimgiki,

that code won't compile, since you added a not allowed print statement (the fornmat of the line XBee.print("0013A200407620F5", "Hello World"); is not allowed in any of the API versions).

Anyway, we had your communication problem solved in the first page of this post using the xbee802 library, you only have to merge that code, in which you transmitted temperature values, and the code the last agriculture code we reviewed.

Regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 2 of 5   [ 43 posts ]
Go to page Previous  1, 2, 3, 4, 5  Next


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