Post a new topicPost a reply Page 1 of 1   [ 5 posts ]
Author Message
 Post subject: OTA problems
PostPosted: Mon Apr 30, 2012 3:42 am 

Joined: Mon Apr 02, 2012 6:57 am
Posts: 61
well i follow the otap pdf instructions, and yet it cant detect my node why?
Here is what i done,
xbee.conf code :(since i use COM 14)
Code:
# port where the xbee moduel is connected
port = /dev/ttyUSB0
# auth key of network
auth_key = LIBELIUM
# pan ID of network
panID = 0x0102
# xbee model
xbeeModel = DM
# channel number
channel = 0x13
# encryption of network
encryption = off
# encryption key of network
encryptionKey = 1234567890123456
# name of the file where discarded data goes
#discardedDataFile = data.txt
port = COM14

tried 2 otap examples in the waspmote.
My xbee is xbee pro s2.
so what is the problem, do i really need the SD card to program?


Top
 Profile  
 
 Post subject: Re: OTA problems
PostPosted: Mon Apr 30, 2012 6:47 am 

Joined: Mon Apr 02, 2012 6:57 am
Posts: 61
ok, after watching this video(http://www.youtube.com/watch?v=XdSMQwJAkjE),i know clearly what am i doing.
Yet,it doesnt work.
so here are the codes.
xbeeDM
Code:
/*
 *  ------Waspmote OTA set up Example------
 *
 *  Explanation: This example shows how to set up Waspmote for operating
 *  with OTA (Over The Air Programming). This code is valid for XBee Digimesh
 *
 *  This code writes OTA's Authentication Key and Mote ID in EEPROM memory
 *  This code can be used as a template to develop any other code that
 *  provides OTA functionality.
 * 
 *
 *  Copyright (C) 2011 Libelium Comunicaciones Distribuidas S.L.
 *  http://www.libelium.com
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  Version:                0.1
 *  Design:                 David Gascón
 *  Implementation:           Alberto Bielsa, Yuri Carmona
 */

#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
  xbeeDM.init(DIGIMESH,FREQ2_4G,NORMAL);
  xbeeDM.ON();
   
  // CheckNewProgram is mandatory in every OTA program
  xbeeDM.checkNewProgram(); 
}

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


xbee.conf
Code:
# port where the xbee moduel is connected
port = COM14
# auth key of network
auth_key = LIBELIUM
# pan ID of network
panID = 0x0102
# xbee model
xbeeModel = DM
# channel number
channel = 0x13
# encryption of network
encryption = off
# encryption key of network
encryptionKey = 1234567890123456
# name of the file where discarded data goes
#discardedDataFile = data.txt

I know that it cant discover the node,i think that the problem is the xbee.conf
any suggestions?


Top
 Profile  
 
 Post subject: Re: OTA problems
PostPosted: Mon Apr 30, 2012 6:54 am 

Joined: Mon Apr 02, 2012 6:57 am
Posts: 61
how to check the channel, panid and encryption mode in the WaspOTA_DM (xbee_dm)?


Top
 Profile  
 
 Post subject: Re: OTA problems
PostPosted: Wed May 02, 2012 9:17 am 

Joined: Mon Apr 02, 2012 6:57 am
Posts: 61
I tried to configure XCTU , switched off the waspmote and the progran that uses the waspmote gateway but still unable to rewrite...
I followed the steps in page 38 of otap pdf. http://www.libelium.com/documentation/w ... amming.pdf
The error is
Getting modem type....OK
Programming modem...Flash checksum error failed
Write Parameters...Failed

The difference is the previous Ap is 2 and one i want to edit is 1.
If u say that it doesnt matter if change or not , using the normal settings(not editted ones) i check if it can receive the node or not by changing the channels base on page 49 of
http://www.libelium.com/documentation/w ... de_eng.pdf
But still cant receive.

Any suggestions on how to solve the problem?


Top
 Profile  
 
 Post subject: Re: OTA problems
PostPosted: Wed May 09, 2012 10:33 am 

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

If you want to configure your XBee modules, you can use the X-CTU app as you say. You must keep in mind that XBee modules work with Waspmote set with AP=2. Have you seen the starter tutorial? (Look Point 5 -> Networking Problems)

Best regards


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


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