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.

CC2640R2F: Reconnect to already paired device.

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640,

Hi TI team,

I understood the fact that peripheral device cannot initiate connection,Only central can. My question is i want to connect to cc2640 as a peripheral device , once it is connected(paired) to mobile it should save mobile's ble mac address, so when bluetooth of mobile is on  cc2640 should automatically connect to the mobile.I understand multirole can solve some of its function but i cant send any datas. so how is it possible?

Thanks,

Anand. 

  • Hi,

    So my understanding is that the CC2640 is the central device and the mobile phone is the peripheral device.

    At a high-level, you should be able to achieve your desired behavior as follows. Assuming the central device has bonding enabled, has been paired with the mobile device, and the mobile device is not currently connected but advertising, have the central periodically scan for advertisements. If the central device detects an advertisement packet with a mobile device address the central previously bonded with, you can initiate a connection with the mobile device.

    Further technical background regarding scanning behavior and configuration options can be found in the SimpleLink Academy module and user's guide

    Regards,
    Michael

  • Hi Michael,

    Yes,but initially mobile should be central and CC2640R2F should be peripheral, So two roles, so I assume example multirole would work? but in multirole there I can't send or receive data from mobile . Being  central only would not help in the first time.Am I correct?

    Regards,

    Anand.

  • Hey,

    So i got a work around instead module connecting and disconnecting let the application in mobile do the job as background process.So it will work as I wanted it to be.