can't use/ install OTA shell on Meshlium

Using OTA functions with Waspmote
Post Reply
sabirmgd
Posts: 35
Joined: Thu Feb 02, 2017 4:16 am

can't use/ install OTA shell on Meshlium

Post by sabirmgd » Wed Mar 01, 2017 10:04 am

Hi team,

actually I am trying to use Meshlium remotely (connect to it through 3g ) and then send the files through zigbee to the nodes..

I am following these two documents but the processes is a bit vague and I don't have a clear direction on this.
http://www.libelium.com/downloads/docum ... amming.pdf
http://www.libelium.com/downloads/docum ... amming.pdf

my question now is
-in general how to implement this configuration
- the OTA commands are not installed ,

Code: Select all

meshlium:/# tar -xzf otap.tar.gz
tar: otap.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
I tried to unzip as mentioned in the document but I get the previous message, please advise on this.

thanks and best regards

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: can't use/ install OTA shell on Meshlium

Post by libelium-dev » Thu Mar 02, 2017 9:16 am

Hi,

You should download the OTA Shell files from this link,
http://www.libelium.com/v12/development ... lications/

We're sorry but the link from the documentation is out-of-date.

Don't hesitate to ask if you have more doubts.

Regards

sabirmgd
Posts: 35
Joined: Thu Feb 02, 2017 4:16 am

Re: can't use/ install OTA shell on Meshlium

Post by sabirmgd » Thu Mar 02, 2017 9:28 am

thanks team! now I can use otap but when I search for nodes I can't find any

here is my code

Code: Select all

#include <WaspXBee802.h>



void setup()
{

   char  key_access[] = "LIBELIUM"; 
 char  id_mote[] = "WASPMOTE00000001"; 
 // Write Authentication Key to EEPROM memory
  Utils.setAuthKey(key_access);
 // Write Mote ID to EEPROM memory
   Utils.setID(id_mote);


 
 // Initialize XBee module
 xbee802.ON();

 // CheckNewProgram is mandatory in every OTA program
 xbee802.checkNewProgram();
}
void loop()
{
 // Check if new data is available
 if( xbee802.available() )
 {
 xbee802.treatData();
 // Keep inside this loop while a new program is being received
 while( xbee802.programming_ON && !xbee802.checkOtapTimeout() )
 {
 if( xbee802.available() )
 {
 xbee802.treatData();
 }
 }
 }

}
and this is my xbee.config

Code: Select all

meshlium:/mnt/user/otap# cat xbee.conf
# port where the xbee moduel is connected
port = /dev/ttyS0
# auth key of network
auth_key = LIBELIUM
# pan ID of network
panID = 0x3332
# xbee model
xbeeModel = 802.15.4
# channel number
channel = 0x0C
# encryption of network
encryption = off
# encryption key of network
encryptionKey = 1234567890123456
# name of the file where discarded data goes
#discardedDataFile = data.txt
# Waspmote version
WaspmoteVersion = 12

and here is my otap command

Code: Select all

meshlium:/mnt/user/otap# ./otap -scan_nodes --mode BROADCAST --time 3

----------------------------------------------------------------
Total Nodes: 0 - Time elapsed: 2s
----------------------------------------------------------------
I read somewhere about changing the AP of meshlium and waspmote, but I couldn't find it again! is that the issue ? please advise on this as there a lot of documentations out there but I still can't get my way with this. regards

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: can't use/ install OTA shell on Meshlium

Post by libelium-dev » Fri Mar 03, 2017 8:50 am

Hi,

Please try to change the AP mode to AP1. Use the next commands after to stop sensor parser.

Code: Select all

capturer s0 38400
+++ (wait to OK answer)
ATAP1
ATWR
ATWR
After doing OTA you should change again to AP0.

Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest