RTNETLINK answers: Operation not supported for listen-only
Posted: Mon 10. Apr 2017, 21:30
Hello,
I'm getting an error when trying to put one of the PCAN adapters into listen-only mode:
Here's what I've don:
- loaded the Peak Linux drivers 8.3.1, compiled for "netdev" mode
- Used "pcan-settings -f=/dev/pcanusb# -d 42"
- edited the /etc/modprobe.d/pcan.conf file options to "options pcan assign=devid"
Here is my /proc/pcan file:
After rebooting, I can now use "ip link" to set the bitrate:
However, I cannot put the PCAN-USB into listen only mode:
I've seen in a different message that "ip link" is only supported in the default LINUX driver, not the custom Peak driver. I need the Peak driver for the unique device ids. How would you recommend I put the device into listen-only mode for sniffing the CAN bus? Will I have to use "chardev" mode with the pcanfd_init() function?
Thanks for your time,
Tim
I'm getting an error when trying to put one of the PCAN adapters into listen-only mode:
Here's what I've don:
- loaded the Peak Linux drivers 8.3.1, compiled for "netdev" mode
- Used "pcan-settings -f=/dev/pcanusb# -d 42"
- edited the /etc/modprobe.d/pcan.conf file options to "options pcan assign=devid"
Here is my /proc/pcan file:
Code: Select all
*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20170214_n (8.3.1) Apr 10 2017 12:11:37 --------------
*---------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] [net] -----------
*--------------------- 3 interfaces @ major 245 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb can42 ffffffff 042 0x001c 00000000 00000000 00000000 00000000 0x0000
33 usbfd can45 ffffffff 045 0x001c 00000000 00000000 00000000 00000000 0x0000
34 usbfd can46 ffffffff 046 0x001c 00000000 00000000 00000000 00000000 0x0000
Code: Select all
root@vulcan-slicer-2:/etc/modprobe.d# ip link set can42 type can bitrate 1000000
Code: Select all
root@vulcan-slicer-2:/etc/modprobe.d# ip link set can42 type can listen-only on
RTNETLINK answers: Operation not supported
Thanks for your time,
Tim