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
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:
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
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
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
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
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
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
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
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
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
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~
___
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
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)
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.
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
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
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
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
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)
=
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
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
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
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
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
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
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
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
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
29 matches
Mail list logo