How to start PCAN-View software in Linux

This forum covers PCAN-Linux and Linux development issues concerning our products
Locked
herilin
Posts: 4
Joined: Thu 14. Dec 2023, 23:42

How to start PCAN-View software in Linux

Post by herilin » Thu 14. Dec 2023, 23:50

Hi, there

I've installed the pcanview-ncurses based on this link:

w_w_w.peak-system.com/fileadmin/media/linux/index.htm

Yet, what command should I use to kick start the pcan-view software ?

I am using the Ubuntu 22.04.1.

Thanks.
-Herilin

** ADMIN - Moved complete Topic to LINUX **

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: How to start pcan-vew software in Linux

Post by PEAK-Support » Fri 15. Dec 2023, 08:00

PCAN-View for Linux need a CharDev Driver installed - as you do not give any feedback of used setup - it´s hard to help you...
But all is very well documented in the Linux driver Documentation from our WEB Page.
System requirements: This software requires the chardev driver. Please use the Driver Package for Proprietary Purposes.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

herilin
Posts: 4
Joined: Thu 14. Dec 2023, 23:42

Re: How to start pcan-vew software in Linux

Post by herilin » Fri 15. Dec 2023, 22:06

Hi, there

Thank you very much for replying.

So I downloaded the Deiver Package: peak-linux-driver-8.16.0, extracted it and do "make clean", "make".

and received an error message.
Screenshot Comipler error.png
Screenshot Comipler error.png (234.18 KiB) Viewed 7967 times
The command: "make netdev" also returned similar error messages.

I couldn't figure out what was missing. Can you take a look, and figure out what went wrong ?

Thank you.

Regards,
Eric

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: How to start PCAN-View software in Linux

Post by PEAK-Support » Sun 17. Dec 2023, 15:02

Please follow the documentation STEP by STEP. If your system is up to date, all needed Header files are available it will work.
If you get a error,try to understand what exact is the error meaning.
Without having a deeper look into you code (by the way, why post a picture? why not post as code - see forum rules) it is hart to see what is missing on your system.
Try to install the build essentials to be sure you have all needed tools to compile also the c++ files (g++)

Code: Select all

apt-get install build-essential
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

herilin
Posts: 4
Joined: Thu 14. Dec 2023, 23:42

Re: How to start PCAN-View software in Linux

Post by herilin » Mon 18. Dec 2023, 20:51

Hi, there

After installing build-essential and libpopt-dev software, the "make" was successful, so as the "make install".

Then, following chapter 4 of the user manual: "PCAN Driver for Linux v8 - User Manual"

I executed "sudo modprobe pcan" followed by the command "sudo dmesg | grep pcan"

The "sudo modprobe pcan" command simply returns the prompt. The "sudo dmesg | grep pcan" shows the following:
Screenshot 2023-12-18 at 11.44.52 AM.png
Screenshot 2023-12-18 at 11.44.52 AM.png (62.88 KiB) Viewed 7655 times
So the questions now are:

1. is everything related to pcan working properly now ?
2. Going back to the first message I posted in this thread, how should I start the pcan-view GUI ?

By the way, I was not writing any code, but simply following the README to build and install the package peak-linux-driver-8.16.0.

Thank you.

Herilin

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: How to start PCAN-View software in Linux

Post by PEAK-Support » Mon 18. Dec 2023, 21:43

Check this post
viewtopic.php?f=59&t=6585

The PCAN-View could be start as every normal Linux Application. There is nothing special, if the CharDev driver and the lib was successfully installed up in front.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

herilin
Posts: 4
Joined: Thu 14. Dec 2023, 23:42

Re: How to start PCAN-View software in Linux

Post by herilin » Mon 18. Dec 2023, 22:06

What is the command to start pcan-view GUI ? I've tried pcan-view, pcan, etc., and none of them works.

For every normal LInux application, I start them in the command line interface by entering their command names and press enter. Is that what you were trying to teach me ?

Maybe it is not a bad idea to add a few line in the README to show the users how to start the program after installing them. It might save you some time answering questions in the forum.

I didn't receive any message from the command "sudo modprobe pcan". Does this mean that the driver has not been installed properly ?

Did you find anything wrong from the output of "sudo dmesg | grep pcan" ?

herilin

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: How to start PCAN-View software in Linux

Post by PEAK-Support » Mon 18. Dec 2023, 22:15

Sorry - there is no need for more documentation.
If you use Linux and do not know how to run a executable we could not help … Check if the Bios Option is set valid, see my first information in the last post.
Thousends of users use the driver and the API / Tools. So we will stop this here in the public forum. If you need more support contact the customer support by email.

BTW: pcanview is a binary - stored in the /bin folder of the System. And so it could be start like any other application...by the application name.

Topic locked
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Locked