WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2016-Apr-12 17:36:03

Slime
Member
Registered: 2015-Mar-11
Posts: 28

Measuring input power

Hi,

We need to measure the input power in order to draw the antenna radiation characteristic plot like this:
http://i64.tinypic.com/25kirmu.png

I noticed that you can convert RSSI to dBm directly in reference design. However since I am working in WARPLab using the following function to read the RSSI:

Code:

wl_basebandCmd(nodes(2), [RFA RFB], 'read_RSSI', 0, 2^12);

My question is that in order to find out the exact received power (to put in the radiation characteristic plot), I will need to use the following graph right?
http://i68.tinypic.com/24lpkc8.png

But what does "medium gain", "high gain" and "low gain" in that plot stands for? And how is the RSSI value in WARPLab (0-1023) mapped to the Y axis in this plot?

Finally, should I set the Rx RF Gain and Rx Baseband gain both to 0 in order to get the raw RSSI? Using the following function for example:

Code:

wl_interfaceCmd(nodes, ifc_ids.RF_ALL, 'rx_gain_mode', 'manual');
wl_interfaceCmd(nodes, ifc_ids.RF_ALL, 'rx_gains', 0, 0);

Thank you in advance!

Antony

Last edited by Slime (2016-Apr-12 17:50:01)

Offline

 

#2 2016-Apr-12 20:39:38

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

Re: Measuring input power

RSSI is an analog signal generated by a power detection circuit in the MAX2829 Rx path. The RSSI detector is fed before the Rx baseband amplifier. Thus the Rx baseband gain does not affect RSSI. The Rx RF gain (LNA gain) does affect the RSSI. There are 3 valid LNA gain settings. In WARPLab these are encoded as 1 (lowest gain), 2 and 3 (highest gain). The RSSI plots in the MAX2829 datasheet refer to these settings as low, medium and high.

The RSSI signal is sampled by a 10-bit 10MSps ADC on the WARP v3 board. The ADC digital values [0,1023] span approx 0.6 to 2.6v, covering nearly the full range of the MAX2829 RSSI levels.

Calibrating Rx power requires specification of the bandwidth over which you're integrating power. This implies knowing the characteristics of the waveform. The RSSI vs Rx power plots in the datasheet assume a 20MHz Wi-Fi preamble. The RSSI signal will be proportional (in dB) to your signal's Rx power, but if your signal is not a 20MHz Wi-Fi preamble there will be an offset relative to the plots in the datasheet. If you need to calculate accurate Rx power from RSSI you will need to calibrate with your waveform and a known Rx power or known Tx power and path loss.

Offline

 

#3 2016-Apr-13 00:42:04

Slime
Member
Registered: 2015-Mar-11
Posts: 28

Re: Measuring input power

murphpo wrote:

RSSI is an analog signal generated by a power detection circuit in the MAX2829 Rx path. The RSSI detector is fed before the Rx baseband amplifier. Thus the Rx baseband gain does not affect RSSI. The Rx RF gain (LNA gain) does affect the RSSI. There are 3 valid LNA gain settings. In WARPLab these are encoded as 1 (lowest gain), 2 and 3 (highest gain). The RSSI plots in the MAX2829 datasheet refer to these settings as low, medium and high.

The RSSI signal is sampled by a 10-bit 10MSps ADC on the WARP v3 board. The ADC digital values [0,1023] span approx 0.6 to 2.6v, covering nearly the full range of the MAX2829 RSSI levels.

Calibrating Rx power requires specification of the bandwidth over which you're integrating power. This implies knowing the characteristics of the waveform. The RSSI vs Rx power plots in the datasheet assume a 20MHz Wi-Fi preamble. The RSSI signal will be proportional (in dB) to your signal's Rx power, but if your signal is not a 20MHz Wi-Fi preamble there will be an offset relative to the plots in the datasheet. If you need to calculate accurate Rx power from RSSI you will need to calibrate with your waveform and a known Rx power or known Tx power and path loss.

So I was using the WARP SISO OFDM example to read the RSSI, it should be 20MHz right?
I see. So RSSI values are not linear to the real received power. I always thought it was linear. Thank you!

