ISO TP API

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
alexEso
Posts: 6
Joined: Tue 24. Mar 2015, 15:01

ISO TP API

Post by alexEso » Tue 24. Mar 2015, 15:08

Hi

I have a Peak Can USB Interface attached to my Laptop. After struggling the last few days i finally got it to work under Linux and in Eclipse with Java. I now need to implement the ISO TP Standard into my Project. As far as i know, there is a API for Windows Users. Is there an equivalent for Linux (by the way x64) as well? Or am I supposed to implement it by myself?

Thanks for your help!

Best regards

Alex

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: ISO TP API

Post by M.Maidhof » Wed 25. Mar 2015, 14:26

Hi,

there are no ISO-TP libs available for our chardev driver, but when using the socketcan driver (kernel driver or our peak-linux-driver for SocketCAN), the CAN-utils offers ready to use ISO-TP applications:

https://github.com/linux-can/can-utils

best regards

Michael

alexEso
Posts: 6
Joined: Tue 24. Mar 2015, 15:01

Re: ISO TP API

Post by alexEso » Thu 26. Mar 2015, 07:59

Thank you for your quick response.

As aid before, I'm working with Java. Is it possible to include this file into my Java-Project? As i looked through the file i saw that there are only c- or c++-files such as headers and the .cpp files?

Best regards

Alex

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

Re: ISO TP API

Post by PEAK-Support » Thu 26. Mar 2015, 16:03

you mix somthink up...

1. Linux
There are two differnet driver types available
- PEAK-Systems own CharDev - which support also JAVA with our PCAN-Basic for Linux Implementation.
- The SocketCAN driver (community) - we do not know if there is a JAVA JNI available - please google.
As we know there is a ISO-TP support in C/C++ available for SocketCAN, but we do not know if there is a JAVA Interface available. But if you are a SW Developer it should be easy to setup one.

2. Windows
There is the PEAK-System Driver with the PCAN-Light API available (same API as in LINUX)
For the Windows (and ONLY for the Windows API ) we have implemeted a CCP,XCP,ISO-TP, UDS and OBD-II Interface DLLs. But we do not offer this protocoll for free - these HighLayer protocols are part of every PEAK-CAN Hardware and are ONLY for Windows available in binary 32Bit or 64Bit DLL. We do NOT give away any source code of this High Layer protocols. The time to develop and maintanace such protocolls make it impossible to "share" it with competitors :D
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

User avatar
O.Hartkopp
Posts: 40
Joined: Fri 22. Nov 2013, 19:47

Re: ISO TP API

Post by O.Hartkopp » Sat 28. Mar 2015, 19:11

U.Wilhelm wrote: - The SocketCAN driver (community) - we do not know if there is a JAVA JNI available - please google.
As we know there is a ISO-TP support in C/C++ available for SocketCAN, but we do not know if there is a JAVA Interface available.
We had a similar request to work with JAVA and ISO-TP:

You can use the Linux ISO-TP implementation from here:
https://github.com/hartkopp/can-isotp-modules

with the ISO-TP utils from here (Uwe already pointed to it):
https://github.com/linux-can/can-utils

And you can use the socketcand which allows the access to SocketCAN via TCP/IP sockets:
https://github.com/dschanoeh/socketcand

The good thing is that you do not need to create some JNI for SocketCAN and it's only needed to create some ASCII commands sent on TCP/IP sockets to talk ISO-TP on the CAN bus.

If you need more assistance on ISO-TP for Linux feel free to ask on the Linux-CAN mailing list:
linux-can@vger.kernel.org (Mail archive e.g. http://marc.info/?l=linux-can )

Regards,
Oliver

Post Reply