フィルターのクリア

TF_Mini Arduino Due Simulink on serial com port not working ?

1 回表示 (過去 30 日間)
Hocine YAKOUBI
Hocine YAKOUBI 2023 年 8 月 31 日
回答済み: Hocine YAKOUBI 2023 年 9 月 1 日
Hello,
I had a Simulink program that reads data from the COM2 serial port of the Arduino DUE, connected to a TF mini sensor. This program worked perfectly with version R2021a. https://www.gotronic.fr/art-capteur-de-distance-lidar-tf-mini-27615.htm
Currently, I'm using version R2023a. The program is no longer functional. I'm encountering errors and when there aren't any errors, the result is incorrect. Baud rate: 115200 chosen on the COM2 of the Arduino DUE.
The issue seems to arise from the data type chosen in the Arduino serial receive block. I've tried multiple combinations but still haven't managed to get the sensor working correctly. I've also tried adapting the example open_system('arduino_encode_decode_packet'), but without success. The sensor works fine with Arduino using the attached code (Tfmini.txt, (.ino)).
Does anyone have an idea of how to configure the Arduino serial receive, and the protocol decoder in Simulink to make it works again?
Thank you in advance.
  1 件のコメント
Hocine YAKOUBI
Hocine YAKOUBI 2023 年 9 月 1 日
still facing error : External Mode Open Protocol CheckData command failed
Caused by:
Multiple errors detected.
XCP internal error: timeout expired, in response to XCP SYNCH command
Error detected while trying to disconnect Simulink from target application.
XCP error: XCP internal error: No server connected

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

回答 (1 件)

Hocine YAKOUBI
Hocine YAKOUBI 2023 年 9 月 1 日
The problem comes from Arduino Due.
He re the simulink program, with arduino mega it's working but with Due not.
Any idea to how to reslve this ?
Thanks

カテゴリ

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

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by