フィルターのクリア

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

160 ビュー (過去 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 年 8 月 29 日 0:00
編集済み: MathWorks Support Team 2024 年 8 月 29 日 9:43
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.
 

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

To ensure smooth host-target communication in R2020b or later, set the host PC Ethernet interface to 'Private'. Windows classifies all Ethernet connections as 'Public' by default, which may disrupt communication due to security restrictions associated with this network type. Additionally, SLRT assumes that the host and target are directly connected through a local network (LAN) on the same subnet, making the 'Private' setting appropriate. Refer to our documentation for detailed instructions:
 

2. Configure Your Firewall(s)

An important step is to allow MATLAB to communicate through the firewall, ideally for all types of networks (Public, Domain, and Private). Refer to the following MATLAB Answer:
On many systems, creating an additional inbound UDP rule is required to allow communication for the 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:

その他の回答 (1 件)

Pablo Romero
Pablo Romero 2022 年 5 月 4 日
Please don't forget to check out the following resource from the MathWorks documentation with the most up-to-date recommendations to troubleshoot your host-target connection.

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by