Hi,
Setting the POT value changes the power of the radio rather than yielding a
certain range. Different antennae setups will yield different results;
different environments will yield different results depending on the noise
around.
If you check the mailing list archives (searchable from the TinyOS support
page -- look for the htdig picture) you will find some empirical results.
-kw
----- Original Message -----
From: "Kensuke Ueda" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Monday, October 27, 2003 10:16 PM
Subject: [Tinyos-help] How to use "Pot.nc"
> I use MOTE-KIT5242 on Windows XP.
> I want to control the connectivity range,
> so I try to use Pot interface.
>
> An explanation of Pot interface says
> "parameters range from 0 to 99",
> "with the external antenna the range is from
> 1 foot to 100 feet".
> Does this mean that the range is 100 feet
> if I set parameter to 0, and that the range
> is 1 foot if I set parameter to 99?
> If not, how much differences of transmission
> range is there between setting parameter to
> 0 and 99?
>
> And I made CntToRfmAndLedsA.nc and CntToRfmAndLedsAM.nc
> from CntToLedsAndRfm.nc.
> I changed the parameter of Pot.init(), but transmission
> range didn't change.(about 80 feet)
> Please advise me where is wrong in my program.
> Thank you and with best regards.
>
>
>
> CntToLedsAndRfmA.nc ++++++++++++++++++++++++++++++++++++++++++++++++++
>
> configuration CntToLedsAndRfmA {
> }
> implementation {
> components Main, Counter, IntToLeds, IntToRfm, TimerC,
CntToLedsAndRfmAM, PotC;
>
> Main.StdControl -> Counter.StdControl;
> Main.StdControl -> IntToLeds.StdControl;
> Main.StdControl -> IntToRfm.StdControl;
> Main.StdControl -> TimerC.StdControl;
> Main.StdControl -> CntToLedsAndRfmAM.StdControl;
> Counter.Timer -> TimerC.Timer[unique("Timer")];
> IntToLeds <- Counter.IntOutput;
> Counter.IntOutput -> IntToRfm;
> CntToLedsAndRfmAM.Pot -> PotC;
> }
>
>
>
> CntToLedsAndRfmAM.nc +++++++++++++++++++++++++++++++++++
>
> module CntToLedsAndRfmAM {
> provides{
> interface StdControl;
> }
> uses{
> interface Pot;
> }
> }
> implementation {
> command result_t StdControl.init() {
> call Pot.init(99);
> return SUCCESS;
> }
> command result_t StdControl.start() {
> return SUCCESS;
> }
> command result_t StdControl.stop() {
> return SUCCESS;
> }
>
> }
>
> -----------------------------------
> Kensuke Ueda <[EMAIL PROTECTED]>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [EMAIL PROTECTED]
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users