SDK Introduction
KH-UCANFD_Linux_SDK is a high-performance driver development kit deeply customized for Kunhong CAN FD series hardware.
The SDK is based on standard SocketCAN architecture, solving performance bottlenecks of Linux community native CAN drivers under high load, significantly improving data throughput and greatly reducing system CPU usage.
Performance: Native Factory SDK vs. Community Native Driver
The following data is based on actual test comparisons with KH-UCANFDX6-Mini on Ubuntu 22.04 (Kernel 6.8.0) environment.
Key Metrics Comparison
| Test Metric | Linux Community Native Driver | KH-UCANFD Optimized SDK | Improvement |
|---|---|---|---|
| CAN FD Peak Frame Rate (1M/5M) | 2,800 frames/second | 20,500+ frames/second | ~7.3x |
| Bus Load Capability (1M/5M) | ~14% (frame drops) | 100% full load | Reaches physical limit |
| System CPU Overhead | Single core > 50% | No significant usage | Reduces by > 85% |

Core Advantages
Standard Protocol Compatibility
Fully supports SocketCAN standard interface, seamlessly integrating with tools and libraries such as cansend, candump, and python-can.

Extreme Performance
Optimized for multi-channel high-traffic concurrent scenarios, supporting CAN FD bus full-load operation.
Low System Overhead
Reduces CPU usage by approximately 85% compared to native drivers.
Broad Environment Adaptation
- Architecture: Supports x86_64, ARM32, ARM64 architectures
- Kernel: Crosses Linux 2.6.x to 6.x full versions
- Linux Real-time Extensions: Perfectly adapts to Xenomai and RTAI (RTDM)
Flexible Deployment
Released as source code, supporting local compilation and cross-compilation.
Hardware Support
Adapts to Kunhong CAN FD series hardware devices:
- KH-UCANFD-Mini Series (e.g., 6-channel high-performance interface cards)
- KH-UCANFD-PCIe/USB Series
For more supported device models, please refer to the "Product Selection Manual".
Dedicated Monitoring Tools
To facilitate developer debugging, the SDK comes with two command-line tools customized for hardware features:
- lskcan: Quickly list and configure all KH-UCAN device statuses
- kcan_monitor: Real-time monitoring of CAN bus status and data frame statistics