WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2007-May-18 17:26:07

zrcao
Member
From: Vienna, VA
Registered: 2007-Jan-24
Posts: 121

Problem in RSSI reading

We did a simple test on OFDM reference design V02 to get RSSI values and radio card dip switch value.  We slight modiifed the infinite loop of myMac_main as following

Code:

                int xx;
	short rssi;
	short dipsw;
	while(1){
			// ADD by ZRCao
			for(xx=0;xx<2000;xx++){
			}
			rssi = 0;
			rssi = WarpRadio_RSSIData(XPAR_RADIO_CONTROLLER_0_BASEADDR, SECOND_RADIO);
			dipsw = WarpRadio_DIPSW(XPAR_RADIO_CONTROLLER_0_BASEADDR, SECOND_RADIO);
			xil_printf("RSSI is %d\r\n", rssi);
			xil_printf("DIPSW is %d\r\n", dipsw);
			//////// End of ADD
			
			if(txBuffer.isNew==0){
				if(myID!=2){
					warpmac_pollEthernet(ethernet_callback);
				}
			}
	}
	pthread_exit (NULL);

We terminated the two RF intput SMA, and changed the radio cardd dip switch settings. However, the RSSI value we got is always 1023, while the dipswitch value we got is always 0. What might be the problem?

Thank you very much.

Offline

 

#2 2007-May-22 15:19:49

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

Re: Problem in RSSI reading

What is SECOND_RADIO defined as in your code? If you're using one of the reference desgins, SECOND_RADIO is mapped to daughtercard slot #1 and is only used in MIMO configurations. Try using FIRST_RADIO (like the rest of the WarpRadio function calls in warpmac) and see if you get better results. The DIP switch may still return zero. There was an error in our XBD file that reversed the direction of the radio board's DIP switch pins. We have fixed this, but the reference design may pre-date the fix.

Offline

 

Board footer