i hope the category accords.
I setup the PCAN-USB FD on my Rpi3 and successfully compiled the netdev driver. I have no ECU to communicate now.....so i just terminated the CAN-Bus as you can see in the attachment (60 OHM and no Bus cable) for testing the adapter.
But:
I when i plug it in (LED: green), type "sudo ifconfig can0 up" and enter (LED: green blinking) and then write to the CAN-Bus "./cangen" or "./cansend" i get the error below (LED fast red blinking).
What do i also need to make the run the first simple tests?
Code: Select all
------------------------------------------ERROR-------------------------------------------------
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Beta____20160324_n (8.0.20) Apr 21 2016 20:02:42 --------------
*---------------------------- [mod] [usb] [net] -----------------------------
*--------------------- 1 interfaces @ major 243 found -----------------------
*n -type- -ndev--base- irq --btr- --read-- --write- --irqs-- -errors- status
32 usbfd can0 0 000 0x001c 0001a4d2 00000020 00000010 00000002 0x000c
--------------------------------------------------------------------------------------------------
Then i updated the adapter to firmware 2.2.1 as mentioned in a other topic.
Since this.....the adapter blinks red also after a "sudo ifconfig can0 down"+"sudo ifconfig can0 up".
Before i could fix the red blinking with this 2 commands. But now i have plug-out and plug in again.
How do i "reset" the adapter, because plug-out and plug-in is no option?
SYSTEM:
RPi3
Code: Select all
$ uname -a
Linux RPi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
$ cat /proc/net/can/version
rev 20120528 abi 9