[Tinyos-help] TinyOS2.0 scheduler commands

2007-03-15 Thread Liron Elmaleh
Hi, I would like to know if there are function calls to the scheduler in TinyOS2. For example - I would like to call some sort of yield() function in the middle of a task, so I could release the CPU and come back later (when the task is scheduled next), starting right when I stopped (right aft

[Tinyos-help] when does an application stops

2007-03-15 Thread fatima cabot
Hi. I have written an applicatioin which has only one timer started by 'startoneshot'. Does this mean that it is going to be fired just once?In this case, why does this application never ends?I have a while loop, such us: e=self.t.runNextEvent() while e: e=self.t.runNextEvent() _

RE: [Tinyos-help] when does an application stops

2007-03-15 Thread Siirtola Harri
It's obvious that it hangs as you have a while loop condition which never comes true. Programs aren't written like that in an embedded OS. I suggest reading the TinyOS documentation to see how things work there. Regards, Harri From: [EMAIL PROTECTED] [mail

Re: [Tinyos-help] Message types supported by Multihop

2007-03-15 Thread Benjamin Madore
On Wed, March 14, 2007 9:57 pm, sunchao said: > Hello: > I'm a little confused while reading MultiHopRouter.nc in TinyOS 1.0. > Just before the declaration of interface Receive[uint8_t id], it says that: > "The interface are as parameterised by the active message id. only the > 10 active messa

[Tinyos-help] dbg, stdout

2007-03-15 Thread fatima cabot
Hi. I'm programming a python GUI for tossim 2 Inside my nesc module, i have written dbg statements with sys.stdout In my inteface, I have a textbox to which I have redirected sys.stdout. It works for prints inside python, but not for nesc's dbg's. Indeed, if I do the 'addChannel' statement after

Re: [Tinyos-help] TinyOS2.0 scheduler commands

2007-03-15 Thread Philip Levis
On Mar 15, 2007, at 5:00 AM, Liron Elmaleh wrote: Hi, I would like to know if there are function calls to the scheduler in TinyOS2. For example - I would like to call some sort of yield() function in the middle of a task, so I could release the CPU and come back later (when the task is sch

Re: [Tinyos-help] dbg, stdout

2007-03-15 Thread Philip Levis
On Mar 15, 2007, at 9:41 AM, fatima cabot wrote: Hi. I'm programming a python GUI for tossim 2 Inside my nesc module, i have written dbg statements with sys.stdout In my inteface, I have a textbox to which I have redirected sys.stdout. It works for prints inside python, but not for nesc's

[Tinyos-help] Compilation Problems in Tinyos-2.x

2007-03-15 Thread Murtuza
Hello Friends, first of all I would like to thank everybody out here who do such a wonderful thing by helping others and novices like me. I have a compilation error in my application. I am using TinyOS-2.x and tried to compile a simple application for mica2 motes. But it shows the following erro

Re: [Tinyos-help] failed dependency error

2007-03-15 Thread Michael Schippling
--nodeps not nodefs... MS Bhuvaneswari Ramkumar wrote: Hi All, I'm trying to install the msp430tools-base on cygwin for tinyos-2.0 I try this : rpm -ivh msp430tools-base-0.1-20050607.cygwin.i386.rpm I have even tried the ignoreos and nodefs options but i keep getting the same error : err

Re: [Tinyos-help] Help - NoClassDefFoundError: javax/comm/SerialPortEventListen...........

2007-03-15 Thread Michael Schippling
I think the commapi package is NOT the javax.comm package, which is an older version of port access (no longer) supplied by SunMicro. I have a bootleg on my site: http://www.etantdonnes.com/TMP/javacomm20-win32.zip if you want to try it. The zip contains an installer and instructions. MS pre

[Tinyos-help] making tinyos2.0

2007-03-15 Thread Bhuvaneswari Ramkumar
hello all , I've been trying to install tinyos2.0 followed all the steps in : http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html after all the 5 steps I get the follwoing error while trying to make Blink dont know what it is /cygdrive/c/cygwin/opt/tinyos-2.x/apps/Blink> make mica2 M

[Tinyos-help] BcastM

2007-03-15 Thread Benjamin Madore
In BcastM.nc in /lib/Brodcast: 143 signal Receive.receive[id](pMsg,&pBCMsg->data[0],Len); 144 } 145 return pMsg; 146 } Shouldn't it be something like: XXX TOS_MsgPtr ret; 143 ret = signal Receive.receive[id](pMsg,&pBCMsg->data[0],Len); 144 } 145 re

Re: [Tinyos-help] BcastM

2007-03-15 Thread Philip Levis
On Mar 15, 2007, at 2:04 PM, Benjamin Madore wrote: In BcastM.nc in /lib/Brodcast: 143 signal Receive.receive[id](pMsg,&pBCMsg->data[0],Len); 144 } 145 return pMsg; 146 } Shouldn't it be something like: XXX TOS_MsgPtr ret; 143 ret = signal Receive.receive[i

[Tinyos-help] Packet Acknowledgments

2007-03-15 Thread Ian Welch
I'm having some troubles with Packet Ack. I have set up a node to send out a packet and wait 50ms for an Ack. After 50ms has passed the wasAcked(msg) function is called, if it returns TRUE do nothing, if it returns FALSE resend the packet and restart the one shot timer for 50ms. It keeps looping u