Re: [Tinyos-help] Port Forwarding; JNI

2008-05-15 Thread Urs Hunkeler
Hi Fernando, When you are logged in as your user (without sudo), your user apparently doesn't have access to the serial port. The access to the serial port happens over a virtual file (device file), whose permissions behave the same as for regular files. Instead of changing the serial port's

Re: [Tinyos-help] Platform implementation setting TOS_NODE_ID

2008-05-15 Thread Urs Hunkeler
Hi Alecandre, The TinyOS environment programs the node id by modifying symbols in the compiled binary before flashing it to the mote. I think this is compiler and platform dependent (since where the symbols are placed and how to access them would depend on the binary format and be platform

[Tinyos-help] How to reach the wrong conclusions

2008-05-15 Thread David Henry
I thought that I should share with you the following episode. It may save someone else a lot of grief. I'm developing an application based on TinyOS 1 and (moteiv) Multihop. When testing the network in the most convenient open space (my back garden) I had lots of wireless problems as shown by

[Tinyos-help] R: About Temperature

2008-05-15 Thread Latronico Mario
I have similar problems, but i got a value which is some celsius degree above the real temperature. My code is: System.out.println(ADC Value + average); final double a = 0.00130705; final double b = 0.000214381; final double c = 0.00093; double Rthr = ( 1.0 * (1023.0 - average )) /

[Tinyos-help] how to determine SACK packet

2008-05-15 Thread Paolo
Hello, How i can determine if a packet in RX fifo is a SACK packet ? If the cc2420_header_t-length is 5 bytes (2B FCF + 1B DSN + 2B FCS) i can say that is a SACK packet ? Thanks. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

[Tinyos-help] testing radio comm in Tossim.

2008-05-15 Thread Hazem Al- Ojeh
Hi all, I tried just to follow the tutorial for Tossim, however for some reason I get different output than that specified in the tutorial.. the tutorial show that my ouput should look like: 1 2 -54.0 2 1 -55.0 1 3 -60.0 3 1 -60.0 2 3 -64.0 3 2 -64.0 DEBUG (1): Application booted. DEBUG

Re: [Tinyos-help] problems about Deluge

2008-05-15 Thread jiwen zhang
Hello Razvan ME : today, i modify the application in the directory of app/Blink and let it support deluge : -in the BlinkAppC.nc , use the component DelugeC and then DelugeC.Leds - LedsC -Modify the Makefile , add TINYOS_NP = BNP ,CFLAGS += -DDELUGE_BASESTATION i can use

[Tinyos-help] tests/deluge/Blink

2008-05-15 Thread Reema Mathew - Michael
Hi All, I am trying deluge for iris motes with tinyos2.0.2 I am able to compile tosboot When I tryto make iris for Blink in apps/tests/deluge/Blink the following errors are coming. mkdir -p build/iris compiling BlinkAppC to a iris binary ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all

[Tinyos-help] from the examples file (packets.py)

2008-05-15 Thread Hazem Al- Ojeh
Hi all, I am trying to use the packets.py given from the examples, however when I try to use it: ./packets.py it says it: import tinyos.message.Message ImportError: No module named tinyos.message.Message anyone knows why its doing that?? ___

[Tinyos-help] something strange

2008-05-15 Thread Nahr ...
Hi, I made a grid topology 81 nodes spaced by 4 feet. when I ran simulation : each node sent only one packet and the total packet received by the sink is equal to zero. == PDR = 0 However when I increased the number of node to 100 (grid spaced by 4 feet) I found that the number of packet sent by

[Tinyos-help] swap between cc1000 and cc2420

2008-05-15 Thread salvatore galati
Hi,I'm a student of University of Pisa. I want to test my application with Tossim and i want to use both cc1000 and cc2420. In the configuration file of my application i have: configuration Application { // this module does not provide any interface } implementation { components MainC,

Re: [Tinyos-help] from the examples file (packets.py)

2008-05-15 Thread funofnet Funofnet
Hi, you should add this line in the top of your python file #! /usr/bin/python Funofnet __ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo!

[Tinyos-help] Unable to install Blink on the micaz mote using the MIB510 (Ubuntu 7.10)

2008-05-15 Thread Jordan Jan Jordanow
Hello * i have a problem with installation of 'Blink' application on the micaz mote :-(. When i try to compile install Blink code onto the mote i get an error : - mkdir -p build/micaz compiling BlinkAppC to a micaz binary ncc -o

Re: [Tinyos-help] from the examples file (packets.py)

2008-05-15 Thread Sarfraz Nawaz
Or you can use this command python packets.py 2008/5/15 funofnet Funofnet [EMAIL PROTECTED]: Hi, you should add this line in the top of your python file #! /usr/bin/python Funofnet __ Do You Yahoo!? En finir avec le spam? Yahoo!

[Tinyos-help] About CC2420Receive

2008-05-15 Thread Paolo
Hello, Some questions about CC2420ReceiveP the m_missed_packets variable is a REAL number of packets we missed because we were doing something else ? When this case (else code) occurs (practically/physically)? else { // Length is too large; we have to flush the entire Rx FIFO

[Tinyos-help] Is it possible to modify the TOS_NODE_ID?

2008-05-15 Thread alessiobarbirato
Hi all, my question is very simple. Is it possible to modify the TOS_NODE_ID variable after the initial software installation? I am working with tmote sky devices and I need to change the identification number assigned during the installation with the serial ID number. Do you think that this

Re: [Tinyos-help] About CC2420Receive

2008-05-15 Thread Paolo
ERRATA CORRIGE: When this case (else code) occurs (practically/physically)? else { // Length == 0; start reading the next packet atomic receivingPacket = FALSE; call CSN.set(); call SpiResource.release(); waitForNextPacket(); } Sorry Paolo wrote:

[Tinyos-help] TOS 2.x simulator

2008-05-15 Thread Frederic Beaulieu
Hi all, I just wonder where I can find docs for the Tinyos 2.x simulator (how to use it, tools, etc). Thanks, Fred ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

Re: [Tinyos-help] Is it possible to modify the TOS_NODE_ID?

2008-05-15 Thread Eric Keller
You can do it in your code. I assume you want to do it as a permanent programming operation, which I don't know how to do. You could also have some code that saved your preferred ID in the flash memory. There is a tutorial on using the storage device. See:

Re: [Tinyos-help] TOS 2.x simulator

2008-05-15 Thread Ittipong Khemapech
It's called TOSSIM. http://docs.tinyos.net/index.php/TinyOS_Tutorials#TOSSIM Ittipong 2008/5/15 Frederic Beaulieu [EMAIL PROTECTED]: Hi all, I just wonder where I can find docs for the Tinyos 2.x simulator (how to use it, tools, etc). Thanks, Fred

[Tinyos-help] R: Is it possible to modify the TOS_NODE_ID?

2008-05-15 Thread alessiobarbirato
Hi Eric, thanks for your answer. I will have a look at this tutorial. Cheers, Alessio. Da: [EMAIL PROTECTED] per conto di Eric Keller Inviato: gio 15/05/2008 16.58 A: Tinyos-help@millennium.berkeley.edu Oggetto: Re: [Tinyos-help] Is it possible to modify the

Re: [Tinyos-help] TOS 2.x simulator

2008-05-15 Thread Frederic Beaulieu
It seems that many version exist (tossim+tinyviz, tossim live). Which one is the best for tos 2.x? Is tinyviz application working for tos 2.x? From: Ittipong Khemapech [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 11:12 AM To: Frederic Beaulieu Cc: (tinyos-help@millennium.berkeley.edu)

Re: [Tinyos-help] testing radio comm in Tossim.

2008-05-15 Thread Daniel Pereira
Hazem, I have the same problem and I tried to change the noise table, but unfortunately I didn't get it. On Thu, May 15, 2008 at 4:30 AM, Hazem Al- Ojeh [EMAIL PROTECTED] wrote: Hi all, I tried just to follow the tutorial for Tossim, however for some reason I get different output than that

[Tinyos-help] Transmission range of MicaZ mote

2008-05-15 Thread Gary Lee
Hi, In an outdoor environment, I put one MicaZ mote A about 1.5m high above the ground. I use another MicaZ+MIB520 to receive data transmitted from MicaZ A. I am using TinyOS 2.x and I do set the maximum transmission range of A (CFLAGS +=-DCC2420_DEF_RFPOWER=30). However, the transmission range

Re: [Tinyos-help] File request: avrdude.conf

2008-05-15 Thread Janos Sallai
Jean-Michel, This sounds good. I'm cc-ing the tinyos-help list -- just in case anybody else wants to use the iris toolchain/avrdude on OSX. Janos -Original Message- From: Jean-Michel Dricot [mailto:jdricot at gmail.com] Sent: Thursday, May 15, 2008 2:26 AM To: Janos Sallai Subject:

[Tinyos-help] Re-asked question something strange please help

2008-05-15 Thread Nahr ...
Hi, I made a grid topology 81 nodes spaced by 4 feet. when I ran simulation : each node sent only one packet and the total packet received by the sink is equal to zero. == PDR = 0 However when I increased the number of node to 100 (grid spaced by 4 feet) I found that the number of packet sent by

Re: [Tinyos-help] About CC2420Receive

2008-05-15 Thread David Moss
We miss a packet if the receive interrupt fires and we can't service it. I'm not sure how often this really occurs because the code was left over from earlier implementations. The m_missed_packets variable indicates how many receive interrupts fired that we haven't handled. The 0-byte

Re: [Tinyos-help] how to determine SACK packet

2008-05-15 Thread David Moss
The FCF word contains a few bits that indicate the type of frame is an acknowledgment frame. It is possible to receive a 5-byte packet that is not an ack frame but simply noise, where the CRC passes. If the FCF word of a packet is an acknowledgment type, and the length is 5 bytes, then you

[Tinyos-help] any simulator for simulating cricket distances

2008-05-15 Thread manohar adari
HI , I am student of IIT Delhi, Can any one suggest me a simulator to simulate the NesC implementation for Cricket Hardware which involves the measurement of distances and serial port on the cricket mote. Thanks in advance, -- Manohar Adari, M.Tech In Computer Technology(c.tech), IIT

[Tinyos-help] Nesdoc

2008-05-15 Thread Frederic Beaulieu
Is there any other documentations than these two quick overview: http://docs.tinyos.net/index.php/Getting_Started_with_TinyOS http://www.tinyos.net/tinyos-1.x/doc/nesdoc Thanks, .:Fred ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

Re: [Tinyos-help] how to determine SACK packet

2008-05-15 Thread Paolo
Thanks David another question: the SACK_HEADER_LENGTH variables is set to 7 byte, Why ? FCF (2B) + DSN(1B) + FCS (2B) = 5B ??? David Moss wrote: The FCF word contains a few bits that indicate the type of frame is an acknowledgment frame. It is possible to receive a

Re: [Tinyos-help] how to determine SACK packet

2008-05-15 Thread David Moss
The SACK_HEADER_LENGTH constant in the receive branch refers to the position in the data frame (non-ack packet) at which we can safely issue an acknowledgment. This position is in the header of a normal packet: typedef nx_struct cc2420_header_t { nxle_uint8_t length; nxle_uint16_t

Re: [Tinyos-help] Nesdoc

2008-05-15 Thread Philip Levis
On May 15, 2008, at 10:42 AM, Frederic Beaulieu wrote: Is there any other documentations than these two quick overview: http://docs.tinyos.net/index.php/Getting_Started_with_TinyOS http://www.tinyos.net/tinyos-1.x/doc/nesdoc http://docs.tinyos.net/index.php/Main_Page Phil

Re: [Tinyos-help] R: About Temperature

2008-05-15 Thread Michael Schippling
I would be quite surprised to find even two sensors that were close... Have a look at this to get some ideas about calibration: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-June/017282.html MS Latronico Mario wrote: I have similar problems, but i got a value which is some

[Tinyos-help] is a packet resent if it was not Acknowledged??

2008-05-15 Thread Hazem Al- Ojeh
I am testing this method: event void AMSend.sendDone(message_t* msg, error_t error) { if (pkt == msg) { if( call Acks.wasAcked(msg)){ call Leds.led2Toggle(); } else{

[Tinyos-help] how to get all the versions of tinyos

2008-05-15 Thread Li, Weijia (Vicky)
Hi guys, I'm doing some research about the software update management in WSNs. I'd like to use tinyos as a case study, so I want to get all the versions of it, and do some comparison. I used the cvs command cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P tinyos-1.x -r release Num

Re: [Tinyos-help] Unable to install Blink on the micaz mote using the MIB510 (Ubuntu 7.10)

2008-05-15 Thread Janos Sallai
Jordan, This has come up on the list before. Please replace die with warn at row 81 of /usr/bin/tos-set-symbols. You may want to search the list archive for details. Janos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Jan Jordanow Sent:

Re: [Tinyos-help] tests/deluge/Blink

2008-05-15 Thread Janos Sallai
Reema, Please make sure that you have the latest sources from the CVS. You need to update your entire tinyos-2.x tree, not only the iris specific directories. I have verified that it does compile with the latest sources. Janos From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

[Tinyos-help] 802.15.4 stack feedback

2008-05-15 Thread Frederic Beaulieu
Hi all, Is there anyone that have work with a 802.15.4 stack over tinyos 1.x or 2.x like Meshnetics OpenMAC or Tiny15Four? I'm just curious to hear from your experience good or bad. Do you know other project that I should check also? Thanks in advance, .:Fred

Re: [Tinyos-help] TOS 2.x simulator

2008-05-15 Thread Paul Stickney
TinyViz is ONLY for TOSSIM 1.x (TOS 1.x): TOSSIM 2 (TOS 2.x) works a good bit different. In particular, the main interface is directly with the TOSSIM kernel through a Python/C++ interface. This was designed to allow a script-first approach and completely bypasses the GUI layer. You can, of

Re: [Tinyos-help] from the examples file (packets.py)

2008-05-15 Thread Paul Stickney
This am quite sure this is not related to not finding Python. You need to set $PYTHONPATH correctly so it (Python) knows where to find said libraries. It should be something like: $TOSROOT/support/sdk/python (adjust as needed). Locally, I see those libraries in the 2.0.2 CVS but _NOT_ in the

Re: [Tinyos-help] Linking C files into Tinyos

2008-05-15 Thread Paul Stickney
Good luck trying to link external C files... (The following only covers when C code is built WITH nesC.) It only takes up extra code/memory if they are called from more than one location... does marking them with the spontaneous nesC attribute fix your problem? (It should; also look at the nesC C

Re: [Tinyos-help] Transmission range of MicaZ mote

2008-05-15 Thread Paul Stickney
Does changing the channel have any effect? RE: [Tinyos-help] How to reach the wrong conclusions ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] uartstream receive timeout

2008-05-15 Thread vaasu
Hii, does anyone know the timeout for uartstream.receive command.. I send a request to rs485 connector from uartstream.send interface .. and then call uartstream.receive command to receive the response from rs485... the problem is ..sometime due to hardware failure rs485 doesn't always respond

[Tinyos-help] iNSTALLATION PROBLEM

2008-05-15 Thread Saugat Joshi
Hi I think that the installation of tinyos-2.x is ok.However,I am having the folling problem.I get the following message when I try like::make tmote Couldn't execute msp430-gcc make: *** [exe0] Error 2 Below is the more briefing about what appears in the terminal. I have also included my

Re: [Tinyos-help] uartstream receive timeout

2008-05-15 Thread Sarfraz Nawaz
Uartstream.send returns SUCCESS or FAIL depending on whether the request was accepted or not. Uartstream.sendDone signals whether the bytes were successfully sent or not. You should check these returned values before issuing Uartstream.receive. If you have written your own modules/code for RS485

[Tinyos-help] Alarm32khz32C on Iris Mote

2008-05-15 Thread Sarfraz Nawaz
Hello everyone, I am trying to use Alarm32khz32C in an application that I intend to use on an iris mote. However, when I compile with make iris I get the following error In component `Counter32khz32C': /home/mnawaz/tinyos-2.x/tos/platforms/mica/Counter32khz32C.nc:34: no match I am using the

[Tinyos-help] generating random numbers!

2008-05-15 Thread Hazem Al- Ojeh
I am trying to generate random numbers, however I keep getting the same numbers over and over, I did find people with similar problems but I did not understand how I can solve the problem!? any suggestions? What i am doing now is number = (Random.rand16() % 100) + 1; to get a number between 1

Re: [Tinyos-help] Transmission range of MicaZ mote

2008-05-15 Thread Dan
I did a test indoors. The comm. range of micaz seemed only 15m. On 5/15/08, Gary Lee [EMAIL PROTECTED] wrote: Hi, In an outdoor environment, I putone MicaZ mote A about 1.5m high above the ground. I use another MicaZ+MIB520 to receive data transmitted from MicaZ A. I am using TinyOS 2.x

Re: [Tinyos-help] problems about Deluge

2008-05-15 Thread Razvan Musaloiu-E.
Hi! On Thu, 15 May 2008, jiwen zhang wrote: Hello Razvan ME : today, i modify the application in the directory of app/Blink and let it support deluge : -in the BlinkAppC.nc , use the component DelugeC and then DelugeC.Leds - LedsC -Modify the Makefile , add TINYOS_NP = BNP

Re: [Tinyos-help] Tinyos-help Digest, Vol 61, Issue 76

2008-05-15 Thread Yanchuan Li
/Getting_Started_with_TinyOS http://www.tinyos.net/tinyos-1.x/doc/nesdoc Thanks, .:Fred -- next part -- An HTML attachment was scrubbed... URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080515/febd9f66/attachment-0001.htm

Re: [Tinyos-help] generating random numbers!

2008-05-15 Thread Paul Stickney
The standard random number in TOS, are like many in computer-science, are pseudo-random. That is, they use some feedback of previous state(s) to generate new state. There are some rather complex approaches (Mersene-Twister, etc) but there are also rather simple approaches ... like RandonLfsrC. (I

Re: [Tinyos-help] Is it possible to modify the TOS_NODE_ID?

2008-05-15 Thread Paul Stickney
If it just needs to be set after compilation but before initial flashing, then it is rather easy to setup an automated system to modify the TOS_NODE_ID via tos-set-symbols. However, TOS_NODE_ID likely does not have the storage capacity to store your serial (I believe it is only 16bits). On Thu,

Re: [Tinyos-help] iNSTALLATION PROBLEM

2008-05-15 Thread Paul Stickney
Also, do verify $PATH is what you think it should be. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] iNSTALLATION PROBLEM

2008-05-15 Thread Paul Stickney
Couldn't execute msp430-gcc That is the problem: Install the msp430 tools as explained by the installation guide. If you think you have (successfully), find the msp430-gcc file and add it to your $PATH. If the msp430-gcc file is not to be found, then it hasn't been installed correctly.

Re: [Tinyos-help] avr-gcc for Iris motes

2008-05-15 Thread Paul Stickney
If it's just the glibc dep., can upgrade it (glibc)? (You know you want Lenny ;) If not, can you install (force) from RPMs (or with DEBs) and have it work? (This isn't a particularly good option.) On Wed, May 14, 2008 at 1:15 AM, Sarfraz Nawaz [EMAIL PROTECTED] wrote: Kevin, I tried the

Re: [Tinyos-help] How to control the radio power in iris platform?

2008-05-15 Thread Paul Stickney
LQI is in relation to how many code-bits are good AFAIK. For distance, even questionable RSSI readings seem more ... well, useful. sing.stanford.edu/talks/emnets2006.ppt has some pretty graphics of LQI values. It's not too pretty. (Well, the conclusion, and that was even from a localization