cc2640: switch role from peripheral to cental

Part Number: cc2640

Dear TI's Engineer team,

I'm developing a embedded tracking device on cc2640, and I need to switch the role of the device from peripheral to central in order to the device can ring a phone.

My coworker engineer asked this question last year in this link: https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/547098

But the TI's engineer JXS indication of Simplelink Academy doesn't mean anything.
Also he refers the button service in ProjectZero, but I've analyzed the ProjectZero several months, and I know it very well. The button service is just using a notification, not the change role from peripheral to Central.
We specifically need to know how to change roles from peripheral to central. 
Since Nordic semiconductor's ble-sdk can do it easily, Ti also can do it. 
Any help will be appreciated.
Thanks in advance!

 

5 Replies

  • Hi Kyung,

    The multirole example app (github.com/.../ble_examples-2.2) has the ability to be both a peripheral and a central device. However, I'd like to understand your use case a little more. I understand that you want to use the Central role to connect to a phone and read and write data to a phone. What is your use case for being a peripheral?

    Best Regards,

    Rachel

  • In reply to RachelP:

    Hi Rachel, 

    Thanks for giving me the example. 

    My company already developed a tracking device on the Nordic, and Nordic ble-stack makes change role easily. 

    The device is normally working as a peripheral, so with a phone the device can be found easily by making the device ring.

    Meanwhile, only when people are trying to find his/her phone, the device need to send data to the phone, and it makes the phone ring.

    At that time the device needs to be a central.  

    Do you have any better idea for making the phone ring? 

    Any advice would be appreciated. 

    Sincerely, 

    Kyung

  • In reply to Kyung Kim:

    Hi Kyung,

    Thanks for clarifying. The multi role project I linked to before has the ability to switch between central and peripheral mode. I would recommend you start there. However, due to flash memory limitations on the cc2640, if you are just beginning development you may want to consider using the CC2640R2.

    For details on the multi-role project for the CC2640R2, you can view the readme on dev.ti.com: multi role readme

    Best Regards,

    Rachel

  • In reply to RachelP:

    Hi Rechel,

    Thanks for your advising, but it's too late to change to CC2640R2.
    Do you know how much multi role example requires flash memory?

    Sincerely,

    Kyung
  • In reply to Kyung Kim:

    Hi Kyung,

    JXS has updated your original post with another potential solution to your problem that would not involve role switching:

    e2e.ti.com/.../2194207

    He also goes into additional details about the multi-role app there.

    Best Regards,

    Rachel