canCfg - Configure CAN interface
Configure a CAN interface. This command can be used to adjust the speed bit settings of a CAN port. Additionally, it can be used to configure additional CAN ports via USB.
Usage:
- command: canCfg <port> <bitrate> [fd]
[retry: <retryCount>]
[id: <usbDeviceID>]
[path: <usbDevicePath>]
[interface: <usbDeviceInterface>]
[with:
[- tq <tq>]
[- phaseSeg1 <phaseSeg1>]
[- phaseSeg2 <phaseSeg2>]
[- propSeg <progSeg>]
[- samplePoint <samplePoint>]
[- sjw <sjw>]
[- dataBitrate <dataBitrate>]
[- dataTQ <dataTQ>]
[- dataPropSeg <dataProgSeg>]
[- dataPhaseSeg1 <dataPhaseSeg1>]
[- dataPhaseSeg2 <dataPhaseSeg2>]
[- dataSamplePoint <dataSamplePoint>]
[- dataSJW <dataSJW>]]
Argument |
Description |
---|---|
port |
CAN port name: |
bitrate |
CAN bit rate, in bits per second. |
|
Added in version PLT-OS: v2.0 Enable CAN-FD. |
retryCount |
Optional: Number of times to retry the test step |
usbDeviceID |
Optional: USB device identifiers: |
usbDevicePath |
Optional: USB device path: |
usbDeviceInterface |
Optional: USB device interface: |
with |
Additional command parameters. (optional)
|
External USB CAN dongles can be configured as CAN ports by using the usbDeviceID, usbDevicePath, or usbDeviceInterface fields.
Note
The built-in CAN0 port, which does not support CAN-FD, can not be redefined.
That is, the usbDeviceID, usbDevicePath, and/or usbDeviceInterface parameters
can’t be set on CAN0
.
Examples