How to Configure Linux Real-Time Environment for VeriStand Automotive Ethernet Communication using PXIe-852x

Updated Jan 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 family card for automotive ethernet communication on VeriStand platform.

Since the automotive ethernet communication card PXIe-852x does not support Phar Lap ETS Real-Time OS, if you want to operate AEth communication on Real-Time OS, then NI Linux RT OS should be considered. Refer to the driver XNET readme.

Preparation

Before the configuration, check the following requirements that should meet.
The hardware requirements
The software requirements
  • VeriStand 2019 or above. (2019 in this paper)
  • PROVEtech:RBS. RBS toolkit exists as a Custom Devices on VeriStand.
  • XNET 20.5 or above. (20.5 in this paper)
  • Libpcap (installed manually over command line).      

 

Driver installation

Select your target in MAX, right click the software and select “Add Software”, choose your version image, here I choose the Linux RT System Image 20.5.
 
 
Next, select components below to install,
  • LabVIEW Real-Time
  • NI VeriStand Engine
  • NI-XNET
With all installation done, you will see the PXIe-8521 card with ports in NI-MAX. Details of installing software please refer to, Installing Software on NI Linux Real-Time PXI Controllers.
 

Configuration in MAX and check

In NI-MAX, make sure1 port should be active and in "Direct" mode, named with "ENET1".  Be active requires the physical connection to another endpoint on the network, the "PHY Status" sets to "Master" , another endpoint to "Slave". Its name can be customized but should equal to the one in the VeriStand project. Once the connection is established, you will see the “Link/Act” LED on port lights up.
The LED indication can refer to “LED Functionality” in PXIe-8521 User Manual.
 


Libpcap installation

Libpcap is a package capture tool on Linux, to install it on Linux target, follow the steps, make sure your target connects to the internet. Tap the following commands one by one,
opkg update
opkg install libpcap
opkg install libpcap-dev

You will see the message feedback as below,  


To check whether it's installed correctly, execute the command "opkg list-installed |grep pcap" on the console, That lists all pcap-packages installed on your system. Should look similar to this:

Verification

Now, the software and hardware environment has been set up, you can deploy the example VeriStand project shipped with RBS tool at the path "C:\Users\Public\Documents\National Instruments\NI VeriStand 2019\Examples\PROVEtechRBS_AE_Example".
You just have to set Linux_x64 as Operating System and the correct IP address in the System Definition Controller settings. After deployment, you’ll find the demo.nivsscr in the project files. Set all tx_enable to 1 to activate the network traffic.