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.

Using server and client roles at the same time on one device

Other Parts Discussed in Thread: CC2540, CC2541

Hello,


I want to create a ble application that can make the device to act as client and server at the same time. It 
should be able to maintain one connection with a client device while  itself acts as a client in a second 
connection. Does that make sense? 

Is it possible to maintain two connections at the same time if the device should act server and client at the 
same time on ti devices?


Best regards, 
Patrik Hillbo

  • Hi Patrik,

    Client and Server are independent of the GAP roles (Central/Peripheral) so you wont have any problem with achieving the use case you present. Note that Bluetooth low energy is a star topology meaning that one master can be connected to several (currently 3 with BLEv1.3) slaves but a slave can only be connected to one master.

    So in your case you would have a Master acting as Client and Server simultaneously  while connected to 2 slaves, one acting as server and the other as client.

    I hope that answered your question.

    Best Regards

  • hi, can we use the CC2540 to work as a client device?

  • Hi Joakim, 

    I am trying to integrate the Keyfobdemo profile and TimeApp profile into one device.The Keyfobdemo profile acts as server and the TimeApp profile acts as client.So inorder to integrate both into one CC2541 device what all changes should i make such that both will simultaneously.?