Re: [Tinyos-help] Random in TOSSIM

2007-02-12 Thread Philip Levis
On Feb 11, 2007, at 10:44 PM, MINO GB wrote: There is a problem with Random.rand() function in TOSSIM. The result of this functions is always identical for each mote. For example: $ build/pc/main.exe -t=50 9 SIM: Random seed is 46875 4: Random: 25778 1: Random: 49743 2: Random: 30049 6:

Re: [Tinyos-help] Random in TOSSIM

2007-02-12 Thread Urs Hunkeler
Phil, It seems that Mino used different seeds. Looking at the output Mino posted I get the impression that the order of the numbers is different, but that the numbers always stay the same. This would mean that the PRNG produces a limited set of numbers, which seems to be a bit odd. Cheers,

[Tinyos-help] how to specify the address of ndoes

2007-02-12 Thread qin zhao
Hi, I'm new to TinyOS. I started programming for a simple application with two nodes. One is the master and the other one is the slave. My question is that how to specify the address of the two nodes. What I did is that I use TOS_LOCAL_ADDRESS and compare it's value with 0. event result_t

Re: [Tinyos-help] Random in TOSSIM

2007-02-12 Thread Philip Levis
On Feb 12, 2007, at 1:04 AM, Urs Hunkeler wrote: Phil, It seems that Mino used different seeds. Looking at the output Mino posted I get the impression that the order of the numbers is different, but that the numbers always stay the same. This would mean that the PRNG produces a limited

RE: [Tinyos-help] How To SetUp A Basic Sensor Network

2007-02-12 Thread Giri Baleri
First you need to set-up Stargate's CF card with XServe and Postgres. Please refer to Stargate manual for details (Section 3.2). http://www.xbow.com/Support/Support_pdf_files/Stargate_Manual.pdf Then program the Motes with appropriate XMesh-based sensor apps using MoteConfig. Please refer to the

[Tinyos-help] SounderControl.start()

2007-02-12 Thread Conard, Andrew
Hi, I was wondering how this method works exactly. When called once, is it only supposed to chirp? Or when you call it, does the sounder stay on until the SounderControl.stop() is called? For some reason, we have a program where the sounder is supposed to stay on for two seconds once a timer

Re: [Tinyos-help] math functions and floating point numbers

2007-02-12 Thread Michael Schippling
As far as I understand it float should just work. The default compile/link line has -lm which includes the standard math libs in the link. If you are using a lib function like abs() or sin() or whatever you probably want to #include math.h in the source file to get the prototypes. Are you

[Tinyos-help] Problems using enums

2007-02-12 Thread Ankur Kamthe
Hi all, I trying using enum inside a program in tinyos. However, the program compiles for mica2 but while compiling for telosb (using tinyos1.x) the compiler gives the following error: In component `BlinkM': BlinkM.nc:47: syntax error before `0x0001' make: *** [exe0] Error 1 The statement at

Re: [Tinyos-help] Problems using enums

2007-02-12 Thread Michael Schippling
I usually see it used with an identifier, ala: enum states {INIT,BUSY}; perhaps the ATMEGA compiler is looser in it's interpretation than the MPS... MS Ankur Kamthe wrote: Hi all, I trying using enum inside a program in tinyos. However, the program compiles for mica2 but while compiling

Fwd: [Tinyos-help] math functions and floating point numbers

2007-02-12 Thread virginia estellers
Hi, thanks for such an early answer! I've tried lots of variations of #include (different places on the code) but even if I can compile, the math functions do not work, as if the library wasn't linked, or math.h couldn't be preprocessed appear on the cygwin shell. All it cames to my mind to

Re: [Tinyos-help] Problems using enums

2007-02-12 Thread Ankur Kamthe
Hi Michael, I tried that along with typedef enum {INIT=0,BUSY=1} states; states state; I always end up getting the compiler error ankur ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

[Tinyos-help] Regarding FlashBridge

2007-02-12 Thread SANTOSH KUMAR
Hello David, I have written a program to read and write from the flash using FlashBridge interface. In the first program say FlashWrite I write to the address 0x00 some data say hello\n. In another program say FlashRead I read from that location 0x00. Here if I compare the value that was written

Re: [Tinyos-help] math functions and floating point numbers

