Q how to connect raspberry pi ,in order to transmit output from function block to mobile using simulink model on Bluetooth ? plus how to make a app and its UI that is compatible with simulink block?

2 ビュー (過去 30 日間)
Hi, I am currently doing my final year project in electrical engineering? I am taking input from ECG sensor passing it through analog to digital converter and sending digital value from simulink GPIO pin read block to a matlab function in simulink which checks abnormality in ECG and outputs 5 types of result( 3 plots and 1 audio alert prompt and 1 command to cellphone to sms emergency service if audio prompt is not resolved in 25 seconds ) to mobile phone over blue tooth. My question is how can i send my result from function block to mobile phone via bluetooth in simulink? Moreover what is the way to make UI for android app which interact with raspberry pi via blue tooth using simulink model. If possible can somebody make a rough simulink model which i need to use?

回答 (1 件)

Sruthi Yenugula
Sruthi Yenugula 2018 年 5 月 21 日
Bluetooth Blocks are not available in Raspberry pi and Android Simulink Support Packages. Instead of Bluetooth, you can use TCP/UDP blocks for communication between Android and Raspberry pi.
You can check the following examples for establishing communication between Raspberry Pi and Android device
https://www.mathworks.com/help/supportpkg/android/examples/raspberry-pi-r-led-control.html https://www.mathworks.com/help/supportpkg/android/examples/surveillance-camera-with-raspberry-pi-r-hardware.html

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by