error configuring Embedded Coder Support Package for Linux Applications

8 ビュー (過去 30 日間)
Michle
Michle 2025 年 1 月 5 日
回答済み: praguna manvi 2025 年 1 月 8 日 16:47
I downloaded this add-on and started the last step of the setup, where the same error occurs: "sshDevice error occurred during init.connect: An attempt to establish a connection was unsuccessful because the required response was not received from another computer within the required time, or an already established connection was broken due to an incorrect response from an already connected computer [system: 10060]"
I checked everything manually, I can connect to my device via ssh or via PuTTY, I can create new directories, etc. I also checked that the user was in the Docker group and had superuser rights. I have no experience working with Docker, maybe I don't understand something, I need to look for the problem in the Docker or Matlab settings, and if so, where exactly? Thank you

回答 (1 件)

praguna manvi
praguna manvi 2025 年 1 月 8 日 16:47
As I see you are trying to set up a "Linux Target Computer" for the "Embedded Coder Support Package for Linux." Since you are already able to connect from the command line to the Docker image but not from MATLAB, here are a few possible debugging options:
  • Ensure that the "docker" command can be run without "sudo". You can find guidance on this in the "Target Computer Requirements" section of the following documentation:
  • Since it's an "SSHDevice" error, recheck the configuration with the following command used to configure programmatically::
tg = tgs.addTarget(<targetName>, <ipAddress>, <userName>, <password>);
For more information on this refer to the following link:
  • Also, check if the line "Port 22345" is added in "/etc/ssh/sshd_config", as the documentation mentions non-default port for SSH and verify it using "sudo netstat -tuln | grep ssh".
  • Verify that you can ping the target from the host computer's command line. In MATLAB, you can use:
system('ping <address>')
Hope this helps!

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by