> Hi! > > On Fri, 11 Dec 2009, deeksha g rao sahib wrote: > >> Hey, >> I am using telosb and tinyos-2.x. > > By tinyos-2.x do you mean the latest CVS/GIT? its the tinyos 2.1.0 I am not using the latest CVS/GIT.
> >> I want to run my application code several times. So I need to reboot the >> remote motes with the same image more than once. >> These are the steps that I am following. >> 1.install Goldenimage- with light basestation enabled, to all the remote >> motes.I am also giving the ids here. >> 2.install Goldenimage- with basestation enabled to BS. >> 3.enable CFLAGS += -DDELUGE_LIGHT_BASESTATION to Makefile of >> deluge/Blink,compile and inject to BS as image 2. >> 4.use d2 to disseminate this image to remote motes. >> 5.enable CFLAGS += -DDELUGE_BASESTATION to Makefile of >> deluge/Blink,compile and inject to BS as image 2. > > You should not overwrite the volume 2 while you are still disseminating it. The image from step 5 is only needed by BS so you could put it in volume 3 for example. I am doing step 5 only after the dissemination is complete.I give a 2min gap and say local stop before going to step 5. I could have put it in volume 3 if I was dealing with only one image.I have both the blink and my application code to put in. > >> 6.repeat steps 3,4,5 for my application code. > > Where does the application code goes? Volume 1? yes, application code is stored in volume 1 > > -- > Razvan ME > >> 7.dr1 to reboot remote motes. >> 8.r1 to reboot BS. >> 9.my code is executed. >> Now I want to reboot all the motes with the same image. >> I tried doing this by going to image 2 and then coming back or just use dr1 and r1 again. But it doesnt work for the remote motes. >>> Hi! >>> On Thu, 10 Dec 2009, deeksha g rao sahib wrote: >>>> Hi, >>>> I am not able to switch between the 2 images in the flash using the commands dr1,r1,dr2,r2. they seem to work only the first time reboot commands are used when they have Goldenimage in the current working directory. >>>> in the sample blink program, once the base station and remote motes start >>>> blinking, i want to switch to my application program which is in image >>>> 2.Now the dr1 command is being sent but the remote motes would not reboot. >>>> I have taken care of the CFlags for Base station and remote motes while >>>> injecting and disseminating the images after giving node ids using goldenimage. >>>> can somebody please help me with this??? >>> Can you please indicate the platform you are using, what version of tinyos >>> are you using and what are the exact steps you are doing? >>> Switching the images should work properly. For example the following test >>> should work: >>> - install deluge/Basestation on mote BS >>> - compile deluge/GoldenImage and inject in volume 1 on BS >>> - compile deluge/Blink and inject in volume 2 on BS >>> - install deluge/GoldenImage on mote M >>> - disseminate+reboot (-dr) image 2: M should get and start running >>> deluge/Blink. >>> - disseminate+reboot (-dr) image 1: M should get and start running >>> deluge/GoldenImage. >>> After these steps M has volume 1 and volume 2 populated so you could disseminate+reboot 1 and 2 without the images being transfered. Note: I highly recommend using the latest CVS. :-) >>> -- >>> Razvan ME > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > regards, deeksha -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
