Why am I unable to connect to my Speedgoat target computer in R2020b or later?
160 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 11 de Dic. de 2020
Editada: MathWorks Support Team
el 29 de Ag. de 2024 a las 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.
Respuesta aceptada
MathWorks Support Team
el 29 de Ag. de 2024 a las 0:00
Editada: MathWorks Support Team
el 29 de Ag. de 2024 a las 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 comentarios
Más respuestas (1)
Pablo Romero
el 4 de Mayo de 2022
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 comentarios
Ver también
Categorías
Más información sobre Target Computer Setup en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!