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.

CC2640 BD_ADDR and RSSI

Other Parts Discussed in Thread: CC2540, CC2640

Hi,

1, I want to  set BD_ADDR in the advData, But i don't know how to get the BD_ADDR. The CC2540's MAC can access at address 0x780E-0x7813, is CC2640 the same as it?

2, May I change  the CC2640's BD_ADDR?  If it can, which API i can use?

3, When the APP or USB Dongle scans the device, there is a rssi value showed in the device list. How do the app get the RSSI value? Because i want to design a near distance connection, the RSSI to distance transformation may be a good idea. So i want to let the device show the scanning APP's distance.

thandks.

  • Hi Austin,

    1:
    The TI provided IEEE address can be extracted with the example in the following link:
    e2e.ti.com/.../1474237

    2:
    You can change it in two ways:
    Statically: Add your own address by modifying appBLE_ccfg.c and set it in the defines SET_CCFG_IEEE_BLE_0/SET_CCFG_IEEE_BLE_1.
    Dynamically: Use the HCI command HCI_EXT_SetBDADDRCmd as described in the BLE software developers guide.

    3:
    The API you need to use depends on your app OS or dongle. Note that not all SDKs might expose the RSSI.

    Regards,
    Svend

  • Hi, Svend:
    Thanks your answer, i have fixed my problem. And now some new questions wrapped arround me.
    1, How can i set my own services and characteristic values? Can you give me a demo?
    2, What is the maximum data rate of CC2640, and how can i test it in the real. I need transfer several MB data quickly sometime, so CC2640's actual parameters should known eagerly.

    Thanks.
    Austin