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 !
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
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  02 7E 00 FF FF FF FF FF can0 18DAF960  02 50 03 FF FF FF FF FF can0 18DAF960  02 7E 00 FF FF FF FF FF can0 18DAF960  02 50 03 FF FF FF FF FF
And Thank you very much for your help.
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.