UDS and CANTrace parrallel

A free API for the communication with control devices according to UDS (ISO 14229-1)
Post Reply
Rommel
Posts: 10
Joined: Sat 11. Jan 2025, 10:08

UDS and CANTrace parrallel

Post by Rommel » Mon 13. Jan 2025, 19:13

for my understanding:

for CANTraces I have to Initialize stsResult = PCANBasic.Initialize(m_PcanHandle, m_Baudrate) a Basic TPCANHandle.

for UDS I have to Initialize status = UDSApi.Initialize_2013(tp_handle, cantp_baudrate.PCANTP_BAUDRATE_500K); a UDS cantp_handle.

Both parrallel is not possible. Is there a possibitity to have a UDS Function and a can trace function at once.

So that I can display the can trafic and use the UDS function on one Peakdevice?

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

Re: UDS and CANTrace parrallel

Post by F.Vergnaud » Tue 14. Jan 2025, 09:01

Hello,

You can use all PCANBasic or PCAN-ISO-TP parameters with UDSApi.SetValue(...) and GetValue(...).
So after initializing with UDSApi.Initialize_2013(..), you can call UDSApi.SetValue(...) with PCAN_TRACE_xxx parameters (you just need to cast the parameter to a uds_parameter).
Best regards,
Fabrice

Post Reply