Set Up the VeriStand Bench
This guide takes a PC with NI VeriStand to a bench that is ready for its first ISO 15118-20 DC charging session, using the ChargeLink setup and the ChargeLink kit for NI VeriStand, ChargeLink-VeriStand-<VERSION>.zip. ChargeLink runs the charger inside VeriStand on the charger PC. The vehicle side runs either on the same PC (one PC) or on a second PC, the vehicle PC (two PCs). Nothing is built in VeriStand: the import copies a ready project with its system definition, plant model and operator screen. What each part is, and how a session then runs, is on the NI VeriStand Bench page.
Before you start
Have ready (details in Prerequisites):
- Charger PC: Windows 11 Pro x64 with at least 13 logical processors, NI VeriStand installed and licensed (tested with NI VeriStand 2024 Q4; newer releases are accepted by the kit's import check, and DEVlink tests with 2024 Q4; older releases cannot open the kit's operator screen), the .NET 10 runtime (x64, Microsoft.NETCore.App 10.0.x) and the Microsoft Visual C++ 2015-2022 Redistributable (x64), installed by you (ChargeLink does not redistribute them), and 20 GB free disk space.
- An account with administrator rights on the charger PC.
- For two PCs: a vehicle PC with Windows 10 or 11 x64, Windows PowerShell 5.1 and the Microsoft Visual C++ 2015-2022 Redistributable (x64), and an Ethernet adapter on each PC for the direct link, IPv6 enabled. Note each adapter's name (
Get-NetAdapter). - The setup
ChargeLinkSetup-<VERSION>.exe, the kitChargeLink-VeriStand-<VERSION>.zip, and a ChargeLink licence for each PC (Install and Activate).
This page uses the kit folder C:\ChargeLink-VeriStand:
$Kit = 'C:\ChargeLink-VeriStand'
Step 1 — install ChargeLink and the licence
Run ChargeLinkSetup-<VERSION>.exe as an administrator and choose the role on the Options page:
- one PC: Single PC;
- two PCs: Charger on the charger PC and Vehicle on the vehicle PC.
On the charger PC, the Prerequisites page must show NI VeriStand 2024, the .NET 10 runtime and the Visual C++ runtime as present. Install the licence on the Licence page, or afterwards in the Start menu shell ChargeLink <VERSION> shell:
chargelink license machine-id # send the machine ID to DEVlink
chargelink license install <FILE>.dlic
chargelink license status
Expected: DEVlink licence status: LIC_OK. Each PC needs its own licence. Without one, the session's ChargeLink commands stop with exit code 20 and CL-LICENSE-001. The setup, its options, env doctor and the licence are described in Install and Activate and Licensing.
Step 2 — unpack the kit on the charger PC
- Unpack
ChargeLink-VeriStand-<VERSION>.zipto a folder you own, for exampleC:\ChargeLink-VeriStand. It has the folderscharger\,vehicle\,project\anddocs\(What is in the kit). - Open PowerShell in its
chargerfolder:cd "$Kit\charger"
Step 3 — create the test PKI
ISO 15118-20 runs with mutual TLS 1.3. For the bench, create the engineering test PKI in the charger folder. It is for test benches only; never use it in a product. The output folder must not exist yet:
.\bin\chargelink.exe evse tls-material-init --bench-pki --output-dir C:\ChargeLink-VeriStand\pki
It writes new keys and certificates on every run, readable only by their owner and SYSTEM, and prints no key:
| In the output folder | Used by |
|---|---|
The charger-side certificate folder: secc-cert-chain.pem, secc-key.pem, v2g-root-ca.pem | The charger, through the import (step 4) |
The vehicle-side certificate folder: vehicle-cert-chain.pem, vehicle-key.pem, v2g-root-ca.pem | The vehicle: on one PC, Start-LoopbackEvcc.ps1 reads them from here; on two PCs, copy them to the vehicle PC (step 5) |
engineering-pki-manifest.json, README-ENGINEERING-ONLY.txt | Your record (fingerprints, validity, file hashes; no key) |
The two certificate folders appear under the names the product prints; see Names shown as printed. Every certificate carries the subject O ChargeLink ENGINEERING ONLY - not for production. The root and sub-CA keys are discarded when the command ends, and there is no revocation service for this PKI. To replace the material, generate into a new folder, run the import again with the new folder, and give the vehicle side the new vehicle-side files.
Step 4 — import the kit on the charger PC
In the charger folder. One PC:
powershell -NoProfile -ExecutionPolicy Bypass -File .\Install-ChargeLinkVeriStandKit.ps1 -Loopback -EngineeringPki C:\ChargeLink-VeriStand\pki
Two PCs, with the charger PC's adapter that leads to the vehicle PC:
powershell -NoProfile -ExecutionPolicy Bypass -File .\Install-ChargeLinkVeriStandKit.ps1 -InterfaceAlias 'Ethernet 3' -EngineeringPki C:\ChargeLink-VeriStand\pki
The import:
- finds the installed NI VeriStand and checks it (
-VeriStandYearpicks one when several are installed); - copies the ChargeLink VeriStand project to
Public Documents\ChargeLink\VeriStand(-ProjectRootto choose another folder); an existing project folder is kept; - reads the ChargeLink licence state;
- writes the bench configuration in
charger\: the adapter's interface index and IPv6 link-local address (or::1with-Loopback), the charger's TLS files and the VeriStand folder; - prints the firewall rules a two-PC set-up needs (it applies none);
- creates the Start-menu entry ChargeLink Operator (VeriStand), which runs as administrator (
-NoShortcutleaves it out).
Every step can be repeated; the import changes no system setting. If it stops, the message names what is missing; preflight.json and install-<time>.log in charger\ hold the details. Run the import again when the adapter or the TLS material changes.
Firewall on the charger PC (two PCs)
One PC needs no firewall rule. For two PCs, an administrator adds, once, the two rules the import printed (PowerShell as administrator):
New-NetFirewallRule -DisplayName 'ChargeLink SECC TCP 50118' -Direction Inbound -Protocol TCP -LocalPort 50118 -Action Allow
New-NetFirewallRule -DisplayName 'ChargeLink SDP UDP 15118' -Direction Inbound -Protocol UDP -LocalPort 15118 -Action Allow
To limit the rules to the link, add -InterfaceAlias '<adapter>' -RemoteAddress 'fe80::/10'. The MCS stack needs a third rule for TCP 50119, which the import also prints; see MCS. For the link check in step 6, an optional rule lets the charger PC answer ping on the link:
New-NetFirewallRule -DisplayName 'ChargeLink ICMPv6 Diagnostics' -Direction Inbound -Action Allow -InterfaceAlias 'Ethernet 3' -Protocol ICMPv6 -IcmpType 128 -RemoteAddress 'fe80::/10'
Add the rules before the first session. If a Windows Security Alert for chargelink.exe appears, do not press Cancel: it adds block rules for the program.
Step 5 — prepare the vehicle PC (two PCs)
Skip this step on one PC.
- ChargeLink and licence. ChargeLink is installed with the role Vehicle and its licence shows
LIC_OK(step 1). - Vehicle folder. Copy the kit's
vehiclefolder to the vehicle PC, for example toC:\ChargeLink-VeriStand\vehicle. - TLS files. Copy the three files of the vehicle-side certificate folder (step 3) unchanged into the
tlsfolder of the copiedvehiclefolder, for example with a removable drive (delete the copy on the drive afterwards). Copy them again whenever the test PKI is regenerated. Restrict the folder to the operator account: it holds a private key. If you startStart-Evcc.ps1from the installed ChargeLink (C:\Program Files\DEVlink\ChargeLink\<VERSION>\vehicle) instead, it reads the three files from%ProgramData%\DEVlink\ChargeLink\tls\pc2. - Firewall (administrator, once), if the Windows firewall filters outbound traffic on the vehicle PC:
$alias = 'Ethernet 3'; $exe = 'C:\ChargeLink-VeriStand\vehicle\chargelink.exe' New-NetFirewallRule -DisplayName 'ChargeLink EVCC SDP UDP 15118' -Direction Outbound -Action Allow -Profile Any -InterfaceAlias $alias -Protocol UDP -RemotePort 15118 -RemoteAddress 'ff02::1' -Program $exe New-NetFirewallRule -DisplayName 'ChargeLink EVCC TCP' -Direction Outbound -Action Allow -Profile Any -InterfaceAlias $alias -Protocol TCP -RemotePort 50118 -RemoteAddress 'fe80::/10' -Program $exe
Step 6 — check the bench
On the charger PC, in an administrator PowerShell in the charger folder, check the session configuration without starting anything:
powershell -NoProfile -ExecutionPolicy Bypass -File .\Start-ChargeLinkVeriStand.ps1 -ValidateOnly
It must print Configuration accepted. Run folder: …. It starts no VeriStand runtime and no listener.
Two PCs: check the link from the vehicle PC. Use the charger PC's link-local address that the import printed, and the vehicle PC's own interface index as the zone:
ping -6 'fe80::<CHARGER_ADDRESS>%<VEHICLE_PC_INTERFACE_INDEX>'
The bench is ready. Continue with Running a session.
Troubleshooting the setup
| Message or symptom | Cause | Action |
|---|---|---|
No NI VeriStand installation was found … or No supported VeriStand … | VeriStand is not installed, or not in its default folder, or an unsupported release | Install NI VeriStand 2024 Q4 (older releases cannot open the kit's operator screen); pass -VeriStandYear if several releases are installed. |
VeriStand preflight failed: … See preflight.json. | A check on the VeriStand installation failed | Read charger\preflight.json; repair the VeriStand installation. |
No engineering PKI at … | -EngineeringPki points to the wrong folder | Pass the folder given to --output-dir in step 3. |
The engineering PKI … has no charger folder … or … no vehicle folder … | The PKI folder is incomplete | Create the test PKI again into a new folder (step 3). |
Expected exactly one connected adapter named '…' | Wrong adapter name, or the link is down | Check Get-NetAdapter; connect the cable; pass the exact name. |
Expected one preferred IPv6 link-local address on '…' | IPv6 disabled on the adapter, or the address is not ready | Enable IPv6 on the adapter; check Get-NetIPAddress -InterfaceAlias '…' -AddressFamily IPv6. |
licence: none yet in the import | No ChargeLink licence on this PC | Install it (step 1); the import continues without it, but sessions need it. |
The ChargeLink activation record … is not usable … | The VeriStand activation record in %ProgramData%\DEVlink\ChargeLink\RuntimeOwnership is damaged or owned by another account | Send install-<time>.log to DEVlink. |
Start ChargeLink Operator (VeriStand) as administrator … in step 6 | PowerShell is not elevated | Open PowerShell with Run as administrator. |
The owner host did not accept the configuration … in step 6 | A path or value in the configuration is wrong, or the .NET 10 runtime is missing | Read validation.log in the run folder it names; check the runtimes; run the import again. |
| Ping from the vehicle PC fails | Cable, adapter, a wrong zone index, or no ICMPv6 rule on the charger PC | Check both adapters with Get-NetAdapter; use the vehicle PC's own interface index as the zone; add the ICMPv6 rule. |
Session-time problems are covered in NI VeriStand Bench, Troubleshooting.
Removing the bench
On the charger PC: delete the Start-menu entry ChargeLink Operator (VeriStand), the project copy in Public Documents\ChargeLink\VeriStand and the kit folder with its runs folder when you no longer need the results; remove the firewall rules you added (Remove-NetFirewallRule -DisplayName 'ChargeLink SECC TCP 50118','ChargeLink SDP UDP 15118', and the others by their names); and destroy the test PKI folder. On the vehicle PC: delete the copied vehicle folder with its TLS files, and the firewall rules. Uninstall ChargeLink itself in Windows Settings > Apps (Install and Activate); uninstall keeps %ProgramData%\DEVlink\ChargeLink.

