ChargeLink

Install and Activate

ChargeLink is installed with ChargeLinkSetup-<VERSION>.exe, for example ChargeLinkSetup-0.6.0.exe. The setup is signed by DEVlink AB. It installs one ChargeLink version for all users of the PC, in its own folder, side by side with any other installed version.

Prerequisites

  • Windows 10 or Windows 11, 64-bit, and an account with administrator rights for the setup. Running ChargeLink afterwards needs no administrator rights.
  • IPv6 enabled on the network adapter that connects the ChargeLink PC to your DUT for ISO 15118 / DIN 70121 traffic. ChargeLink uses link-local IPv6 (fe80::/10); no IPv6 router is required. A powerline (PLC) link with SLAC needs DEVlink PLC hardware, which is not yet available; see Charging over Powerline (PLC) with SLAC. Without it, ChargeLink runs over Ethernet and link-local IPv6.
  • A ChargeLink licence from DEVlink, bound to the machine ID of this PC (see Activate the licence).

The setup checks the following software but never installs or downloads it. Install what your use needs before or after the setup:

SoftwareNeeded for
Microsoft Visual C++ 2015-2022 Redistributable (x64)Every ChargeLink PC. chargelink.exe does not start without it; the setup then installs ChargeLink but leaves the licence step for later.
.NET 10 runtime (x64)The charger side of the NI VeriStand bench.
NI VeriStand 2024, licensedThe NI VeriStand bench only (not checked for the Vehicle role). See Set Up the VeriStand Bench.
CAN adapter driver (CANlib)CHAdeMO on a physical CAN bus only.

Run the setup

Check the signature, then start the setup:

Get-AuthenticodeSignature 'C:\Downloads\ChargeLinkSetup-<VERSION>.exe' | Format-List Status, SignerCertificate
& 'C:\Downloads\ChargeLinkSetup-<VERSION>.exe'

Expected: Status is Valid and the signer is DEVlink AB. The setup pages are: Welcome, Licence terms, Options, Prerequisites, Ready to install, Licence and a final summary.

Role of this PC

The same setup serves every PC of a bench. Choose the role on the Options page:

RoleInstallsUse it for
Single PCEverything: the common files, charger\ and vehicle\One ChargeLink PC that plays either role against your DUT, and the self-test on one PC
ChargerThe common files and charger\ (the NI VeriStand side)The charger PC of the NI VeriStand bench
VehicleThe common files and vehicle\The vehicle PC of a two-PC bench

The chargelink.exe in charger\bin\ and the one in vehicle\ are the same program; either runs either role.

Options

  • Make this the default ChargeLink. Puts this version's chargelink.exe folder on the system PATH and makes it the version that ChargeLink Admin uses. One version is the default at a time; choosing it for a new version moves the default from the old one.
  • Start menu shortcuts. A Start menu folder DEVlink ChargeLink <VERSION> with ChargeLink <VERSION> shell (PowerShell with this version on PATH, started in the data folder), ChargeLink licence status, Verify ChargeLink <VERSION> and ChargeLink <VERSION> documentation.
  • Windows Firewall rules. Inbound rules for this version's chargelink.exe, link-local only (see Windows Firewall). Off by default.

The setup installs no service, starts nothing with Windows, adds no scheduled task and installs no driver. No restart is needed. Running the setup of an installed version again repairs it with the options you choose; it refuses while a ChargeLink program of that version is running.

What goes where

Where ChargeLink stores state: package directory, data root, VeriStand bench runs Installed version (read-only) …\DEVlink\ChargeLink\<version> charger\bin\chargelink.exe charger\ vehicle\ (by setup role) docs\ licenses\ manifest\SHA256SUMS ChargeLinkUninstall.exe One folder per version, side by side. Never write runtime data here. Uninstall keeps the data folder. Data (%ProgramData%) …\DEVlink\ChargeLink data\runtime\ ← --runtime-root sessions\<run-id>\ active\ recovery\ integration\ data\artifacts\ ← --artifact-root <run-id>\manifest.json traces\ licenses\ ← license install <licence>.dlic removed\ (license remove) tls\ (TLS material) Back up as one unit. Restrict tls\ and licenses\; verify integrity after restore. VeriStand bench runs (charger PC) <kit folder>\runs\ <time>-veristand\ native.json validation.log campaign-configuration.json launcher.log operator\Runs\<time>\ launcher-evidence.json operator-actions.json, traces %ProgramData%\DEVlink\ChargeLink\ tls\ (bench TLS material) One folder per session; send it whole to support.
The installed version, the data folder under %ProgramData% and the VeriStand bench run folders live in separate places.
FolderContentsOn uninstall
C:\Program Files\DEVlink\ChargeLink\<VERSION>\The program files of one version: charger\ and/or vehicle\, docs\, manifest\ (SHA256SUMS and the release records), licenses\ (third-party notices and the SBOM) and ChargeLinkUninstall.exe. Read-only for operators.Removed
%ProgramData%\DEVlink\ChargeLink\licenses\The installed licences (.dlic).Kept
%ProgramData%\DEVlink\ChargeLink\data\Runtime state and run evidence, the bench configuration and the bench run folders. The Start menu shell starts here.Kept
%ProgramData%\DEVlink\ChargeLink\tls\TLS material used by the kit's bench scripts.Kept

