jglim / CaesarSuite

Library and applications to work with Dаіmlеr diagnostics CBF files.
MIT License
125 stars 33 forks source link

Select and deselect J2534 interface #2

Closed N0cynym closed 3 years ago

N0cynym commented 3 years ago

After selecting interface it's possible to change my interface if Diogenes.exe is running.

Problems:

  1. When I exit Diogenes.exe it will not deselect my interface.
  2. My J2534 devices are not working as well as I thought (PCANPT32.dll & AbrPT32.dll). Every single time I'm trying to connect an ecu I have differnt faults from PassThru DLL. Is it possible to give me food for my thoughts?

Thanks for your amazing work!

jglim commented 3 years ago

Hi N0cynym,

Thank you for your report. Regrettably, I do not have a clear answer for you at this time.

My application references an external library, J2534-Sharp, to interact with the PassThru DLL. The library will automatically deselect your interface when the application closes. I have looked through it and I believe that it is unlikely to be the source of the issue.

My existing PassThru device does not have any issues when repeatedly closed and opened. Perhaps if the OpenPort driver does not work for you, there might be some other underlying issue (e.g. missing MSVC runtime?)

N0cynym commented 3 years ago

Ok no problem. Is the J2534 lib sourced from here? I will post my fixes if I have found out why my J2534 libs are having faults.

jglim commented 3 years ago

Yes, specifically from NuGet at https://www.nuget.org/packages/J2534-Sharp/1.0.0-CI00026 . Thanks for taking your time to try out Diogenes.

jglim commented 3 years ago

Added a disconnect feature in https://github.com/jglim/CaesarSuite/commit/061bcfdf01953a0b85dbdd4f9322aac73a4bac87 (Release: https://github.com/jglim/CaesarSuite/releases/tag/v1.4.4 ). Thanks for your patience.