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.

Two way communication between CC2541 as Central+Broadcaster and Smartphone

Other Parts Discussed in Thread: CC2541, CC2640

Hello,


Please tell me if the following is possible:

1. cc2541  running as Central+Broadcaster. Can connect to Peripherals and also be discoverable by smartphones which also act as Central devices.

2. Smartphone can initiate connection with cc2541 Central+Broadcaster and send data and request for data to be received.


I have reviewed the ComboRole example project so I am aware that I can setup CC2541 as a Central+Broadcaster. I need to know if I can perform data as mentioned above with another Central device?


regards

Ankit

  • Hi Ankit,

    By definition, broadcaster is an advertiser that is non-connectable. So it is not possible to connect with that type of device by another central device like SmartPhone. To make it connectable device should be in peripheral role i.e. an advertiser that is connectable. But it is not possible for the device to play dual role, central as well as peripheral, simultaneously.

    Hope this helps!

    Thanks,

    Dhaval

  • Hello Dhaval,

    Thank you for the clarification. As you explained, a central device cannot accept a connection request.

    Can I achieve the transfer by combining Peripheral+Observer roles? i.e. connect to other cc2541 devices that I can observe while waiting for a connection from the smartphone.

    I need to know if there is any way of achieving two way data transfer between the cc2541 and the smartphone.

    regards
    Ankit
  • By BLE Spec, it is possible to do scanning/advertising after connection. You can refer Vol 6, Part B, Section 1.1.1 - State and Role Combination Restrictions. But AFAIK, combo roles are not possible with CC2541. You need to check this.
  • Hello. Dhaval is correct. The cc2541 is only capable of one simultaneous connection when it is configured as a peripheral. Some options that may work:
    - multiple connections as a peripheral (not simultaneous
    - alternating between central and perpheral: processors.wiki.ti.com/.../MasterSlaveSwitchV1_4
    - using the cc2640 which is capable of this
  • Hello Tim and Dhaval,

    Thank you for the clarification and links. I do not need simultaneous connections. I just need a cc2541 master to somehow accept a connection from a smartphone and perform data transfer. While it is performing data transfer, it should be able to scan for peripherals but it is not required to connect to a slave and a smartphone at the same time.

    I will review the master-slave switch example


    regards

    Ankit

  • Hello. In that case, it sounds like you are looking for the peripheral-observer project, available here: processors.wiki.ti.com/.../SimpleBLE_ComboRoles