simulink arduino wifi connection problem (external mode)

14 visualizaciones (últimos 30 días)
Paul
Paul el 30 de Nov. de 2025 a las 22:36
Respondida: Ayush el 10 de Dic. de 2025 a las 5:09
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,

Respuestas (1)

Ayush
Ayush el 10 de Dic. de 2025 a las 5:09
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!

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by