Guidance on Viewing and Interacting with CAN Bus Data on Linux

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
Sasikumar
Posts: 4
Joined: Mon 12. Aug 2024, 11:30

Guidance on Viewing and Interacting with CAN Bus Data on Linux

Post by Sasikumar » Mon 12. Aug 2024, 15:41

Dear Team,

1. Viewing CAN Data on a Linux PC(Version details are attached in the attachment for your reference):
How can I view CAN data being sent and received via the CAN bus on a Linux PC? What tools or commands are required, and what steps should I follow to set up and monitor CAN bus communication? I have reviewed the relevant page at PEAK-System's website "https://www.peak-system.com/fileadmin/m ... n-view.php", But found it unhelpful, and it mentioned that the content is NON-FREE. Does this mean a payment is required? I have attached a screenshot for your reference.

2. Sending and Receiving CAN Data Using Python:
How can I send and receive CAN data using a Python script on a Linux PC? What libraries or modules are needed, and what is the process for writing a script that can interact with the CAN bus to monitor data transmission and reception? If Python can work with the CAN bus for monitoring data transmission and reception, please provide a sample Python script and the supporting libraries.

3. Using the PCAN-View Interface:
Even after successful installation, how do I use the PCAN-View interface? Can you provide a user manual or reference video for it?

Thank you advance for your assistance.


Best Regards,
M. SasiKumar
Attachments
Linux_Version_Details.png
Linux_Version_Details.png (12.54 KiB) Viewed 357 times
URL_1.png
URL_1.png (38.12 KiB) Viewed 357 times
URL_2.png
URL_2.png (35.48 KiB) Viewed 357 times

M.Heidemann
Sales & Support
Sales & Support
Posts: 976
Joined: Fri 20. Sep 2019, 13:31

Re: Guidance on Viewing and Interacting with CAN Bus Data on Linux

Post by M.Heidemann » Mon 12. Aug 2024, 16:07

Hello,

1)
There is an extensive documentation available and non-free refers to the fact that a part of the code is closed source, not that it is paid.

Everything one would need to know is clearly stated on the page, including the fact that you'll need to install the chardev-driver variant.

2)
Our free-to-use API PCANBasic is also available for Linux, please refer to the following link:

https://www.peak-system.com/PCAN-Basic.239.0.html?&L=1

3)

If you done so correctly the connected interface should be listed, everything beyond that point should be pretty self explanitory,
if no interface shows up you didn't install the CharDev driver yet.

BR

Marvin
---
Marvin Heidemann
PEAK-Support Team

Sasikumar
Posts: 4
Joined: Mon 12. Aug 2024, 11:30

Request for Remote Assistance to Resolve Ongoing Issue

Post by Sasikumar » Tue 13. Aug 2024, 08:30

Hi Marvin,

Good morning!

Thank you for your immediate response to this issue. I followed the procedure you provided, but I am still facing the same problem.

If possible, could you please use Anydesk or TeamViewer to assist me in resolving this issue?


Thanks and regards,
M. SasiKumar

M.Heidemann
Sales & Support
Sales & Support
Posts: 976
Joined: Fri 20. Sep 2019, 13:31

Re: Guidance on Viewing and Interacting with CAN Bus Data on Linux

Post by M.Heidemann » Tue 13. Aug 2024, 08:39

Hello,

Which "problem" are you facing?

Also, we don't really provide remote support to cover basics,
if we are unable to resolve something any other way we may provide remote assistance,
which is not the case here.

Describe me your problem and we'll go from there.

BR

Marvin
---
Marvin Heidemann
PEAK-Support Team

Sasikumar
Posts: 4
Joined: Mon 12. Aug 2024, 11:30

Re: Guidance on Viewing and Interacting with CAN Bus Data on Linux

Post by Sasikumar » Tue 13. Aug 2024, 14:52

Hello,

Thank you for your response.

I have been following the "PCAN Driver for Linux v8 - User Manual" to set up CAN bus communication on my Linux PC. However, I am encountering an issue that I haven't been able to resolve:

While executing the make command via the terminal, I receive the following error message:

gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’

This error occurs with all the installation commands. Could you please provide guidance on resolving this issue or any additional steps I should consider?

Please find the attached Linux terminal trace for your reference.

Thank you for your assistance.


Best regards,
M. SasiKumar
Attachments
Terminal_trace.pdf
(53.02 KiB) Downloaded 11 times
GCC_Error.png
GCC_Error.png (145.74 KiB) Viewed 325 times

M.Heidemann
Sales & Support
Sales & Support
Posts: 976
Joined: Fri 20. Sep 2019, 13:31

Re: Guidance on Viewing and Interacting with CAN Bus Data on Linux

Post by M.Heidemann » Tue 13. Aug 2024, 14:56

Hello,

Please install GCC-12 and try again.

Best Regards
---
Marvin Heidemann
PEAK-Support Team

Sasikumar
Posts: 4
Joined: Mon 12. Aug 2024, 11:30

Re: Guidance on Viewing and Interacting with CAN Bus Data on Linux

Post by Sasikumar » Tue 13. Aug 2024, 15:14

Hello,

I am using the most up-to-date version of GCC, yet the issue persists. Please find the attached image for your reference, which includes the error message and my current GCC version.


Regards,
M. SasiKumar
Attachments
GCC_Version.png
GCC_Version.png (47.82 KiB) Viewed 323 times

M.Heidemann
Sales & Support
Sales & Support
Posts: 976
Joined: Fri 20. Sep 2019, 13:31

Re: Guidance on Viewing and Interacting with CAN Bus Data on Linux

Post by M.Heidemann » Tue 13. Aug 2024, 15:16

Check your symlink, the compilation clearly uses gcc11
---
Marvin Heidemann
PEAK-Support Team

Post Reply