Pcan-settings failed with pci card & driver 8.15.2

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
timf1
Posts: 3
Joined: Thu 8. Dec 2022, 15:37

Pcan-settings failed with pci card & driver 8.15.2

Post by timf1 » Thu 8. Dec 2022, 16:02

Hello,

My configuration is 2 pcie cards “PCAN-PCI Express Dual Channel galv. Isolated” + 1 pci card “PCAN-PCI Dual Channel”.
I use linux driver version 8.15.2
With PCIE card
pcan-settings –f=/dev/pcanpci0 –d
Working on all channels
On PCI card
pcan-settings –f=/dev/pcanpci2 –d
return :
pcan-settings: Failed to get device number (errno=524)
and dmesg retrun :
pcan: _pcan_ioctrl_extra_parameters(): NULL device_params addr

With this error a can’t assign id to the can bus on pci card. I want use assign devid to put can interface into a logical order. actual order is (can4, can5, can0, can1, can2 and can3) :cry:

Any ideas?

M.Maidhof
Support
Support
Posts: 1580
Joined: Wed 22. Sep 2010, 14:00

Re: Pcan-settings failed with pci card & driver 8.15.2

Post by M.Maidhof » Thu 8. Dec 2022, 16:45

Hi,

the older PCAN-PCI cards (IPEH-00206x) don't offer the option to set device IDs. Only PCAN-PCI Express cards offer that option.

regards

Michael

timf1
Posts: 3
Joined: Thu 8. Dec 2022, 15:37

Re: Pcan-settings failed with pci card & driver 8.15.2

Post by timf1 » Thu 8. Dec 2022, 17:15

Ok thanks Mr Maidhof,
but do you see other solution to cross 2 can socket?
I use pcan driver into netdev mode.
Is it possible to set ip socket can0 link to pcan channel 2 and can2 socket to pcan channel 0 ?

Best regards

timf1
Posts: 3
Joined: Thu 8. Dec 2022, 15:37

Re: Pcan-settings failed with pci card & driver 8.15.2

Post by timf1 » Thu 8. Dec 2022, 18:08

I found the solution
Into /etc/modprobe.d/pcan.conf add this line :

Options pcan assign=pcan0:can2,pcan2:can0

thanks Mr Maidhof,

Post Reply