Is there any way to enable Matlab Mobile App (Android) to receive data from a Bluetooth (BR/EDR or LE) connected device?

10 次查看(过去 30 天)
It seems that Matlab Mobile App cannot receive data directly from a Bluetooth (BR/EDR or LE) connected device. Is it possible to do that with the help of additional apps or plugins, or other workaround? How?

回答(1 个)

Harsha Vardhan
Harsha Vardhan 2024-1-3
Hi,
I understand that you want to receive data in the MATLAB Android mobile App from another Bluetooth device.
MATLAB android mobile app sends all the commands to the cloud for evaluation. Please check that information here - https://www.mathworks.com/help/matlabmobile/matlab-mobile-fundamentals.html .
Further, currently, the sensor data collection on the mobile device does not include network interfaces. Please check that information here - https://www.mathworks.com/help/matlabmobile/sensor-data-collection.html .
So, executing the command 'bluetoothlist' on the Androidn mobile app does not return any results. And the execution of 'blelist' on the Android mobile app throws an error that it can't scan on Linux devices. So, receiving data on mobile app is not possible currently.
However, a workaround to receive Bluetooth data is to use the BLE Receive Simulink block (https://www.mathworks.com/help/supportpkg/android/ref/blereceive.html) from the Simulink Support Package for Android Devices.
Please check this link about receiving Bluetooth data on android mobile using the BLE receive Simulink block - https://www.mathworks.com/help/supportpkg/android/ref/work-with-ble-blocks-on-android-devices.html.
Hope this helps in resolving your query!

类别

Help CenterFile Exchange 中查找有关 Run on Android Device 的更多信息

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by