[Tinyos-help] [Deluge] Do not work via RF.
Minchul Lee
slotus00 at gmail.com
Mon Jul 9 07:31:31 PDT 2007
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070709/e91ef00e/attachment.htm
More information about the Tinyos-help
mailing list