[Tinyos-help] Sending Packets

2012-10-09 Thread Sarah John Mwariti
Hi All,

I am new on Tinyos, im still trying to understand it.

I was able to install Tinyos 2.1.2 version on Linux 12.04 and its working
fine. I have practised the Blink necCode and played around with it. Feels
good when the motes Blinks.

Now i need help on how to send the packets e.g sending 1 to 7. And also
sending to a single Hop and multi hopes.HOW DO I DO THIS??...

Please Help

Regards
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Sending Packets

2012-10-09 Thread Sarah John Mwariti
Hi All,
>
> I am new on Tinyos, im still trying to understand it.
>
> I was able to install Tinyos 2.1.2 version on Linux 12.04 and its working
> fine. I have practised the Blink necCode and played around with it. Feels
> good when the motes Blinks.
>
> Now i need help on how to send the packets e.g sending 1 to 7. And also
> sending to a single Hop and multi hopes.HOW DO I DO THIS??...
>
> Please Help
>
> Regards
> Sara.
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Sending Packets

2012-10-09 Thread Sarah John Mwariti
Hi Eric,

Thank you fr replying, I'll follow the tutorial.


Regards
Sarah.
On Wed, Oct 10, 2012 at 1:55 AM, Eric Decker  wrote:

> Hi Sarah,
>
> work through the tutorials.   That will help with doing more with your
> motes and sending packets.
>
> http://docs.tinyos.net/tinywiki/index.php/TinyOS_Tutorials
>
> in particular check out "mote-to-mote communication"
>
> On Tue, Oct 9, 2012 at 2:20 PM, Sarah John Mwariti 
> wrote:
>
>> Hi All,
>>
>> I am new on Tinyos, im still trying to understand it.
>>
>> I was able to install Tinyos 2.1.2 version on Linux 12.04 and its working
>> fine. I have practised the Blink necCode and played around with it. Feels
>> good when the motes Blinks.
>>
>> Now i need help on how to send the packets e.g sending 1 to 7. And also
>> sending to a single Hop and multi hopes.HOW DO I DO THIS??...
>>
>> Please Help
>>
>> Regards
>> Sara.
>>
>>
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Sending Packets

2012-10-10 Thread Sarah John Mwariti
Hi All,

I followd the mote-mote communication tutorialit gives me an error,
tried solving it but still, i have an error.

there is an error i am getting:

  mkdir -p build/telosb
compiling BlinkToRadioAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkToRadioApp\"
-DIDENT_USERNAME=\"ADludla\" -DIDENT_HOSTNAME=\"adludla\"
-DIDENT_USERHASH=0x5c3bf0feL -DIDENT_TIMESTAMP=0x50754ea3L
-DIDENT_UIDHASH=0x4b4a0cb7L  BlinkToRadioAppC.nc -lm
/opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
In component `BlinkToRadioC':
BlinkToRadioC.nc:17: `AMSend.sendDone' not implemented
In component `BlinkToRadioAppC':
BlinkToRadioAppC.nc:19: syntax error before `='
make: *** [exe0] Error 1


Please Help.


Regards
Sarah.

On Wed, Oct 10, 2012 at 7:44 AM, Sarah John Mwariti wrote:

> Hi Eric,
>
> Thank you fr replying, I'll follow the tutorial.
>
>
> Regards
> Sarah.
>
> On Wed, Oct 10, 2012 at 1:55 AM, Eric Decker  wrote:
>
>> Hi Sarah,
>>
>> work through the tutorials.   That will help with doing more with your
>> motes and sending packets.
>>
>> http://docs.tinyos.net/tinywiki/index.php/TinyOS_Tutorials
>>
>> in particular check out "mote-to-mote communication"
>>
>> On Tue, Oct 9, 2012 at 2:20 PM, Sarah John Mwariti 
>> wrote:
>>
>>> Hi All,
>>>
>>> I am new on Tinyos, im still trying to understand it.
>>>
>>> I was able to install Tinyos 2.1.2 version on Linux 12.04 and its
>>> working fine. I have practised the Blink necCode and played around with it.
>>> Feels good when the motes Blinks.
>>>
>>> Now i need help on how to send the packets e.g sending 1 to 7. And also
>>> sending to a single Hop and multi hopes.HOW DO I DO THIS??...
>>>
>>> Please Help
>>>
>>> Regards
>>> Sara.
>>>
>>>
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>> --
>> Eric B. Decker
>> Senior (over 50 :-) Researcher
>>
>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Sending Packets

2012-10-12 Thread Sarah John Mwariti
Hi Rafael,

thank you for the reply, was able to sort out the problem.

Regards
Sarah

On Wed, Oct 10, 2012 at 1:34 PM, Rafael de Oliveira Costa <
rafaeldeoliveiraco...@gmail.com> wrote:

