About the peak-linux-driver Test applications

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
ayoub2021
Posts: 2
Joined: Tue 16. Mar 2021, 15:23

About the peak-linux-driver Test applications

Post by ayoub2021 » Tue 16. Mar 2021, 16:28

Hello,

I've successfully installed the peak-CAN driver for linux (ubuntu 14.04) including the Peak-Basic API and also the "pcan-view" , then i plugged a CAN hardware interface into my computer to communicate with some ECU that's running a UDS server and i successfully launched the Test applications (Transmitest and Receivetest)...i expected "Receivetest" to display any CAN frame that exists in the pcan channel after sending a UDS request inside a CAN frame using pcan-view which i got its response visualized on pcan-view after that... but the receivtest didn't display anything ...i want to know if the Test applications need an ISO-TP API to detect the responses frames of the ECU ..just the "CAN frames" (whatever it contains) because i know , these test applications do not implement UDS protocol or ISO-TP protocol to speak clearly about any kind of UDS request/response..so i'll be very thankful if you could describe me what those Tests perform exactly using the pcan driver.

finally i figured out that you've already developed a PCAN-UDS API for Windows platform, are there any plans to extend this compatibility on linux platforms.

Thank you very much !

Ayoub

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

Re: About the peak-linux-driver Test applications

Post by M.Heidemann » Wed 17. Mar 2021, 17:06

Hello,

To confirm:

Are you running PCAN-View and receivetest at the same time?

This will not work as the frames will only be relayed to one application
in this case.

If the frames can be seen in PCAN-View it also can be seen with receivetest, just
not at the same time using the same channel.

As of right now there are no plans to implement the PCAN-UDS API on Linux.

You can however check the possibilites with SocketCAN API and applications based on SocketCAN, which our driver package can also support if you build and install the driver as the NetDev variant
(See the PCAN-Linux documentation chaper 3)

Code: Select all

http://www.peak-system.com/fileadmin/media/linux/files/PCAN-Driver-Linux_UserMan_eng.pdf
Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

ayoub2021
Posts: 2
Joined: Tue 16. Mar 2021, 15:23

Re: About the peak-linux-driver Test applications

Post by ayoub2021 » Wed 17. Mar 2021, 17:28

Hello Marvin,

Thank you very much for your response !

Yes i was running The receivtest and the pcanview in two different terminals in the same time, i've forgotten that i configured the pcan driver in Chaerdev mode which means, if i'm not wrong, only one process application can access to pcan channel.

i moved to the netdev mode and i launched tranmitest ( after adding UDS request can frames in transmit.txt) and i downloaded the candump utility to display the response frames from the ECU and yeah ! i got the response frames displayed by candump:

Code: Select all

ayoub@Lenovo-ideapad:~/Téléchargements/peak-linux-driver-8.11.0/test$ candump can0
  can0  18DAF960   [8]  02 7E 00 FF FF FF FF FF
  can0  18DAF960   [8]  02 50 03 FF FF FF FF FF
  can0  18DAF960   [8]  02 7E 00 FF FF FF FF FF
  can0  18DAF960   [8]  02 50 03 FF FF FF FF FF
Finally i forgot to ask about other thing if you mind :D , are there any plans to develop PCAN ISO-TP API for linux ? and is it possible to adapt PCAN UDS API for windows to linux (so i could try to do it, otherwise i'll look for other solutions)?

And Thank you very much for your help.

Best regards.

Ayoub.

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

Re: About the peak-linux-driver Test applications

Post by M.Heidemann » Thu 18. Mar 2021, 13:11

Hi,

No, currently there are no plans to offer PCAN-UDS / PCAN-ISO TP API for Linux.

Implemention of a ISO-TP / UDS API using PCANBasic from scratch will require extensive knowledge regarding both protocols and will be time consuming. A more fathomable appraoch would be to assess what your application needs to do exactly and implement your own solution based on that.

Although our PCAN-ISO TP / PCAN-UDS APIs are free of charge, they are not open-source and therefore will only be useful as a general reference when implementing your own solution.

For further requests feel free to contact me again.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply