I understood from a previous discussion (drichards) that seting up the proper values of the baud rate, data bits, parity, stop bits and flow control is done from within the program through the method 'ConfigureSerialInterface' and it overrides the settings in the Control Panel. I tried it and it does work. However, it appears that 'ConfigureSerialInterface' does not override the number of the COM port preset in the Control Panel (if COM port is set, say, to COM4, the program will not override it and turn it into COM1).
I'm using a RS232-USB cable and am noticing that every time the cable is connected to the USB port the number of the COM port seems to be changing occasionally. Furthermore, even if I change to COM1 manually the COM port which corresponds to the RS232-USB cable (COM1 is the number which the program requires -- it is hardcoded in the program), there is another, native, COM1 port existing which conflicts with the new one The device will not work until I uninstal that native COM1 port in the Device Manager.
Is there anything that could be done to avoid the manual resetting of the new (RS232-USB) and uninstalling the native COM1 port?