linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bruno randolf <bruno@thinktube.com>
To: jt@hpl.hp.com
Cc: "Luis R. Rodriguez" <mcgrof@gmail.com>,
	ath5k-devel@lists.ath5k.org, jirislaby@gmail.com,
	mickflemm@gmail.com, linux-wireless@vger.kernel.org,
	linville@tuxdriver.com, johannes@sipsolutions.net,
	flamingice@sourmilk.net, jbenc@suse.cz,
	Ivan Seskar <Seskar@winlab.rutgers.edu>,
	Haris Kremo <harisk@winlab.rutgers.edu>
Subject: Re: [PATCH] mac80211: use hardware flags for signal/noise units
Date: Mon, 31 Mar 2008 15:32:44 +0900	[thread overview]
Message-ID: <200803311532.44969.bruno@thinktube.com> (raw)
In-Reply-To: <20080327165237.GA28553@bougret.hpl.hp.com>

On Friday 28 March 2008 01:52:37 Jean Tourrilhes wrote:
> > can you explain why you think atheros HW is "relative"?
> >
> > in the past in madwifi RSSI was said to be measured against a fixed noise
> > value of -95dBm (which should be expressed by using _SIGNAL_DB in my
> > patch) but now we have a periodic noise floor calibration and we assume
> > RSSI to be relative to that, so we believe to be able to provide dBm for
> > both values. that's how it is currently reported in madwifi and ath5k and
> > what we believe to be correct (without having much documentation from
> > atheros, however) - if that's not correct we have to modify the drivers.
>
> 	One of my coworkers was doing experiments on interference
> measurements. For that, we need to measure the signal strength of
> various packets. Those recalibrations throw havoc in our
> measurements. In other words, the RSSI we measure is consistent
> between recalibration points, but not across those recalibration.
> 	This co-worker was using some NetBSD and not MadWifi, and I
> don't know which version, so I can not say for sure if this affect the
> current version of MadWifi.
>
> 	You have to look at what the application wants. The
> application wants consistent measurements. You can *NOT* define
> properly APIs unless you understand how application will use it.
> 	I don't understand enough about the Atheros hardware (I
> haven't used it), but I don't see why you would need to recalibrate
> the noise floor and how you could acheive that. Any "noise" you
> measure on the channel would be subject to interference and
> fading. The only way you could measure some noise with some certainty
> would be to ground the antenna and measure.

there are actually two types of noise calibration for atheros hardware: one is 
for the internal circuit noise, which is done by detaching the antennas and 
another one for the environment noise (interference) on the channel, which is 
measured during silent times of the MAC protocol (SIFS for example). at least 
that's my understanding of what is described in an atheros patent:

http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&p=1&u=%2Fnetahtml%2FPTO%2Fsearch-bool.html&r=1&f=G&l=50&co1=AND&d=PTXT&s1=%22Method+system+noise+floor+calibration+receive+signal+strength+detection%22.TI.&OS=TTL/

> 	If you calibrate your RSSI using the noise on the channel, I
> believe you are measuring SNR, not signal strength. Of course, I may
> be wrong.

i think that's what is happening. that seems to be consistent with both your 
collegues experimental results, the patent and the way we interpret 
the "RSSI" as SNR in madwifi and ath5k.

of course lacking any documentation from atheros this all mostly speculations.

> > sorry jean, no offense, but the usage of these values in WE was really
> > confusing and the lack of knowing what the values acutally mean made it
> > really hard for applications to work with them.
>
> 	Everybody is entitled to their opinion. Those values were
> clearly documenteed but nobody bothered to read the documentation.

true. it's unfair to blame WE for that. the problems came mostly from the fact 
that devices used completely different methods of reporting these values and 
not much was know about the devices sometimes.

now that have a mac80211 stack which unifies different drivers i would like to 
improve that situation by also unifying the way we report signal and noise 
across most devices. most modern cards support dBm so this is probably the 
way to go for the future. 

but the remaining question is how do we deal with devices where we don't know 
how to map RSSI to dBm.

i take your suggestion that we should remove the "linear" requirement from the 
definition. do you think it would be feasible to require the drivers to 
normalize their RSSI to a range of 0-100, so we would have at least some 
consistency between devices? (of course their steps within this percentage 
would be different and it would still be impossible to compare these values 
across different devices).

best regards,
bruno

  reply	other threads:[~2008-03-31  6:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 12:30 [PATCH] mac80211: use hardware flags for signal/noise units Bruno Randolf
2008-03-26 22:59 ` Luis R. Rodriguez
2008-03-27  0:19   ` Jean Tourrilhes
2008-03-27  2:47     ` bruno randolf
2008-03-27 16:52       ` Jean Tourrilhes
2008-03-31  6:32         ` bruno randolf [this message]
2008-03-31 17:47           ` Jean Tourrilhes
2008-04-02  3:06             ` bruno randolf
2008-04-02 23:19     ` Luis R. Rodriguez
2008-04-02 23:56       ` Jean Tourrilhes
2008-04-03  1:55       ` bruno randolf
2008-03-27  2:07   ` bruno randolf
2008-04-02 19:27     ` Luis R. Rodriguez
2008-04-03  2:05       ` bruno randolf
2008-03-27 12:47 ` Johannes Berg
2008-03-28 10:52   ` bruno randolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200803311532.44969.bruno@thinktube.com \
    --to=bruno@thinktube.com \
    --cc=Seskar@winlab.rutgers.edu \
    --cc=ath5k-devel@lists.ath5k.org \
    --cc=flamingice@sourmilk.net \
    --cc=harisk@winlab.rutgers.edu \
    --cc=jbenc@suse.cz \
    --cc=jirislaby@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=jt@hpl.hp.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mcgrof@gmail.com \
    --cc=mickflemm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).