[Tinyos-help] Battery Voltage measurement and RSSI
Michael Schippling
schip at santafe.edu
Wed Mar 14 12:28:45 PDT 2007
All of the below is T1 not T2, but I would hope that there is some
similarity...
In T1 there is a Voltage component in tos/system which turns on the
monitor and defines the appropriate ADC getData() and dataReady()
interface. Also macros like TOSH_SET_BAT_MON_PIN are generated by
other macros so you will probably never find a definition directly,
try searching for "BAT_MON" or some other substring. Using the ADCs
is covered in the tutorials I think.
Received message strength is available in the msg->strength field
during msg.receive(), I think official RSSI is calculated from that
value using an offset which is in the UserGuide Manual. Transmit
power is available from GetRFPower() in CC1000ControlM.nc
MS
Murtuza wrote:
>
> Hello Friends,
>
> I have some simple questions to ask. I am working on mica2 motes on
> tinyos-2.x platform. my questions are
>
> 1. I want to measure the battery voltage on a mica2 mote. If I am not
> wrong in order to do so I must set the BAT_MON pin on the mote (
> According to the manual provided by Crossbow ) and then measure the ADC
> channel 7. Now I want to know how can I do this. I checked the mail
> archives and I found that BAT_MON is set by calling TOSH_SET_BAT_MON_PIN
> . But I was unable to find this macro in tinyos-2.x. Can anyone tell me
> in which file it is found.
>
> 2. And how can I measure channel 7 of ADC. If I call the something like
> ADC.dataready as in tinyos-1.x ( actually I am new to T2 and I dont know
> the real thing ) will it return the value at channel 7.
>
> 3. How can I measure the Received and Transmitted Radio Signal Strengths
> . As far as I believe the strength field in cc1000_metadata structure
> gives the RSSI isnt it ? What about the Transmitted Power.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
More information about the Tinyos-help
mailing list