My software connect to multiple net simultaneously.
4 net on PCAN_PCI driver and 1 net on PCAN-VIRTUAL.
I'm able to open all the connection without any error by doing call to CAN_SetDeviceName.
But if I connect to the virtual driver last I'm not able to read/write/remove client from the PCA_PCI driver.
My understanding was that once the connection to a net was established no need to switch between driver. Is that different? Do I have to switch between driver according to the network? How does PCAN_Status manage multiple connection on multiple driver?
How to manage such scenario?
please note, that you switch the canapi2.dll to a different device with that CAN_SetDeviceName API call. All handles (client-, hardware-, net-handles) which you already configured on the one device will not be available on the other device. All handles will be managed by the device driver, and not by the dll.
So you have to call CAN_SetDeviceName on each API call, when you want to use two different devices at the same time (Virtual and PCI).