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

How to send message from two slave to one master in nRF52

I hope to send a message from two slave to one master using nRF52 through bluetooth.

I send a message from a slave to a master with ble_app_uart_c and ble_app_uart. And I also connected two slave and one master with ble_app_multilink_central and peripheral. But I can't combine and apply that two case.

So please tell me how to send a message in multilink code, or how to use ble_app_uart as multilink.

I also found some information on internet, but I can't understand with them.

  • MootSeeker said:
    NUS Service? Need to read about that but I think I never heard that. 

    NUS service is the Nordic UART Service(NUS) which we have created for the Nordic UART Central and peripheral examples in the SDK.

    MootSeeker said:
    But a thing that I could do in that time... which SDK should I use with the NRF52 devices? 

    In general I would always recommend familiarizing with the latest SDK version when starting a new project, but I just heard back from a colleague that told me he might have a working implementation for SDK v.15.2.0 - so you might want to download that as well.

    I will look into this implementation on Wednesday, and I'll let you know as soon as I've tested it.

    Best regards,
    Karl

  • Hello again Mootseeker,

    I tested the example I received from my colleague, but it seems to require some more tweaking before it is ready to go.
    I'll see what I can do in the coming days, thank you for your patience.

    Best regards,
    Karl

  • Hi Karl, 

    nice to hear that you are working on. I Started to download the right SDK and reading the dokumentation. 
    When I started this post I was working with the NRF52832. Today I have the NRF52840 bords this should not be a problem or should I use the others? 

  • Hello again Mootseeker,

    Thank you for your extreme patience with this matter :)
    I have finally had some time to sit down with this, and now it is up and running!

    To test the example you will need to build and flash it to the nRF52840 DK, and have 2 or more devices flashed with the unmodified BLE UART peripheral example.
    The central scans for devices advertising as Nordic_UART, and connects if any if found.
    The original multilink_central code is commented out, but left present, to emphasize how the example is modified. The original behavior of the multilink example is thus not present, since it is replaced by the NUS example's behavior.
    When connection is established between the peripheral and the central, you can write to the peripheral from a serial terminal, and see that it is received by the NUS central as expected. Please be advised that the central logs to RTT, so you will need either the RTT Viewer application or the SES debug terminal to see the received payload.

    Please see the attached project for the nRF52840 DK. The example is made for the nRF5 SDK v.15.2.0. You will need to unzip the project to the path SDK_ROOT/examples/ble_central/

    Hope this helps!

    Best regards,
    Karl

  • For some reason, the project upload to my previous comment seems to fail, so I've attached it to this comment instead.

    6404.__ble_app_multilink_central_uart.zip

Related