WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2009-Jan-11 09:06:33

domenique
Member
Registered: 2009-Jan-07
Posts: 47

txGain, pktdetthresh and csmathresh ranges

What are the minimum and maximum values for txGain, pktdetthresh and csmathresh? txGain should have a range of 0-63 I think. What about the others?

In the warpphy_init() function I found : txGain = 0x3f, pktdetthresh = 9000 and csmathresh = 4000 as initial values, but then:
ofdm_pktDetector_mimo_WriteReg_csma_avgThresh(PKTDET_BASEADDR, 16000);

Why is it set to 16000 and not to csmathresh? Isn't it quite a high value and does it make sense to choose a higher csmathresh than pktdetthresh?

Thanks,

Offline

 

#2 2009-Jan-11 11:10:57

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

Re: txGain, pktdetthresh and csmathresh ranges

txGain is a six-bit value in [0,63], with 63 corresponding to maximum gain.

pktdetthresh and csmathresh are thresholds relative to the packet detector's sum of RSSI values. By default, the core sums the 16 most recent samples, so a threshold of 9000 corresponds to an instantaneous RSSI value of 562 (9000/16). Setting the CSMA threshold to 16000 disables CSMA (the summed RSSI never exceeds that value).

Offline

 

#3 2009-Jan-12 07:24:33

domenique
Member
Registered: 2009-Jan-07
Posts: 47

Re: txGain, pktdetthresh and csmathresh ranges

Thank you so far. You are helping me very much with your answers.

Is the following mapping between txGain and txPower right: 0 -> -35dBm; 63 -> -5dBm. I took these values from the Max2829 data sheet on page 21.

The PA applies +30dB gain and can be either turned on or off. Turned on the mapping should be : 0->-5dBm; 63 -> 25dBm. Is this correct?

In some posts I read that the PA applies 18dBm output power and in some others, that it applies +30dB gain. Do +18dBm correspond to +30dB gain? Or does this mean, that it applies 30dB gain, but its maximum output power is 18dBm?

I appreciate each comment.

Thanks,

Last edited by domenique (2009-Jan-13 17:23:14)

Offline

 

#4 2009-Jan-13 20:32:48

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

Re: txGain, pktdetthresh and csmathresh ranges

dB is a unit of gain; dBm is a unit of power, calculated as dB relative to 1mW (where 0dBm is 1mW). See this Wikipedia article for a complete explanation.

The WARP radio board Tx PA applies 30dB gain. It is rated for good EVM performance up to ~18dBm output power. This is approximately the Tx power of the OFDM reference design when the other Tx gains are set to maximum.

Offline

 

#5 2009-Jan-14 05:54:37

domenique
Member
Registered: 2009-Jan-07
Posts: 47

Re: txGain, pktdetthresh and csmathresh ranges

If you have an output power of X dbm and you apply a Y dB gain then your final output power will be X+Y dBm. Maybe I'm wrong, but this is how I learned it. See for example this article : Adding / Subtracting dB and dBm.

That would mean, according to the Max2829 data sheet on page 21:
0 -> -35dBm .... 63 -> -5dBm
+ PA
0 -> -5dBm .... 48 -> 18dBm .... 63 -> 18dBm

But it seems not logical that the output power is constant at +18dBm in the range from txGain = 48 to 63. ?

Offline

 

#6 2009-Jan-15 16:22:25

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

Re: txGain, pktdetthresh and csmathresh ranges

I agree that plot is inconsistent with our actual hardware implementation. The discrepancy is that the datasheet doesn't specify what the input I/Q signal was for that test. In our case, the maximum input signal (full range output from the DAC) will produce an output around 19dBm.

Offline

 

#7 2009-Jun-22 14:31:26

Amir
Member
Registered: 2007-Jun-18
Posts: 92

Re: txGain, pktdetthresh and csmathresh ranges

The 18dbm output, is it peak or the average power? Also, have you looked at more powerful PAs, possibly for outdoor usage?

Thanks.

Offline

 

#8 2009-Jun-23 10:41:44

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

Re: txGain, pktdetthresh and csmathresh ranges

It's definitely peak. The average power will depend on the waveform. Our OFDM design, for example, backs off at least a few dB for PAPR reasons.

A more powerful amplifier would be great, but it would require redesigning a big chunk of the radio board. We may do this someday but not anytime soon.

Offline

 

Board footer