[Tinyos-help] Fw: RE: Need your Help: Battery Voltage measurement

Ruben Catteeuw rubencatteeuw at hotmail.com
Tue Mar 24 11:16:59 PDT 2009


Hi,

 

The RF can be in TX,Listen or off. For TX there are different powerlevels, less power = less strong signal. RX (=Listen) consumes most power (about 22mA), TX (powerlevel 31) about 20mA.

These are Tmote/Telos values.

So yes, in Listen/RX you will consume a lot of power.

You don't want to power the radio off since the mote is waiting for a reply.

You have two possibilities here:

 

1) do you know when this reply will be sent? if yes: put the radio off, start a timer, and when the reply will be sent, put the radio back on

2) you don't know when the reply will be sent: here you can use LPL (low power listening), in fact this does the same: put the radio off (splitcontrol.stop()), but it will wake up periodically to see if something is being sent to the mote. A dutcy cycle % can be chosen (% of the time the radio is on). Lpl is to complex to tell everything here, but in the TEP's, on the tinyos website and in previous mails from the mailing list you will find a lot of information.

 

also the testLPL application that comes with your tinyos-installation can provide a lot of tips

 

success!

 

regards

 

Ruben


 


Date: Tue, 24 Mar 2009 10:31:04 -0700
From: mhsedek at yahoo.com
To: tinyos-help at millennium.berkeley.edu
Subject: [Tinyos-help] Fw: RE: Need your Help: Battery Voltage measurement













Thanks Ruben for your answer

I am trying to make everything clear. because I've read about this many times.
 
Once you call splitcontrol().start and the splitcontrol.startdone event is signalled, the radio stays on. If you send something, the radio goes into TX  ( do you mean the RF will be one of the 3 modes TX,RX or Idle ? ) and after the sentdone is signalled it goes back to Listen,
is this listen mode differ from lowpowerlistening mode
 
but if you don't send something it stays in Listen-mode,
is this listening mode consumes much power ?

unless  you call splitcontrol.stop()
I do not want to call the splitcontrol.stop because I'll receive messages, I just want the mote to work normally with little power consumption by take advantage of the periodes in which the Radio not sending or receiving but without turning it off.
 
how can I work around this if it's not possible


Thanks  & Have a Nice Day

 
Mohamed

--- On Sat, 3/21/09, Ruben Catteeuw <rubencatteeuw at hotmail.com> wrote:


From: Ruben Catteeuw <rubencatteeuw at hotmail.com>
Subject: RE: [Tinyos-help] Need your Help: Battery Voltage measurement
To: tinyos-help at millennium.berkeley.edu
Cc: mhsedek at yahoo.com
Date: Saturday, March 21, 2009, 10:36 AM




Hi,

Once you call splitcontrol().start and the splitcontrol.startdone event is signalled, the radio stays on. If you send something, the radio goes into TX and after the sentdone is signalled it goes back to Listen, but if you don't send something it stays in Listen-mode,
unless  you call splitcontrol.stop(). Make sure you only try to send when the radio is on, so when a startDone has been signalled.

regards
Ruben



Date: Fri, 20 Mar 2009 14:03:57 -0700
From: mhsedek at yahoo.com
To: sallai at isis.vanderbilt.edu
CC: tinyos-help at millennium.berkeley.edu
Subject: [Tinyos-help] Need your Help: Battery Voltage measurement







 





Hi Janos

Thanks for your reply

I've already used VoltageC component. I just wanted to know about controlling the mote and to know more about accessing the peripherals. 

about the power consumption mails you forwarded me to, I found it very informative but could not know how can I determine how much power in my app.
I wanted to know when I started the RF by splitcontrol, is it keeps on or goes to sleep when it finish sending or receiving, and if I used splitcontrol.start i have to use splitcontrol.stp to turn the RF off. 

what command should i use to turn the RF on when sending a message and goes off or (sleep ) when it stops and then on when it receiving.

I've attached my app. file to see if the RF still on or what. and how to modify it to implement what I've said.



Mohamed

--- On Wed, 3/18/09, Janos Sallai <sallai at isis.vanderbilt.edu> wrote:


From: Janos Sallai <sallai at isis.vanderbilt.edu>
Subject: Re: [Tinyos-help] Fw: Battery Voltage measurement
To: "Mohamed H. Seddik" <mhsedek at yahoo.com>
Cc: tinyos-help at millennium.berkeley.edu
Date: Wednesday, March 18, 2009, 11:56 P


The VoltageC component is what you need.
Janos

On Wed, Mar 18, 2009 at 4:44 PM, Mohamed H. Seddik <mhsedek at yahoo.com> wrote:
> TinyOS 2.1
>
> Mohamed
>
> --- On Wed, 3/18/09, Janos Sallai <sallai.janos at gmail.com> wrote:
>
> From: Janos Sallai <sallai.janos at gmail.com>
> Subject: Re: [Tinyos-help] Fw: Battery Voltage measurement
> To: "Mohamed H. Seddik" <mhsedek at yahoo.com>,
> "tinyos-help at millennium.berkeley.edu" <tinyos-help at millennium.berkeley.edu>
> Date: Wednesday, March 18, 2009, 11:25 PM
>
> What tinyos version do you have? Moteworks or TinyOS 2.1?
>
> Janos
>
> 2009/3/18 Mohamed H. Seddik <mhsedek at yahoo.com>:
>>
>>
>> Thanks  & Have a Nice Day
>>
>> Mohamed
>>
>> --- On Wed, 3/18/09, Mohamed H. Seddik <mhsedek at yahoo.com> wrote:
>>
>> From: Mohamed H. Seddik <mhsedek at yahoo.com>
>> Subject: Battery Voltage measurement
>> To: tinyos-help at millennium.berkeley.edu
>> Date: Wednesday, March 18, 2009, 1:47 AM
>>
>>  how to use This "
>> TinyOS component VoltageM.nc can be wired into an application to provide
>> this measurement capability. The reserved keyword TOS_ADC_VOLTAGE_PORT is
>> mapped to ADC Channel 30"
>>  how to get access to the channels and do whatever this say
>>
>> How can I do the following steps,
>>
>> According to "MPR-MIB Users Manual":
>> "To compute the battery voltage:
>>    1. Set the BAT_MON processor pin (PA5/AD5) to HI.
>>    2. Program the application code to measure ADC Channel 7.
>>    3. Compute battery voltage, Vbatt, from Channel 7s data by:
>>       Vbatt = Vref × ADC _ FS ADC _ Count
>>       where:
>>       Vbatt = Battery voltage
>>       ADC_FS = 1024
>>       Vref = External voltage reference = 1.223 V
>>       ADC_Count = Data from the ADC measurement of Channel 7"
>>
>> Thanks  & Have a Nice Day
>>
>> Mohamed
>>
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help at millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>





Uw e-mailcontact koos voor Hotmail en profiteert van een enorme opslagruimte! Maak ook een gratis Hotmail-account aan 


_________________________________________________________________
Uw e-mailcontact koos voor Hotmail en profiteert van een enorme opslagruimte! Maak ook een gratis Hotmail-account aan
http://www.microsoft.com/belux/nl/windows/windowslive/products/hotmail.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090324/c9900b62/attachment-0001.htm 


More information about the Tinyos-help mailing list