Android Sensor Data to Simulink via USB

조회 수: 2 (최근 30일)
Chris Burkhard
Chris Burkhard 2020년 4월 2일
댓글: Walter Roberson 2020년 12월 30일
Dear all,
is there a possibility to simply stream sensor data (Orientation) from an android device to a running simulink model on the Computer via USB cable?
I found some solutions, however they require a local network. As I would like to run this application offline and outdoor, this doesn't fit for me.
The solution proposed for this question uses the external mode. However I would like to have the sensor data in another simulink model running on the Computer.
My Idea was to do it, like it is proposed in this example:
Instead of the arduino board, the model runs on the computer an the data is read with the serial receive block from the instrument toolbox.
The attached model (AndroidSerial) on the android device works. But the model (ReceiveSerialData) on the PC doesn't receive data.
Is there a problem with the configurations or is the idea to simplified?
Thanks for your help.
Best regards
Chris

답변 (1개)

Aakriti Suman
Aakriti Suman 2020년 5월 7일
I understand that you want to stream data from an android device to your simulink model.
I am hoping that 'Simulink® Support Package for Android™ Devices' is already installed in your MATLAB system. If not, then go through this link https://in.mathworks.com/help/supportpkg/android/ug/install-support-for-android-devices.html to install the package.
Regarding your query, go through this link https://in.mathworks.com/help/supportpkg/android/examples/communicating-with-android-devices.html#d117e398 to understand how to monitor the signlas from an android device which is sent to your simulink model.
  댓글 수: 4
ugur arslan
ugur arslan 2020년 12월 30일
May I ask the reason ?
Walter Roberson
Walter Roberson 2020년 12월 30일
I do not know the reason, sorry.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Android Devices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by