Is it possible to have 2 applications that use PCAN-PassThru to simultaneously use the same PCAN USB device?
I know this would be possible with PCAN-Developer 4...just curious about PassThru
Thanks
Multiple applications using same PCAN USB device
Re: Multiple applications using same PCAN USB device
Hello,
no, this is not possible. Because PCAN-PassThru uses PCAN-Basic for the transport layer, the same restrictions apply, meaning, it doesn't support connecting the same device twice.
no, this is not possible. Because PCAN-PassThru uses PCAN-Basic for the transport layer, the same restrictions apply, meaning, it doesn't support connecting the same device twice.
Best regards,
Keneth
Keneth
Re: Multiple applications using same PCAN USB device
This is a general J2534 issue because J2534 DLL's are not meant to be accessed by more than one process. The API spec says so.
The only workaround is to have one process as the gateway and then have other processes communicate with this process to send the packets.
Most likely you will have to implement your own ISO15765-2 layer as well, if you need it, because most devices do not support simultaneous ISO15765-2 between two or more different nodes, if you need to communicate with multiple nodes of course.
The only workaround is to have one process as the gateway and then have other processes communicate with this process to send the packets.
Most likely you will have to implement your own ISO15765-2 layer as well, if you need it, because most devices do not support simultaneous ISO15765-2 between two or more different nodes, if you need to communicate with multiple nodes of course.
Re: Multiple applications using same PCAN USB device
Yes, this is true. Note nevertheless that the question was more related to the underlying API used for transport communication, CanApi4 that is part of PCAN-Developer 4 (professional API), vs. PCAN-Basic which is used for PCAN-PassThru. So the answer I gave is still correct.
But this is good to mention this restriction in the specifications since not all users are aware of this. Thank you for pointing this out.
Best regards,
Keneth
Keneth