simulink arduino wifi connection problem (external mode)
古いコメントを表示
Hi,
I am trying in a simple simulink model to set up connection with arduino nano 33 IoT and Simulink to monitor variable via wifi (external mode).
Building is ok but I am consitently getting this error at the end:
Error:External Mode Open Protocol Connect command failed
Caused by:
Could not connect to target application: XCP TCP/IP error: Connect failed
Any suggestions? I verified all connection parameters
Thanks,
回答 (1 件)
Ayush
2025 年 12 月 10 日
0 投票
Hi Paul,
I understand you’re seeing a connection error when using External Mode with your Arduino Nano 33 IoT.
The specified error usually indicates an issue with the connection to the board. Please try the following steps:
- Make sure you are using the correct COM port to communicate with the board. If an auxiliary port (e.g., COM3) is being used, try switching to a UART port (e.g., COM4) and attempt 'Monitor & Tune' again.
- Match COM Port in Simulink:Ensure the COM port set in "Configuration Parameters > Hardware Implementation > Target hardware resources > External mode/Connectivity" matches the COM port of your Arduino in Device Manager.
Also, please verify the following:
- Ensure MATLAB Coder, Simulink Coder, and Embedded Coder are installed properly.
- Confirm all relevant support packages for Arduino are installed and up to date, including any required third-party software.
Hope this helps!
カテゴリ
ヘルプ センター および File Exchange で Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!