PCAN USB always in use by another software in PCAN View

USB to CAN Interface
Post Reply
ewaldn
Posts: 2
Joined: Tue 6. Jun 2017, 15:39

PCAN USB always in use by another software in PCAN View

Post by ewaldn » Tue 6. Jun 2017, 16:02

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
pcan_view.png (88.82 KiB) Viewed 12008 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

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCAN USB always in use by another software in PCAN View

Post by PEAK-Support » Wed 7. Jun 2017, 09:01

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)
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

ewaldn
Posts: 2
Joined: Tue 6. Jun 2017, 15:39

Re: PCAN USB always in use by another software in PCAN View

Post by ewaldn » Thu 8. Jun 2017, 16:25

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.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCAN USB always in use by another software in PCAN View

Post by PEAK-Support » Thu 8. Jun 2017, 16:38

Thank you for the feedback!
Yes, 3S Software also use our drivers to work with PEAK-System CAN Interfaces in Codesys.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

fabio.parodi@technoleader.it
Posts: 21
Joined: Thu 28. Apr 2022, 14:48

Re: PCAN USB always in use by another software in PCAN View

Post by fabio.parodi@technoleader.it » Thu 9. Mar 2023, 15:48

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.

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

Re: PCAN USB always in use by another software in PCAN View

Post by M.Maidhof » Thu 9. Mar 2023, 16:04

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

fabio.parodi@technoleader.it
Posts: 21
Joined: Thu 28. Apr 2022, 14:48

Re: PCAN USB always in use by another software in PCAN View

Post by fabio.parodi@technoleader.it » Mon 13. Mar 2023, 18:08

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

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

Re: PCAN USB always in use by another software in PCAN View

Post by M.Maidhof » Tue 14. Mar 2023, 09:26

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

Post Reply