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.

About measuring RSSI on CC2540DK-Mini

Other Parts Discussed in Thread: CC2540

Hi, 

I have a question about the method to measure RSSI on the Keyfob of the CC2540DK-MINI. In the proximity use case, I would like to measure RSSI on keyfob in order to calculate the path loss, however, I didn't find a function that can let me access RSSI on keyfob. I know that on the dongle, I can send HCI_ReadRSSI from PC to the dongle to measure the RSSI. I tried to look into the code of the dongle (HostTest project), but I still cannot figure out how the dongle handle this HCI_ReadRSSI command and read the RSSI. Could someone kindly help me on this?

Thank you very much in advance.

 

  • If you are following the spec for the proximity profile, only the central device (the "monitor", which is the dongle/Btool in this case) needs to monitor the RSSI to calculate the path loss.

    If you still want to measure RSSI on the keyfob, even though the proximity profile spec does not require it, you can do it by defining an RSSI read callback function and registering it with the peripheral profile. You will need to define a callback with type gapRolesRssiRead_t, and then register as part of a gapRolesCBs_t structure when calling GAPRole_StartDevice. See peripheral.h for the type defines, and see peripheral.c for more information on how this works.

  • I will look into the method you mentioned.

    Thank you very much.

  • I have another question about this. Because I would like to put two proximity monitors at different positions, but there will be only one proximity reporter. However, the proximity reporter (keyfob) can only connect to one monitor (dongle) at the same time. So I would like to know that if it is possible to use a dongle to measure the RSSI of the advertisements sent from the keyfob.

    Thank you very much.

  • Do you got an example for that? I tried hard but can`t read the RSSI Value from a beacon laying next to the cc2540...
    Kind regards,
    Andi