Help with Connecting Two USB-Based PCAN Devices Simultaneously

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
abhishekbolar
Posts: 2
Joined: Mon 20. May 2024, 13:08

Help with Connecting Two USB-Based PCAN Devices Simultaneously

Post by abhishekbolar » Mon 20. May 2024, 13:19

Hello,

I need assistance with connecting and using two different USB-based PCAN devices simultaneously. Both devices are single-channel. I can read and write data using one PCAN device, but I am having trouble figuring out how to use both devices in parallel.

Here are the details of my setup:

Pcan 1 Details
Device ID: 0xab
Part number: IPEH-002021/002022
API version: PCAN_USB 4.4.2.16701
Firmware version: 8.6.1

Pcan 2 Details
Device ID: 0xf1
Part number: IPEH-002021/002022
API version: PCAN_USB 4.4.2.16701
Firmware version: 8.6.1

Programming language: Java (JDK 21)
Using PCAN jars
Could you please guide me on how to achieve this?

Thank you!

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Help with Connecting Two USB-Based PCAN Devices Simultaneously

Post by M.Heidemann » Tue 21. May 2024, 08:55

Hello,

You do the exact same as you would do for the first device, initialize, read, write. Just use the corresponding handle of the second device. If you use two channels you will have to schedule read and write operations between the two. This could be done using events or using threading.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply