[Tinyos-help] Temperature reading program

2008-01-29 Thread G. Santhosh Kumar
Here is a simple example of how to read temperature using Mica 2 Sensing board and display the most significant three bit on led. Go to the folder /opt/tinyos-1,x/apps/SenseToLeds Open the file file SenseToLeds.nc. It should look like as shown below. configuration SenseToLeds {} implementati

[Tinyos-help] Error:In Tinyos-2.x BlinkToRadio packet too long and bad packet

2008-01-29 Thread mahendra meena
Hello, I am using tinyos-2.x with Xubuntu. I installed the ISO image of Xubuntu provided on www.tinyos.net. I installed Base Station on one tmote sky, BlinkToRadio on another tmote sky and run the following command java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:tmote serial@/dev/ttyUSB1:

[Tinyos-help] temperature sensor em tmote

2008-01-29 Thread Márcio Fantini Miranda
Hi, I am trying to read the temperature using the Osciloscope application. To do this, I changed the SensorDemoC() por SensirionSht11C (and others, like TempC or HumidityC). But I ever get error during compilation. Anyone could help me? I am using a tmote sky board. Thanks in advance, Marcio Fanti

Re: [Tinyos-help] Intercept interface length argument size (uint16_t)

2008-01-29 Thread Omprakash Gnawali
On Jan 29, 2008 11:41 AM, Dimas Abreu Dutra <[EMAIL PROTECTED]> wrote: > Hello, > > I am using the Intercept interface on a modified version of BaseStation and > am wondering why does the Intercept.forward has a uint16_t length. No > message is quite that big and even the Send.send can have only a

Re: [Tinyos-help] Re: Dynamic Memory Allocation

2008-01-29 Thread Omprakash Gnawali
On Jan 29, 2008 11:36 AM, Philip Levis <[EMAIL PROTECTED]> wrote: > > On Jan 29, 2008, at 2:49 AM, AIGroup wrote: > > > I believed... > > I'm using TinyOS 2.0. > > I tried to compile and use these statements in my code: > > int *x; > > x=(int *)(malloc(sizeof(int))); > > *x=4; > > d

Re: [Tinyos-help] hi all

2008-01-29 Thread Michael Schippling
tos-check-env should be in /usr/bin, which seems to be linked to /bin somehow (real-path C:/cygwin/bin if you're on windows and installed cygwin in the more-or-less default place...) If it's not there then you didn't install as successfully as you'd hoped. If it is there and doesn't execute then

[Tinyos-help] hi all

2008-01-29 Thread karthik panchan
HI, I installed Tinyos-1.x and every thing went on perfectly . but when i run the tos-check-env and try to execute configure it replies with a command not found message.. can some one help me how to get rid of this situtaion. even during the tos-check-env phase i exported the tiny.jar file in

RE: [Tinyos-help] Increase of Tmote sky Tos_Msg size

2008-01-29 Thread antonio gonga
You can use your own message size. The trick that I used is to resize the message at compilation Time. There's a TEP describing it, what you just have to do, is to add this parameter in the makefile. CFLAGS += DTOSH_DATA_LENGTH= X, where X is the new size of the payload you desire (TOSH_DATA_L

Re: [Tinyos-help] Re: Dynamic Memory Allocation

2008-01-29 Thread AIGroup
Did anybody try to use the PoolC component? I'm thinking to use a static buffer creating a "personal" malloc. What do you think about this last solution? 2008/1/29, Dimas Abreu Dutra <[EMAIL PROTECTED]>: > > Perhaps you should use the PoolC component which provides similar > functionalities but is

Re: [Tinyos-help] Re: Dynamic Memory Allocation

2008-01-29 Thread Dimas Abreu Dutra
Perhaps you should use the PoolC component which provides similar functionalities but is safer. It works with pre-allocation. ~Dimas~ 2008/1/29, Philip Levis <[EMAIL PROTECTED]>: > > > On Jan 29, 2008, at 2:49 AM, AIGroup wrote: > > > I believed... > > I'm using TinyOS 2.0. > > I tried to compile

Re: [Tinyos-help] Increase of Tmote sky Tos_Msg size

2008-01-29 Thread Michael Schippling
Make sure you are changing the right AM.h I believe its this one for tmotes: C:\cygwin\opt\tinyos-1.1.7\tos\platform\telos\AM.h MS Edmund wrote: Hi , Does anyone knows how to increase the packet size of TOS_msg? I have tried editing the AM.h TOSH_DATA_LENGTH to 34. But some how when

[Tinyos-help] Intercept interface length argument size (uint16_t)

2008-01-29 Thread Dimas Abreu Dutra
Hello, I am using the Intercept interface on a modified version of BaseStation and am wondering why does the Intercept.forward has a uint16_t length. No message is quite that big and even the Send.send can have only a uint8_t sized payload. Is there a reason for the bigger length? ~Dimas~ ___

Re: [Tinyos-help] Re: Dynamic Memory Allocation

2008-01-29 Thread Philip Levis
On Jan 29, 2008, at 2:49 AM, AIGroup wrote: I believed... I'm using TinyOS 2.0. I tried to compile and use these statements in my code: int *x; x=(int *)(malloc(sizeof(int))); *x=4; dbg("BlinkC", "Timer 0 fired @ %s.\nContenuto di x = %d\n", sim_time_string(), *x); and all w

Re: [Tinyos-help] Parametrized interface on TinyOS 1.X

2008-01-29 Thread Greg Hackmann
Ubaldo Tiberi wrote: Hello everybody. I've just start studying theTinyOS and I have some problems about parametrized intefaces. The code I wrote is below (this app is something that should simulate a traffic light, I know that I could did it in another way, but I did it so just as exercise)

Re: [Tinyos-help] Increase of Tmote sky Tos_Msg size

2008-01-29 Thread Kevin Klues
You need to increase this length and then make sure you actually send something of that size. Kevin On Jan 29, 2008 10:08 AM, Edmund <[EMAIL PROTECTED]> wrote: > > > > > Hi , > > Does anyone knows how to increase the packet size of TOS_msg? I have tried > editing the AM.h TOSH_DATA_LENGTH to 34.

Re: [Tinyos-help] Re: Dynamic Memory Allocation

2008-01-29 Thread Kevin Klues
Malloc actually should work on the mote hardware if you want to try it. Whiel its use is discouraged, there is technically nothing preventing you from using it. Kevin On Jan 29, 2008 3:52 AM, Urs Hunkeler <[EMAIL PROTECTED]> wrote: > Hi, > > Malloc might work in a simulation environment, but it

Re: [Tinyos-help] Parametrized interface on TinyOS 1.X

2008-01-29 Thread Kevin Klues
I didn't look carefully, but the first problem that jumped out to me was taht you need to have uses interface Timer[uint8_t id]; not just uses interface Timer; in your module definition. Kevin On Jan 29, 2008 7:29 AM, Ubaldo Tiberi <[EMAIL PROTECTED]> wrote: > Hello everybody. > > I've just st

[Tinyos-help] Increase of Tmote sky Tos_Msg size

2008-01-29 Thread Edmund
Hi , Does anyone knows how to increase the packet size of TOS_msg? I have tried editing the AM.h TOSH_DATA_LENGTH to 34. But some how when I use the Listen application to listen to the packets send, the number of bytes in the packet is not increased. Anyone knows how to increase the data inside t

[Tinyos-help] Which means, and to what use the word reservedINLIN E

2008-01-29 Thread David Sanchez
Pehaps this will be useful for you http://en.wikipedia.org/wiki/Inline_function David * David Sánchez Sánchez Systems Integration Dept. (Power Devices and Systems) Centre Nacional de Microelectrònica (CNM-CSIC) Campus Universitat Autònoma de B

[Tinyos-help] Parametrized interface on TinyOS 1.X

2008-01-29 Thread Ubaldo Tiberi
Hello everybody. I've just start studying theTinyOS and I have some problems about parametrized intefaces. The code I wrote is below (this app is something that should simulate a traffic light, I know that I could did it in another way, but I did it so just as exercise) =

[Tinyos-help] MicaZ: internal clock?

2008-01-29 Thread Asier Arruti
Hi, We need to get relative time periods for an application with MicaZ, in which we will store captured information till we recover the connectivity with the base station. My question is: Has the MicaZ an internal clock which enables us to know (and store in the remote mote) the time when a ne

[Tinyos-help] A question about RadioSenseToLeds App.

2008-01-29 Thread ekol
Hello everybody. I have read most of the tutorial lessons and I am also going through the TinyOS Programing manual of Philip Levis. However, when I run the RadioSenseToLeds application in TOSSIM, it seems that it never actually runs the event Read.readDone as I do not get the supposed mes

[Tinyos-help] Error:In Tinyos-2.x BlinkToRadio packet too long and bad packet

2008-01-29 Thread gaurav mathur
Hi, I am using tinyos-2.x with Xubuntu. I installed the ISO image of Xubuntu provided on www.tinyos.net. I installed Base Station on one tmote sky, BlinkToRadio on another tmote sky and run the following command java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:tmote serial@/dev/ttyUSB1:1152

Re: [Tinyos-help] Re: Dynamic Memory Allocation

2008-01-29 Thread Urs Hunkeler
Hi, Malloc might work in a simulation environment, but it does not work on the physical motes. So if you want to program real hardware you'll have to find a way to avoid malloc. Cheers, Urs AIGroup wrote: I believed... I'm using TinyOS 2.0. I tried to compile and use these statements in my

[Tinyos-help] Re: Dynamic Memory Allocation

2008-01-29 Thread AIGroup
I believed... I'm using TinyOS 2.0. I tried to compile and use these statements in my code: int *x; x=(int *)(malloc(sizeof(int))); *x=4; dbg("BlinkC", "Timer 0 fired @ %s.\nContenuto di x = %d\n", sim_time_string(), *x); and all works well! So...why using malloc() is dangerous? (a

[Tinyos-help] Dynamic Memory Allocation

2008-01-29 Thread AIGroup
Hi all, I'm using Micaz for my project and i need to allocate memory at runtime. I know that TinyOS doesn't support functions as malloc(). So, how can I solve this problem? Thanks in advance ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.ed

RE: [Tinyos-help] Unable to read Temperature

2008-01-29 Thread Yong, Chee Yeew
Actually, forget about using PhotoTemp, doesn't look like it will make a difference. Sorry. Which version of TinyOS are you using? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of G. Santhosh Kumar Sent: 29 January 2008 05:47 To: Tinyos-help@millennium.berke

RE: [Tinyos-help] Unable to read Temperature

2008-01-29 Thread Yong, Chee Yeew
It would be helpful to state which version of TinyOS you are using. Assuming you are using 1.1.10, try wiring ADC and ADCControl to PhotoTemp (instead of Temp). Regards, Chee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of G. Santhosh Kumar Sent: 29 Janua

[Tinyos-help] MTS420 GPS Module in tinyos-2.x

2008-01-29 Thread Nikhil Singhal
Hi all Does anyone know how to read the GPS sensor data from the CrossBow MTS420 mote using tinyos-2.x? Thanks in advance! -- Nikhil Singhal ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/m