For Drivers:
sudo rmmod pcan
make clean
make NET=NO
sudo make install
sudo modprobe pcan
Output from
Code: Select all
receivetest -f=/dev/pcan0 -b=CAN_BAUD_1M
Code: Select all
receivetest: device node="/dev/pcan0"
Only standard frames are accepted, init with BTR0BTR1=0x00ca
receivetest: driver version = Release_20171027_n
2471409870.480 receivetest: m s 0x00000008 4 00 00 00 80
receivetest: pending CAN status 0x00a1 read.
Code: Select all
m s 0x0c4 2 0x0a 0x1d
Code: Select all
$ cat /proc/pcan
Code: Select all
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
0 pcifd -NA- 1d81000 016 0x004a 00000001 000001f4 00000000 00000001 0x0000
1 pcifd -NA- 1d82000 016 0x001c 00000000 00000000 00000000 00000000 0x0000
2 pcifd -NA- 1d83000 016 0x001c 00000000 00000000 00000000 00000000 0x0000
3 pcifd -NA- 1d84000 016 0x001c 00000000 00000000 00000000 00000000 0x0000
Code: Select all
$ dmesg | grep pcan
Code: Select all
[ 1.318234] pcan: module verification failed: signature and/or required key missing - tainting kernel
[ 1.318927] pcan: Release_20171027_n (le)
[ 1.318928] pcan: driver config [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc]
[ 1.319163] pcan: uCAN PCI device sub-system id 14h (4 channels)
[ 1.319181] pcan: uCAN PCB v3h FPGA v3.2.1 (mode 3)
[ 1.319216] pcan: pci uCAN device minor 0 found
[ 1.319227] pcan: pci uCAN device minor 1 found
[ 1.319250] pcan: pci uCAN device minor 2 found
[ 1.319297] pcan: pci uCAN device minor 3 found
[ 1.319333] usbcore: registered new interface driver pcan
[ 1.320031] pcan: major 244.
[ 2.470272] Modules linked in: snd_hda_codec_hdmi(+) i915 drm_kms_helper drm fb_sys_fops syscopyarea sysfillrect sysimgblt ipmi_msghandler bnep rfcomm snd_hda_codec_realtek snd_hda_codec_generic input_leds snd_hda_intel snd_hda_codec x86_pkg_temp_thermal coretemp snd_hda_core kvm_intel snd_hwdep snd_pcm kvm irqbypass binfmt_misc crct10dif_pclmul snd_seq_midi crc32_pclmul snd_seq_midi_event snd_rawmidi aesni_intel snd_seq aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_seq_device snd_timer pcan(OE) snd pcmcia serio_raw pcmcia_core soundcore i2c_algo_bit shpchp hci_uart btbcm btqca btintel parport_pc bluetooth ppdev 8250_fintek video i2c_hid intel_lpss_acpi intel_lpss acpi_pad lp parport mac_hid acpi_als kfifo_buf industrialio hid_generic usbhid hid e1000e ptp psmouse ahci pps_core libahci fjes
[ 185.826899] usbcore: deregistering interface driver pcan
[ 185.826995] pcan: removed.
[ 244.237012] pcan: Release_20171027_n (le)
[ 244.237014] pcan: driver config [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc]
[ 244.237111] pcan: uCAN PCI device sub-system id 14h (4 channels)
[ 244.237124] pcan: uCAN PCB v3h FPGA v3.2.1 (mode 3)
[ 244.237136] pcan: pci uCAN device minor 0 found
[ 244.237144] pcan: pci uCAN device minor 1 found
[ 244.237151] pcan: pci uCAN device minor 2 found
[ 244.237159] pcan: pci uCAN device minor 3 found
[ 244.237180] usbcore: registered new interface driver pcan
[ 244.237315] pcan: major 244.
[ 376.127485] usbcore: deregistering interface driver pcan
[ 376.127593] pcan: removed.
[ 460.237830] pcan: Release_20171027_n (le)
[ 460.237835] pcan: driver config [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc]
[ 460.238088] pcan: uCAN PCI device sub-system id 14h (4 channels)
[ 460.238118] pcan: uCAN PCB v3h FPGA v3.2.1 (mode 3)
[ 460.238157] pcan: pci uCAN device minor 0 found
[ 460.238185] pcan: pci uCAN device minor 1 found
[ 460.238212] pcan: pci uCAN device minor 2 found
[ 460.238239] pcan: pci uCAN device minor 3 found
[ 460.238298] usbcore: registered new interface driver pcan
[ 460.238731] pcan: major 244.
[ 992.138585] usbcore: deregistering interface driver pcan
[ 992.138751] pcan: removed.
[ 1244.773550] pcan: Release_20171027_n (le)
[ 1244.773553] pcan: driver config [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc]
[ 1244.773700] pcan: uCAN PCI device sub-system id 14h (4 channels)
[ 1244.773720] pcan: uCAN PCB v3h FPGA v3.2.1 (mode 3)
[ 1244.773739] pcan: pci uCAN device minor 0 found
[ 1244.773753] pcan: pci uCAN device minor 1 found
[ 1244.773766] pcan: pci uCAN device minor 2 found
[ 1244.773779] pcan: pci uCAN device minor 3 found
[ 1244.773812] usbcore: registered new interface driver pcan
[ 1244.775213] pcan: major 244.
Code: Select all
$ uname -a
Code: Select all
Linux ralab-desktop 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
$ ./pcanread
Code: Select all
Initialize CAN: 512
Error 0x4000000
error comes from the fact there is no CAN0 bus initialized on the device. I do not know what to do at this point. I have used PCAN Windows API to successfully send and receive expected results.PCAN_ERROR_INITIALIZE 0x4000000U
Thanks!
Kyle