2019-08-30 04:46 AM
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?
Solved! Go to Solution.
2019-08-30 06:20 AM
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.
2019-08-30 05:12 AM
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.
2019-08-30 05:27 AM
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?
2019-08-30 05:28 AM
Is the demo source code available?
2019-08-30 05:42 AM
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).
2019-08-30 06:20 AM
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.
2019-08-30 06:27 AM
2019-09-01 03:04 PM
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
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!
2019-09-02 12:46 AM
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