Page 1 of 1

UDS and CANTrace parrallel

Posted: Mon 13. Jan 2025, 19:13
by Rommel
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?

Re: UDS and CANTrace parrallel

Posted: Tue 14. Jan 2025, 09:01
by F.Vergnaud
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).