Why am I unable to connect to my Speedgoat target computer in R2020b or later?
154 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 11 Dez. 2020
Bearbeitet: MathWorks Support Team
am 3 Sep. 2024
I am upgrading my Speedgoat target computer to Simulink Real-Time (SLRT) R2020b or later, which uses a new 64-bit QNX real-time operating system. The target migration and software update were successful, and the Speedgoat boots correctly.
However, the host-target connection between my Speedgoat hardware and MATLAB fails. When I run "tg.connect", or press the Connect button in my model, my SLRT app, or Simulink Real-Time Explorer, MATLAB either hangs or shows errors like:
Cannot connect to target 'TargetPC1': Timed-out waiting for target connection.
Cannot connect to target 'TargetPC1': Cannot connect to target.
Unable to connect to target computer 'TargetPC1': Unable to connect to target computer.
I had no issues with host-target communication in R2020a and earlier using the same setup.
Akzeptierte Antwort
MathWorks Support Team
am 3 Sep. 2024
Bearbeitet: MathWorks Support Team
am 3 Sep. 2024
In MATLAB R2020b and later, Simulink Real-Time (SLRT) uses new protocols and ports for the host-target connection. This requires adjustments to your firewall and network configurations as outlined in the steps below.
Important: It is highly recommended to perform these steps in collaboration with your IT system administrator. Your IT team can also help you ensure the settings are permanent and won't get wiped out after a PC restart or IT update.
To ensure smooth host-target communication in R2020b or later, we recommend configuring the host PC Ethernet interface to 'Private'. Windows classifies all Ethernet connections as 'Public' by default, which can disrupt communication due to the security restrictions associated with this network type. Additionally, users may lack the necessary permissions to set firewall rules for 'Public' networks (see step 2).
Moreover, SLRT presumes that the host and target are directly connected via a local network (LAN) on the same subnet, making the 'Private' setting the most suitable choice. Refer to our documentation for detailed instructions:
Allow MATLAB (or your SLRT app) to communicate through the firewall, ideally for all types of networks (Public, Domain, and Private). Refer to the following MATLAB Answer:
Another important step is to create an additional inbound UDP rule to allow communication for the new RTPS protocol. For details, see:
Important: Check if there are multiple firewalls active on your system. Ensure all firewall and antivirus software is configured correctly to allow host-target communication.
Have your IT department unblock the necessary ports through firewalls, network hubs/switches, and VPN security configurations (for remote connections). Refer to this MATLAB Answer:
If the above steps don't resolve the issue, refer to this MATLAB Answer for additional troubleshooting:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Target Computer Setup finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!