[Tinyos-help] Swapping TOS message buffer Problem

2006-09-06 Thread Hari Hara Sudhan
Hi every one, I have a problem with swapping tos message buffer I have to develop an application which has to receive a TOS Message through air and then Broad cast the message. The code is       TOS_MsgPtr msg_buff;     event TOS_MsgPtr

[Tinyos-help] Make error for cygwin

2006-09-06 Thread Firas Daghmash
Hi, after updating form version 1.x to 2.x, I am trying to compile one of the applications (Blink), either with make micaz sim or make micaz and ann error repoted and cygwin generate this error message: The procedure entry point __getreent could not be located in the dynamic link library

RE: [Tinyos-help] Swapping TOS message buffer Problem

2006-09-06 Thread Munaretto, Daniel
First I think you have to return m in the end of the event. And think about they are pointers,so for example: void swap (int *px, int *py){ int temp; temp=*px; *px=*py; *py=temp; } before you were swapping the copies of the elements. cheers Daniele -Original

[Tinyos-help] Re: Error Compiling Nucleus enabled application in Cygwin for PC platform

2006-09-06 Thread Sumit Gupta
Adding to the problem, it seems that there is a problem with tinyos-1.x/tos/platform/pc/hpl.c file. Please look into it. Also, I hve seen a suggestion posted at http://mail.millennium.berkeley.edu/pipermail/tinyos-commits/2005-June/006162.html Making change in it because of simulation

[Tinyos-help] Re: Error Compiling Nucleus enabled application in Cygwin for PC platform

2006-09-06 Thread Sumit Gupta
I just noticed that I cannot even compile a normal pc application i.e. without nucleus. Is it because I forgot to add any path or somthing. I just want to inform that I tried to install Nucleus before this and followed all the steps successfully mentioned in its manual. I installed it on cygwin,

Re: [Tinyos-help] Documentation for tmote

2006-09-06 Thread Pablo Gil Montaño
I don't think that is a problem about mixing 1.x code with 2.x code, because it happens with all the applications included with tinyos-1.x under /apps. Moreover, if I try to generate the documentation for the platform mica I get no error, but if I do the same with the same application for tmote I

Re: [Tinyos-help] Documentation for tmote

2006-09-06 Thread Pablo Gil Montaño
The problem is that I am using Linux (Ubuntu 6.06) and I can't just install the .exe provided by moteiv. I've followed the guide in [1], and apart from the problem with the documentation, everything seems to be working.[1]: http://www.chadmetcalf.com/tinyos-1x-on-ubuntu/ Joe Polastre [EMAIL

RE: [Tinyos-help] TOSComm vs RXTX in Linux?

2006-09-06 Thread Pablo Gil Montaño
Perhaps these installation guides will help you. I've followed [2] and everything seems to work ok except for the documentation generation. I have Ubuntu 6.06 and I had to change the link /usr/bin/java to the sun executable instead of the one included with ubuntu, but apart form that, I followed

[Tinyos-help] I2C Driver for MSP430

2006-09-06 Thread Max CORTIANA
I'm trying to solve a problem which is rose with the i2c driver for msp430. Shortly, I call a I2C read operation and get the readDone signal. If i call another I2C read or write command, i don't get any signal (readDone or Writedone) back. All these operations are called with the

[Tinyos-help] mica2 programming problems

2006-09-06 Thread samuel . watts
I am having problems programming a mica2 mote. when i use the make install... command the load seems to be successfully. however, the program does not seem to be running. i am trying to load the blink app onto the mote but the led does not blink. when the mote is powered all three LEDs light,

AW: [Tinyos-help] undefined reference during make micaz sim

2006-09-06 Thread Gaessler, Alexander
Hi Phil, thank you. For my problem there was a work-aroung from you (i guess) by e-mail earlier: TOSSIM for TinyOS 2.0 currently does not work under Cygwin. It turns out to be a really nasty problem: in Windows, shared objects cannot have undefined references. The way most python modules

[Tinyos-help] why do i get this warning... no new line at end of file

2006-09-06 Thread primalfear 69
hello everybody In many of my programs when i compile there is warning stating xyz.nc:9:2: warning: no new line at end of file Regards Primeballerina ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

RE: [Tinyos-help] why do i get this warning... no new line at end offile

