Thankyou Greg for your help

I
have actually programmed the mote such that it reads its own
transmitter power level setting using getpower() (before sending the
packet) and embeds the value in the packet body and sends the value
with the packet. The receiver estimates the RSSI and compares it with
the transmitter's setting (extracted from packet body) and evaluates
the required power level. 


Do getPower() and setPower() not
estimate and vary the transmitter power level (respectively) actually?
Then how do I vary the power level?  Even setPower() didn't work and I
get the same values. 

- Sreevalli




----- Original Message ----
From: Greg Hackmann <[EMAIL PROTECTED]>
To: tinyos-help@millennium.berkeley.edu
Sent: Thursday, February 7, 2008 10:31:42 PM
Subject: Re: [Tinyos-help] Varying transmitter power level

sstl 
vls 
wrote:
>  
From 
CC2420 
Chipcon 
data 
sheets, 
I 
learnt 
that 
the 
PA_LEVEL 
(getPower) 
> 
can 
be 
any 
of 
3, 
7, 
11, 
15, 
19, 
23, 
27, 
31 
(CC2420Packet 
interface 
says 
> 
it 
can 
be 
between 
0 
and 
32.) 
I 
assume 
they 
are 
Hexadecimal 
values..

These 
are 
actually 
decimal 
values, 
not 
hex.

> 
The 
problem 
is 
when 
I 
tested 
it 
on 
actual 
motes, 
I 
get 
a 
range 
of 
values 
> 
for  
getPower  
: 
00 
or 
1f 
to 
23 
or 
d0 
to 
df
> 
> 
The 
values 
d0 
to 
df 
are 
incorrect 
(and 
I 
get 
them 
very 
often 
).  
Can 
> 
someone 
please 
tell 
me 
why 
this 
is 
happening. 
Is 
something 
wrong?

The 
getPower() 
and 
setPower() 
commands 
manipulate 
the 
TinyOS 
packet 
metadata, 
which 
does 
not 
get 
transmitted 
across 
the 
radio.  
If 
you 
try 
to 
read 
this 
value 
on 
a 
packet 
received 
from 
another 
mote, 
you'll 
just 
get 
uninitialized 
data.

If 
you 
want 
motes 
to 
know 
the 
PA_LEVEL 
setting 
used 
for 
the 
packets 
that 
they 
receive, 
then 
you'll 
need 
to 
store 
that 
information 
in 
the 
packet's 
body.

Greg 
Hackmann
_______________________________________________
Tinyos-help 
mailing 
list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help







Send instant messages to your online friends http://uk.messenger.yahoo.com 
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to