Offline

 

#4 2016-Apr-13 09:25:24

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

Re: Measuring input power

RSSI is nearly linear-in-dB for most Rx powers. But RSSI will saturate for out-of-range powers. For example, if the LNA is set to "High" (3 in WARPLab) and a Wi-Fi signal arrives with Rx power of -20dBm, the RSSI signal will saturate at its maximum value. In this case the LNA must be adjusted to 2 or 1 before the RSSI signal will accurately reflect Rx power. In the 802.11 Ref Design the Rx PHY captures the RSSI after the AGC settles and during the preamble LTF. This provides the best chance of an accurate Rx power estimate.

Offline

 

#5 2016-Apr-18 15:46:28

Slime
Member
Registered: 2015-Mar-11
Posts: 28

Re: Measuring input power

murphpo wrote:

RSSI is nearly linear-in-dB for most Rx powers. But RSSI will saturate for out-of-range powers. For example, if the LNA is set to "High" (3 in WARPLab) and a Wi-Fi signal arrives with Rx power of -20dBm, the RSSI signal will saturate at its maximum value. In this case the LNA must be adjusted to 2 or 1 before the RSSI signal will accurately reflect Rx power. In the 802.11 Ref Design the Rx PHY captures the RSSI after the AGC settles and during the preamble LTF. This provides the best chance of an accurate Rx power estimate.

Thank you very much!

Offline

 

#6 2016-Apr-22 00:05:35

Slime
Member
Registered: 2015-Mar-11
Posts: 28

Re: Measuring input power

murphpo wrote:

RSSI is nearly linear-in-dB for most Rx powers. But RSSI will saturate for out-of-range powers. For example, if the LNA is set to "High" (3 in WARPLab) and a Wi-Fi signal arrives with Rx power of -20dBm, the RSSI signal will saturate at its maximum value. In this case the LNA must be adjusted to 2 or 1 before the RSSI signal will accurately reflect Rx power. In the 802.11 Ref Design the Rx PHY captures the RSSI after the AGC settles and during the preamble LTF. This provides the best chance of an accurate Rx power estimate.

Hi, I have a follow-up question about measuring the input power. I noticed that in the OFDM examples such as "wl_example_siso_ofdm_txrx", the snr is computed based on EVM, which makes sense to me. However when we did the experiment in an anechoic chamber, we still observed the change of SNR as the distance between the transmitter and receiver changes. So my question is what causes the "interference" in the process of computing SNR based on EVM since the anechoic chamber is supposed to have no other interfering signal. Or to put it in another way, does the SNR computed based on EVM has the same "meaning" as the SNR computed from the signal power divided by the noise power? Thank you!

Last edited by Slime (2016-Apr-22 00:18:26)

Offline

 

#7 2016-Apr-22 09:44:28

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

Re: Measuring input power

Noise at a receiver is fundamentally unavoidable. The EVM-based SNR calculation in the "wl_example_siso_ofdm_txrx" would be better served by being named SINR (signal to interference and noise ratio). Moving into an anechoic chamber significantly attenuated the interference term that might be present in that calculation, but it didn't do anything to affect the noise floor.

Offline

 

#8 2016-Apr-25 15:54:26

Slime
Member
Registered: 2015-Mar-11
Posts: 28

Re: Measuring input power

chunter wrote:

Noise at a receiver is fundamentally unavoidable. The EVM-based SNR calculation in the "wl_example_siso_ofdm_txrx" would be better served by being named SINR (signal to interference and noise ratio). Moving into an anechoic chamber significantly attenuated the interference term that might be present in that calculation, but it didn't do anything to affect the noise floor.

I see. Thank you for the explanation. BTW during our experiment we noticed that the output power of RF port B seems to be greater than RF port A on both of our two WARP V3 boards. I was wondering if this is normal? Thank you.

Offline

 

#9 2016-Apr-25 16:01:44

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

Re: Measuring input power

Yes, though it's not generally true that RFB is more powerful than RFA. For your kits that appears to be the case. Some variation is expected due to component tolerances.

Offline

 

Board footer