Setting up your Environment for Co-simulation with CarMaker HiL

This procedure explains how to set up your environment for co-simulation with CarMaker HiL.

  1. Request the CarMaker HiL license.
  2. Install CarMaker HiL.
    Important: For CarMaker HIL version inferior to 12.0.3, to be able to run a CarMaker HiL connector executable built on Ubuntu 22.04 on an XPACK4 machine through a Windows host, you must:
    1. contact IPG support to request a patch,
    2. copy the patch on the host Windows machine in C:\IPG\bin next to the ipg-install.exe file
    3. run the IPG installer and, in the Choose Products to Install window, tick the checkbox to install the XENO Patch glibc 2.35 for each CarMaker 12 version you need.
  3. On the host computer, the computer you will be connecting to the Xpack4, copy the license to:
    • C:\IPG\etc if you use are using Windows
    • /opt/IPG/etc if you are using Linux.
  4. Run CarMaker HiL as an administrator then configure the real-time setup.
  5. If you are unable to run CarMaker HiL or are unable to do a network boot of the Xpack4 machine, configure the port rules manually then configure the real-time setup:
    1. Open Windows Defender Firewall.
    2. Click Advanced Settings.
    3. Create or modify the inbound and outbound rules to allow the following TCP and UDP ports in addition to the Communication Ports required for AVX:
    • port 23 if you want to connect to Xpack4 via Telnet
    • port 37
    • port 67 (UDP only)
    • port 69 (UDP only)
    • port 111
    • port 1058
    • port 2049.
    Note: When editing the profile, check all boxes.
  6. If you use a Windows machine as your host computer and want to connect to Xpack4 via Telnet, check to ensure Telnet Client is enabled:
    1. Open Control Panel.
    2. Click Programs.
    3. Under Programs and Features, click Turn Windows features on or off.
    4. If Telnet Client is not enabled, check the box to enable it and Connecting to Xpack4 via Telnet.
  7. If you want to use a screen for debugging purposes, connect the required Xpack4 Display Port (DP1) to a screen Display Port In.
  8. Connect the Ethernet cable of the Xpack4 to the machine which holds the license using the recommended port (see Xpack4 documentation).
  9. Verify the network on which the Xpack4 is connected.
  10. Modify the network properties of the Ethernet adapter connected to the Xpack4.
    1. In the Internet Protocol Version 4 (TCP/IPv4) Properties window, set the IP address to the one specified for Net Interface in the Realtime System Setup, for example, 192.168.0.1.
    2. In the Internet Protocol Version 4 (TCP/IPv4) Properties window, set Subnet Mask to one which is compatible with the specified IP address, for example, 255.255.255.0.
    3. Apply the changes.
  11. Restart your machine.
The set-up of your environment for co-simulation with CarMaker HiL is complete.
If you want to build a custom CarMaker HiL Connector executable including the AVXConnector plugin model, see Building the Custom CarMaker HiL Connector Executable on Windows or Building the Custom CarMaker HiL Connector Executable on Linux.