How to purge a UDS library

A free API for the communication with control devices according to UDS (ISO 14229-1)
Locked
Cappo
Posts: 14
Joined: Wed 19. Dec 2018, 14:19

How to purge a UDS library

Post by Cappo » Tue 30. Jul 2019, 14:53

Hello,

in debug mode when I close debug without disconnect the device the second times I can't recconnect but I need to restart user login. How can I kill the process?

example:
1)
TPUDSStatus status;
status = UDSApi.Initialize(channel, TPUDSBaudrate.PUDS_BAUD_250K,0,0,0);
status -> TPUDSStatus.PUDS_ERROR_OK
2) stop debug
3)
TPUDSStatus status;
status = UDSApi.Initialize(channel, TPUDSBaudrate.PUDS_BAUD_250K,0,0,0);
status -> TPUDSStatus.PUDS_ERROR_ALREADY_INITIALIZED

Best Regards
Cappo

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

Re: How to purge a UDS library

Post by K.Wagner » Wed 31. Jul 2019, 11:23

Hello,

This problem is described in the topic CAN_initialize failing after 'Stop Debugging' in VS 2015

When you finish debugging without closing the UDS connection, the underlying PCAN-Basic connection remains active. This is actually caught and removed from the device driver, though after some updates of Visual Studio and Windows this worked not more accurately. The problem was introduced with Windows 10, Version 1803. Older Windows versions and the newest don't have this problem.
Best regards,
Keneth

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

Re: How to purge a UDS library

Post by K.Wagner » Wed 21. Aug 2019, 10:42

Hello,

with the last version of our PeakCpl, Windows Control Panel Applet, there is now the possibility to reset abandoned PCAN-Basic connections (transport layer of UDS). You will see a PCAN-Basic tab if there are active PCAN-Basic connections. In this way you will don't need to reboot or install updates.

Closed
Best regards,
Keneth

Locked