The setup creates %ProgramData%\DEVlink\ChargeLink and lets the users of the PC add and remove licences and data there. Uninstall never removes it, so licences, evidence and TLS material survive an uninstall and an upgrade.

The examples in this manual use two PowerShell variables:

$CL   = 'C:\Program Files\DEVlink\ChargeLink\<VERSION>\charger\bin\chargelink.exe'
$Data = "$env:ProgramData\DEVlink\ChargeLink\data"

On a PC installed with the Vehicle role, set $CL to C:\Program Files\DEVlink\ChargeLink\<VERSION>\vehicle\chargelink.exe. The examples call chargelink from PATH (the default version) and use $CL where a full path is needed, for example for a firewall rule or a file hash. They pass --runtime-root "$Data\runtime" and --artifact-root "$Data\artifacts", the same roots the kit's scripts use. Without these options ChargeLink uses .chargelink\runtime and .chargelink\artifacts under the current folder. Persist the two variables in your PowerShell profile (notepad $PROFILE) so that every new window has them.

Windows Firewall

With the firewall option, the setup adds inbound rules for each installed chargelink.exe of this version, for link-local peers only (fe80::/10, all network profiles):

PortTransportPurpose
15118UDP / IPv6SECC Discovery Protocol (SDP), charger role
50118 and 49152–65535TCP / IPv6V2GTP session, plain or TLS, charger role. --tcp-port 0 allocates from the dynamic range.

The rules are named ChargeLink <VERSION> Setup - ... and are removed when that version is uninstalled. The setup never changes rules of other tools. Without the option, add equivalent rules yourself before the charger role runs for the first time:

New-NetFirewallRule -DisplayName 'ChargeLink EVSE SDP UDP 15118' -Direction Inbound -Action Allow `
  -Protocol UDP -LocalPort 15118 -RemoteAddress 'fe80::/10' -Program $CL
New-NetFirewallRule -DisplayName 'ChargeLink EVSE TCP' -Direction Inbound -Action Allow `
  -Protocol TCP -LocalPort 50118,49152-65535 -RemoteAddress 'fe80::/10' -Program $CL

Other ports:

PortTransportDirectionPurpose
15118 to ff02::1, 49152–65535UDP, TCP / IPv6Outbound (vehicle role)SDP multicast request and V2GTP connection
50119TCP / IPv6Inbound (MCS charger role)See MCS; not covered by the setup's rules.
50051TCP / IPv4 loopbackLocal onlygRPC Integration API. Keep it on 127.0.0.1; add no rule.

The gRPC server listens on loopback only (a non-loopback --listen is refused) and has no TLS transport; every call needs its per-start access token. For the NI VeriStand bench, use the rules in Set Up the VeriStand Bench (names prefixed DEVlink ChargeLink).

Quiet install

For automated installation, run the setup from an elevated prompt:

ChargeLinkSetup-<VERSION>.exe /quiet [/role=single|charger|vehicle] [/default=0|1] [/startmenu=0|1] [/firewall=0|1]
                              [/license=<FILE>.dlic] [/request=<FILE>.json] [/log=<FILE>]
OptionDefaultEffect
/rolesingle (on a repair: the installed role)Role of this PC
/default1Make this version the default ChargeLink
/startmenu1Start menu folder and shortcuts
/firewall0 (on a repair: as installed)The setup's firewall rules
/licensenoneInstall this licence file after the installation
/requestnoneWrite an activation request to this file after the installation
/log%TEMP%\ChargeLinkSetup.logSetup log

Exit codes: 0 success, 1602 cancelled, 1603 failure. Missing prerequisites are written to the log and do not fail the installation; /license and /request fail it when the Visual C++ runtime is missing.

Verify the installation

Open the Start menu shortcut ChargeLink <VERSION> shell, or a new PowerShell window if this version is the default:

chargelink --version
chargelink --runtime-root "$Data\runtime" --artifact-root "$Data\artifacts" --json env doctor
chargelink --runtime-root "$Data\runtime" --artifact-root "$Data\artifacts" --json env doctor --strict

