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.

CCS/CC2640: Best way to connect to two devices and receive/transfer data to/from both of them.

Part Number: CC2640

Tool/software: Code Composer Studio

My system is the following:

(1) --- (2) --- (3)

1) Peripheral with one service(0xFFE0) and one characteristic (0xFFE1, notify and write) (I can not change anything in this device)

2) CC2640 launchpad (I can program it)

3) Mobile iOS application (I can program it)

The app needs to write/get notifications from the characteristic 0xFFE1 of the device (1). Thus, what would be the right approach to start with?

I've come up with two options for doing it, but I dont know if those are the best/easier ways of doing.

* the device (2) will have a simple_central, and connect to (1) and (3), the mobile application will behave as a peripheral and the event of writing into (0xFFE1(1)) will be through (3) notifying the central (2) and the central writing to (0xFFE1(1)).

* Using (2) with a multi_role example and use the mobile app (3) as a central, writing to (2) and (2) writing to (1) -> (1 [peripheral]) ----- (2 [central/peripheral]) ----- (3 [central])

What is the best way of implementing such system with (2) cc2640 launchpad?

  • Hello,

    Either option could work. Maybe I'm leaning towards #2 as most of the mobile apps behave as a central devices.

    Leoni Mota Loris said:
    What is the best way of implementing such system with (2) cc2640 launchpad?

    As part of our SDKs, we have examples that support central and multi-role, so the effort of implementing either solution is about the same.

     Hopefully this helps.

        David