Overview
The CanKing CLI is a command line interface for Kvaser CanKing. It is installed with CanKing and can be found in the installation folder, typically C:\Program Files\Kvaser CanKing\service\ck.exe on Windows and /opt/canking/service/ck on Linux.
To get started with the CanKing CLI, open a terminal and type ck –help to see the available commands and options.
For more information on a specific command, type ck <command> –help.
CanKing Terminal
The CanKing CLI can be accessed from within the CanKing application. To do this, open CanKing and go to the Tools Panel in the lower part of the main window. From there, select Terminal to open a terminal view with the CanKing CLI ready to use.
If the Tools Panel isn’t visible, then select ‘More’->’View’->’Toggle Tools Panel’ from the head menu.
Windows Terminal
On Windows, you can open a Command Prompt or PowerShell window and navigate to the CanKing CLI installation folder. You can then run the ck.exe executable with the desired commands and options.
To make CanKing CLI available from any folder, you can add the installation folder to your system’s PATH environment variable.
Adding CanKing CLI to PATH on Windows
Open the Start menu and search for “Environment Variables”
Click “Edit the system environment variables”
In the System Properties dialog, click “Environment Variables…”
In the Environment Variables dialog, find “Path” in the System variables section and click “Edit…”
Click “New” and add the CanKing CLI installation folder path (typically C:\Program Files\Kvaser CanKing\service)
Click “OK” to close all dialogs
Restart your Command Prompt or PowerShell window
After adding to PATH, you can run ck commands from any directory without specifying the full path to the executable.
Linux Terminal
On Linux, you can open a terminal and run the ck executable with the desired commands and options. A symbolic link to the ck executable is already added to /usr/bin making it available from any directory.
Commands
- ck add canchannel
- ck add db
- ck add extension
- ck add filter
- ck add interpreter j1939
- ck add linchannel
- ck add logreplay
- ck add messagelogger
- ck add signallogger
- ck add traffic
- ck connect nodes
- ck delete dataproc
- ck delete source
- ck delete target
- ck disable node
- ck disconnect nodes
- ck enable node
- ck get about
- ck get devices
- ck get event-log
- ck get log-formats
- ck get meas-setup
- ck get nodes
- ck install extension
- ck pack extension
- ck send can
- ck send lin
- ck send lin-clear
- ck send lin-request
- ck send lin-update
- ck send lin-wakeup
- ck set meas-setup
- ck start channel
- ck start logreplay
- ck start meas
- ck start stream
- ck start traffic
- ck stop channel
- ck stop logreplay
- ck stop meas
- ck stop traffic
- ck uninstall extension