The several patches for the upgrade from the PCAN USB to the FD enabled drivers can be seen here: http://git.kernel.org/cgit/linux/kernel ... b/peak_usb
The configuration of the PCAN USB (pro) FD adapters can be done with the latest 'ip' tool from the iproute2 package which is part of all Linux distributions (examples see below).
The PCAN USB FD adapters support the ISO/non-ISO CAN FD frame format which can be configured for each CAN channel (using the Linux driver and a CAN USB FD firmware 2.x).
Example for setting a PCAN USB FD with an arbitration bitrate of 125 kbit/s and a data bitrate of 8 Mbit/s (both having a sampling-point at 80%):
Code: Select all
# ip link set can0 type can bitrate 125000 sample-point 0.800 dbitrate 8000000 dsample-point 0.800 fd on
# ip link set can0 up
# ip -det link show can0
11: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 72 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can promiscuity 0
can <FD> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 125000 sample-point 0.800
tq 100 prop-seg 31 phase-seg1 32 phase-seg2 16 sjw 1
pcan_usb_fd: tseg1 1..64 tseg2 1..16 sjw 1..16 brp 1..1024 brp-inc 1
dbitrate 8000000 dsample-point 0.800
dtq 12 dprop-seg 3 dphase-seg1 4 dphase-seg2 2 dsjw 1
pcan_usb_fd: dtseg1 1..16 dtseg2 1..8 dsjw 1..4 dbrp 1..1024 dbrp-inc 1
clock 80000000
# _
Code: Select all
# ip link set can0 type can bitrate 125000 sample-point 0.800 dbitrate 8000000 dsample-point 0.800 fd on fd-non-iso on
# ip link set can0 up
# ip -det link show can0
11: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 72 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can promiscuity 0
can <FD,FD-NON-ISO> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 125000 sample-point 0.800
tq 100 prop-seg 31 phase-seg1 32 phase-seg2 16 sjw 1
pcan_usb_fd: tseg1 1..64 tseg2 1..16 sjw 1..16 brp 1..1024 brp-inc 1
dbitrate 8000000 dsample-point 0.800
dtq 12 dprop-seg 3 dphase-seg1 4 dphase-seg2 2 dsjw 1
pcan_usb_fd: dtseg1 1..16 dtseg2 1..8 dsjw 1..4 dbrp 1..1024 dbrp-inc 1
clock 80000000
# _

Best regards,
Oliver