Post a new topicPost a reply Page 1 of 1   [ 4 posts ]
Author Message
 Post subject: unable to discover node| side effect?
PostPosted: Tue Jun 12, 2012 6:32 am 

Joined: Sat Aug 06, 2011 1:10 am
Posts: 109
hi Libelium:
I followed OTA manual and insert a new FAT16 2GB SD card into waspmote and it can send data frames to waspmote gateway as below:
Image

The profile of coordinator is as below so I set xbee.conf like this:
Image

Note I'm using window 7 64 bit. OTA can't discover any node. I tried to set AP=1 in coordinator profile. It's still the same. Why is that? Do I need to upload any program to waspmote board? waspmote should have Bootloader ready to run OTA according to the manual. If so, which program should I upload to waspmote board?
Image

It results in a side-effect. Now I start Serial Monitor of waspmote IDE. It can't display the data frames any more!
Image

Besides, I watched this video(http://www.youtube.com/watch?v=XdSMQwJAkjE). It seems the author can run Serial Monitor of waspmote IDE and OTAP at the same time. But when I try to follow it, I get this error. How can I avoid this error while making them run concurrently?
Image


Top
 Profile  
 
 Post subject: Re: unable to discover node| side effect?
PostPosted: Tue Jun 12, 2012 10:19 am 

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

You need to upload a code which permits to do OTAP. I mean, there are a couple of examples for xbee802 and XBee Digimesh. In your case, XbeeZB, you need to change the object xbeeDM/xbee802 for xbeeZB. That's all. Also, you should be careful with the networking parameters like the PANID.
Tell us what you achieve.

Best regards


Top
 Profile  
 
 Post subject: Re: unable to discover node| side effect?
PostPosted: Fri Jun 15, 2012 5:43 am 

Joined: Sat Aug 06, 2011 1:10 am
Posts: 109
hi Libelium:
I followed your suggestions to upload program in waspmote IDE example as shown below to waspmote router, in which I replace all "xbee802" with "xbeeZB".

I'm using windows7 64bit desktop PC.

Step 1: I use X-CTU to check the profile of my waspmote gateway as shown below. Note that its PAN ID is 0, operating 16-bit PAN ID is 7CFD and CH is 15. Accordingly I configured xbee.conf. Then I switched on waspmote router and run otap64.bat, it discovers nothing.
Image

Step 2: I use X-CTU to re-read the profile of my waspmote gateway as shown below. To my surprise, now I find its PAN ID = 7CFD but not 0, its 64-bit PAN ID = 7CFD, its 16-bit PAN ID = B259 but not 7CFD. I only replace CH 15 with C in xbee.conf. Then I switch on waspmote router and run otap64.bat, it still discovers nothing.
Image

Step 3: I'm thinking because my current 16-bit PAN ID = B259 in profile, so I set panID as B259 in xbee.conf. Then I switch on waspmote router and run otap64.bat, it still discovers nothing. I use X-CTU to re-read the profile of my waspmote gateway, PAN ID and Operating PAN ID of the profile of my waspmote gateway are both B259, then I make an important discovery:
After I run otap64.bat, panID in xbee.conf will become the value of PAN ID and Operating PAN ID of the profile of my waspmote gateway! otap64.bat will affect the profile of my waspmote gateway!

Step 4: everything is a mess, so I reset the profile of my waspmote gateway as the original one(PAN ID=0, Operating PAN ID=E10A492ADBE26D71, Operating 16-bit PAN ID=7CFD). I configure xbee.conf (panID=0x0000, channel=0x0F). Then I switched on waspmote router and run otap64.bat, it still discovers nothing.

Step 5: I use X-CTU to set API as 1 in the profile of my waspmote gateway and repeat all the steps above, still otap64.bat discover nothing.

How can I use otap to discover waspmote node?




Code:
#define key_access "LIBELIUM"
#define id_mote "WASPMOTE00000001"

void setup()
{
  USB.begin();
  USB.println("Waspmote OTA Setup");
 
  // Write Authentication Key in EEPROM memory
  for(int i=0;i<8;i++)
  {
    Utils.writeEEPROM(107+i,key_access[i]);
  }
 
  // Write Mote ID in EEPROM memory
  for(int i=0;i<16;i++)
  {
    Utils.writeEEPROM(147+i,id_mote[i]);
  }

  // Initialize Xbee module
  xbeeZB.init(XBEE_802_15_4,FREQ2_4G,NORMAL);
  xbeeZB.ON();
   
  // CheckNewProgram is mandatory in every OTA program
  xbeeZB.checkNewProgram(); 
}

void loop()
{
  // Check if new data is available
  if( XBee.available() )
  {
    xbeeZB.treatData();
    // Keep inside this loop while a new program is being received
    while( xbeeZB.programming_ON  && !xbeeZB.checkOtapTimeout() )
    {
      if( XBee.available() )
      {
        xbeeZB.treatData();
      }
    }
  }
 
  // Blink LED1 while messages are not received
  Utils.setLED(LED1,LED_ON);
  delay(100);
  Utils.setLED(LED1,LED_OFF);
  delay(100);
   
}


Top
 Profile  
 
 Post subject: Re: unable to discover node| side effect?
PostPosted: Fri Jun 15, 2012 10:12 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7440
wzj_bj,

In you code you should use this:
// Inits the XBee ZigBee library
xbeeZB.init(ZIGBEE,FREQ2_4G,NORMAL);


Besides that, In Zigbee protocol channel is chosen automatically so do not modify.

Regarding PANID, only chose PANID, do not modify OP or OI.

We recommend you to read carefully all provided documentation.

In this forum we can help you to solve specific problems during your development, but I am afraid that we can not make your entire code.

However, you may be interested in a special support service or a customized engineering service.

As you will know, we are Wireless Sensor Networks hardware manufacturers. On addition to that, we provide with a complete software system to control our hardware and comprehensive documentation. We are committed to support the clients in the development process through the forum, but we cannot implement the final solution for each project.

Some clients just do not want to implement the software for their projects and prefer us to do it for them, or maybe they find it complicated. In these cases we offer special services like:
1. a number of one-to-one support hours with one engineer on our online e-learning platform. You can have direct line with one of our experts and if you like we can access your desktop in a remote way.
2. general training courses which are a great introduction to our systems.
3. specific training course, focusing on the features and modules you need to handle.
4. customized engineering: you can let us know the list of tasks your system needs to work out, and our R&D Dept. can develop all the project for you.


Please visit this area regarding training and this one about custom engineering.

Do not hesitate to ask any questions you may have.

Best regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 4 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