필터 지우기
필터 지우기

Why am I unable to connect to my Speedgoat target computer in R2020b or later?

조회 수: 169 (최근 30일)
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.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 9월 3일
편집: MathWorks Support Team 2024년 9월 3일
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.
 

1. Configure the PC Ethernet Interface as 'Private':

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:
 

2. Configure Your Firewall(s)

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.
 

3. Unblock Ports Used by Simulink Real-Time

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:
 

4. Further Troubleshooting

If the above steps don't resolve the issue, refer to this MATLAB Answer for additional troubleshooting:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by