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?
UDS and CANTrace parrallel
-
- Software Development
- Posts: 305
- Joined: Mon 9. Sep 2013, 12:21
Re: UDS and CANTrace parrallel
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).
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
Fabrice