PUDS_MSGPROTOCOL_ISO_15765_2_29B_FIXED_NORMAL addresing conf

A free API for the communication with control devices according to UDS (ISO 14229-1)
K.Wagner
Software Development
Software Development
Posts: 796
Joined: Wed 22. Sep 2010, 13:36

Re: PUDS_MSGPROTOCOL_ISO_15765_2_29B_FIXED_NORMAL addresing conf

Post by K.Wagner » Wed 15. Sep 2021, 08:52

Dear,

please consider first to load and compile one of the samples that are comming with the UDS package. It seems that either you have enough knowledge about UDS, nor about the API nor about using the programming language that you have choose. Nevertheless, I will try to answer your questions:
  1. In that UDS_Initialize_2013 API using only 2 parameter. when we are trying to use error C2198: 'UDS_Initialize_2013': too few arguments for call?
    --> The function actually needs 5 parameters, but the last 3 have default values. Note that the sample in the documentation is for "C++". If you are using C, then you need to specify all values since the language "C" does not support default value initialization for parameters. See the function declaration in page 508.
  2. As request configuration as mentioned below, we are getting error for initialization. error code 01?
    --> Which PCAN device are you using? PCAN-USB? PCAN-PCI? Check the IPEH number located in the label on your product. If you have a valid PEAK adapter and this is attached to the PC, and the drivers are loaded, and if it is still not connected by any other application then the call to the function must just work. ERROR_NOT_INITIALIZED just says that the given handle coult not be initialized because it is not present on your system.
  3. Why 3rd parameter of UDS_Initialize_2013 (cantp_hwtype) API 0 indicate PCANTP_HWTYPE_ISA but we are using PLUG and PLAY device USB?
    --> Same as in 1. The parameter just defaults to 0.
Please note that UDS is not a trivial API. We really encourage our customers to first study the manual, and the UDS specifications, then to load any sample application and to understand what it does. Be sure you can get your device connected before trying to initialize it with the API. For this, the most simple way is just to start the PCAN-View application (it is installed along with the drivers) and see if you can get your device connected. If this is so, any UDS-Sample will get connected too.

Please understand that we do not give support for the protocols (ISO-TP, UDS) or for the programming languages. The scope of our support cover only API usage. My colleage gave you already several answers, and mostly of them (when not all of them) are in the manual and in the sample applications already covered.

If you cannot connect your device with PCAN-View, let us know. We will be glad to help you configuring the device on your PC.
Best regards,
Keneth

Shail
Posts: 40
Joined: Tue 28. Apr 2020, 10:09

Re: PUDS_MSGPROTOCOL_ISO_15765_2_29B_FIXED_NORMAL addresing conf

Post by Shail » Wed 15. Sep 2021, 15:44

Hello,

As communicated earlier, For your information PCAN USB hardware details,

Which PCAN device are you using? PCAN-USB? PCAN-PCI?
Ans : We are using PCAN-USB 1 IPEH-002021 hardware.
https://www.peak-system.com/PCAN-USB.199.0.html?&L=1

PCAN View
PCAN_USB 4.0.18.15889
(KMDF, WLH_amd64)
Copyright (C) 1995-2015 by
PEAK-System Technik GmbH, Darmstadt

1) Same initialization API working with older version of V1.0.0 and status ok. But only incase of V2.1.1 we are facing problem. Which driver are mentioning ? Can u tell me where to download driver? or PCAN view also ?

K.Wagner
Software Development
Software Development
Posts: 796
Joined: Wed 22. Sep 2010, 13:36

Re: PUDS_MSGPROTOCOL_ISO_15765_2_29B_FIXED_NORMAL addresing conf

Post by K.Wagner » Wed 15. Sep 2021, 16:55

Hello,

drivers, PCAN-Basic API, and PCAN-View are installed using the PEAK-Drivers Setup, which can be downloaded here
Best regards,
Keneth

F.Vergnaud
Software Development
Software Development
Posts: 193
Joined: Mon 9. Sep 2013, 12:21

Re: PUDS_MSGPROTOCOL_ISO_15765_2_29B_FIXED_NORMAL addresing conf

Post by F.Vergnaud » Wed 15. Sep 2021, 17:06

Also please note that PCAN-UDS v2.x requires the latest version of PCAN-ISO-TP (v3.x).
Best regards,
Fabrice

Shail
Posts: 40
Joined: Tue 28. Apr 2020, 10:09

Re: PUDS_MSGPROTOCOL_ISO_15765_2_29B_FIXED_NORMAL addresing conf

Post by Shail » Mon 20. Sep 2021, 10:01

Hello,

Thanks a lot.

We identified it was driver problem. We have not install driver since we are using older driver version.
After updating driver it's working now.

Thanks !!

K.Wagner
Software Development
Software Development
Posts: 796
Joined: Wed 22. Sep 2010, 13:36

Re: PUDS_MSGPROTOCOL_ISO_15765_2_29B_FIXED_NORMAL addresing conf

Post by K.Wagner » Mon 20. Sep 2021, 11:05

Thanks for the feedback. Closed!
Best regards,
Keneth

Locked