PCAN-View with RTCAN problem

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
jay16814
Posts: 1
Joined: Mon 20. Apr 2020, 04:06

PCAN-View with RTCAN problem

Post by jay16814 » Mon 20. Apr 2020, 05:06

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 2717 times

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

Any ideas?
Thank you! :D

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: PCAN-View with RTCAN problem

Post by S.Grosjean » Mon 20. Apr 2020, 09:29

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,
— Stéphane

Post Reply