Page 1 of 1

PCAN-View with RTCAN problem

Posted: Mon 20. Apr 2020, 05:06
by jay16814
Hi, PEAK-system team:

Here is my question. I want to know PCAN-View Linux software if is support on rtcan.

Please also check my system environments.
  • Ubuntu: 18.04
  • Linux kernel: 4.9.90
  • Xenomai:3.0.9
  • Device interface: PCAN-miniPCIe Single Channel
My system.jpg
My system.jpg (58 KiB) Viewed 2720 times

PCAN-View not recognizing rtcan0.
PCAN-View.png
PCAN-View.png (19.94 KiB) Viewed 2720 times

Any ideas?
Thank you! :D

Re: PCAN-View with RTCAN problem

Posted: Mon 20. Apr 2020, 09:29
by S.Grosjean
Hi,

You're mixing several things:
  1. the xeno_can_peak_pci which is the Xenomai embedded RT driver that proposes the RT-socket-CAN interface
  2. the peak-linux-driver (aka pcan driver) that proposes a proprietary interface based on the RTDM one
If the xeno-can-peak-pci driver runs then it handles the PEAK mini PCIe board. That's the explanation why the "pcan" driver doesn't see any card. If you wanted that the mini PCIe board be handled by the pcan driver, then you'll should have first to remove the xeno-can-peak-pci driver:

Code: Select all

$ sudo rmmod pcan
$ sudo rmmod xeno_can_peak_pci
$ sudo modprobe pcan
PCAN-View ncurses version runs over the peak-linux-driver (aka pcan), therefore it can't run over the socket-CAN nor over the RT-socket-CAN API.
Finally, in any case, PCAN-View is able to run as a RT task because NCurses is not able to. If you'd like to run a RT task over the pcan driver, then run (for example) the test/pcanfdtst RT application you'll find in the peak-linux-driver-x.y.z directory.

Regards,