Skip to content
Open in AI

kcan-bus user guide ​

Monitor · Sequences · Logs · Bus status

Download for Windows x64

kcan-bus main window with CAN and CAN FD frame monitoring and filters above the transmit sequence editor and channel status

This guide covers kcan-bus 0.3.2 on Windows x64 with WinUSB and a device running KCAN X4 native firmware. Run the downloaded installer and follow the wizard.

Releases and other packages (Gitee) · Source code and KCANBasic library (Gitee)

Connect the device and open a channel ​

  1. Connect CAN_H, CAN_L and the common ground as specified for the device. Check termination and the peer’s bit rate.
  2. Open the device and channel configuration dialog from the device menu. Select the device and channel, choose Classical CAN or CAN FD, and match the peer’s bit rate. For CAN FD, set the data-phase rate as well.
  3. Enable the channels in the device tree and click Start. This opens all enabled channels. Select listen-only mode before starting if you only need to observe existing traffic.

Device and channel configuration menu

Receive the first frame ​

In the transmit/receive view, select the channel to observe in the channel status area. When the peer sends a frame, its ID and data appear in the receive list.

Send one frame ​

On a bus where transmission is permitted, select an open channel with listen-only mode disabled. In the transmit/receive view, add a frame, select the transmit channel, and enter its ID, frame type and data. Save it and send it once. To confirm delivery, check that the peer received the expected ID and data.

Single-frame editor showing the transmit channel, frame ID and data

Operation reference ​

Periodic and sequence transmission ​

  • Repeat a frame. Set the period and repeat count in the transmit task, save the task and start it. Enable ID or data increments if needed. Software periodic timing does not guarantee hard-real-time scheduling.
  • Send a sequence. Add and order frames in a sequence task, set the interval for each step, and choose a repeat count or a continuous loop. A running sequence uses the settings captured at startup; edits affect the draft.

Bus status ​

The bus status view shows each channel’s connection state, bus load, frame rate, frame counts, transmit and receive error counters (TEC / REC), and reported errors. Missing or stale readings are not displayed as zero.

Bus status and channel diagnostics

Recording, playback and export ​

  1. Start ASC recording and choose an output folder. The recorder captures all open channels on the current device and splits the files into 512 MiB volumes.
  2. Stop recording and wait for the file to finish writing before reconfiguring or reopening channels. Pausing, filtering or clearing the monitor view does not stop background recording.
  3. Open a completed .asc volume to review it. Older .kcanlog files can also be opened. Playback reads the file without transmitting its frames onto the bus.
  4. Export the current recording volume to CSV from the recording view. To export the frames in the monitor view instead, use CSV export in the transmit/receive view.

Project files ​

From the file menu, save the current device project as a .kcanproj file to keep channel settings, transmit task drafts and display options. After opening a project, check the device mapping and channel settings before starting channels. Opening a project does not restore running connections, transmission or recording.

Multiple devices and channel controls ​

  • Channel status buttons change which traffic you observe, not the destination of a transmit task. The monitor can display frames by time or ID and filter by channel, frame type, ID or direction.
  • Each device has its own workspace. Switching views or devices leaves tasks and recordings on other devices running.
  • The global Stop ends transmit tasks and recordings on all devices and closes the channels. Restart stops them first and reopens enabled channels; start transmission or recording manually when ready.