> Hi Sarah,
>
> check the line 19 of BlinkToRadioAppC.nc ! (*BlinkToRadioAppC.nc:19:
> syntax error before `='*)
>
> I suggest you try to understand RadioCountToLeds application to see how
> to the basic AM communication works.
>
> Rafael de Oliveira Costa, D.Sc. Student
> PPGI - UFRJ
> Rio de Janeiro, RJ, Brazil
> http://www.labnet.nce.ufrj.br
> "Enquanto permanecerem lutando por alguma coisa, os homens estarão sempre
> cometendo erros", Goethe
>
>
>
>
>
> On Wed, Oct 10, 2012 at 7:39 AM, Sarah John Mwariti 
> wrote:
>
>> Hi All,
>>
>> I followd the mote-mote communication tutorialit gives me an error,
>> tried solving it but still, i have an error.
>>
>> there is an error i am getting:
>>
>>   mkdir -p build/telosb
>> compiling BlinkToRadioAppC to a telosb binary
>> ncc -o build/telosb/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
>> -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
>> -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkToRadioApp\"
>> -DIDENT_USERNAME=\"ADludla\" -DIDENT_HOSTNAME=\"adludla\"
>> -DIDENT_USERHASH=0x5c3bf0feL -DIDENT_TIMESTAMP=0x50754ea3L
>> -DIDENT_UIDHASH=0x4b4a0cb7L  BlinkToRadioAppC.nc -lm
>> /opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning:
>> #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
>> In component `BlinkToRadioC':
>> BlinkToRadioC.nc:17: `AMSend.sendDone' not implemented
>> In component `BlinkToRadioAppC':
>> BlinkToRadioAppC.nc:19: syntax error before `='
>> make: *** [exe0] Error 1
>>
>>
>> Please Help.
>>
>>
>> Regards
>> Sarah.
>>
>>
>> On Wed, Oct 10, 2012 at 7:44 AM, Sarah John Mwariti > > wrote:
>>
>>> Hi Eric,
>>>
>>> Thank you fr replying, I'll follow the tutorial.
>>>
>>>
>>> Regards
>>> Sarah.
>>>
>>> On Wed, Oct 10, 2012 at 1:55 AM, Eric Decker  wrote:
>>>
>>>> Hi Sarah,
>>>>
>>>> work through the tutorials.   That will help with doing more with your
>>>> motes and sending packets.
>>>>
>>>> http://docs.tinyos.net/tinywiki/index.php/TinyOS_Tutorials
>>>>
>>>> in particular check out "mote-to-mote communication"
>>>>
>>>> On Tue, Oct 9, 2012 at 2:20 PM, Sarah John Mwariti <
>>>> saraah1...@gmail.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I am new on Tinyos, im still trying to understand it.
>>>>>
>>>>> I was able to install Tinyos 2.1.2 version on Linux 12.04 and its
>>>>> working fine. I have practised the Blink necCode and played around with 
>>>>> it.
>>>>> Feels good when the motes Blinks.
>>>>>
>>>>> Now i need help on how to send the packets e.g sending 1 to 7. And
>>>>> also sending to a single Hop and multi hopes.HOW DO I DO THIS??...
>>>>>
>>>>> Please Help
>>>>>
>>>>> Regards
>>>>> Sara.
>>>>>
>>>>>
>>>>>
>>>>> ___
>>>>> Tinyos-help mailing list
>>>>> Tinyos-help@millennium.berkeley.edu
>>>>>
>>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Eric B. Decker
>>>> Senior (over 50 :-) Researcher
>>>>
>>>>
>>>>
>>>
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Toggling the LEDS

2012-10-12 Thread Sarah John Mwariti
Hi Everyone,

I was able to send packets from one mote to another mote. I want to Toggle
one LED on the mote, eg Toggle Blue LED in one mote and Toggle Red LED to
another mote. How do i do this?

Sorry for asking a primitive questions, im still new.

Regards
Sarah.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Help:Reading/Sending Temperature

2012-10-22 Thread Sarah John Mwariti
Hi All,

I have a modified the Collection code from the tutorials, to Read the
temperature value and transmit the temperature among the telosb motes (i
have used 2 motes plus one  as BaseStation).

But it gives an error, which i am failing to fix, Please Help.

there is an error:
mkdir -p build/telosb
compiling EasyCollectionAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -I/opt/tinyos-2.1.2/tos/lib/net
-I/opt/tinyos-2.1.2/tos/lib/net/le -I/opt/tinyos-2.1.2/tos/lib/net/ctp
-DIDENT_APPNAME=\"EasyCollectionA\" -DIDENT_USERNAME=\"ADludla\"
-DIDENT_HOSTNAME=\"adludla\" -DIDENT_USERHASH=0x5c3bf0feL
-DIDENT_TIMESTAMP=0x50853041L -DIDENT_UIDHASH=0x1166b72bL
EasyCollectionAppC.nc -lm
/opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
In component `EasyCollectionAppC':
EasyCollectionAppC.nc:11: component TemperatureC not found
EasyCollectionAppC.nc:24: cannot find `Temperature'
make: *** [exe0] Error 1


there is the code configuration code where the error is indicated, im not
sure if i wired it correct, if not how is it supposed to be wired?

configuration EasyCollectionAppC {}


implementation {

  components EasyCollectionC, MainC, LedsC, ActiveMessageC;
  components CollectionC as Collector;
  components new CollectionSenderC(0xee);
  components new TimerMilliC();

  components TemperatureC;



  EasyCollectionC.Boot -> MainC;
  EasyCollectionC.RadioControl -> ActiveMessageC;
  EasyCollectionC.RoutingControl -> Collector;
  EasyCollectionC.Leds -> LedsC;
  EasyCollectionC.Timer -> TimerMilliC;
  EasyCollectionC.Send -> CollectionSenderC;
  EasyCollectionC.RootControl -> Collector;
  EasyCollectionC.Receive -> Collector.Receive[0xee];

  EasyCollectionC.Read-> Temperature;
}



Warm Regard
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] bi-directional communication between two motes

2012-10-23 Thread Sarah John Mwariti
Hi guys,

in need of some help with bi-directional communication between two motes,
or  a document that i can use. i have gone through the mote-mote
communication tutorial, and it works fine

I want to have a BaseStation sending data to a mote then after 1muntes then
the mote forward the data to the other mote and back to the mote it got the
data from.

Basically there is a BS and two sensor nodes: BS sending to one sensor node
then the sensor node forward the data to the other sensor node. The sensor
node send back the dat to the sensor node it received the data from.


Hope ill get reply soon.


Regards
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TEOSB Bi-directional communication between 2 motes

2012-10-24 Thread Sarah John Mwariti
Hi guys,

in need of some help with bi-directional communication between two motes,
or  a document that i can use. I have gone through the mote-mote
communication tutorial, and it works fine

I want to have a BaseStation sending data to a mote then after 1muntes then
the mote forward the data to the other mote and back to the mote it got the
data from.

Basically there is a BS and two sensor nodes: BS sending to one sensor node
then the sensor node forward the data to the other sensor node. The sensor
node send back the dat to the sensor node it received the data from.


Hope ill get reply soon.


Regards
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] TEOSB Bi-directional communication between 2 motes

2012-10-24 Thread Sarah John Mwariti
Hi Eric,

Thank you so much for the reply...i understand that i have to learn how
to do it on my own.

But was hoping to get the direction of where to read on TELOSB
Bidirectional Communication.

Thanks
Sara.



On Wed, Oct 24, 2012 at 9:11 AM, Eric Decker  wrote:

> Hi Sara,
>
> Not sure what you are asking.   Not clear at all.
>
>
> On Wed, Oct 24, 2012 at 12:06 AM, Sarah John Mwariti  > wrote:
>
>> Hi guys,
>>
>> in need of some help with bi-directional communication between two motes,
>> or  a document that i can use. I have gone through the mote-mote
>> communication tutorial, and it works fine
>>
>
> Okay.
>
> If you need to understand how it works,  I'd recommend getting a JTAG
> debugger and stepping into the code to see how it works.
>
>
>> I want to have a BaseStation sending data to a mote then after 1muntes
>> then the mote forward the data to the other mote and back to the mote it
>> got the data from.
>>
>
> Okay.
>
>
>>
>> Basically there is a BS and two sensor nodes: BS sending to one sensor
>> node then the sensor node forward the data to the other sensor node. The
>> sensor node send back the dat to the sensor node it received the data from.
>>
>
> Okay.   So what are you asking?
>
> How to do it?
>
> You need to figure that out.   That's where the learning happens.   If you
> expect someone to tell you how to do it, well there isn't much you will
> learn if someone just gives you the answer.And besides, most folks are
> busy and don't have time to write your program for you.
>
> So dig in and figure it out.
>
>
>
>>
>>
>> Hope ill get reply soon.
>>
>>
>> Regards
>> Sara.
>
>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Reading Temperature

2012-11-08 Thread Sarah John Mwariti
Hi All,

I need help, i have modified the oscilloscope application but i cant seem
to get the code working.

where to put : temp = -38.4 + 0.009*data? on the .h file or OscilloscopeC
file



Regards
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Reading Temperature

2012-11-08 Thread Sarah John Mwariti
Finally i it is workingThank you!


On Fri, Nov 9, 2012 at 8:58 AM, Sarah John Mwariti wrote:

> Hi All,
>
> I need help, i have modified the oscilloscope application but i cant seem
> to get the code working.
>
> where to put : temp = -38.4 + 0.009*data? on the .h file or OscilloscopeC
> file
>
>
>
> Regards
> Sara.
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Reading Temperature

2012-11-09 Thread Sarah John Mwariti
it was compiling but not giving me the result i was expecting which is
Temperature.

It wasnt reading this formula: temp = -38.4 + 0.0098 *data

because of the where/how are added it...


On Fri, Nov 9, 2012 at 10:45 AM, Eric Decker  wrote:

> what was the problem?   what did you do to solve it?
>
>
> On Thu, Nov 8, 2012 at 11:53 PM, Sarah John Mwariti 
> wrote:
>
>> Finally i it is workingThank you!
>>
>>
>> On Fri, Nov 9, 2012 at 8:58 AM, Sarah John Mwariti 
>> wrote:
>>
>>> Hi All,
>>>
>>> I need help, i have modified the oscilloscope application but i cant
>>> seem to get the code working.
>>>
>>> where to put : temp = -38.4 + 0.009*data? on the .h file or
>>> OscilloscopeC file
>>>
>>>
>>>
>>> Regards
>>> Sara.
>>>
>>
>>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Reading Temperature

2012-11-09 Thread Sarah John Mwariti
now i have a problem with the MultihopOscilloscope :

im trying yo run the MultihopOscilloscope Application but the leds are not
blinking, is it supposed to be like this or what? I havent modifies the
code to what i want to use it for, i just want to see how it works first.
And this makes its hard to test the multihop communication.


On Fri, Nov 9, 2012 at 1:16 PM, Sarah John Mwariti wrote:

> it was compiling but not giving me the result i was expecting which is
> Temperature.
>
> It wasnt reading this formula: temp = -38.4 + 0.0098 *data
>
> because of the where/how are added it...
>
>
> On Fri, Nov 9, 2012 at 10:45 AM, Eric Decker  wrote:
>
>> what was the problem?   what did you do to solve it?
>>
>>
>> On Thu, Nov 8, 2012 at 11:53 PM, Sarah John Mwariti > > wrote:
>>
>>> Finally i it is working....Thank you!
>>>
>>>
>>> On Fri, Nov 9, 2012 at 8:58 AM, Sarah John Mwariti >> > wrote:
>>>
>>>> Hi All,
>>>>
>>>> I need help, i have modified the oscilloscope application but i cant
>>>> seem to get the code working.
>>>>
>>>> where to put : temp = -38.4 + 0.009*data? on the .h file or
>>>> OscilloscopeC file
>>>>
>>>>
>>>>
>>>> Regards
>>>> Sara.
>>>>
>>>
>>>
>>
>>
>> --
>> Eric B. Decker
>> Senior (over 50 :-) Researcher
>>
>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Reading Temperature

2012-11-09 Thread Sarah John Mwariti
And im using only 3 motes , one as a base station

Do i need serialboard to run the MultihopOscilloscope?


On Fri, Nov 9, 2012 at 1:19 PM, Sarah John Mwariti wrote:

> now i have a problem with the MultihopOscilloscope :
>
> im trying yo run the MultihopOscilloscope Application but the leds are not
> blinking, is it supposed to be like this or what? I havent modifies the
> code to what i want to use it for, i just want to see how it works first.
> And this makes its hard to test the multihop communication.
>
>
>
> On Fri, Nov 9, 2012 at 1:16 PM, Sarah John Mwariti 
> wrote:
>
>> it was compiling but not giving me the result i was expecting which is
>> Temperature.
>>
>> It wasnt reading this formula: temp = -38.4 + 0.0098 *data
>>
>> because of the where/how are added it...
>>
>>
>> On Fri, Nov 9, 2012 at 10:45 AM, Eric Decker  wrote:
>>
>>> what was the problem?   what did you do to solve it?
>>>
>>>
>>> On Thu, Nov 8, 2012 at 11:53 PM, Sarah John Mwariti <
>>> saraah1...@gmail.com> wrote:
>>>
>>>> Finally i it is workingThank you!
>>>>
>>>>
>>>> On Fri, Nov 9, 2012 at 8:58 AM, Sarah John Mwariti <
>>>> saraah1...@gmail.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I need help, i have modified the oscilloscope application but i cant
>>>>> seem to get the code working.
>>>>>
>>>>> where to put : temp = -38.4 + 0.009*data? on the .h file or
>>>>> OscilloscopeC file
>>>>>
>>>>>
>>>>>
>>>>> Regards
>>>>> Sara.
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Eric B. Decker
>>> Senior (over 50 :-) Researcher
>>>
>>>
>>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Transmission Power

2012-11-13 Thread Sarah John Mwariti
Hi guys,

i am trying to modify the BlinkToRadio program to control the transmission
power.

I have modified the BlinkToRadio Makefile code  to this :

OMPONENT=BlinkToRadioAppC
include $(MAKERULES)
PFLAGS+=-DCC2420_DEF_RFPOWER = 10;


Can somebody PLEASE tell me of i am doing this correctly if not how can i
do it.

Hoping to get a reply as soon as possible.

Regards,
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Transmission Power

2012-11-13 Thread Sarah John Mwariti
And i am using telosb motes...


On Tue, Nov 13, 2012 at 12:18 PM, Sarah John Mwariti
wrote:

> Hi guys,
>
> i am trying to modify the BlinkToRadio program to control the transmission
> power.
>
> I have modified the BlinkToRadio Makefile code  to this :
>
> OMPONENT=BlinkToRadioAppC
> include $(MAKERULES)
> PFLAGS+=-DCC2420_DEF_RFPOWER = 10;
>
>
> Can somebody PLEASE tell me of i am doing this correctly if not how can i
> do it.
>
> Hoping to get a reply as soon as possible.
>
> Regards,
> Sara.
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Fwd: Transmission Power

2012-11-13 Thread Sarah John Mwariti
-- Forwarded message --
From: Sarah John Mwariti 
Date: Tue, Nov 13, 2012 at 12:23 PM
Subject: Re: Transmission Power
To: tinyos-help@millennium.berkeley.edu, Eric Decker 


And i am using telosb motes...



On Tue, Nov 13, 2012 at 12:18 PM, Sarah John Mwariti
wrote:

> Hi guys,
>
> i am trying to modify the BlinkToRadio program to control the transmission
> power.
>
> I have modified the BlinkToRadio Makefile code  to this :
>
> OMPONENT=BlinkToRadioAppC
> include $(MAKERULES)
> PFLAGS+=-DCC2420_DEF_RFPOWER = 10;
>
>
> Can somebody PLEASE tell me of i am doing this correctly if not how can i
> do it.
>
> Hoping to get a reply as soon as possible.
>
> Regards,
> Sara.
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Fwd: Transmission Power

2012-11-13 Thread Sarah John Mwariti
Hi Kasha,

Thank you so much for replying.

I am using* telosb* mote. I modified the *Makefile *of the* BlinkToRadio
program* like this:

*COMPONENT=BlinkToRadioAppC

CFLAGS += "-DCC2420_DEF_RFPOWER=3"

include $(MAKERULES)*

i played around with the Power Level to see the behavior of the motes, it
seems to work...


Regards,
Sara.


On Tue, Nov 13, 2012 at 4:16 PM, Kasha Jagadish, Harsha Kiran <
kash...@ostatemail.okstate.edu> wrote:

> Hi It does not work that way...for imotes this is the procedure and it
> works fine
> // $Id: TestAMC.nc,v 1.4 2006/12/12 18:22:49 vlahan Exp $
>
> /*tab:4
>  * "Copyright (c) 2000-2005 The Regents of the University  of California.
>  * All rights reserved.
>  *
>  * Permission to use, copy, modify, and distribute this software and its
>  * documentation for any purpose, without fee, and without written
> agreement is
>  * hereby granted, provided that the above copyright notice, the following
>  * two paragraphs and the author appear in all copies of this software.
>  *
>  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
> FOR
>  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
> OUT
>  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE
> UNIVERSITY OF
>  * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>  *
>  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
>  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
>  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER
> IS
>  * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION
> TO
>  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
>  *
>  * Copyright (c) 2002-2003 Intel Corporation
>  * All rights reserved.
>  *
>  * This file is distributed under the terms in the attached
> INTEL-LICENSE
>  * file. If you do not find these files, copies can be found by writing to
>  * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley,
> CA,
>  * 94704.  Attention:  Intel License Inquiry.
>  */
>
> #include "Timer.h"
>
> /**
>  * Implementation of the TestAM application.  TestAM sends active message
>  * broadcasts at 1Hz and blinks LED 0 whenever it has sucessfully sent a
>  * broadcast. Whenever it receives one of these broadcasts from another
>  * node, it blinks LED 1.  It uses the radio HIL component
> ActiveMessageC,
>  * and its packets are AM type 240.  This application is useful for
> testing
>  * AM communication and the ActiveMessageC component.
>  *
>  * @author Philip Levis
>  * @date   May 16 2005
>  */
>
> module TestAMC {
>   uses {
> interface Leds;
> interface Boot;
> interface Receive;
> interface AMSend;
> interface CC2420Packet;
> interface Timer as MilliTimer;
> interface SplitControl;
>   }
> }
> implementation {
>
>   message_t packet;
>
>   bool locked;
>   uint8_t counter = 0;
>
>   event void Boot.booted() {
> call SplitControl.start();
>   }
>
>   event void MilliTimer.fired() {
>   call CC2420Packet.setPower(&packet,2.5);
> counter++;
> if (locked) {
>   return;
>  }
> else if (call AMSend.send(AM_BROADCAST_ADDR, &packet, 0) == SUCCESS) {
>   call Leds.led0On();
>   locked = TRUE;
> }
>   }
>
>   event message_t* Receive.receive(message_t* bufPtr,
>void* payload, uint8_t len) {
> call Leds.led1Toggle();
> return bufPtr;
>   }
>
>   event void AMSend.sendDone(message_t* bufPtr, error_t error) {
> if (&packet == bufPtr) {
>   locked = FALSE;
>   call Leds.led0Off();
> }
>   }
>
>   event void SplitControl.startDone(error_t err) {
> call MilliTimer.startPeriodic(1000);
>   }
>
>   event void SplitControl.stopDone(error_t err) {
>   }
>
> }
>
>
> *
>
> configuration TestAMAppC {}
> implementation {
>   components MainC, TestAMC as App, LedsC;
>   components CC2420PacketC;
>   components ActiveMessageC;
>   components new TimerMilliC();
>
>   App.Boot -> MainC.Boot;
>
>   App.Receive -> ActiveMessageC.Receive[240];
>   App.AMSend -> ActiveMessageC.AMSend[240];
>   App.SplitControl -> ActiveMessageC;
>   App.Leds -> LedsC;
>   App.CC2420Packet->CC2420PacketC;
>   App.MilliTimer -> TimerMilliC;
> }
>
>
> 
> COMPONENT=TestAMAppC
>
>
> include $(MAKERULES)
>

[Tinyos-help] (no subject)

2012-11-14 Thread Sarah John Mwariti
Hi All,

I have created a small test bed and its working fine BUT each an every-time
i send data to the nodes in the testbed, i have to program them one by
one

Is there anyway that i can send data to all of them once?

And how to create the interface where i can select  the nodes that i want
to program?

is there any document that i can go through to be able to do this?


Looking forward to the reply.

Thanks,
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Test-Bed

2012-11-15 Thread Sarah John Mwariti
Hi All,

I have created a small test bed and its working fine BUT each an every-time
i send data to the nodes in the testbed, i have to program them one by
one

Is there anyway that i can send data to all of them once?

And how to create the interface where i can select  the nodes that i want
to program?

is there any document that i can go through to be able to do this?


Looking forward to the reply.

Thanks,
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Test-Bed

2012-11-15 Thread Sarah John Mwariti
On Thu, Nov 15, 2012 at 10:21 AM, Sarah John Mwariti
wrote:

> Hi All,
>
> I have created a small test bed and its working fine BUT each an
> every-time i send data to the nodes in the testbed, i have to program them
> one by one
>
> Is there anyway that i can send data to all of them once?
>
> And how to create the interface where i can select  the nodes that i want
> to program?
>
> is there any document that i can go through to be able to do this?
>
>
> Looking forward to the reply.
>
> Thanks,
> Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Test-Bed

2012-11-16 Thread Sarah John Mwariti
Hi Marcin,

Thank you for replying.

Regards,



On Fri, Nov 16, 2012 at 8:57 AM, Marcin Szczodrak  wrote:

> Hi Sara,
>
> There is an open source project supporting developing testbeds at:
> http://smartcity.cs.columbia.edu/otf
>
> Best,
> Marcin
>
>
>
> On Thu, Nov 15, 2012 at 3:21 AM, Sarah John Mwariti
>  wrote:
> > Hi All,
> >
> > I have created a small test bed and its working fine BUT each an
> every-time
> > i send data to the nodes in the testbed, i have to program them one by
> > one
> >
> > Is there anyway that i can send data to all of them once?
> >
> > And how to create the interface where i can select  the nodes that i
> want to
> > program?
> >
> > is there any document that i can go through to be able to do this?
> >
> >
> > Looking forward to the reply.
> >
> > Thanks,
> > Sara.
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How to program all the motes same time.

2012-11-16 Thread Sarah John Mwariti
Hi guys,


i have a small test-bed using 6 motes, whenever i send data to the motes, i
send data to each motes in a given time.
How to program all the motes same time instead of programming them one by
one?



Looking forward to your reply.


Regards
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Fwd: How to program all the motes same time.

2012-11-16 Thread Sarah John Mwariti
-- Forwarded message --
From: Sarah John Mwariti 
Date: Fri, Nov 16, 2012 at 10:42 AM
Subject: How to program all the motes same time.
To: tinyos-help@millennium.berkeley.edu


Hi guys,


i have a small test-bed using 6 motes, whenever i send data to the motes, i
send data to each motes in a given time.
How to program all the motes same time instead of programming them one by
one?



Looking forward to your reply.


Regards
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] How to program all the motes same time.

2012-11-16 Thread Sarah John Mwariti
i was able to do this by creating a bash file.

Now how to create an interface where you can select which mote you want to
program?


On Fri, Nov 16, 2012 at 10:42 AM, Sarah John Mwariti
wrote:

> Hi guys,
>
>
> i have a small test-bed using 6 motes, whenever i send data to the motes,
> i send data to each motes in a given time.
> How to program all the motes same time instead of programming them one by
> one?
>
>
>
> Looking forward to your reply.
>
>
> Regards
> Sara.
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] How to program all the motes same time.

2012-11-18 Thread Sarah John Mwariti
Hi guys,

Thank you for replying.

Sorry for not being clear, im using 6 TelosB motes.

I was able to send the data to all motes same time instead of programming
the motes one by one


But im still not clear of how to create an interface to select the node to
program.


Thank you.
Sara.




On Fri, Nov 16, 2012 at 6:38 PM, Thomas Schmid wrote:

> Sarah,
>
> As Antonio mentioned, you have to be more specific. I wrote a set of
> python scripts that encapsulate everything Antonio mentioned, without
> having to write the udev rules:
> https://github.com/tschmid/mni
>
> It works great with TelosB/Irene nodes (i.e. any TI BSL based platform
> with FTDI chip or serial-over-ethernet solutions, like the DigiConnect
> ME), and could probably easily extend to other platforms.
>
> - Thomas
>
>
>
> On Fri, Nov 16, 2012 at 6:35 AM, Antonio Linan 
> wrote:
> > You have to be more specific about the type of mote you are using and
> don't
> > expect any off-the-shell answer...
> >
> > For Z1 motes I create an udev rule naming each with its serial number,
> > having /dev/Mote1, /dev/Mote2 instead of /dev/ttyUSB0... this avoids
> having
> > to care about which ttyUSBx specific port is assigned to each mote.
> >
> > Secondly I run the tos-bsl script for flashing the mote(s) using a
> > python/bash script, passing as parameters the .ihex compiled image and a
> > list of the motes to program.
> >
> > You can google how to create udev rules, and for the scripting/interface
> > part you will have to start banging your keyboard and giving it a go.
> >
> > --Antonio
> >
> > On Fri, Nov 16, 2012 at 12:58 PM, Sarah John Mwariti <
> saraah1...@gmail.com>
> > wrote:
> >>
> >> i was able to do this by creating a bash file.
> >>
> >> Now how to create an interface where you can select which mote you want
> to
> >> program?
> >>
> >>
> >>
> >> On Fri, Nov 16, 2012 at 10:42 AM, Sarah John Mwariti
> >>  wrote:
> >>>
> >>> Hi guys,
> >>>
> >>>
> >>> i have a small test-bed using 6 motes, whenever i send data to the
> motes,
> >>> i send data to each motes in a given time.
> >>> How to program all the motes same time instead of programming them one
> by
> >>> one?
> >>>
> >>>
> >>>
> >>> Looking forward to your reply.
> >>>
> >>>
> >>> Regards
> >>> Sara.
> >>>
> >>>
> >>
> >>
> >> ___
> >> Tinyos-help mailing list
> >> Tinyos-help@millennium.berkeley.edu
> >>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> >
> >
> >
> > --
> > --
> > Antonio Liñan Colina
> > R+D+I Engineer
> > @: ali...@advancare.com
> > @: ali...@zolertia.com
> > --
> > Advancare
> > T: +34 93 582 02 70
> > http://www.advancare.com
> > http://www.zolertia.com
> > http://zolertia.sourceforge.net
> > http://webshop.zolertia.com
> >
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Programming the motes in the Tesbed.

2012-11-19 Thread Sarah John Mwariti
Dear All,


I need some help

Let say you have 20 motes on the test-bed.and you want to select 9
motes to program.

How do you select them? by creating the interface where you click the motes
you want to program? If you have to create the interface, how do you go
about it?

In need of enlightenment as soon as possible.


Thank you.
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Linght >.>>>>>> Hamamatsu?

2012-11-22 Thread Sarah John Mwariti
Hi guys,

How do you measure the light? i know for Temperature and humidity you use
Sensirionsht11.

What do you use for Light, Hamamastu?
And which formula to use for the lightfor temperature i used this one
38.4 + 0.0098


Regards
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Programming the motes in the Tesbed.

2012-11-22 Thread Sarah John Mwariti
thank you Marcin.


On Mon, Nov 19, 2012 at 8:08 PM, Marcin Szczodrak  wrote:

> Hi Sara,
>
> I guess you are looking for a web interface that would take care of
> the motes' programming. You may find helpful the Open Testbed
> Framework (OTF) project, in particular, maybe try to first take a look
> at what the testbed looks like and see if it fits your needs.
> http://smartcity.cs.columbia.edu/otf/otf_tutorial.php#testbed_in_action
>
> At this moment OTF supports Z1 and TelosB motes. However, the
> framework might be little more than what you need as it aims on
> supporting testbeds spread across an area, so you might need to do
> some adjustments on it.
>
> The source code of the OTF can be found at:
> https://github.com/mszczodrak/otf  Note that some tools are prepared
> for opkt OpenWRT package management, but you can find the source code
> and run 'make' to compile for your system if you decide not to use the
> WiFi routers, which by default are assumed to be part of the testbed
> infrastructure.
>
> Best,
> Marcin
>
>
> On Mon, Nov 19, 2012 at 8:35 AM, Sarah John Mwariti
>  wrote:
> > Dear All,
> >
> >
> > I need some help
> >
> > Let say you have 20 motes on the test-bed.and you want to select 9
> motes
> > to program.
> >
> > How do you select them? by creating the interface where you click the
> motes
> > you want to program? If you have to create the interface, how do you go
> > about it?
> >
> > In need of enlightenment as soon as possible.
> >
> >
> > Thank you.
> > Sara.
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Temperature, Humidity and Light formula.

2012-11-29 Thread Sarah John Mwariti
Hi guys,

i have modified the Oscilloscope code to sense the temperature, Humidity
and Light.

What is the formula to calculate the Humidity and Light?
For Temperature i used: 38.4 + 0.0098 * (data).

Hope to get the reply soon

Thanks
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How to store data from the telosb network

2012-12-04 Thread Sarah John Mwariti
Hi all,

I have a modified the Oscilloscope program to sense Temperature.
I want to calculate the minimum, average and maximum temperature  after a
period of time eg.  after 30 minutes.

How do i store the data from the *telosb* network?


Regards,
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Fwd: How to store data from the telosb network

2012-12-04 Thread Sarah John Mwariti
-- Forwarded message --
From: Sarah John Mwariti 
Date: Tue, Dec 4, 2012 at 4:54 PM
Subject: How to store data from the telosb network
To: tinyos-help@millennium.berkeley.edu


Hi all,

I have a modified the Oscilloscope program to sense Temperature.
I want to calculate the minimum, average and maximum temperature  after a
period of time eg.  after 30 minutes.

How do i store data from the *telosb* network?


Regards,
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How to store data from telosb network

2012-12-04 Thread Sarah John Mwariti
Hi all,

I have a modified the Oscilloscope program to sense Temperature.
I want to calculate the minimum, average and maximum temperature  after a
period of time eg.  after 30 minutes.

How do i store data from the *telosb* network?


Regards,
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Fwd: Temperature, Humidity and Light formula.

2012-12-13 Thread Sarah John Mwariti
Hi guys,

once again, im sending this question, i haven't got the answer of how to
convert the light sensor raw data.

can somebody send me the formula. i have searched on the previous messages
on the mailing list but still no luck.

Regards,

-- Forwarded message --
From: Sarah John Mwariti 
Date: Thu, Nov 29, 2012 at 3:42 PM
Subject: Temperature, Humidity and Light formula.
To: tinyos-help@millennium.berkeley.edu


Hi guys,

i have modified the Oscilloscope code to sense the temperature, Humidity
and Light.

What is the formula to calculate the Humidity and Light?
For Temperature i used: - 38.4 + 0.0098 * (data).

Hope to get the reply soon

Thanks
Sara.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Temperature, Humidity and Light formula.

2012-12-19 Thread Sarah John Mwariti
thanks Eric for the reply.

I am using telosb motes. I have modified the oscilloscope app. For the
temperature and humidity it is working fine now. i have wired the
SensirionSHT11 for humidity and temp. and used this formula for temp to
give me sensible results - 38.4 + 0.0098 * (data).

For light I've wired HamamatsuS1087ParC() and it  gives me results around
65000. which formula to use for Light to convert these results to be
sensible.









On Thu, Dec 13, 2012 at 11:21 AM, Eric Decker  wrote:

> Okay.
>
> You need to look at what h/w you are using.   Then figure out what sensor
> you are using, in your case you are looking for what tmp, humidity, and
> light sensor.
>
> Then find the h/w spec sheets and you need to figure out how to read them
> to get the information you need.
>
> Given that you haven't gotten an answer to question so far, it is unlikely
> that someone knows what you are looking for.
>
> Best thing is to figure how to find this out for yourself.
>
>
> On Thu, Dec 13, 2012 at 1:16 AM, Sarah John Mwariti 
> wrote:
>
>> Hi guys,
>>
>> once again, im sending this question, i haven't got the answer of how to
>> convert the light sensor raw data.
>>
>> can somebody send me the formula. i have searched on the previous
>> messages on the mailing list but still no luck.
>>
>> Regards,
>>
>> -- Forwarded message --
>> From: Sarah John Mwariti 
>> Date: Thu, Nov 29, 2012 at 3:42 PM
>> Subject: Temperature, Humidity and Light formula.
>> To: tinyos-help@millennium.berkeley.edu
>>
>>
>> Hi guys,
>>
>> i have modified the Oscilloscope code to sense the temperature, Humidity
>> and Light.
>>
>> What is the formula to calculate the Humidity and Light?
>> For Temperature i used: - 38.4 + 0.0098 * (data).
>>
>> Hope to get the reply soon
>>
>> Thanks
>> Sara.
>>
>>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Fwd: Temperature, Humidity and Light formula.

2012-12-19 Thread Sarah John Mwariti
Hi  Rubén,

Thank you for the formulas. Thats what i was looking for.

Thank you
Sara.


On Thu, Dec 13, 2012 at 12:15 PM, Rubén acedo albendea <
para_los_medal...@hotmail.com> wrote:

> Hi guys,
>
> I have worked in telosb plataform, to convert temperature, light and
> humidity sensor raw data, I use the following formulates:
>
> temp = (-39.60 + 0.01 *sensor data);
> lux=2,5*((sensor data)/4096)*6250
> hum=(-4 +0.0405*(sensor data))+(-0,028*pow(sensor data,2))
>
> This formulates are validates for Hamamatsu S1087 and Sensirion SHT11
> sensors.
>
> Regards
>
> --
> Date: Thu, 13 Dec 2012 11:16:08 +0200
> From: saraah1...@gmail.com
> To: tinyos-help@millennium.berkeley.edu; cire...@gmail.com
> Subject: [Tinyos-help] Fwd: Temperature, Humidity and Light formula.
>
>
> Hi guys,
>
> once again, im sending this question, i haven't got the answer of how to
> convert the light sensor raw data.
>
> can somebody send me the formula. i have searched on the previous messages
> on the mailing list but still no luck.
>
> Regards,
>
> -- Forwarded message --
> From: *Sarah John Mwariti* 
> Date: Thu, Nov 29, 2012 at 3:42 PM
> Subject: Temperature, Humidity and Light formula.
> To: tinyos-help@millennium.berkeley.edu
>
>
> Hi guys,
>
> i have modified the Oscilloscope code to sense the temperature, Humidity
> and Light.
>
> What is the formula to calculate the Humidity and Light?
> For Temperature i used: - 38.4 + 0.0098 * (data).
>
> Hope to get the reply soon
>
> Thanks
> Sara.
>
>
> ___ Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] printf error

2013-01-10 Thread Sarah John Mwariti
Happy new year guys...

I want to use printf statements in an application and I added the following
flags in the makefile.
CFLAGS += -I$(TOSDIR)/lib/printf
CFLAGS += -DPRINTF_BUFFER_SIZE=250


and i have added include :#include "printf.h" header file

but when i make telosb install, i get the following errors

"
/opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
/opt/tinyos-2.1.2/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4: warning:
#warning Accessing TimerA for ADC12
/opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function
‘SensirionSht11LogicP__0__readSensor__runTask’:
/opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:322:11: warning:
variable ‘crc’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc: In function
‘AdcStreamP__nextBuffer’:
/opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc:191:20: warning:
variable ‘tmp_count’ set but not used [-Wunused-but-set-variable]
/opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function
‘SensirionSht11LogicP__0__performCommand’:
/opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:193:19: warning:
variable ‘crc’ set but not used [-Wunused-but-set-variable]
/opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o):
In function `printf':
/home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:42:
undefined reference to `putchar'
/opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o):
In function `vprintf':
/home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:50:
undefined reference to `putchar'
collect2: ld returned 1 exit status
make: *** [exe0] Error 1




Please help!
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] printf error

2013-01-14 Thread Sarah John Mwariti
Thanks all for the reply...

I have taken all your comments into consideration.

This what i get when i am trying to print.It prints nothing
Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising

Any suggestion of what i didnt do?




On Thu, Jan 10, 2013 at 2:01 PM, Saeid Yazdani  wrote:

>  Do you have the following line in your configuration file?
>
> components SerialPrintfC;
>
> notice that you don't need to wire it to anything.
>
>
>
>
> On 10-1-2013 9:28, Sarah John Mwariti wrote:
>
>  Happy new year guys...
>
> I want to use printf statements in an application and I added the
> following flags in the makefile.
> CFLAGS += -I$(TOSDIR)/lib/printf
> CFLAGS += -DPRINTF_BUFFER_SIZE=250
>
>
>  and i have added include :#include "printf.h" header file
>
>  but when i make telosb install, i get the following errors
>
> "
> /opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning:
> #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4:
> warning: #warning Accessing TimerA for ADC12
> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function
> ‘SensirionSht11LogicP__0__readSensor__runTask’:
> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:322:11: warning:
> variable ‘crc’ set but not used [-Wunused-but-set-variable]
> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc: In function
> ‘AdcStreamP__nextBuffer’:
> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc:191:20: warning:
> variable ‘tmp_count’ set but not used [-Wunused-but-set-variable]
> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function
> ‘SensirionSht11LogicP__0__performCommand’:
> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:193:19: warning:
> variable ‘crc’ set but not used [-Wunused-but-set-variable]
> /opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o):
> In function `printf':
> /home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:42:
> undefined reference to `putchar'
> /opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o):
> In function `vprintf':
> /home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:50:
> undefined reference to `putchar'
> collect2: ld returned 1 exit status
> make: *** [exe0] Error 1
>
>
>
>
>  Please help!
>
>
> ___
> Tinyos-help mailing 
> listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] printf error

2013-01-14 Thread Sarah John Mwariti
Tried running it ober and over again...this what i am recieving

serial@/dev/ttyUSB0:115200: bad packet
serial@/dev/ttyUSB0:115200: ignoring unknown packet type 0x0
serial@/dev/ttyUSB0:115200: bad packet
serial@/dev/ttyUSB0:115200: bad packet
serial@/dev/ttyUSB0:115200: ignoring unknown packet type 0x0


any suggestions of what's wrong?


On Mon, Jan 14, 2013 at 10:59 AM, Sarah John Mwariti
wrote:

> Thanks all for the reply...
>
> I have taken all your comments into consideration.
>
> This what i get when i am trying to print.It prints nothing
> Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising
>
> Any suggestion of what i didnt do?
>
>
>
>
> On Thu, Jan 10, 2013 at 2:01 PM, Saeid Yazdani wrote:
>
>>  Do you have the following line in your configuration file?
>>
>> components SerialPrintfC;
>>
>> notice that you don't need to wire it to anything.
>>
>>
>>
>>
>> On 10-1-2013 9:28, Sarah John Mwariti wrote:
>>
>>  Happy new year guys...
>>
>> I want to use printf statements in an application and I added the
>> following flags in the makefile.
>> CFLAGS += -I$(TOSDIR)/lib/printf
>> CFLAGS += -DPRINTF_BUFFER_SIZE=250
>>
>>
>>  and i have added include :#include "printf.h" header file
>>
>>  but when i make telosb install, i get the following errors
>>
>> "
>> /opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning:
>> #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
>> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4:
>> warning: #warning Accessing TimerA for ADC12
>> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function
>> ‘SensirionSht11LogicP__0__readSensor__runTask’:
>> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:322:11:
>> warning: variable ‘crc’ set but not used [-Wunused-but-set-variable]
>> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc: In function
>> ‘AdcStreamP__nextBuffer’:
>> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc:191:20: warning:
>> variable ‘tmp_count’ set but not used [-Wunused-but-set-variable]
>> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function
>> ‘SensirionSht11LogicP__0__performCommand’:
>> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:193:19:
>> warning: variable ‘crc’ set but not used [-Wunused-but-set-variable]
>> /opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o):
>> In function `printf':
>> /home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:42:
>> undefined reference to `putchar'
>> /opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o):
>> In function `vprintf':
>> /home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:50:
>> undefined reference to `putchar'
>> collect2: ld returned 1 exit status
>> make: *** [exe0] Error 1
>>
>>
>>
>>
>>  Please help!
>>
>>
>> ___
>> Tinyos-help mailing 
>> listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] printf error

2013-01-15 Thread Sarah John Mwariti
Tried running it ober and over again...this what i am receiving

serial@/dev/ttyUSB0:115200: bad packet
serial@/dev/ttyUSB0:115200: ignoring unknown packet type 0x0
serial@/dev/ttyUSB0:115200: bad packet
serial@/dev/ttyUSB0:115200: bad packet
serial@/dev/ttyUSB0:115200: ignoring unknown packet type 0x0

Sometimes i still recieve this problem...not returning anything:

Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising


I NEED HELP: any suggestions of what's wrong OR what i should do?

Your Reply will be Highly appreciated.


On Mon, Jan 14, 2013 at 11:01 AM, Sarah John Mwariti
wrote:

> Tried running it ober and over again...this what i am recieving
>
> serial@/dev/ttyUSB0:115200: bad packet
> serial@/dev/ttyUSB0:115200: ignoring unknown packet type 0x0
> serial@/dev/ttyUSB0:115200: bad packet
> serial@/dev/ttyUSB0:115200: bad packet
> serial@/dev/ttyUSB0:115200: ignoring unknown packet type 0x0
>
>
> any suggestions of what's wrong?
>
>
> On Mon, Jan 14, 2013 at 10:59 AM, Sarah John Mwariti  > wrote:
>
>> Thanks all for the reply...
>>
>> I have taken all your comments into consideration.
>>
>> This what i get when i am trying to print.It prints nothing
>> Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising
>>
>> Any suggestion of what i didnt do?
>>
>>
>>
>>
>> On Thu, Jan 10, 2013 at 2:01 PM, Saeid Yazdani wrote:
>>
>>>  Do you have the following line in your configuration file?
>>>
>>> components SerialPrintfC;
>>>
>>> notice that you don't need to wire it to anything.
>>>
>>>
>>>
>>>
>>> On 10-1-2013 9:28, Sarah John Mwariti wrote:
>>>
>>>  Happy new year guys...
>>>
>>> I want to use printf statements in an application and I added the
>>> following flags in the makefile.
>>> CFLAGS += -I$(TOSDIR)/lib/printf
>>> CFLAGS += -DPRINTF_BUFFER_SIZE=250
>>>
>>>
>>>  and i have added include :#include "printf.h" header file
>>>
>>>  but when i make telosb install, i get the following errors
>>>
>>> "
>>> /opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning:
>>> #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
>>> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4:
>>> warning: #warning Accessing TimerA for ADC12
>>> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function
>>> ‘SensirionSht11LogicP__0__readSensor__runTask’:
>>> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:322:11:
>>> warning: variable ‘crc’ set but not used [-Wunused-but-set-variable]
>>> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc: In function
>>> ‘AdcStreamP__nextBuffer’:
>>> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc:191:20: warning:
>>> variable ‘tmp_count’ set but not used [-Wunused-but-set-variable]
>>> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function
>>> ‘SensirionSht11LogicP__0__performCommand’:
>>> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:193:19:
>>> warning: variable ‘crc’ set but not used [-Wunused-but-set-variable]
>>> /opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o):
>>> In function `printf':
>>> /home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:42:
>>> undefined reference to `putchar'
>>> /opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o):
>>> In function `vprintf':
>>> /home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:50:
>>> undefined reference to `putchar'
>>> collect2: ld returned 1 exit status
>>> make: *** [exe0] Error 1
>>>
>>>
>>>
>>>
>>>  Please help!
>>>
>>>
>>> ___
>>> Tinyos-help mailing 
>>> listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>>
>>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] ssh file for the testbed

2013-01-17 Thread Sarah John Mwariti
Hi,

i want to create an SSH file for the testbed...on the testbed i have 20
motes mounted on the ceiling of the lab , one of the motes serve as the
gateway.

i want to be able to access the testbed outside the lab.where i can
just loggin on the terminal to access the testbed.

How do i go about this...?

Your reply will be highly appreciated.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help