tracetronic: SocketCAN¶
供应商信息
Vendor |
Web page |
产品名称 |
Version |
|---|---|---|---|
tracetronic GmbH |
SocketCAN |
0.1 |
Categories
MDL 🛈 |
APL 🛈 |
BAN 🛈 |
BMA 🛈 |
SVC 🛈 |
DGN 🛈 |
FIU 🛈 |
EES 🛈 |
FCT 🛈 |
DBG 🛈 |
IMG 🛈 |
AUDIO 🛈 |
ENVSIM 🛈 |
ENVCOM 🛈 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
✓ |
✓ |
✓ |
✓ |
✓ |
Signal recordings(信号记录) 🛈
文件格式 |
Comment |
|---|---|
*.asc |
|
*.mf4 |
BUSACCESS - CAN(-FD) 端口仅支持 MDF4 总线日志。XCP 端口支持基于信号的 MDF4 记录。 |
*.pcapng |
BUSACCESS - CAN(-FD) 端口将使用 linktype=227。生成的文件无法由 Trace Analysis 处理。 |
Platform
操作系统 |
Support |
|---|---|
Windows |
|
Linux |
✓ |
Ports¶
Info
带有 ✦ 标记的端口属于 Add-on ecu.test calibration(需要单独的许可证)
- Port APPLICATION - XCP-CAN
✦ - Port APPLICATION - XCP-CAN-FD
✦ - Port APPLICATION - XCP-CAN-FD-TOLERANT
✦ - Port BUSACCESS - CAN
- Port BUSACCESS - CAN-FD
- Port DIAGNOSTICS - CAN
- Port DIAGNOSTICS - CAN-FD
- Port DIAGNOSTICS - CAN-FD_TOLERANT
- Port DIAGNOSTICS - J1939
- Port DIAGNOSTICS - KWP2000-CAN
- Port ELECTRICERRORSIM - CANWAY
Specifics¶
此接口可通过硬件直接访问 CAN 和 CAN-FD 总线。 它支持测试步骤读取信号、读取/写入信号组 以及监视,并支持信号记录、 通过 ISO-TP 使用 KWP2000 进行原始诊断、Mini 残余总线仿真 以及 贴近硬件的总线连接的附加功能。
Drivers
The SocketCAN driver must be included in the kernel of the Linux distribution in use.
Notes on Behavior
Interfaces that are in the UP state before the tool starts also remain in the UP state after the tool stops.
For physical interfaces that are in the UP state, ecu.test assumes that the user has already correctly preconfigured the interface and skips the configuration of baud rate, bit timing and CtrlModes.
Interfaces that are in the DOWN state before the tool starts are configured at tool start, set to UP before the test case starts, and are set back to DOWN after the test case ends. They remain in the DOWN state even after the tool stops. The baud rate, bit timing, and CtrlMode configurations set by ecu.test remain persistent even after the tool stops.
If an interface does not have readable bit timing properties, it is assumed to be a virtual interface. In this case, the configuration of baud rate, bit timing, and CtrlModes is skipped.
The interfaces are identified using the Linux interface index, which is stored in the TBC. If the index of a used interface is changed, the TBC must be updated.
Example setup of virtual SocketCAN interfaces¶
Install the required dependencies
sudo apt update
sudo apt install can-utils
Create virtual SocketCAN interfaces
# load kernel modules
sudo modprobe vcan
sudo modprobe can-gw
# create two virtual SocketCAN interfaces (named vcan0 and vcan1)
sudo ip link add dev vcan0 type vcan
sudo ip link add dev vcan1 type vcan
# connect both interfaces
# rules for CAN
sudo cangw -A -s vcan0 -d vcan1 -e
sudo cangw -A -s vcan1 -d vcan0 -e
# rules for CAN-FD
sudo cangw -A -X -s vcan0 -d vcan1 -e
sudo cangw -A -X -s vcan1 -d vcan0 -e
Info
Loading the kernel modules as well as creating and connecting the virtual SocketCAN interfaces will be lost after a system restart. To ensure the setup persists, you may want to configure the script to run automatically after each reboot.
Properties 🛈¶
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
Timeout for tool call ❲in sec.❳ |
‘600’ |
string |
工具调用被中止前的超时时间。 |