Shuffling network can names on restart - Ubuntu 14.04
Posted: Fri 7. Apr 2017, 22:41
I have 5 peak pcan fd's and am having issues with network can names getting changed around when I restart. This is causing problems because from reboot to reboot, I never know if can42 will still point to the same pcan device. I don't want to make it sound like it shuffles around every time I reboot, but sometimes (like today) it does.
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Dec 6 2016 22:26:10 --------------
*---------------------------- [mod] [usb] [net] -----------------------------
*--------------------- 10 interfaces @ major 241 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
33 usbpfd can34 ffffffff 034 0x001c 00000039 00000000 00000065 00000000 0x0000
^^^ I would expect *n=33 translate into ndev=can33 *not* can34. It's almost as if it's using the irq
34 usbpfd can35 ffffffff 035 0x001c 00000000 00000000 00000000 00000000 0x0000
35 usbpfd can30 ffffffff 030 0x001c 00000000 00000000 00000000 00000000 0x0000
36 usbpfd can31 ffffffff 031 0x001c 00000000 00000000 00000000 00000000 0x0000
37 usbpfd can37 ffffffff 037 0x001c 00000000 00000000 00000000 00000000 0x0000
38 usbpfd can38 ffffffff 038 0x001c 00000000 00000000 00000000 00000000 0x0000
39 usbpfd can32 ffffffff 032 0x001c 00000000 00000000 00000000 00000000 0x0000
40 usbpfd can33 ffffffff 033 0x001c 00000000 00000000 00000000 00000000 0x0000
41 usbpfd can36 ffffffff 036 0x001c 00000000 00000000 00000000 00000000 0x0000
42 usbpfd can42 ffffffff 042 0x001c 00000000 00000000 00000000 00000000 0x0000
I was hoping that for each pcan, I could:
1. assign a non volatile id
2. have the can suffix use this id.
Ubuntu 14.04. Any advice appreciated.
Regards.
M
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Dec 6 2016 22:26:10 --------------
*---------------------------- [mod] [usb] [net] -----------------------------
*--------------------- 10 interfaces @ major 241 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
33 usbpfd can34 ffffffff 034 0x001c 00000039 00000000 00000065 00000000 0x0000
^^^ I would expect *n=33 translate into ndev=can33 *not* can34. It's almost as if it's using the irq
34 usbpfd can35 ffffffff 035 0x001c 00000000 00000000 00000000 00000000 0x0000
35 usbpfd can30 ffffffff 030 0x001c 00000000 00000000 00000000 00000000 0x0000
36 usbpfd can31 ffffffff 031 0x001c 00000000 00000000 00000000 00000000 0x0000
37 usbpfd can37 ffffffff 037 0x001c 00000000 00000000 00000000 00000000 0x0000
38 usbpfd can38 ffffffff 038 0x001c 00000000 00000000 00000000 00000000 0x0000
39 usbpfd can32 ffffffff 032 0x001c 00000000 00000000 00000000 00000000 0x0000
40 usbpfd can33 ffffffff 033 0x001c 00000000 00000000 00000000 00000000 0x0000
41 usbpfd can36 ffffffff 036 0x001c 00000000 00000000 00000000 00000000 0x0000
42 usbpfd can42 ffffffff 042 0x001c 00000000 00000000 00000000 00000000 0x0000
I was hoping that for each pcan, I could:
1. assign a non volatile id
2. have the can suffix use this id.
Ubuntu 14.04. Any advice appreciated.
Regards.
M