cancel
Showing results for 
Search instead for 
Did you mean: 

Are there any bluetooth examples for STM32MP157C-DK2 board?

Clark Sann
Senior

Can anyone point me to an example on how to use bluetooth for this discovery board?

Will it be possible to pair to two bluetooth sensors at the same time?

1 ACCEPTED SOLUTION

Accepted Solutions

As in wiki, demo application is written in python3 and uses GTK to display the user interface.

You could find the associated files in the rootfs of the DK2 board, under /usr/local/demo you will find the demo_launcher.py entry point.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

8 REPLIES 8
PatrickF
ST Employee

Hello,

please read https://wiki.st.com/stm32mpu/wiki/Bluetooth_overview

You can exercise the DK2 Bluetooth with an external speaker using the provided demo https://wiki.st.com/stm32mpu/wiki/GTK_demo_launcher

About pairing multiple bluetooth, I assume it should be ok, but linked to BT Hw used on the board and Linux support.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Clark Sann
Senior

Thank your for your quick reply. That's outstanding service!

I would like to access bluetooth from the ARM4 processor using C. Any examples of this?

Is the demo source code available?

There is no example of such use case.

I'm not sure it is what you are asking for, but you could probably use OpenAMP to transfer BT data/control from M4 to Linux which keep the control of the WLAN/BT device.

The WLAN/BT combo is connected on SDMMC2 (WLAN data and general combo load/init) + USART2 (BT data/control) + I2S1 (BT Audio) on DK2 board, and could likely be fully controlled by M4, but we do not have any MCU example/driver for that 3rd party module (LBEE5KL1DX Murata with Cypress chipset).

Please check Murata to see what they offer for STM32 (an STM32 MCU solution could be ported on the M4 of STM32MP1 with low effort).

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

As in wiki, demo application is written in python3 and uses GTK to display the user interface.

You could find the associated files in the rootfs of the DK2 board, under /usr/local/demo you will find the demo_launcher.py entry point.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Thank you again. You provide the best support on the entire ST Community web site!

Patrick, I do not have a DK2 board yet.

Should I be able to find the demo_launcher.py file and the other demo files in the extracted linux source files I created as I installed the Developer Package?

I haven't been able to find either the files or a /usr/local/demo folder.

If I can find them after installing the Developer Package, can you please tell me which folder they should be in?

Do I need to install the Distribution Package to get these files?

Or is installing the binary image from the Starter Package the only way to see those demo files?

Lastly, I notice on this page

https://my.st.com/content/my_st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-mpu-openstlinux-distribution/stm32mp1dev.license=1567239760734.product=Yocto_SDK.version=1.0.0.html

that there are two files that can be downloaded. The one names Yocto_SDK is used during the installation of the Developer Pack. What is the other file (STM32MP1Dev) used for?

I have downloaded that file and tried to install the patches but I have been unable to get it to work. If this archive contains the files I need, could you please provide guidance on how to access the files?

Thanks again for all your help!

Demo files could be retrieved from Distribution Package, here is the link https://github.com/STMicroelectronics/meta-st-openstlinux/tree/thud/recipes-samples/demo

for Distribution package download from st.com, one file are the sources (STM32MP1Dev), the second one is the tool chain (Yocto_SDK).

You can find additional information in the wiki https://wiki.st.com/stm32mpu/index.php/STM32MP1_Developer_Package

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.