Page 1 of 1
PCAN USB always in use by another software in PCAN View
Posted: Tue 6. Jun 2017, 16:02
by ewaldn
Hi,
I'm facing the problem, that no matter which PCAN USB device I use, PCAN View states, that the hardware is used by another software and the baudrate cannot be changed.
What I tried so far:
- Disconnect and reconnect PCAN USB
- Tried with two other devices
- Restarted whole PC
- Reinstalled drivers and PCAN view
My current setup:
- Windows 7 Enterprise
- PCAN View 4.1.2.481
- Firmware: 2.8
- Driver: 4.1.2
I added a screenshot of the dialog and the application window:

- pcan_view.png (88.82 KiB) Viewed 12011 times
I receive this message with ID 0x82 after connecting to the device with 500k - don't know if it's something internally or from this mysterious application connected.
Is it possible to retrieve the possible software using the hardware - or is it a known issue?
BR,
Ewald
Re: PCAN USB always in use by another software in PCAN View
Posted: Wed 7. Jun 2017, 09:01
by PEAK-Support
if one SW Toll have connected to the CAN Hardware, it init the CAN System with a defined Baudrate.
A second application could not change this baudrate - alsways the first connected SW Tool have this right to change baudrate. If you send us a email to support[at]peak-system.com we could send you a Tool that shows you which Software use the CAN Hardware (in your case it is a Tool that you do not know? Check your PC what it could be)
Re: PCAN USB always in use by another software in PCAN View
Posted: Thu 8. Jun 2017, 16:25
by ewaldn
I was able to solve the problem - it was a combination of the virtual can driver installed within the PEAK driver installer and the 3S CoDeSys gateway service.
Re: PCAN USB always in use by another software in PCAN View
Posted: Thu 8. Jun 2017, 16:38
by PEAK-Support
Thank you for the feedback!
Yes, 3S Software also use our drivers to work with PEAK-System CAN Interfaces in Codesys.
Re: PCAN USB always in use by another software in PCAN View
Posted: Thu 9. Mar 2023, 15:48
by fabio.parodi@technoleader.it
Hello
I think I have the same problem here. When the codesys gateway is using the CAN-USB interface, function UDSApi.Initialize_2013 returns Peak.Can.Uds.uds_status.PUDS_STATUS_NOT_INITIALIZED.
Other applications are able to work with the gateway (e.g., pcanview), so there may be a way to open the interface in parallel with the gateway.
Re: PCAN USB always in use by another software in PCAN View
Posted: Thu 9. Mar 2023, 16:04
by M.Maidhof
Hello,
yes, while the API of the PCAN-Developer package is able to handle multiple clients on one PCAN hardware, the PCANBasic API has a restriction to only work with one application per CAN channel. If one channel is already occupied by codesys, you have to close codesys to use this channel with PCANBasic API (PCAN-UDS API) or use an application based on the PCAN-Developer API to work in parallel to the codesys application on the same PCAN network.
regards
Michael
Re: PCAN USB always in use by another software in PCAN View
Posted: Mon 13. Mar 2023, 18:08
by fabio.parodi@technoleader.it
OK.
I understand that PCAN-UDS is using the PCANBasic API to talk with the driver.
Question: is it possible to use the PCAN-Developer API instead?
Fabio
Re: PCAN USB always in use by another software in PCAN View
Posted: Tue 14. Mar 2023, 09:26
by M.Maidhof
Hi,
the PCAN-UDS API always uses the underlying PCANBasic API for communication. So the PCAN-Developer API will not help when you still want to use the PCAN-UDS API with your application. If you don't want to use the PCAN-UDS API, you can use the PCAN-Develoepr API to work in parallel with codesys on the same CAN channel at the same time (like you can do it with PCAN-View, which is also based on the PCAN-Developer API).
regards
Michael