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: BLE how to automatic connect the phone

Part Number: CC2340R5

Tool/software:

We are using the sample project, basic ble project, in the SDK.

I would like to ask how to set up in the code so that the phone has matched the binding, and after disconnecting, it enters the broadcast range of the slave again, and the phone and the slave function are automatically connected without the help of the app, just like the automatic connection of the Bluetooth headset.

Could you can give me some help.

Thank you

  • Hi,

    Thank you for reaching out. From the CC2340R5, to enable this all you need to do is ensure that the device has bonding enabled and re-enables advertising after disconnection. By default, the Basic_BLE example does this. To make the phone automatically connect, you will either need to create a custom application on the mobile device or the CC2340R5 will need to implement a supported service that the mobile device auto connects to (such as HID or other Bluetooth LE accessories). To learn how to make a mobile application that auto-connects to a given BLE device, then I highly recommend reaching out to the Android or Apple developer forums.

    Best Regards,

    Jan