目录
一. Hardware
二. Software
2.1 安装驱动
2.2 安装PCAN-View
QA
本文介绍如何安装linux版的PCAN-View。
PCAN-View:用来抓包分析CAN/CANFD报文。Hardware: PEAK-System
Linux generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
chris:~/Tools$ dpkg --print-architecture
amd64
chris:~/Tools$ arch
x86_64
一. Hardware
Hardware: PEAK-System
上述标红的地方对应接在CAN总线的高低信号线。
二. Software
2.1 安装驱动
peak-linux-driver-8.16.0.tar.gz
tar -xzf peak-linux-driver-8.16.0.tar.gz
cd peak-linux-driver-8.16.0/
sudo apt-get install libpopt-dev
make clean
make
sudo make install
2.2 安装PCAN-View
pcanview-ncurses-0.9.3-0-amd64.deb
sudo dpkg -i pcanview-ncurses_0.9.3-0_amd64.deb
运行pcan-view
chris:~/Tools$ /usr/bin/pcanview
QA
Q:运行pcan-view报错libncurses.so
/usr/bin/pcanview: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
S:执行如下命令(中间执行error也没关系)
sudo apt install apt-file
sudo apt-file update
sudo apt-file find libncurses.so.5
sudo apt install libncurses5