Hi,
you only have builded the driver, not the libs and testtools. Simply don´t use that -c driver option, but build the package complete as written in my RPI post....
regards
Michael
PCAN-USB make fails
Re: PCAN-USB make fails
Hi Michael,
thank you.
I followed your instructions with:
make NET=NETDEV_SUPPORT PCI=NO PCIEC=NO PCC=NO DNG=NO PAR=NO ISA=NO
No errors reported after that. The "cat /proc/pcan" command displays "PEAK-System CAN interfaces" and after plugging it in it recognises 1 PCAN-USB interface.
Regards
thank you.
I followed your instructions with:
make NET=NETDEV_SUPPORT PCI=NO PCIEC=NO PCC=NO DNG=NO PAR=NO ISA=NO
No errors reported after that. The "cat /proc/pcan" command displays "PEAK-System CAN interfaces" and after plugging it in it recognises 1 PCAN-USB interface.
Regards
Re: PCAN-USB make fails
ok,
now you should be able to use PCAN-USB as can0 device with SocketCAN:
https://www.kernel.org/doc/Documentatio ... ng/can.txt
regards
Michael
now you should be able to use PCAN-USB as can0 device with SocketCAN:
https://www.kernel.org/doc/Documentatio ... ng/can.txt
regards
Michael
Re: PCAN-USB make fails
Michael, thank you.
Everything works now. It took me a while to implement python canopen package which connects nicely with socketcan. Now it works and I am very grateful for your support.
Just for the reference. Activating can0:
sudo ip link set can0 up type can bitrate 12500
Then test:
Though everything works now and I can drive my motor controller from python, I wonder why I get can state ERROR-ACTIVE? I hope it won't backfire some day.
Everything works now. It took me a while to implement python canopen package which connects nicely with socketcan. Now it works and I am very grateful for your support.
Just for the reference. Activating can0:
sudo ip link set can0 up type can bitrate 12500
Then test:
Code: Select all
pi@raspberrypi:~ $ ip -details link show can0
4: can0: <NOARP,UP,LOWER_UP> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can promiscuity 0
can state ERROR-ACTIVE restart-ms 0
bitrate 125000 sample-point 0.875
tq 500 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
pcan: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
clock 8000000numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
Last edited by K.Wagner on Mon 15. Apr 2019, 09:00, edited 1 time in total.
Reason: Format applied for better reading
Reason: Format applied for better reading