Reset PCAN-USB initialized state by software

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
User avatar
eriks
Posts: 14
Joined: Tue 16. Jul 2019, 14:40

Reset PCAN-USB initialized state by software

Post by eriks » Fri 22. Mar 2024, 09:40

There used to be an option in the PeakCPL to reset PCAN-USB: viewtopic.php?f=41&t=2893&p=9996#p9996

But since that is not available anymore I'm wondering how to reset the PCAN-USB now. In the new PEAK Settings I cannot find it.

I'm stuck in PCAN_ERROR_HWINUSE and have to reset the pc now if that happens which is quite annoying.

Regards,
Erik

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Reset PCAN-USB initialized state by software

Post by M.Maidhof » Fri 22. Mar 2024, 09:51

Hi,

there is an option now in PEAK Settings to close "zombi" PCANBasic clients. This option will only be visible when there is a PCANBasic client active:
PEAK-Settings.JPG
PEAK-Settings.JPG (49.28 KiB) Viewed 2893 times
regards

Michael

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 » Fri 22. Mar 2024, 10:03

Hello,

please note following things:
  1. The PEAK-Settings only shows PCAN-Basic "active" connections. If there are none, then you do not see this section in the app.
  2. If you do not see this section in the App, but you cannot connect to the channel, this is mostly because the channel is occupied by another applicaiton (PCAN-View, PCAN-Explorer, or any other applicaiton using the PCAN-Developer a.k.a CanApi2/4)
The PCAN-Basic section in the PEAK-Settings App looks as follow:
Active-Channels.png
Active-Channels.png (31.55 KiB) Viewed 2893 times
Reset-Connection.png
Reset-Connection.png (78.68 KiB) Viewed 2893 times
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 » Fri 22. Mar 2024, 11:44

Ah ok, I see. Indeed when I have an application open that uses pcanbasic I see the option.

Only issue I now have is when I have the PCAN_ERROR_HWINUSE error I don't see that option, although I am only testing our application that uses pcanbasic. Only option is to reset the pc then. I will investigate a bit further.

Thanx for your explanation.

Regards,
Erik

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Reset PCAN-USB initialized state by software

Post by M.Maidhof » Fri 22. Mar 2024, 13:11

Hi,

looks like another application is active (could also using a different API). Do you see PCAN-USB LED flashing in that moment? Do you use codesys or a similar product? Check taskmanager for such applications, and remove the autostart of such apps.

You could also contact us by email (support) to send you a tool to check your PC for installed PCAN files.

regards

Michael

Post Reply