How to create Trace files using PCAN UDS api

A free API for the communication with control devices according to UDS (ISO 14229-1)
Post Reply
Thanveer
Posts: 1
Joined: Thu 26. Nov 2020, 13:44

How to create Trace files using PCAN UDS api

Post by Thanveer » Thu 26. Nov 2020, 13:49

I am using PCAN UDS API for creating a windows based tool in one of my projects and I would like to generate a trace file, like the one is generated in the PCAN tool, for our tool. Is there some API which I can use inorder to create this trace file?

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

Re: How to create Trace files using PCAN UDS api

Post by K.Wagner » Thu 26. Nov 2020, 14:24

Hello,

since UDS is based on PCAN-Basic, you can use this API to start a tracing operation. You will then get a PCAN-Trace file like those generated by PCAN-View. For this you need to call the PCAN-Basic function CAN_SetValue with the UDS handle you have initialized, to set the parameter PCAN_TRACE_STATUS to On.

More information can be found in the "PCAN Parameters documentation" of PCAN-Basic.
Best regards,
Keneth

Post Reply