I am trying to change the default timings of the pcan devices which should be persistent on each boot.
here is the settings I want to use for all my pcan devices: I tried to set them with (for example)
Code: Select all
echo 10 | sudo tee /sys/class/pcan/pcanpcifd2/nom_sjw
I am trying to use the python-can which should work for PCAN Basic API. Problem is that I need diffrent timings then stock in order for the communication to work. This is for test purposes only.
if I use the netdev Mode I can set them like so:
Code: Select all
ip link set can0 up type can \
tq 12 prop-seg 25 phase-seg1 25 phase-seg2 29 sjw 10 \
dtq 12 dprop-seg 6 dphase-seg1 2 dphase-seg2 7 dsjw 12 \
restart-ms 1000 fd on
