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.