This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Combining the "nrf52-ble-app-uart-c-multilink" example with "ble_app_uart_c" example from wireless timer synchronization

Hello,

in our application we have one central (nRF52840DK) and up to four peripherals (nRF52832). We want to achieve two goals in this application:

Goal 1: We need a synchronized timer on all peripherals and the central.

Goal 2: Each peripheral can send data to the central via NUS.

We already did some experiments with the "nrf52-ble-app-uart-c-multilink" example which is available here: https://github.com/NordicPlayground/nrf52-ble-app-uart-c-multilink . This example works fine and we can achieve our goal 2 with it. With this example we can set up connections between the central and multiple peripherals. Each peripheral can sent data via NUS to the central.

We also did some experiments with the "nRF5_ble_timesync_demo" which is availabe here: https://github.com/nordic-auko/nRF5-ble-timesync-demo . With this example we can synchronize a timer wirelessly between a central and a peripheral. It works fine and we can achieve goal 1 with it.

Now we need to combine this two codes to achieve both goals at the same time. To be more precise: We need to combine the "nrf52-ble-app-uart-c-multilink" example with the "ble_app_uart_c" example from the "nRF5_ble_timesync_demo".

So here are our questions:

1. Is this possible?

2. Did anybody already merged this two examples?

3. Can you please provide us some proper guidance how to merge this two examples?

Any kind of help is appreciated. Thank you very much in advance.

Michael

  • Hi,

    1. I do not see any reasons that it should not be possible. They are both based on the same example, and I cannot see any conflict of resources. 
    2. Not that I'm aware of, no.
    3. Since both examples are based on the same SDK example, it should be quite easy to do a diff towards the original example to see what have been added, then add this to the other example. It may be easiest to add the functionality from the time synchronization demo to the multilink application, as handling of multiple nus links may be more complex, but then again it looks like the time synchronization example has more code so either way it probably quite equal. You should also diff the sdk_config.h files, to see which configs were added/changed.

    Best regards,
    Jørgen

Related