2007-02-12 Thread Michael Schippling
(I'm redirecting this back to the help list to keep a record of my mistakes...) hmmI put your files in a directory named Wint under contrib/xbow/apps and changed the Makefile to COMPONENT=W (because that's your file name W.nc), then ran make micaz which seems to be ok (modulo silly

Re: [Tinyos-help] Problems using enums

2007-02-12 Thread Ankur Kamthe
hi Michael, I found out my mistake. It seems INIT, BUSY are already used by telosb platform someplace. I replaced the names and it worked. thanks, ankur ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

[Tinyos-help] AVR butterfly port

2007-02-12 Thread Ken Peirce
! Search movie showtime shortcut. -- next part -- An HTML attachment was scrubbed... URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070212/8f8e9c19/attachment.html -- Message: 4 Date: Mon, 12 Feb 2007 13:22:41 -0500

Re: [Tinyos-help] The new version of reprograming MSP430F1611 tool

2007-02-12 Thread Steve McKown
Hi Ark, On Saturday 10 February 2007 01:10, ARK wrote: I made my tmote Sky mote broken. I guessed its because the MSP430F1611 is broken.(UART1-Rx broken) So I replaced a new MSP430F1611 chip. Then I do the steps on this web(http://www.cs.utah.edu/~vchakra/msp430-jtag.html). But when I plug

[Tinyos-help] Make Micaz/Mica2 Compilation Error

2007-02-12 Thread Jane
Hello everyone, I have Mac OS X 10.4.8, nesc 1.2.8a, TinyOS 2.x, gcc 4.0.1, avr-libc1.4. I got some errors when I try to compile make micaz/mica2 (make micaz sim works). Is it a nesC patch problem? If it is, could someone give me a link to the most current patch please? Thank you. YanYan

[Tinyos-help] Java IOException: System can't find specified path to COM port

2007-02-12 Thread stacy.walker
Hi, I'm having trouble running the Java program that comes with TestSerial in TinyOS 2.0. I have searched the archives, but can't find direct reference to the following error: [EMAIL PROTECTED] /opt/tinyos-2.x/apps/tests/TestSerial $ java net.tinyos.tools.Listen -comm serial@/dev/ttyS7:micaz

Re: [Tinyos-help] SounderControl.start()

2007-02-12 Thread Tarun Bansal
It should remain on until you call SounderControl.stop(). Check your hardware or post your code to the mailing list Tarun On 2/12/07, Conard, Andrew [EMAIL PROTECTED] wrote: Hi, I was wondering how this method works exactly. When called once, is it only supposed to chirp? Or when you

RE: [Tinyos-help] SounderControl.start()

2007-02-12 Thread Conard, Andrew
I found out the issue. I had another instance of the sounder interface running on another component. Thanks. -Original Message- From: Tarun Bansal [mailto:[EMAIL PROTECTED] Sent: Tue 2/13/2007 12:52 AM To: Conard, Andrew Cc: Tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help]

Re: [Tinyos-help] how to specify the address of ndoes

2007-02-12 Thread Tarun Bansal
The address of the mote is specified when uploading the program onto that particular mote. Check Device Addressing section at http://www.tinyos.net/tinyos-1.x/doc/tutorial/programmers.html If you are using TOSSIM, then addresses are allocated by default from 0 to N-1 Tarun

Re: [Tinyos-help] Java IOException: System can't find specified path to COM port

2007-02-12 Thread Michael Schippling
I'm not sure that the sys32/java thing is the main problem but try putting the Real(TM) java/bin as the first thing in your PATH env var. mine is something like: /cygdrive/c/JAVA/j2sdk1.4.2_04/bin:.:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:... You should have system32 in your

Re: [Tinyos-help] Problems using enums

2007-02-12 Thread Andy Dalton
You might expect to see something like that if one or more of the enum constants were preprocessor macros. Consider something like: #define INIT 0x0001 ... enum {INIT, BUSY}; ... That would get turned into: enum (0x0001, BUSY); ... which would cause the compiler to be unhappy

Re: [Tinyos-help] Problems using enums

2007-02-12 Thread Michael Schippling
aha...of course...very good, and in fact a good reason to use enums instead of defines. too bad they were invented after I learned to program... thx MS Andy Dalton wrote: You might expect to see something like that if one or more of the enum constants were preprocessor macros. Consider