Re: [Tinyos-help] T2 task post behaviour

2007-07-16 Thread Philip Levis
Daniel Widyanto wrote: Hi all, I have questions about task posting in T2. Does it have a counter of how many it was posted ? Example : event void Command.changed() { post ProcessCommand(); } If Command.changed() is called twice, will ProcessCommand() task be called twice ? Please

[Tinyos-help] T2 task post behaviour

2007-07-16 Thread Daniel Widyanto
Hi all, I have questions about task posting in T2. Does it have a counter of how many it was posted ? Example : event void Command.changed() { post ProcessCommand(); } If Command.changed() is called twice, will ProcessCommand() task be called twice ? TIA Regards, -daniel

[Tinyos-help] Monitoring neighbor

2007-07-16 Thread Thamilarasu, Geethap
Hi, Is there a way to monitor neighbor nodes packet transmission/reception without any explicit feedback from the neighbor node? Thanks Geetha ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

[Tinyos-help] send value to file .txt

2007-07-16 Thread CASTEL Myriam
Hi, In the end of my application (with the mica2 and mib520), I need to store some values (but not all) send by the motes because I want to read them with Matlab. At the moment, I am using XSniffer. I can read the packets and put them manually in Matlab.But it is too long and I prefer to do

Re: [Tinyos-help] Multichannel Adc sampling and DMA

2007-07-16 Thread Nicolas Esteves
Hi, I looked at the demo app you made, i works fine, but when i want to change the jiffies parameter i cant get what i want. When i set something other than 0 the leds doesnt switch on. I saw in the readme of adc that jiffies = source_freq / needed_freq, and i want a 1000hz frequence, so i set

Re: [Tinyos-help] send value to file .txt

2007-07-16 Thread Peizhao Hu
Hi, You can implement your own data collection program using the AntiTheft example, shipped with TinyOS-2.X. Having a basic station to listen or collect all broadcast data, you can store this data in any form you like. any other useful example is the Osilloscope. Good Luck CASTEL Myriam

Re: [Tinyos-help] Monitoring neighbor

2007-07-16 Thread Peizhao Hu
maybe implementing a listening node, which discards all received data, can help you Thamilarasu, Geethap wrote: Hi, Is there a way to monitor neighbor nodes packet transmission/reception without any explicit feedback from the neighbor node? Thanks Geetha

[Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-16 Thread Hugo Sousa
Let me clarify, let's say a certain generic component has a parameter typedef width_t (and an interface with a command that allows to pass along a width_t variable) I want to perform some calculations on the variable, and store the results on other variables, but the type of those variables is

[Tinyos-help] CC2420ActiveMessageC not working after cvs update (T2)

2007-07-16 Thread Urs Hunkeler
Hi, It seems that a lot has been restructured in the TinyOS 2.x source tree. For some reason this now breaks compiling applications. Am I missing something? Or did somebody forget to check in a new version of some make rules? Cheers, Urs mkdir -p build/micaz mig python -target=micaz

[Tinyos-help] Re: Questions on CTP functioning

2007-07-16 Thread Pedro Almeida
Hello! What's on tos/lib/net/ctp is the default that comes with tos 2.0.1, i havent touched it. The applications is basically TestNetwork: #include Timer.h #include TestNetwork.h #include CtpDebugMsg.h module TestNetworkC { uses interface Boot; uses interface SplitControl as RadioControl; uses

[Tinyos-help] Combine Function within Module?

2007-07-16 Thread J. Ryan Stinnett
Is there a way to define a combine function that can make use of state variables in a module? I haven't been able to get it to work, and I have a feeling it's simply not possible, but it would be an elegant solution if it did work. Thanks, Ryan ___

Re: [Tinyos-help] CC2420ActiveMessageC not working after cvs update (T2)

2007-07-16 Thread Philip Levis
Urs Hunkeler wrote: Hi, It seems that a lot has been restructured in the TinyOS 2.x source tree. For some reason this now breaks compiling applications. Am I missing something? Or did somebody forget to check in a new version of some make rules? Cheers, Urs mkdir -p build/micaz mig python

Re: [Tinyos-help] CC2420ActiveMessageC not working after cvs update (T2)

2007-07-16 Thread Urs Hunkeler
Hi Phil, Actually, I did not just do an update prior to submit the previous post, I also did a complete export of the whole tinyos-2.x module. It still doesn't work. So I explicitly downloaded the .platform file for tos/platform/micaz and it still doesn't work. Cheers, Urs Philip Levis

Re: [Tinyos-help] [reduce power]

2007-07-16 Thread vazoumana fofana
Hello, i ve succeded in reducing power. I ve got a precision to ask : what s the meaning of the value 1. Which unit does it correpond ? From: Urs Hunkeler [EMAIL PROTECTED] To: vazoumana fofana [EMAIL PROTECTED], tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] [reduce

Re: [Tinyos-help] USB related crash of host computer connected to TinyOS nodes

2007-07-16 Thread Steve McKown
On Friday 13 July 2007 09:22:00 pm Razvan Musaloiu-E. wrote: Hi! On Fri, 13 Jul 2007, Philip Levis wrote: On Jul 13, 2007, at 3:37 PM, Steve McKown wrote: On Wednesday 11 July 2007 11:40:02 am John Griessen wrote: I am having troubles starting a computer with a telosb running

Re: [Tinyos-help] [reduce power]

2007-07-16 Thread Urs Hunkeler
Hi, Have a look at the CC2420 data-sheet at http://www.ti.com/lit/gpn/cc2420 (page 51). Actually the CC2420 only supports 8 discreet values for the TX power. A value of 3 or below (including 1) would correspond to the lowest TX power of -25 dBm. Cheers, Urs vazoumana fofana schrieb: Hello,

RE: [Tinyos-help] [reduce power]

2007-07-16 Thread Munaretto, Daniele
Hi all, I would say from my experiments that if u change from 3 to 1, you get a significant difference of TX power.. Cheers Daniele Daniele Munaretto Researcher DoCoMo Communications Laboratories Europe GmbH Landsbergerstraße 312 80687 Munich Germany Mobile : +49- 162-

[Tinyos-help] 32khz Timer

2007-07-16 Thread Min Guo
I want to use interface TimerT32khz on tmote sky, however I can not find any component which provides this timer. I found a component called Msp430Timer32khzC.nc which does not provide this timer interface. Does anyone have suggestions? Thanks. Best, Min

[Tinyos-help] Re: Questions on CTP functioning

2007-07-16 Thread Omprakash Gnawali
If you look in the code below in TestNetworkC.nc, you will notice that we take msg out of the queue but try to send recvPtr on the UART. We should send msg on the UART. This fix was discovered a long time ago but we had forgotten to update the CVS. I committed a fix for this problem to the CVS.

[Tinyos-help] Re: Questions on CTP functioning

2007-07-16 Thread Pedro Almeida
Omprakash! Thank you a lot for you interest and help in the subject! I'll correct it in the code and see the result. I thought, when observing that behaviour, it was just a delay till the ctp tree was fully established... I'll see how this goes now, thanks! Very best regards, Pedro Almeida On

Re: [Tinyos-help] [PATCH] Blocking/buffering (was: Deadlock in C sdk's write_serial_packet())

2007-07-16 Thread David Gay
On 7/13/07, Steve McKown [EMAIL PROTECTED] wrote: Hi David, I have one more patch suggestion for the C SDK, to build upon your recent update to CVS. With the latest code and using a blocking serial source, one can get into a situation where the SDK has buffered one or more packets internally

Re: [Tinyos-help] new sensorboard question

2007-07-16 Thread John Griessen
John Griessen wrote: I'm making a sensorboard for telosb hardware. My rearranging of the UserButton code seems close, but broken. I figured out that I was trying to leave out the instantiated singleton module and configuration for a generic module -- can't do. Nevermind... John Griessen

Re: [Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-16 Thread Michael Schippling
Assuming that the example is not a strawman, can't you just use width_t everywhere that you need result storage and do your math at the maximum precision? I know that doesn't answer the actual question. There's probably someone out there who can come up with a circuitous declaration process that

Re: [Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-16 Thread David Gay
On 7/16/07, Hugo Sousa [EMAIL PROTECTED] wrote: Let me clarify, let's say a certain generic component has a parameter typedef width_t (and an interface with a command that allows to pass along a width_t variable) I want to perform some calculations on the variable, and store the results on

Re: [Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-16 Thread Philip Levis
On Jul 16, 2007, at 4:25 AM, Hugo Sousa wrote: Let me clarify, let's say a certain generic component has a parameter typedef width_t (and an interface with a command that allows to pass along a width_t variable) I want to perform some calculations on the variable, and store the results on

Re: [Tinyos-help] CC2420ActiveMessageC not working after cvs update (T2)

2007-07-16 Thread Philip Levis
On Jul 16, 2007, at 6:02 AM, Urs Hunkeler wrote: Hi Phil, Actually, I did not just do an update prior to submit the previous post, I also did a complete export of the whole tinyos-2.x module. It still doesn't work. So I explicitly downloaded the .platform file for tos/platform/ micaz and

[Tinyos-help] one strange question when using MoteWorks

2007-07-16 Thread Chris Yao
Hi, I use MoteWorks, Tools/shell to upload lesson_1, as follows: = ide.pl Ver:$Id: ide.pl,v 1.1.2.1 2006/05/29 07:22:52 lwei Exp $ Executing: /opt/MoteWorks/apps/tutorials/lesson_1/ bash -c make mica2 reinstall mib510,COM1 cp

RE: [Tinyos-help] one strange question when using MoteWorks

2007-07-16 Thread Giri Baleri
The command line arguments are case sensitive. Try make mica2 reinstall mib510,com1 or make mica2 reinstall mib510,/dev/ttyS0 instead and see if it works. - Giri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Yao Sent: Monday, July 16,

RE: [Tinyos-help] one strange question when using MoteWorks

2007-07-16 Thread Chris Yao
Giri, thanks for your reply. I tried both make mica2 reinstall mib510,com1 and make mica2 reinstall mib510,/dev/ttyS0. This time, it just stuck at uisp, like === C:\Crossbow\PN\IDE.bat C:\Crossbow\cygwin\opt\MoteWorks\apps\tutorials\lesson_1\ C:\Crossbow\cygwin\bin

RE: [Tinyos-help] one strange question when using MoteWorks

2007-07-16 Thread Giri Baleri
It sounds like the uisp is not able to proceed beyond the serial COM port. If it did, then you will see output like Firmware Version: 2.1 Atmel AVR ATmega128 is found. Why restarting the PC solves the problem, I don't know. It could be that some application is taking control over

Re: [Tinyos-help] USB related crash of host computer connected to TinyOS nodes

2007-07-16 Thread Razvan Musaloiu-E.
Hi! On Mon, 16 Jul 2007, Steve McKown wrote: On Friday 13 July 2007 09:22:00 pm Razvan Musaloiu-E. wrote: Hi! On Fri, 13 Jul 2007, Philip Levis wrote: On Jul 13, 2007, at 3:37 PM, Steve McKown wrote: On Wednesday 11 July 2007 11:40:02 am John Griessen wrote: I am having troubles starting

Re: [Tinyos-help] Precise contents and length of the 802.15.4 frames (and most especially with the TestNetwork App)

2007-07-16 Thread roberto pagliari
does it happen even during the transmission of a packet? I mean, if I write N bytes into the transmission queue, does the cc2420 check the FCF fram before transmitting it? thank you On 7/16/07, Steve McKown [EMAIL PROTECTED] wrote: On Sunday 15 July 2007 06:00:45 pm roberto pagliari wrote:

Re: [Tinyos-help] TOSH_SIGNAL and TOSH_INTERRUPT

2007-07-16 Thread Michael Schippling
There were some posts about pre-emptable interrupts a while ago whose final conclusions I don't remember. But in general ints on the ATMEGA are latched such that the second int will fire when interrupts are re-enabled. The part I don't remember is that there may be some level-only ints that do

RE: [Tinyos-help] one strange question when using MoteWorks

2007-07-16 Thread Chris Yao
giri, Under task manager, I do not see any of the processes (Palm Sync, XServe, XSniffer) etc are still running. However, uisp stil stucks. Under Windows XP, how can I know which process is taking over the serial port, com1? many thanks. Chris Giri Baleri