Skip to main content
KKIM.6
Senior
May 2, 2022
Solved

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

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.

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
May 5, 2022

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

13 replies

Javier1
Principal
May 3, 2022

Does your PC have BLE capabilities?

How frecuent do your ADC measurements need to be?

hit me up in https://www.linkedin.com/in/javiermuñoz/
KKIM.6
KKIM.6Author
Senior
May 3, 2022

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?

Javier1
Principal
May 5, 2022

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

hit me up in https://www.linkedin.com/in/javiermuñoz/
KKIM.6
KKIM.6Author
Senior
May 5, 2022

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

KKIM.6
KKIM.6Author
Senior
May 3, 2022

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

Javier1
Principal
May 5, 2022

BLE is not for you (maybe BLE 5... check which BLE chip does your PC have and What version of BLE protocol does it support)

If you need to broadcast stuff you should use Classic Bluetooth or something over wifi.

With BLE you will spend a lot of time developing just to find out the real data troughput is painfully slow and depends a lot of the hardware (as it happened to me)

hit me up in https://www.linkedin.com/in/javiermuñoz/
KKIM.6
KKIM.6Author
Senior
May 5, 2022

I can connect the STM32WB board to the PC using Bluetooth LE explorer built by Microsoft. isn't modifying it possible to collect data?

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
May 5, 2022

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

KKIM.6
KKIM.6Author
Senior
May 5, 2022

Thanks. I really needed this example.

Remy ISSALYS
ST Technical Moderator
May 5, 2022

Hello,

You can use Bluetooth LE Explorer software on your PC in order to connect your board to your PC via BLE.

Best Regards