WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2007-Aug-09 12:55:02

Scott
Member
From: Houston, Texas
Registered: 2006-Oct-01
Posts: 19

Average RSSI in Packet Detection Peripheral - about?

Hey Chris (or anyone)

I'm curious to know how the "Average RSSI" output is calculated in the Packet Detector. Thanks!

-Scott

Offline

 

#2 2007-Aug-09 14:52:53

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

Re: Average RSSI in Packet Detection Peripheral - about?

Average is sort of a misnomer- the pkt detector model just adds together the last N samples (an average without the division). N is programmed with the ofdm_pktDetector_mimo_WriteReg_pktDet_avgLen() function from the ofdm_pktDetector_opbw driver. The various RSSI-based thresholds in the pkt detector are set relative to this sum. So in the reference design, where we set N to 16 and the pkt detection threshold to 7000, this corresponds to a threshold of 438 (7000/16) of actual average RSSI, which is a little shy of half of the RSSI's peak value of 1023.

Offline

 

#3 2007-Aug-09 16:16:19

Scott
Member
From: Houston, Texas
Registered: 2006-Oct-01
Posts: 19

Re: Average RSSI in Packet Detection Peripheral - about?

So - when you set N, it will set the detection threshold accordingly - so that you get ~438, or is 7000 a constant hardwired in the system?

Offline

 

#4 2007-Aug-09 18:57:34

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

Re: Average RSSI in Packet Detection Peripheral - about?

The detection thresholds are programmed via registers. You need to call ofdm_pktDetector_mimo_WriteReg_pktDet_avgThresh and ofdm_pktDetector_mimo_WriteReg_csma_avgThresh when you change the sum length (using ofdm_pktDetector_mimo_WriteReg_pktDet_avgLen). See warpmac.c for how we use each of the functions to initialize the packet detector for the reference design.

Offline

 

Board footer