Virtual PCAN-Gateway will not detect PCAN Ethernet Gateway
Posted: Sun 9. Jul 2017, 09:53
Hello everybody
?? Virtual PCAN Gateway will not detect PCAN Ethernet Gateway that comes online after Windows coldstart ??
In a pipe organ application a PCAN Ethernet Gateway DR (S/N 185, 2.6.0) is placed in the organ and the Virtual PCAN-Gateway (PCAN_LAN.sys 4.1.2.16115, PCAN-VIRTUAL.sys 4.1.2.16115) runnning on an embedded pc (windows embedded standard 7, other windows 7 pcs for testing purposes) in the detached console where the player sits.
Both systems have to be connected every time manually by a simple LAN cable not using any switching device inbetween (No wireless device admitted in the concert hall, stringent realtime CAN-Frame transmission required in the ms range).
The system works well if the PCAN Ethernet Gateway DR is powered up first, wait and then the ipc is powered up, the Virtual PCAN-Gateway driver loads and the application using PCANBASIC communicates normally.
Sometimes however, people switch on the application and no cable is present or the organ was not switched on.
The ipc application initialisation will then give the correct error code "0x1400 no driver" (and routes in the Virtual PCAN-Gateway would be yellow, of course).
If the PCAN Ethernet Gateway comes online after the startup of the IPC, the Virtual PCAN-Gateway will never refresh and detect this now correct situation.
The only solution so far with my state of knowledge is to tell the user to reboot the system (which takes 1m20s). Users to not accept this.
Question: How is it possible to tell the Virtual PCAN-Gateway driver programmatically that it should redetect connected devices and therefore "switch its routes to green" such that the application could connect to the remote PCAN Ethernet gateway?
Note: This is a client/server application with no manual access possiblity from the user to the ipc windows. Any job would have to be carried out programmatically by the ipc server application.
Thank you very much,
Daniel Debrunner
?? Virtual PCAN Gateway will not detect PCAN Ethernet Gateway that comes online after Windows coldstart ??
In a pipe organ application a PCAN Ethernet Gateway DR (S/N 185, 2.6.0) is placed in the organ and the Virtual PCAN-Gateway (PCAN_LAN.sys 4.1.2.16115, PCAN-VIRTUAL.sys 4.1.2.16115) runnning on an embedded pc (windows embedded standard 7, other windows 7 pcs for testing purposes) in the detached console where the player sits.
Both systems have to be connected every time manually by a simple LAN cable not using any switching device inbetween (No wireless device admitted in the concert hall, stringent realtime CAN-Frame transmission required in the ms range).
The system works well if the PCAN Ethernet Gateway DR is powered up first, wait and then the ipc is powered up, the Virtual PCAN-Gateway driver loads and the application using PCANBASIC communicates normally.
Sometimes however, people switch on the application and no cable is present or the organ was not switched on.
The ipc application initialisation will then give the correct error code "0x1400 no driver" (and routes in the Virtual PCAN-Gateway would be yellow, of course).
If the PCAN Ethernet Gateway comes online after the startup of the IPC, the Virtual PCAN-Gateway will never refresh and detect this now correct situation.
The only solution so far with my state of knowledge is to tell the user to reboot the system (which takes 1m20s). Users to not accept this.
Question: How is it possible to tell the Virtual PCAN-Gateway driver programmatically that it should redetect connected devices and therefore "switch its routes to green" such that the application could connect to the remote PCAN Ethernet gateway?
Note: This is a client/server application with no manual access possiblity from the user to the ipc windows. Any job would have to be carried out programmatically by the ipc server application.
Thank you very much,
Daniel Debrunner