Hello,
You are right, i had it wrong.
I have talked to our Linux-Development team and there was a misconception on my end
on how this is handled on CharDev, i am really sorry.
The device-id is given per channel, not device. The Linux driver does handle this differently
than the Windows driver does, you channel assigment was correct.
Please disregard what i said regarding the device-ids, i mixed things up.
The assign-parameter is not used with the CharDev-driver as the Udev rules will create
additional symbolic links for each device (channel) based on the device ID. For example
if the device-id for a channels was set to 1 this link will be created, which will
be a reference to the channel given this device-ID:
So after setting the device-id and loading the driver you can access the
device with your application using this link for each channel with the corresponding devid.
This also mentioned in the PCAN-Linux driver documentation on page 16:
http://www.peak-system.com/fileadmin/me ... an_eng.pdf
You can test this by using the channel with for example receivetest:
Code: Select all
receivetest -f=/dev/pcan-pcie_fd/devid\=1
Please excuse the misconception on my end.
Best Regards
Marvin