cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any BLE example to send memory data from the microcontroller to the PC?

KKIM.6
Senior

I want to send ADC data to the PC using BLE.

The ADC data is directly connected to the DMA,

So, sending DMA data is also fine.

Is there any example or source code for it?

I'm using the Nucleo-WB55 board.

1 ACCEPTED SOLUTION

Accepted Solutions
Remy ISSALYS
ST Employee

Hello,

You can look BLE_HeartRate example available in the STM32CubeWB package:

https://www.st.com/en/embedded-software/stm32cubewb.html

This example allows to notify Heart Rate data over BLE to a smartphone every 1s. More information about this example are available in the following wiki page:

https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WB_HeartRate

Best Regards

View solution in original post

13 REPLIES 13
Javier1
Principal

Does your PC have BLE capabilities?

How frecuent do your ADC measurements need to be?

we dont need to firmware by ourselves, lets talk
KKIM.6
Senior

I prefer to use LabView because I have to organize data to make an image sensor map.

However, the LabView doesn't; support BLE (if I want, I have to use window BLE API).

Fortunately, a member built a BLE example in Labview below.

https://forums.ni.com/t5/Example-Code/LabVIEW-Bluetooth-Low-Energy-Driver-development-using-Universal/ta-p/4090535

I don't know how to use the BLE example. So, I need more time to understand it.

By the way, I don't want to use serial communication like Arduino and the HC-06 module.

What option can I use to communicate with a PC?

KKIM.6
Senior

Faster is better for my application because my application is a mapping image sensor array. the single-pixel should be operated within 200 kHz.

Remy ISSALYS
ST Employee

Hello,

You can look BLE_HeartRate example available in the STM32CubeWB package:

https://www.st.com/en/embedded-software/stm32cubewb.html

This example allows to notify Heart Rate data over BLE to a smartphone every 1s. More information about this example are available in the following wiki page:

https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32WB_HeartRate

Best Regards

You could use USB communication from a BLE dongle

0693W00000NpKdMQAV.png 

BLE is not meant to be Fast, and its not easy to develop (at least it wasnt for me)

Why do you want to use BLE and not just USB

we dont need to firmware by ourselves, lets talk

I'm developing an implantable biosensor with a microcontroller. So, all the wired system is not my option.

Should I program USB dongle also?

Because somebody sells a BLE wireless camera, the BLE should be enough to send to a PC with 30 fps.​

Only youre unable to use BLE with your PC Labview, use a dongle as a USB<->BLE bridge. (yes you would need to programm it)

we dont need to firmware by ourselves, lets talk