Post a new topicPost a reply Page 1 of 2   [ 18 posts ]
Go to page 1, 2  Next
Author Message
 Post subject: OTAP query: Device doesn't respond
PostPosted: Mon Jul 04, 2011 5:08 pm 

Joined: Thu Jun 16, 2011 6:17 pm
Posts: 40
Hello there,

I have setup OTA and I am trying to upload a new program for the first time

all commands seem to work however when I try to send a program

otap64 -send --file onehopdemo.cpp.hex --mode BROADCAST --deliveries 1 --pid prog001

C:\Users\xxxxxxx\Desktop\project workspace\Libelium\otap_0.1-b61\otap>java -Djava.
library.path=./lib64/ -jar otap.jar -send --file onehopdemo.cpp.hex --mode BROAD
CAST --deliveries 1 --pid prog001

------------------------------------------------------
Name: onehopdemo.cpp.hex
Date: Fri Jul 01 15:39:25 BST 2011
Size: 43366 bytes
Packets to send: 472
Estimated time: 141,6 seconds
------------------------------------------------------
Node:all
Device doesn't respond
Device doesn't respond
Device doesn't respondds /
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respondnds \
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
......

this goes on for very long, I can see the progress for a second (and then it disappears) but it is VERY slow.. to make you understand the moment I am writing this message is it 54% done and has already done 2524 seconds

that is not normal, isn't it?

I tried also UNICAST, it doesn't make much difference

any advice?

cheers,
Spyros


Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Fri Jul 08, 2011 10:43 am 

Joined: Wed Nov 10, 2010 9:45 am
Posts: 271
Location: Australia
I've uploaded a video on youtube on the operation of OTAP

http://www.youtube.com/watch?v=XdSMQwJAkjE

it's my first youtube video, I suggest you watch it in full-screen too and turn up your speakers :P


Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Tue Jul 12, 2011 9:21 pm 

Joined: Thu Jun 16, 2011 6:17 pm
Posts: 40
thanks my friend, this is very helpful!
I will do it again based on your video on the first chance and will let you know

even though I believe I did all these steps, my problem is that I get VEERY low speed on delivery of the program (which is mostly due to the many errors in transmission) and I don't know why... maybe it is just a small detail in the configuration that is why I will do it again!

cheers,
Spyros


Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Thu Jul 14, 2011 2:08 pm 

Joined: Wed Nov 10, 2010 9:45 am
Posts: 271
Location: Australia
Slow transmission under windows yes. but if you're using Ubuntu then the transmission is faster!


Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Fri Jul 22, 2011 3:48 am 

Joined: Thu Jun 16, 2011 6:17 pm
Posts: 40
Thank you, I have managed to make it work with my 802.15.4 modules

But now I have ZigBee modules (Series 2) and it is giving me hard time again!
I scan and I get 0 nodes...

I have AP1 and BD=5
PAN ID is the same in both
channel: + ZB= not controlled. Chosen by the coordinator.
I suspect this could be a problem. So what should I set to the channel field in xbee.conf?
whatever I put it doesn't find any node

I used AmroQuandour's code from the video and it worked for me with XBee S1 but not with the S2 ones...

here is the code I uploaded to test OTA:

Code:
long previous = 0; 

void setup()
{
  xbeeZB.init(ZIGBEE,FREQ2_4G,NORMAL);
  xbeeZB.ON();
  xbeeZB.checkNewProgram();
 
  Utils.setLED(LED0, LED_ON);
  Utils.setLED(LED1, LED_ON);

}

void loop()
{
  previous=millis();
  while( (millis()-previous) < 60000 )
  {
    while( XBee.available() )
    {
      xbeeZB.treatData();
    }
  }
 
}



Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Fri Jul 22, 2011 11:24 am 

Joined: Wed Nov 10, 2010 9:45 am
Posts: 271
Location: Australia
Try increasing the time for scanning.

Code:
./otap -scan_nodes --mode BROADCAST --time 6


Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Thu Jul 28, 2011 12:02 am 

Joined: Thu Jun 16, 2011 6:17 pm
Posts: 40
it found it but I get the same problems

it gets until around 70% (with lots of no responds as always) and then I get this error

Delivery error: 74
Device doesn't respond
Device doesn't respond
Device doesn't respond
Device doesn't respond
Error sending packet
Error sending firmware
Node response: xPROGRAM RECEIVED ERROR

the command I used is
otap64 -send --mode UNICAST --mac 0013a200XXXXXX --file S:\ota\applet\otaconf.cpp.hex --pid prog000

is there anything wrong with the otap for 64-bit??


Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Thu Jul 28, 2011 8:32 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7472
What's the size of the program you're trying to send?


Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Thu Jul 28, 2011 9:00 am 

Joined: Wed Nov 10, 2010 9:45 am
Posts: 271
Location: Australia
lefsp. Run it with a 32-bit OS. Use VMWARE and load a 32-bit Ubuntu OS on it and try it ... It's the only way to find out if there are any problems with the 64-bit version of it.!


Top
 Profile  
 
 Post subject: Re: OTAP query: Device doesn't respond
PostPosted: Thu Jul 28, 2011 9:18 pm 

Joined: Thu Jun 16, 2011 6:17 pm
Posts: 40
I think I found what I was doing wrong, the API mode has to be 1 and I had it set to 2..
In general, this is not practical.. you say that XBee S2 modules need API mode 2 to operate, are we supposed to change API mode everytime we want to send firmware? won't this break the network?

the thing is that now I get flawless (and quite fast) transmission until 100% and then I get PROGRAM RECEIVED ERROR
Quote:
otap64 -send --mode UNICAST --mac 0
013a200406953ab --file S:\ota\applet\otaconf.cpp.hex --pid prog000

C:\Users\lefsp\Desktop\project workspace\OTA>java -Djava.library.path=./lib64/ -
jar otap.jar -send --mode UNICAST --mac 0013a200406953ab --file S:\ota\applet\ot
aconf.cpp.hex --pid prog000

------------------------------------------------------
Name: otaconf.cpp.hex
Date: Fri Jul 15 03:09:57 BST 2011
Size: 55418 bytes
Packets to send: 730
Estimated time: 219 seconds
------------------------------------------------------
Node: 0013a200406953ab
[Sending] - 100% 571 seconds elapsed
Finished. Number of packets sent: 730
Node response: PROGRAM RECEIVED ERROR
---------------------------


I tried it several times..

I tried to upload the code you provided in the OTA documentation but I get a compile error:
Quote:
In function 'void loop()':
error: 'class WaspXBeeZB' has no member named 'checkOtapTimeout

so I have uploaded AmroQuandour's code as I posted couple of posts back.. this must work though as I have seen in the video he created..

in general, can you explain what is the minimun required code bits that a program must have to be able to receive and start a program OTA?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 2   [ 18 posts ]
Go to page 1, 2  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