Hi Andrey,

Thanks for your reply.

yes, I've added 200 from linkgain.out file. (I've repeated the 2
values 200 times, please see the code below).

# prepare radio topology - noise
noise = open("linkgain.out", "r")
lines = noise.readlines()
for line in lines:
  str = line.split()
  if (len(str) > 0):
        if (str[0] == "noise"):
                for i in range(200):
                        t.getNode(int(str[1])).addNoiseTraceReading(int(str[2]))
                        t.getNode(int(str[1])).addNoiseTraceReading(int(str[3]))


My regards,

Danie Patrick


On Thu, Oct 9, 2008 at 1:28 PM, Andrey Gursky <[EMAIL PROTECTED]> wrote:
> Daniel,
>
> first of all you can check the number of noise traces: it should be greater
> than 100.
>
> Best wishes,
> Andrey
>
>
>
> Daniel Patrick wrote:
>>
>> Hi All,
>>
>> I really need to use the serial interface in my tests (TOSSIM).
>> But I've been facing some problem when I try to use the sim-sf tag to
>> compile my application.
>> The TinyOS 2.0.1 works properly with my application, but it doesn't
>> support serial communication (TOSSIM).
>> So, I've downloaded the TinyOS version from cvs, it supports serial
>> communication (TOSSIM/sim-sf), but When I run my application, I get
>> the message: "Segmentation fault (core dumped)". The python script
>> creates the topology, linkgain, noise model, boot the nodes and after
>> that start "t.runNextEvent".
>>
>> The same script/application works fine in the TinyOS 2.0.1 version.
>>
>> My question is:
>> How can I modify the TinyOS 2.0.1 to support sim-sf?
>>
>> Please, give me any suggestion.
>>
>> Thanks a lot
>>
>> My regards
>>
>> Daniel Patrick
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to