Reset PCAN-USB initialized state by software

The free CAN Software API (Application Programming Interface) for Windows®
K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Reset PCAN-USB initialized state by software

Post by K.Wagner » Tue 12. Feb 2019, 12:30

Hello,
paulh3030 wrote:It would be nice if there was a convenient utility allowing one to forcibly free up a connection from "another device".
we have indeed such a tool - it is called PCAN-Status Display. Unfortunately, it is part of the PCAN-Developer package , our professional API, which is not for free.

Nevertheless, to avoid problems like this introduced by third parties in the future, we agreed to implement a kind of "PCAN-Basic Connections clean-up" feature. This is already planned and will be done at some time this year.
Best regards,
Keneth

paulh3030
Posts: 5
Joined: Thu 7. Feb 2019, 16:22

Re: Reset PCAN-USB initialized state by software

Post by paulh3030 » Wed 13. Feb 2019, 16:49

Thank you Keneth. That is very good to know. I have much appreciated your prompt and helpful responses.

Willaume
Posts: 2
Joined: Fri 24. May 2019, 11:01

Re: Reset PCAN-USB initialized state by software

Post by Willaume » Fri 24. May 2019, 11:07

Hello,
I figured out the same issue. This also happen when I unplug the PCAN-USB. When it happens, I close properly the connection with CAN_Uninitialize which returns 0x00 as expected.
Then I plug again the PCAN-USB, launch my application and when I call CAN_Initialize, the return is PCAN_ERROR_ILLHW. The only way I have is to restart my computer.

Willaume
Posts: 2
Joined: Fri 24. May 2019, 11:01

Re: Reset PCAN-USB initialized state by software

Post by Willaume » Mon 27. May 2019, 10:33

Hello,
Do you know when this PCAN-Basic Connections clean-up feature is planned to be implemented exactly?
It would be very helpful for us.
Thansk a lot

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

Re: Reset PCAN-USB initialized state by software

Post by K.Wagner » Mon 27. May 2019, 11:12

Hello,
Willaume wrote:This also happen when I unplug the PCAN-USB. When it happens, I close properly the connection with CAN_Uninitialize which returns 0x00 as expected.
Then I plug again the PCAN-USB, launch my application and when I call CAN_Initialize, the return is PCAN_ERROR_ILLHW. The only way I have is to restart my computer.
Please note that this is a different behavior as described in this post. The error returned when a channel connection is not freed and you try to initialize it again is ERROR_INITIALIZE. Note that PCAN-Basic cannot initializes channels twice. ILLHANDLE (ILLHW, ILLNET, ILLCLIENT) is returned when you try to establish a connection to a channel that is not present at all, for instance, you have only one PCAN-USB channel, but you try to connect PCAN_USBBUS3. ILLHANDLE can also occur when the channel is already connected to a PEAK application (PCAN-View. PCAN-Explorer or any other) but with different baud rate as the one issued over Initialize()

Please describe your situation i.e. environment better. Os version, platform, device type, applications used and how they are connected. It would be not wrong to create another topic for this.
Willaume wrote:Do you know when this PCAN-Basic Connections clean-up feature is planned to be implemented exactly?
We have already a release candidate of the PeakCpl (Control Panel applet) that implements this. I unfortunately don't have any release date for this, but it should be delivered with the next drivers release. This could occur in the next 4 weeks.
Best regards,
Keneth

User avatar
eriks
Posts: 14
Joined: Tue 16. Jul 2019, 14:40

Re: Reset PCAN-USB initialized state by software

Post by eriks » Tue 16. Jul 2019, 14:42

Any news when this will be released?

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

Re: Reset PCAN-USB initialized state by software

Post by K.Wagner » Wed 17. Jul 2019, 12:55

Hello,

As before, I cannot give any release date, just that this is planned to be released with the next drivers version. Due to some last minute changes, this is still not happened.
Best regards,
Keneth

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

Re: Reset PCAN-USB initialized state by software

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

Hello,

with the last version of our PeakCpl, Windows Control Panel Applet, there is now the possibility to reset abandoned PCAN-Basic connections. 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