Hi, Everyone.

I installed tinyos 1.1.15 cvs cygwin version.

mote addr1 : DelugeBasic(at imgnum 0) and connected to PC.

mote addr2 : DelugeBasic(at imgnum 0)

First, I sent a command with Blink(deluge), "java
net.tinyos.tools.Deluge--inject --tosimage=tos_image.xml imgnum=1".

Mote addr1's status is then below.

[ imgnum 0=DelugeBasic, imgnum 1=Blink ]

And it broadcasts AdvMsg(green led toggle) but, mote addr2 does not work.

So, when I sended a command, "java net.tinyos.tools.Deluge --reboot
--imgnum=1", mote addr2 also does not work.

Now, I changed my source below.



event TOS_MsgPtr ReceiveAdvMsg.receive(TOS_MsgPtr pMsg) {

   DelugeAdvMsg *rxAdvMsg = (DelugeAdvMsg*)(pMsg->data);
   imgnum_t imgNum = rxAdvMsg->imgDesc.imgNum;

   DelugeImgDesc *cmpImgDesc = &(rxAdvMsg->imgDesc);
   DelugeImgDesc *curImgDesc;
   bool isEqual = FALSE;

   call Leds.yellowToggle();
....

But, yellow led does not work. why doesn't work?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to