I'm trying to find out if my adapter settings are correct because i have sometimes errors when sending messages. I use the PCAN-miniPCIe (IPEH-003049) on Ubuntu 16.04 with socketcan.
in /etc/network/interfaces it is set up like:
Code: Select all
auto can0
iface can0 inet manual
pre-up /sbin/ip link set can0 type can bitrate 250000 restart-ms 75
up /sbin/ifconfig can0 up
down /sbin/ifconfig can0 down
Code: Select all
$ ip -details link show can0
4: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
link/can promiscuity 0
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 75
bitrate 250000 sample-point 0.875
tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
clock 8000000
Thanks,
Best regards