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

How can I send uart messages from more than one peripheral to multi link central simultaneously

Hi Devzone!

I merged app_multilink_central and app_uart_c on central side and used app_uart on peripheral side.

I'm using 2 peripherals and 1 central now, and those can be connected successfully.

But, when I send uart message from peripherals, the central can receive the message from only one peripheral.

More precisely, Firstly, I run one central and one peripheral and starts to send the message to central.

I could check the central can receive the string from peripheral repeatedly(because I didn't put any delay and stop command, It is designed that it keeps sending the same message finitely)

but, when I run another one peripheral and make it start to send message, the central can't receive the message from first peripheral only can receive message from second peripheral which I run later.

So, I thought these two peripherals send message concurrently but, the central can't show both messages at the same time then, I stopped the second peripheral to check whether the first peripheral is sending message, but it doesn't.

After I entered again at the terminal of first peripheral(to send message again), the central errors with NRF_BREAKPOINT_COND.

Q1. How can I receive messages from different peripherals simultaneously?

My central code is like below,

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* Copyright (c) 2014 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

and My peripheral code is like below, (only data array is different)

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* Copyright (c) 2014 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX