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.

Adding devices into the white list

Other Parts Discussed in Thread: CC2650

I am trying to connect to a particular BD_ADDR on cc2650 , for which I was trying to add that device name into the whitelist. but LE Add Device To White List is giving me errors. Can someone suggest whats the issue or some other way to achieve the goal of scanning and connecting to a particular device.

  • Hi Sid,

    From the sounds of it, you are implementing a central role, is this correct? Also, what is the error the whitelist api is returning?
  • Hi Sean,
    Yes I am trying to implement Central role. I just need to add a ADDR so that it automatically connects to it once it finds it in the scan. So used the LE Add Device To White List and on compiling at the end mentions the command and says its not found. is there some other way to achieve the goal. Thank you so much .
  • Whitelisting will accomplish this. Remember that whitelisting is not supported by devices that use private resolvable addresses. Please take a look at the CyclingSensor example project (which uses whitelisting) to see some example use of the whitelisting mechanism. If that doesn't help, please post a screenshot of the exact error you're seeing.
  • Hi Sean,
    The CyclingSensor example project is only for IAR and not CCS in simplelink . Is there any other resource I could use.
  • Hi Sid,

    The cycling sensor should have a CCS configuration in our BLE 2.1 stack. Within CCS click project>import ccs projects> and point to C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\CyclingSensor\CC26xx\CCS

    Either way, the basic calls should look like this:

    uint8_t advertFilter = GAP_FILTER_POLICY_WHITE_CON;
    GAPRole_SetParameter(GAPROLE_ADV_FILTER_POLICY, sizeof(uint8_t),
                         &advertFilter);
        
    HCI_LE_ClearWhiteListCmd();
    HCI_LE_AddWhiteListCmd(HCI_PUBLIC_DEVICE_ADDRESS, &bdAddr);

  • Hi Sean , 

    Thanks for the information, all the links are as per device in peripheral and not in central mode. Should I just define all this in central.c  or will have to follow a different procedure?