[Tinyos-help] [Easy Dissemination]

vazoumana fofana zoumlander at hotmail.com
Fri Jul 6 03:29:43 PDT 2007


Thanks, i succeed simulate it. I ve got an other question. I try to debug 
the messages of Basestation and motes : it displays the message sent but not 
the messages received.
Here is the pyrhon file : from TOSSIM import *
import sys

f = open("log2.txt", "w")
t = Tossim([])
r= t.radio()
r.add(0, 1, -54.0)
r.add(1, 0, -54.0)
t.addChannel("emission", sys.stdout);
t.addChannel("reception", sys.stdout);
t.addChannel("emission", f);
t.addChannel("reception", f);
t.getNode(0).bootAtTime(1000);
t.getNode(1).bootAtTime(100001);
r.setNoise(1, -100.0, 5.0)
r.setNoise(0, -100.0, 5.0)
time = t.time()
while (time + 10000000000000 > t.time()):
  t.runNextEvent()

Somebody can help me ?



>From: "Daniel Widyanto" <danielw at wireless-people.com>
>Reply-To: danielw at wireless-people.com
>To: <tinyos-help at Millennium.Berkeley.EDU>
>Subject: re: [Tinyos-help] [Easy Dissemination]
>Date: Fri, 6 Jul 2007 17:12:49 +0800
>
>
>Hi,
>
>Looks like we're on the same page.
>
>The EasyDissemination in the tutorial lesson 12 is broken. Use the
>http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg12829.html
>version.
>
>I have tried the EasyDissemination, and it was perfect. It can find the
>node and hopping into it in small amount of time. But I haven't measure
>its current consumption yet (I'm using micaz), since I have to add the
>Collection first in my application.
>
>Regards,
>
>-daniel
>
>----------------------------------------
>From: "vazoumana fofana" <zoumlander at hotmail.com>
>Sent: Friday, July 06, 2007 4:49 PM
>To: tinyos-help at Millennium.Berkeley.EDU
>Subject: [Tinyos-help] [Easy Dissemination]
>
>Hello,
>
>i want to debug the Easy Dissemiantion , to display the message 
>disseminates
>by basestation and receuved by motes. When i try to launch  :
>Make micaz sim, it doesn t compile :. Here are the error messages :
>In component `TossimPacketModelC':
>/opt/tinyos-2.x/tos/lib/tossim/TossimPacketModelC.nc: In function
>`startDoneTask.runTask':
>/opt/tinyos-2.x/tos/lib/tossim/TossimPacketModelC.nc:85: Control.startDone
>not connected
>/opt/tinyos-2.x/tos/lib/tossim/TossimPacketModelC.nc: In function
>`stopDoneTask.runTask':
>/opt/tinyos-2.x/tos/lib/tossim/TossimPacketModelC.nc:90: Control.stopDone
>not connected
>
>it means that i must modify this file to make the simulation performs 
>right.
>Is it right ?
>
>


>_______________________________________________
>Tinyos-help mailing list
>Tinyos-help at Millennium.Berkeley.EDU
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_________________________________________________________________
Avec Windows Live OneCare éliminez tous les virus de votre PC ! 
http://www.windowslive.fr/liveonecare/default.asp



More information about the Tinyos-help mailing list