WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2013-Dec-02 04:09:12

yeowl
Member
From: Cyberjaya
Registered: 2012-May-15
Posts: 44

MPDU's RxPower on 5GHz

calculate_rx_power is only applicable for 2.4GHz. Is that possible to provide the hints on how to extend this to support 5GHz?

Offline

 

#2 2013-Dec-02 04:27:49

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

Re: MPDU's RxPower on 5GHz

The Rx power calculation in the 802.11 design uses the MAX2829 RSSI signal as digitized by the WARP v3 RF interfaces. We implemented the 2.4GHz RSSI -> Rx power mapping using the RSSI vs Rx power figure on pg. 16 of the MAX2829 datasheet. The comparable figure for 5GHz is on pg. 19.

Offline

 

#3 2013-Dec-04 04:15:00

yeowl
Member
From: Cyberjaya
Registered: 2012-May-15
Posts: 44

Re: MPDU's RxPower on 5GHz

How you come out with the RSSI_OFFSET_LNA_LOW ... ?

Is the RSSI_SLOPE_BITSHIFT going to change for 5GHz?

Offline

 

#4 2013-Dec-04 09:18:41

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

Re: MPDU's RxPower on 5GHz

yeowl wrote:

How you come out with the RSSI_OFFSET_LNA_LOW ... ?

We used the "RX RSSI Output vs. Input Power" graph on page 16 of the MAX2829 datasheet and overlaid lines for a best fit linear approximation. The graph in the pdf of that data sheet is really small, so it's helpful to blow it up an overlay a grid on top of it. See what we made here as an example. In that figure, RSSI_A is the analog RSSI output in Volts and RSSI_D is the digital RSSI output after going through the ADC.

The mapping of RSSI_A to RSSI_D in the linked pdf is a little cryptic and is purely a function of the design of the WARP v3 board. The ADC that is fed by the RSSI signal maps the following:

RSSI_A     RSSI_D
2.65 V       1023
   .65 V            0

That mapping will be exactly the same for the 5GHz line, so you should be able to re-use the "RSSI_A = (2/1023)*RSSI_D +3/5" mapping.

Long story short, you need to make a similar approximation to the "RX RSSI Output vs. Input Power" on page 19 of the MAX2829 datasheet.

yeowl wrote:

Is the RSSI_SLOPE_BITSHIFT going to change for 5GHz?

The input to the calculate_rx_power function isn't actually the raw RSSI value out of the ADC (i.e. RSSI_D). It's a rolling sum version of it to help smooth over noisy samples. The length of that sum is defined as 8 samples in the design. More generally, it is defined as PHY_RX_RSSI_SUM_LEN in wlan_phy_util.h. The RSSI value passed to the calculate_rx_power function needs to be divided by 8 in order for it to be in the range of [0,1023] for the mapping of RSSI_D to RSSI_A to make sense. That's what the RSSI_SLOPE_BITSHIFT = 3 is referring to (log2(8) = 3). Shifting the value to the right by 3 bits is just a fast way of dividing by 8. You shouldn't change RSSI_SLOPE_BITSHIFT in the move to 5GHz since you will still be getting the 8 sampled-summed RSSI values.

Offline

 

#5 2013-Dec-05 22:50:02

yeowl
Member
From: Cyberjaya
Registered: 2012-May-15
Posts: 44

Re: MPDU's RxPower on 5GHz

Thanks for your explanation. But it seems that "RX RSSI Output vs. Input Power" graph for 5GHz is not linear.

Offline

 

#6 2013-Dec-06 08:11:30

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

Re: MPDU's RxPower on 5GHz

You can implement whatever function you want to best fit the data in that graph. Eyeballing the graphs, it looks like a piecewise linear function might be a good fit. Each of the three curves seems to have an inflection point. To the left or two the right of that inflection point the curves appear mostly linear but different slopes and y offsets.

Offline

 

#7 2013-Dec-06 08:53:14

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

Re: MPDU's RxPower on 5GHz

You can also augment the Rx power estimation using the AGC-selected gains. The AGC uses the RSSI to set the RF gain and the amplitude of the IQ signals to set the baseband gain. If the 5GHz RSSI curves aren't precise enough for your application, refining it using the AGC baseband gain selection based on the IQ amplitude could help.

Offline

 

Board footer