Page 1 of 1

PCAN Exp 6 VIN

Posted: Fri 17. Jun 2022, 21:51
by chevymn1964
Hello, is their a way to make a "symbol" to wait for a request for VIN then transmit the VIN info?
Example( Incoming Data ):

Code: Select all

  can0  7DF   [8]  02 09 02 00 00 00 00 00 - Request VIN - Wait for this...
  can0  7E8   [8]  10 14 49 02 01 33 46 41 - Request response - Send this in response
  can0  7E0   [8]  30 00 00 00 00 00 00 00 - OK to start sending VIN Data - Wait for this...
  can0  7E8   [8]  21 44 50 34 46 4A 32 42 - VIN Packet - Send this
  can0  7E8   [8]  22 4D 31 31 33 39 31 33 - VIN Packet - Send this

Re: PCAN Exp 6 VIN

Posted: Mon 20. Jun 2022, 09:49
by M.Maidhof
Hi,

sorry, but we don't understand your request. Which API or application do you want to use? I can see a SocketCAN dump, but it looks like you want to use a symbol in PCAN-Explorer for Windows, correct?

regards

Michael

Re: PCAN Exp 6 VIN

Posted: Mon 20. Jun 2022, 17:36
by chevymn1964
Hi Michael, thank you for your reply, sorry I am new to PCAN, what I am trying to do is set up PCAN to simulate a ECU and need to set it up to auto reply to a VIN request ( wait for VIN request message then reply with VIN data ) Maybe making a symbol is not what I need, do I need to make a macro or is their another way to set up PCAN to respond to certain messages? Thank you -Ryan

Re: PCAN Exp 6 VIN

Posted: Tue 21. Jun 2022, 08:08
by K.Wagner
Hello,

looking at your CAN data, it seems as you are doing ISO-TP/UDS communication. PCAN-Explorer doesn't support those protocols. However, our devices support them via API (see PCAN-ISO-TP, PCAN-UDS for more information).

The APIs are well documented and come with plenty of sample projects. One of those samples is a "server simulator" that just responses any request received; this can be used as base for an ECU simulator. They are also free of charge and can be used with must popular programming languages like C++, C#, VB.NET.

Even when the use of theses APIs is not trivial and require knowledge about the transport protocols ISO-TP and/or diagnostic protocol UDS, they take care of the segmentation of multi packages, as shown in your CAN data. If you are trying to simulate an ECU, I think the best shot you have is to use the APIs.

Re: PCAN Exp 6 VIN

Posted: Tue 21. Jun 2022, 18:19
by chevymn1964
How do you implement the use of the API??? Very little to no documentation on how to use them.... What software do I use to run them? Is it an add-in for PCAN Explorer?

Re: PCAN Exp 6 VIN

Posted: Wed 22. Jun 2022, 08:16
by K.Wagner
Hello,
chevymn1964 wrote:
Tue 21. Jun 2022, 18:19
How do you implement the use of the API??? Very little to no documentation on how to use them
Sorry, I do not understand this. With the APIs you have:
  • Documentation in PDF format for PCAN-ISO-TP with round about 260 pages.
  • Documentation in PDF format for PCAN-UDS with round about 770 pages.
  • Each API function in both PDFs is well described: Summary, parameter description, return and error codes, and contains sample code in C++, C#, C++/CLR, VB.NET, and Pascal OO.
  • 11 Sample projects for PCAN-ISO-TP in the 5 different program languages mentioned above (this makes 55 different sample projects)
  • 11Sample projects for PCAN-UDS in the 5 different program languages mentioned above (this makes 55 different sample projects)
  • There is a dedicated Forum for PCAN-ISO-TP and another for PCAN-UDS, where you can find futher help on using the APIs.
I wouldn't call this "very little to no documentation".
chevymn1964 wrote:
Tue 21. Jun 2022, 18:19
How do you implement the use of the API???
You need to create your own program, that use the API (Application Programming Interface).
chevymn1964 wrote:
Tue 21. Jun 2022, 18:19
What software do I use to run them?
APIs cannot just be ran. You need to code a program that use them.
chevymn1964 wrote:
Tue 21. Jun 2022, 18:19
Is it an add-in for PCAN Explorer?
I already told you that PCAN-Explorer doesn't support those protocols --> "PCAN-Explorer doesn't support those protocols. However, our devices support them via API"

NOTE: If you do not know how to write a program, for instance, by using C++, or C# programming languages, then just forget the APIs, You need to know how to code in order to use these. If you want more information about what is and how to use an API there is plenty information on the web, for instance https://en.wikipedia.org/wiki/API.