MATLAB Support for Arduino - Connect via ethernet?

7 ビュー (過去 30 日間)
Andreas Nagl
Andreas Nagl 2017 年 10 月 13 日
コメント済み: willian macena 2019 年 2 月 14 日
Hello,
I would like to use the "MATLAB Support Package for Arduino Hardware" for my Arduino Leonardo (with an Ethernet-Shield). However, arduinosetup gives me only three options to connect: USB, Bluetooth and Wifi.
I need to use ethernet, and not wifi (from my laptop to the router, wifi is OK but from the router to the Arduino ethernet is a must). Do you know if this is possible?
Or do I need to use the Simulink-Package in that case?
Thanks a lot!
Best, Andreas

採用された回答

David Ding
David Ding 2017 年 10 月 17 日
Hi Andreas,
I understand that you would like to communicate to the board via an Ethernet Shield, and MATLAB Support Package is not giving this option. The solution would be to download and install the Simulink Support Package. Upon successful installation, in the Simulink Library Browser, you would see blocks corresponding to communication between MATLAB and Arduino via Ethernet Shield in the form of TCP/IP, UPD, or ThingSpeak. The attached image show where the blocks would be found.
Thanks,
David
  2 件のコメント
Andreas Nagl
Andreas Nagl 2017 年 10 月 17 日
Thank you very much. This indeed seems to be the answer, although for me it is not satisfactory (at least, I have troubles with my Arduino Leonardo ETH with Simulink, but this of course is something I asked in another thread).
Thank you very much again.
willian macena
willian macena 2019 年 2 月 14 日
I ALSO HAVE THIS PROBLEM. I CAN NOT RECEIVE THE SENSOR DATA SENT BY THE PROTOCOL TCP / IP. BUT I CAN SEE THE VALUES ON THE HTTP PAGES WITH THE SERVER'S ADDRESS. WHAT SHOULD BE THE DATA FORMAT FOR AN MPU6050 SENSOR?

サインインしてコメントする。

その他の回答 (0 件)

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeRun on Target Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by