You are not logged in.
Hey Chris (or anyone)
I'm curious to know how the "Average RSSI" output is calculated in the Packet Detector. Thanks!
-Scott
Offline
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
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
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