Hongke Articles
New PCAN driver for Linux environment is released!
The CAN/CAN FD communication experience is fully upgraded!
The new version 8.17.0 of the PCAN-Linux driver has been released, specifically designed for CAN and CAN FD interfaces. Both CAN 2.0 a/b and CAN FD PCAN hardware products are "at home" with our new driver. Do you want to experience the convenience of a character mode device driver (chardev) or the efficiency of a socketCAN device driver (netdev)? It's up to you!
New Version Driver Overview
1, device driver module source code and Makefile files, to ensure perfect compatibility between the driver and the system and efficient operation.
2, the user library file source code and Makefile files, to provide users with a convenient API interface to simplify the development process.
3, the test file source code and Makefile file, user-friendly driver for comprehensive functional testing and performance evaluation.
4, Linux environment PCAN Basic sample source code and Makefile files, for beginners to provide intuitive learning and reference cases.
5. Udev rules to ensure that devices are automatically recognized and configured in the Linux system.
6、Detailed product manuals provide users with comprehensive installation, configuration and usage guidelines.
Major improvements in the new version
1. Improved support for PCAN-USB Pro FD hardware version v4 (firmware version <3.4.6) to enhance driver compatibility and stability.
2. Added a new protection mechanism for potential kernel message flooding, which effectively reduces system resource usage and improves system performance.
3, support for kernel v6.4 and v6.5 compilation, to ensure that the driver in the new version of the Linux kernel runs smoothly.
4. Repair potential kernel crash in netdev mode to further enhance system stability and reliability.
5. Upgraded PCAN-Basic API in Linux environment to version 4.8.0, which provides richer and more powerful functions for users.
New driver installation guide
1、Download the driver
$ wget https://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-8.17.0.tar.gz
2. Unzip the file
$ tar -xzf peak-linux-driver-8.17.0.tar.gz
3. Compiler driver (GCC version 12 or higher required)
$ make clean all
$ make
Here the driver is compiled to cahrdev mode, if you want to use SocketCAN, you need to compile the driver to netdev mode, the compile command is changed to: $ make netdev
4. Download the driver
$ sudo make uninstall
$ sudo make install
5. Load Module
$ sudo modprobe pcan
6. Check if the driver is installed successfully.
$ cat proc/pcan
Conclusion
In the era of innovation and change, we realize that every improvement may bring unprecedented experience to users. The new version of PCAN-Linux driver (version 8.17.0) not only inherits the excellent features of the previous version, but also improves the compatibility, stability and performance. We sincerely invite all users to download and experience the new version, and look forward to receiving your valuable feedback to jointly promote the development of CAN communication technology.