Expected: chargelink 0.6.0. The doctor checks that the runtime root and the artifact root are writable and checks the installation; a result of "status": "ok" with its license check skipped is normal. The licence itself is shown by license status. If the version differs from this manual, read the Release and Version Matrix before continuing.

To check every installed file against manifest\SHA256SUMS, run the Start menu shortcut Verify ChargeLink <VERSION>. Keep the setup file and its SHA-256 with your installation record.

Activate the licence

A ChargeLink licence is a .dlic file issued by DEVlink for the machine ID of one PC.

  1. Get the machine ID. The setup's Licence page shows it; on the command line:
    chargelink license machine-id
    Or write an activation request file, which carries the machine ID, and send it to DEVlink:
    chargelink license request --out request.json
  2. DEVlink sends you a .dlic file. Install it on the setup's Licence page, or on the command line:
    chargelink license install <FILE>.dlic
  3. Check the result:
    chargelink license status
    Expected: DEVlink licence status: LIC_OK, the machine ID, the licence home %ProgramData%\DEVlink\ChargeLink\licenses, each installed licence with its state, and the edition and packages it grants.

license install verifies the file before it installs it. Without a usable licence, a licensed command stops with exit code 20 and CL-LICENSE-001. The free and licensed commands are listed in Licensing.

Record the installation

$Rec = "$Data\support\install-$(Get-Date -Format yyyyMMdd-HHmmss)"
New-Item -ItemType Directory -Force $Rec | Out-Null
chargelink --version                 | Out-File -Encoding utf8 "$Rec\version.txt"
chargelink --runtime-root "$Data\runtime" --artifact-root "$Data\artifacts" --json env doctor | Out-File -Encoding utf8 "$Rec\doctor.json"
chargelink --json license status     | Out-File -Encoding utf8 "$Rec\license-status.json"
Get-FileHash $CL -Algorithm SHA256   | Out-File -Encoding utf8 "$Rec\binary-hash.txt"

Continue with First Session with Your Device Under Test.

Upgrade

  1. Stop all sessions: chargelink --json evse stop, chargelink --json evcc stop, close any integration serve window, then chargelink --json runtime list must show no live session.
  2. Run the setup of the new version. It installs beside the old version; choose whether the new version becomes the default.
  3. Run --version, license status, env doctor --strict and profile list with the new version.
  4. Repeat your golden reference runs before you reconnect your DUT or a physical bench.
  5. Uninstall the old version when you no longer need it for a rollback.

Licences and data stay in %ProgramData%\DEVlink\ChargeLink, so the new version uses them at once. A version released after the maintenance period of your licence ended reports LIC_MAINTENANCE_EXPIRED; renew maintenance, or keep using the earlier version.

Uninstall

  1. Stop sessions as above.
  2. Remove the version in Windows Settings > Apps, or run ChargeLinkUninstall.exe in the version folder (ChargeLinkUninstall.exe /uninstall [/quiet]).

Uninstall removes the program files of that version, its Start menu folder, its firewall rules and, if it was the default, its PATH entry. Other versions are not affected. Licences and data in %ProgramData%\DEVlink\ChargeLink are kept; archive or delete them according to your evidence retention policy. To take a licence out of use on this PC, run chargelink license remove <LICENSE_ID>; the file is moved to removed\ in the licence home, never deleted.

Installing without the setup (ZIP kit)

If DEVlink supplied the ZIP kit ChargeLink-<VERSION>-bench-kit-win64.zip for integration and automation, it holds the same files as the setup. Extract it to a local folder without spaces and check every file against manifest\SHA256SUMS:

Expand-Archive 'C:\Downloads\ChargeLink-<VERSION>-bench-kit-win64.zip' -DestinationPath 'C:\ChargeLinkKit\<VERSION>' -Force
cd C:\ChargeLinkKit\<VERSION>
Get-Content .\manifest\SHA256SUMS | ForEach-Object {
  $hash, $path = $_ -split '  ', 2
  if ((Get-FileHash -LiteralPath $path -Algorithm SHA256).Hash -ne $hash.ToUpperInvariant()) { throw "Changed: $path" }
}
'all files verified'

An extracted kit runs from its own folder. Compared with the setup:

  • no Start menu folder, no PATH entry and no default version: call chargelink.exe by its full path;
  • no firewall rules: add them yourself as shown in Windows Firewall;
  • no registry entries and no entry in Windows Settings > Apps: delete the folder to remove the kit;
  • the kit's scripts keep their TLS material in tls\ in the kit, the bench configuration next to the charger scripts and the bench run folders in runs\ next to charger\;
  • the prerequisites are not checked: install them as listed above.

The licence works the same way: license install puts it in %ProgramData%\DEVlink\ChargeLink\licenses.