On Wed, Mar 26, 2008 at 8:19 PM, Jean Tourrilhes <jt@hpl.hp.com> wrote:
I'm very well aware you did not define what went into mac80211.h. Also
I'm not blaming anyone for anything, I just wanted to ask you some
details of intentions behind a value used in WE so we can better
implement things moving forward.
ACK
I think you meant RCPI, and it seems to be well defined actually. The
value is opaque but it is a representation of a dbm value. Again,
quoting from Simon's comment on RCPI:
"The allowed values for the Received Channel Power Indicator (RCPI) parameter
shall be an 8 bit value in the range from 0 through 220, with indicated
values rounded to the nearest 0.5 dB as follows:
0: Power < -110 dBm
1: Power = -109.5 dBm
2: Power = -109.0 dBm
and so on where
RCPI = int{(Power in dBm +110)*2} for 0dbm > Power > -110dBm
220: Power > -0 dBm
221-254: reserved
255: Measurement not available
RCPI shall equal the received RF power within an accuracy of +/-5 dB
(95% confidence interval) within the specified dynamic range of the
receiver. The received RF power shall be determined assuming a receiver
noise equivalent bandwidth equal to the channel bandwidth multiplied by
1.1."
But as discussed already on the lists the problem with RCPI will be
getting hardware to support it and its accuracy. In terms accuracy for
RCPI you need to support "received RF power in the selected channel
for a received frame. This parameter shall be a measure by the PHY
sublayer of the received RF power in the channel measured over the
entire received frame or by other equivalent means which meet the
specified accuracy". I don't believe we have hardware that can fit
this definition yet. Atheros' rssi value is measured during the the
initial 4us of detection, during the preamble and PLCP, not sure if
this fits the definition on the "or" clause ("or by other equivalent
means which meet the specified accuracy"). I also wish and wonder if
we could modify this duration of 4us during which the SNR is measured.
What 802.11 hardware does report exact dbm signal strength
measurements? At least for Atheros AR5212 hardware there seems to be
an offset value between the actual signal strength and the measured
signal stregth. At Orbit we use a lot of Atheros hardware (800
wireless cards on the grid) and at one point it seems there was a big
concern over the value of signal strength reported and how it differed
amongst cards compared to a real controlled value. I just tried to
gather together a bit of the experience so far and it seems that in
general the offset was small and didn't vary too much. So actually,
unless I am misrepresenting the experience explained so far Atheros
hardware seems provide reliable results, across different experiments,
across different cards. An offset exists but it seems to be
negligible. If you want to be surgically precise you do have to
account for it but it seems it close enough for our purposes.
Is there standard 802.11 hardware out there that is not calibrated
under this definition?
I wouldn't be surprised if the offset changes over time but I doubt
its by a lot. How much have you seen the offset change over time? I do
not think we have tested this. I will check.
In Atheros' case we want to use dbm as we also know the noise, so we
can just work with signal. Is there hardware where we might have SNR
but not noise?
Its a good point but for those who want precise results and if we
*can* provide better and more accurate results I don't see why not.
Ultimately I'd like to see RCPI embraced but we have to yet see
hardware who can fit its definition on accuracy.
<-- snip -->
We don't have documentation for this but we can see what was *done* on
MadWifi. On MadWifi the noise is obtained during interrupts on
incoming set of frames and this is saved on a variable. This noise is
is subtracted from the SNR (rssi) to get the signal. I guess this
assumes that if there is a static noise during SIFs then you should
subtract that noise as well. I cannot say we have measured this
method's accuracy but hope its better than assuming a static noise as
its what we use in ath5k as well.
<-- snip -->
How so? I think I must still be seriously misunderstanding something
then. If the weakest signal possibly detected is -110 dbm it does not
imply the strongest signal will be 0 dbm. On the contrary, I expect to
be able to receive frames with positive dbm values. For example, if I
hook up a card's antenna which is transmitting at 20dbm to another
card's antenna directly with cables with 10 dbm attenuator in the
middle I expect to see 10 dbm on the reception side. Therefore
shouldn't the max be close the max allowed, or at least expected,
EIRP?
I expect noise to have the range [minimal possibly detected signal
---- max expected EIRP ]
The same applies to signal, which you seem to have labeled as "level".
Again, I think I'm probably just really not understanding this so
please clarify a bit more.
Sure, we use qual as a percentage of the best signal right now. This
is driver dependent; for Atheros hardware, for example, we assume a
max rssi value of 64.
Point taken. In that case representation-wise we should take the
lowest number for the lowest possible value. For 802.11 though it
seems the lowest value should be -101 (20 MHz bandwidth) as I
illustrated but some funky hardware (Atheros) allows even for 5 MHz
channel widths so because of that this comes down to 107:
; -174 + (10 * log(5 * 10^6))
~-107.01029995663981195219
For 1MHz we get a clean -114:
; -174 + (10 * log(1 * 10^6))
-114
Whatever, I guess -110 or -114 is OK then :) I see your point though.
Sure.
Luis
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.orghttps://lists.ath5k.org/mailman/listinfo/ath5k-devel