Use NI Automotive Ethernet Interface Modules in Linux Real-Time Environment on VeriStand

Updated Aug 18, 2021

Environment

Hardware

  • PXIe-8521
  • PXIe-8522
  • PXIe-8523

Software

  • VeriStand
  • PROVEtech:RBS for VeriStand
  • VeriStand Custom Devices

Driver

  • NI-XNET
  • NI-XNET 20.5

Operating System

  • Windows
  • Linux
  • LabVIEW Real-Time (NI Linux Real-Time)

This paper will instruct and walk through the steps of configuring the Linux Real-Time target environment to use PXI-852x for automotive ethernet communication on VeriStand platform.

The automotive ethernet interface module PXIe-852x does not support Phar Lap ETS Real-Time OS. In this article, NI Linux Real-Time OS will be used.

Preparation

Before the configuration, check the following requirements.
Hardware requirements
Software requirements for host PC

 

Driver installation

Please refer to Installing Software on NI Linux Real-Time PXI Controllers. Use the latest driver stack if possible.
 

Modules Configuration in NI MAX

  1. Open NI Measurement and Automation Explorer (MAX).
  2. Make sure the first port ENET1 is active with valid IPv4 address (not 0.0.0.0). This requires the physical connection to another endpoint on the network, with PHY Status set to Master on this endpoint and Slave on another endpoint. Set Port Mode to Direct. 852x_Master.JPG
  3. Once the connection is established, you will see the Link/Act LED on port lights up. Refer to User Manual for more information on the LED indication.

 

Libpcap installation

Libpcap is a package capture tool on Linux. To install it on Linux target, access the shell on NI Linux Real-Time devices and key in the following commands:
opkg update
opkg install libpcap
opkg install libpcap-dev


To verify if it has been installed correctly, execute the command opkg list-installed |grep pcap on the console. 

If the PXI RT target does not have access to internet, refer to Offline installation of OPKG packages on Linux Real-Time devices.

 

Deployment in VeriStand

  1. Open shipping example located in C:\Users\Public\Documents\National Instruments\NI VeriStand 2019\Examples\PROVEtechRBS_AE_Example.
  2. Set Operating System as Linux_x64 and the correct IP address under Controller in the System Explorer.Controller.JPG
  3. (Optional) The example is pre-configured to use ENET1. Follow the steps below to change the port. 
    1. Select PROVEtech:RBS. Click Set RBS Configuration to open Configurator.Step1.JPG
    2. In PROVEtech:RE/RBS Configurator, expand Function Modules. Select Hardware Port and change DeviceName.Step2.JPG
  4. Deploy VeriStand project.
  5. Open demo.nivsscr under Project Files. Set all TX_enable to 1 to activate the network traffic.

Next Steps

Open PROVEtech.RBS User Manual to learn more about this toolkit.
Manual.JPG
For technical support, please contact AKKA.
 

Additional Information

There is a known issue on deployment failure when using XNET IP Stack with DAQ device on Linux RT. The bug is reported as 1230469 and has been fixed in NI-XNET 21.0.