Code: Select all
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
$ uname -a
Linux ai-P65-P67RGRERA 4.4.0-040400-generic #201601101930 SMP Mon Jan 11 00:32:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
$ dmesg -wH
...
[ +4.148002] usb 1-1: new high-speed USB device number 36 using xhci_hcd
[ +0.128854] usb 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x83 has invalid maxpacket 64
[ +0.000008] usb 1-1: config 1 interface 1 altsetting 0 bulk endpoint 0x84 has invalid maxpacket 64
[ +0.000003] usb 1-1: config 1 interface 1 altsetting 0 bulk endpoint 0x4 has invalid maxpacket 64
[ +0.000004] usb 1-1: config 1 interface 1 altsetting 0 bulk endpoint 0x85 has invalid maxpacket 64
[ +0.000003] usb 1-1: config 1 interface 1 altsetting 0 bulk endpoint 0x5 has invalid maxpacket 64
[ +0.000003] usb 1-1: config 1 interface 1 altsetting 0 bulk endpoint 0x86 has invalid maxpacket 64
[ +0.000004] usb 1-1: config 1 interface 1 altsetting 0 bulk endpoint 0x6 has invalid maxpacket 64
[ +0.000422] usb 1-1: New USB device found, idVendor=0c72, idProduct=0011
[ +0.000006] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ +0.000004] usb 1-1: Product: PCAN-USB Pro FD
[ +0.000003] usb 1-1: Manufacturer: PEAK-System Technik GmbH
[ +0.006218] peak_usb 1-1:1.0: PEAK-System PCAN-USB Pro FD v2 fw v2.1.0 (2 channels)
[ +0.000214] peak_usb 1-1:1.0 can0: attached to PCAN-USB Pro FD channel 0 (device 4294967295)
[ +0.000267] peak_usb 1-1:1.0 can1: attached to PCAN-USB Pro FD channel 1 (device 4294967295)
[ +8.171873] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
Code: Select all
$ sudo ip link set can0 up type can bitrate 500000
$ sudo ip link set up can0
Code: Select all
$ cansend can0 740#0300000000000000
Code: Select all
$ candump can0,0:0,#FFFFFFFF -ace
can0 740 [8] 03 00 00 00 00 00 00 00 '........'
can0 20000004 [8] 00 08 00 00 00 00 00 00 ERRORFRAME
controller-problem{tx-error-warning}
can0 20000004 [8] 00 20 00 00 00 00 00 00 ERRORFRAME
controller-problem{tx-error-passive}
however keeping everything the same but using http://www.peak-system.com/PCAN-USB.199.0.html?L=1 instead communication works fine.
also if i plug same hardware configuration into windows and use PCAN-View to send frames communication works fine so i think i am not configuring the network interface correctly for PCAN-USB Pro FD:
Code: Select all
$ sudo ip link set can0 up type can bitrate 500000
$ sudo ip link set up can0
Thanks for any help,
Andrew