Why am I unable to connect to my Speedgoat target computer in R2020b or later?
160 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-12-11
编辑: MathWorks Support Team
2024-8-29,9:43
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
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.
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:
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.
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 个评论
更多回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!