This forum covers PCAN-Linux and Linux development issues concerning our products
-
phammer
- Posts: 2
- Joined: Tue 8. Sep 2020, 20:17
Post
by phammer » Tue 8. Sep 2020, 22:30
I am using a mini PCIe FD card and am having a read timing bug.
Generating periodic test traffic on my bus a 1Khz but when I read the frames in userspace using the socket can api, the frames arrive two at a time every 2ms. I used the socket control message to check the timestamp which shows the correct timing of every 1ms.
My system config:
Linux 4.14.52 w RT-preempt
Ubuntu 18.04.1 LTS
peak-linux-driver-8.10.2
Possibly related: I tried enabling msi with modprob but was unable to get the resulting irqs to change
Code: Select all
modprobe pcan options pcan fdusemsi=1
-
S.Grosjean
- Software Development

- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Post
by S.Grosjean » Wed 9. Sep 2020, 09:09
Hi,
It's not possible to pass module parameters via the modprobe command (see modprobe --help). Use /etc/modprobe.d/pcan.conf instead.
Try to add the below line to "/etc/modprobe.d/pcan.conf":
"fdirqtl" pcan module parameter control the maximum delay of IRQ notification (default is 10).
if you also want to use the MSI mode, type:
Then, remove and reload the pcan module with:
Code: Select all
$ sudo rmmod pcan
$ sudo modprobe pcan
Regards,
— Stéphane
-
phammer
- Posts: 2
- Joined: Tue 8. Sep 2020, 20:17
Post
by phammer » Wed 9. Sep 2020, 20:29
Thank you very much for the support! Adding fdirqtl=5 seems to have solved my issue.
I would suggest you add/document that option in section 3.3 of the PCAN-Driver-Linux_UserMan_eng.pdf