Hi,
Every two or three days I’m losing the connection to my RFID Leser on COM4. I don’t know why, and the only way to reset this is to push the OK button in the Serial Port Module.
Is there a way to reset the connection with a script?
I tried the code below, but with no result. I tried all of it and only the part for setting COM4 or Open/Close Serial Port. All with no result. Once in the Module and only pushing the OK button and the connection is working again.
COMPort_SetOpen(38636 /*[Serial Port]*/, False);
COMPort_SetPort(38636 /*[Serial Port]*/, "COM1");
COMPort_SetOpen(38636 /*[Serial Port]*/, True);
COMPort_SetOpen(38636 /*[Serial Port]*/, False);
COMPort_SetPort(38636 /*[Serial Port]*/, "COM4");
COMPort_SetOpen(38636 /*[Serial Port]*/, True);
I hope someone can help me with this.
Thanks.
Albert