This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: Detecting carrier wave in test mode not working (HCI_EXT_ModemTestRxCmd())

Part Number: CC2340R5

Hello,

i'm trying to detect a carrier wave at 2476Mhz.

i'm using the code example 'basic_ble' and i created a periodic event handler using clockP and tried to sample for carrier wave every 5 seconds.

- i call the function HCI_EXT_ModemTestRxCmd and set the parameter as 37 (2402 + (37 * 2)) = 2476Mhz.

- i add a delay using a loop or by using usleep (i tried both of them). i disabled the optimization inside this function by adding   '__attribute__((optnone))' 

- after the delay i read the rssi using the function HCI_ReadRssiCmd().

the rssi return always 0. i tried different frequency and all the same, i also add a command at the beginning of the code to increase the RX gain  but it did not help (HCI_EXT_SetRxGainCmd(HCI_EXT_RX_GAIN_HIGH);)

the CW generator is ok and is generating a continuous CW at 2476Mhz and it was tested.

 



can you please advise me what i need to do in order to make it work ?

thanks,
Haithem,