2006-09-06 Thread Munaretto, Daniel
Sometimes you need one more linespace after the end of the program. Try it -Original Message- From: primalfear 69 [mailto:[EMAIL PROTECTED] Sent: Wed 9/6/2006 2:36 PM To: tinyos-help Cc: Subject: [Tinyos-help] why do i get this

[Tinyos-help] PrintBigMsgs.java

2006-09-06 Thread antonio gonga
hello I need one program Called PrintBigMsgs , if anyone cai help me feel free to answer back thanks ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

RE: [Tinyos-help] why do i get this warning... no new line at end of file

2006-09-06 Thread Pablo Gil Montaño
just place the cursor at the end of the file in any editor, insert a new line by pressing enter, save the file and end of the warning.primalfear 69 [EMAIL PROTECTED] escribió: hello everybody In many of my programs when i compile there is warning stating xyz.nc:9:2: warning: no new line at end

Re: [Tinyos-help] Documentation for tmote

2006-09-06 Thread Joe Polastre
[1] uses nesC 1.2.4. Upgrade to 1.2.7. -Joe On 9/6/06, Pablo Gil Montaño [EMAIL PROTECTED] wrote: The problem is that I am using Linux (Ubuntu 6.06) and I can't just install the .exe provided by moteiv. I've followed the guide in [1], and apart from the problem with the documentation,

[Tinyos-help] power management with a telosb

2006-09-06 Thread harun
Hello, I´m trying to put a telosb mote into the CPU sleep mode in order to power save. How can I do this ? Are there any examples ? And how does the power management works with a telosb ? Thank you in advance ___ Tinyos-help mailing list

Re: [Tinyos-help] Swapping TOS message buffer Problem

2006-09-06 Thread Andy Dalton
Do you every initialize msg_buffer to point to an actual message? You need something like: TOS_Msg buffer; TOS_MsgPtr msg_buffer; command result_t StdControl.init() { msg_buffer = buffer; } On 9/6/06, Hari Hara Sudhan [EMAIL PROTECTED] wrote: Hi every one, I have a problem with

Re: [Tinyos-help] Documentation for tmote

2006-09-06 Thread Pablo Gil Montaño
I've upgraded but I still have the same problem. The versions I'm using now are (ncc --version):ncc: 1.2alpha5nescc: 1.2.7aavr-gcc: avr-gcc (GCC) 3.4.3However, I have tried exactly the same under windows (with the tools provided by moteiv) and I can build the documentation for tmote without any

RE: [Tinyos-help] power management with a telosb

2006-09-06 Thread Pablo Gil Montaño
I'm not sure, but I think that TinyOS automatically puts the CPU into sleep when there are no tasks to be done by the CPU.harun [EMAIL PROTECTED] escribió: Hello, I´m trying to put a telosb mote into the CPU sleep mode in order to power save. How can I do this ? Are there any

Re: [Tinyos-help] Documentation for tmote

2006-09-06 Thread Joe Polastre
Have you installed tinyos-tools from tinyos-2.x/tools/ On 9/6/06, Pablo Gil Montaño [EMAIL PROTECTED] wrote: I've upgraded but I still have the same problem. The versions I'm using now are (ncc --version): ncc: 1.2alpha5 nescc: 1.2.7a avr-gcc: avr-gcc (GCC) 3.4.3 However, I have tried exactly

Re: [Tinyos-help] Make error for cygwin

2006-09-06 Thread Philip Levis
On Sep 5, 2006, at 10:43 PM, Firas Daghmash wrote: Hi, after updating form version 1.x to 2.x, I am trying to compile one of the applications (Blink), either with make micaz sim or make micaz and ann error repoted and cygwin generate this error message: The procedure entry point

Re: [Tinyos-help] Documentation for tmote

2006-09-06 Thread Joe Polastre
Phil, No, you only need to install the 2.x tools, which really are nesC tools more than anything else and should be equally applied to anyone running nesC 1.2.x regardless of which TinyOS version they are running. He is using Boomerang, which has both 1.x and 2.x features, thus the need for

[Tinyos-help] Errors in compiling NesC compiler.

2006-09-06 Thread Sumit Gupta
Hi, I had following four errors while compiling nesc-1.2.7 package. When I gave make command, I got following errors in the end. Can anyone help me in removing them? ava Xvariables.java Xwire.java Xwiring.java Location.java: In class `net.tinyos.nesc.dump.xml.Location': Location.java: In method

[Tinyos-help] Error Compiling Nucleus enabled application in Cygwin for PC platform

2006-09-06 Thread Sumit Gupta
Hi, I installed nucleus on cygwin and I am having some problem while compiling an application /tinyos-1.x/apps/CntToLeds. I followed instructions given in Nucleus Manual but I am Getting following errors only when I am trying to compile it with PC platform. (make pc nucleus) but it compiled fine

[Tinyos-help] Error Compiling Nucleus enabled application in Cygwin for PC platform

2006-09-06 Thread Sumit Gupta
Hi, I installed nucleus on cygwin and I am having some problem while compiling an application /tinyos-1.x/apps/CntToLeds. I followed instructions given in Nucleus Manual but I am Getting following errors only when I am trying to compile it with PC platform. (make pc nucleus) but it compiled fine

Re: [Tinyos-help] how to measure power consumption in tmote sky

2006-09-06 Thread Xiaofan Jiang
At this point, the best way is probably hook up a small shunt resistor (1-50Ohm depending on your load and oscilloscope accuracy) in series between the battery and the board, either on the ground side or the Vdd side. Then use an oscilloscope to measure it. Also pay attention to the

[Tinyos-help] Fuse bits and power management

2006-09-06 Thread Jacob Sorber
Back in 2004, This was posted to the tinyos-users mailing list. Sometimes -- for a wide range of reasons -- the fuse bits become set improperly. This can lead to really weird behavior which is very hard to debug or figure out[1]. Among other things, it leads to lots of cries for help on

[Tinyos-help] Measuring end to end delay

2006-09-06 Thread 박판근
Hello everyone. I want to measure end to end delay using sky tmote. I will sychronisenodes, thensource node sendslocal time to destination node. So,destination cangetend to end delay using differencelocal time inreceiver and receivedtime value. Is this proper wayto measure end to end delay?

[Tinyos-help] ASSEMBLER ERROR, make micaz sim, McuSleepC

2006-09-06 Thread [EMAIL PROTECTED]
Good evening, When I try to use McuSleepC and Tossim I obtain the following compilation error: /tmp/ccTyOEVj.s: Assembler messages: /tmp/ccTyOEVj.s:34478: Error: no such instruction: `sleep' I haven't any problem when I try to compile it for micaz platform, instead. Have a good night ! bye.

[Tinyos-help] How to program mica2 (Thermal)

2006-09-06 Thread sundaresh sundaralingam
Hi,I am involved in an assignment to program the mica2 sensors to send back a message once a thermal reading of 35C and 40C is detected. Can this program be written in nesC? Please give some pointers in order to create this program and also errors to be vary of as I am still in the beginning

[Tinyos-help] Interrupts and async events question

2006-09-06 Thread jose m
Hello everybody, In tinyos, usually, an interrupt signals an async event. When an interrupt routine is executed, all the interrupts are masked and cannot interrupt the current interrupt routine. If this interrupt routine jumps to a signalled event, are the other interrupts disabled until this

[Tinyos-help] Questions regarding concurrency in TinyOS 1.x

2006-09-06 Thread Adam
(1) Inside the tinyOS event-driven concurrency system, does the atomic section (including called function) occupy the CPU and run until completion, such that even an async event (interrupt)can not preempt it? -- even assume the protected variables has nothing related with the async event

Re: [Tinyos-help] Questions regarding concurrency in TinyOS 1.x

2006-09-06 Thread Conor Todd
Interrupts are disabled within async{} blocks. Therefore, no events can be fired, and nothing will happen except for what's in your async code (unless the batteries die or your mote falls into a pool of molten lava). - ConorOn 9/6/06, Adam [EMAIL PROTECTED] wrote: (1) Inside the tinyOS

Re: [Tinyos-help] Interrupts and async events question

2006-09-06 Thread Conor Todd
No. The only way to break out of the async nature of interrupt handlers (and functions called by them) is to post a task, thus allowing the synchronous interrupt-handling call tree to terminate. - C On 9/6/06, Adam [EMAIL PROTECTED] wrote: It is a great question - I am looking at

[Tinyos-help] Problem in Sourceforge CVS tree update

2006-09-06 Thread Sumit Gupta
Regarding earlier problem, I have noticed that it appeared after I update my tinyos Tree. By giving following command: cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P tinyos-1.x Well now tree is updated and a lot of file has been replaced and/or stored. Now I am wondering which