Other Parts Discussed in Thread: BLE-STACK, CC1352P
Tool/software:
We are using four peripherals RF MCU CC2652P1FRGZR for transmitter and CC1352P-4 MCU as a receiver.
TX controllers are collecting the data from each peripheral and transmitting via Bluetooth using advertisement.
In receiver side, i.e. CC1352P-4 MCU, we have the following tasks,
1. Task_A (Priority: 2) (Task_A is simplecentral task already defined in sample code.)
2. Task_B (Priority: 2)
3. Task_C (Priority: 3)
Task_A Is Event based and responsible for collecting data from Bluetooth and loads raw data into ring buffer.
Task_B is periodicity based and will execute at 100ms interval for handling Bluetooth, auto connects peripherals if it disconnects.
Task_C is also periodicity based and read the data from ring buffer, processed and will send data on serial device at a 10ms of interval.
Query :
1. If we followed the above mentioned priorities it is working only for 3 peripherals. If we connect 4th peripheral, then data is stopping on serial device after few seconds and application is stuck indefinitely.
2. If we followed below mention priorities for the tasks,
Task_A, Priority:3
Task_B, Priority:2
Task_C, Priority:2
Then, It is working for 4 peripherals, but we are getting data on serial device randomly and not following the periodicity of 10ms.
Could you please suggest any solution for above queries.