How do i use Simulink to make an app that allows communication between android and arduino through USB ?

3 ビュー (過去 30 日間)
Kiat Nern Yeo
Kiat Nern Yeo 2019 年 6 月 17 日
回答済み: Alireza Ghaderi 2020 年 5 月 25 日
Hello all
Is it possible to use SImulink to make an app that allows android and arduino to communicate with each other via an USB-OTG cable ?
I understand that there is a serial receive and send within the Arduino support package.
However, there is no such block within the android support package.
I would like to see if this is possible directly, or is it always necessary to create a separate application that runs in the backgroun to send and receive the serial data?
Cheers !


Sruthi Yenugula
Sruthi Yenugula 2019 年 6 月 20 日
  1 件のコメント
Kiat Nern Yeo
Kiat Nern Yeo 2019 年 6 月 23 日
Hi Sir Thanks for replying
Will this mean that i will need to make another application to run in the background, in order to send the data through a USB cable ?
I understand that this ToApp and FromApp requires me to edit the generated code in Android Studio.


その他の回答 (1 件)

Alireza Ghaderi
Alireza Ghaderi 2020 年 5 月 25 日
i think it is supported now... I havent done that but there is a Serial send/receive in Simulink suport packages for android. I think that would do the job

Community Treasure Hunt

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

Start Hunting!

Translated by