WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2015-Sep-26 13:45:40

dang2327
Member
Registered: 2010-Jul-06
Posts: 28

SNR estimation possibility from 802.11 Reference Design

Hi all,

From this forum post: http://warpproject.org/forums/viewtopic.php?id=2057, murphpo said that it is possible to do SNR estimation from the channel estimates of each packet:

The channel estimates, calculated from the LTS in the received preamble, are the only source of CSI in the PHY. These don't include an explicit noise estimate, but the SNR per subcarrier could be calculated using the magnitude of the channel coefficient and the Rx gains.

Can someone please explain how to do this calculation for SNR per packet? In addition, in the current 802.11 framework where the channel estimates are available to MAC, can we do this calculation in C code?

Best Regards,
Danh

Last edited by dang2327 (2015-Sep-26 22:39:21)

Offline

 

#2 2015-Sep-27 11:43:15

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: SNR estimation possibility from 802.11 Reference Design

The Rx PHY calculates its channel estimates from the long training symbols in the preamble. The LTS is defined as BSPK values in the frequency domain on 52 subcarriers (48 data, 4 pilots). The channel estimator computes the average of the two estimates per subcarrier (one per LTS copy). The resulting per-subcarrier complex scalar is used by the equalizer to demodulate each subcarrier. All 52 complex values are also stored with the packet for retrieval by the MAC code.

The magnitude of the complex scalar channel estimate corresponds to the magnitude of that subcarrier's channel coefficient. You can safely compare the magnitudes of estimates for different subcarriers in one packet to establish relative SNRs between subcarriers.

To compute an absolute SNR you must account for the gains applied by the Rx amplifiers. The Rx PHY operates on whatever samples are output from the ADC. The PHY does not care what the gain settings were[1], only that the digital samples approximately fill the ADC's dynamic range. Thus, to compute an absolute power for a signal in the PHY you must include the gains that were applied to the signal before it reached the Rx PHY. The LNA gains are approximately [0, 15 30]dB; the VGA gains are approximate [0, 63]dB. The MAX2829 datasheet has actual plots of voltage gain vs. gain setting for these amps.

[1] Not quite true- the gain selections are used to select the higher-SNR antenna when selection diversity is enabled.

Offline

 

#3 2015-Sep-27 14:56:43

dang2327
Member
Registered: 2010-Jul-06
Posts: 28

Re: SNR estimation possibility from 802.11 Reference Design

Hi murphpo, thank you for the detailed explanation. Does this mean that we can only get the relative SNR between different subcarriers, but not the (average or total?) SNR across all subcarriers for the entire packet? I imagine the latter metric would be more relevant, as we can design adaptive modulation and coding schemes from these packet-based SNR estimates. Is there a current method for collecting this metric from PHY with some hardware changes?

Under which scenarios does the former relative SNR metric become useful? Can we use it, for example, to do adaptive sub-carrier bit loading?

Regards,
Danh

Offline

 

#4 2015-Sep-27 17:04:55

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: SNR estimation possibility from 802.11 Reference Design

Does this mean that we can only get the relative SNR between different subcarriers, but not the (average or total?) SNR across all subcarriers for the entire packet?

The sum the magnitudes of all 52 channel estimates will correspond to the magnitude of the analog signals at the ADCs. If you then adjust for the Rx gains, you would get an estimate for the amplitude of the signal at the RF front end, integrated over the frequencies of the 52 subcarriers (i.e. ±8 MHz around the center frequency). This value will correlate highly with the RSSI-based Rx power estimate.

Under which scenarios does the former relative SNR metric become useful? Can we use it, for example, to do adaptive sub-carrier bit loading?

Yeah, exactly. Unequal modulation or power across subcarriers could exploit differences in magnitudes of subcarrier channel coefficients. Actually building this is hard, since it requires feedback of per-subcarrier channel state information within the coherence time of the channel.

Offline

 

#5 2015-Sep-27 21:18:47

dang2327
Member
Registered: 2010-Jul-06
Posts: 28

Re: SNR estimation possibility from 802.11 Reference Design

The sum the magnitudes of all 52 channel estimates will correspond to the magnitude of the analog signals at the ADCs. If you then adjust for the Rx gains, you would get an estimate for the amplitude of the signal at the RF front end, integrated over the frequencies of the 52 subcarriers (i.e. ±8 MHz around the center frequency). This value will correlate highly with the RSSI-based Rx power estimate.

But this value corresponds to the Rx signal-plus-noise power estimate right? Can we estimate noise or signal power separately, or come up with a signal-to-noise ratio estimate?

Offline

 

#6 2015-Sep-28 08:45:27

chunter
Administrator
From: Mango Communications
Registered: 2006-Aug-24
Posts: 1212

Re: SNR estimation possibility from 802.11 Reference Design

The best way to get an SNR estimate is probably to add logic to calculate Error Vector Magnitude for each symbol. See this discussion for more details.

Offline

 

#7 2015-Sep-29 09:26:04

dang2327
Member
Registered: 2010-Jul-06
Posts: 28

Re: SNR estimation possibility from 802.11 Reference Design

Thank you for the link, chunter. I came across this point on SNR estmation a couple times in the forum, but thought that there was a easier way to go :).

Offline

 

Board footer