cancel
Showing results for 
Search instead for 
Did you mean: 

BLE receive data DMA and TASK Sequencer

Nico3
Senior

Hello, 

I am making BLE data logging application where STM32WB35 series working as peripheral and sending to laptop the sensor data every second. STM32WB35 is receiving data from sensor on UART and sending same data to laptop every second on BLE. The data length can be anywhere between 50 to 150 Bytes.

I am lost on implementing the READ characteristic for this application.  

ST tutorial video on BLE Notification implements Task using Sequencer. What you think about this logic.

 

1) Create Task1 { Send Notification to Client(Laptop) }

 

2) Run Receive UART data by DMA  . 

3) Inside HAL_UART_RxCpltCallback   , implement  UTIL_SEQ_SetTask

4) Run Task1 --> Send Notification to Client 

5) Client send Data Read Request with Notification 

5) Rx Event in Custom_stm.c --> Send Data on BLE and enable DMA again to receive data on UART from sensor.

6) Go to Step 3.

 

0 REPLIES 0