Hi,<br>I have finished the neat version of using the SerialPort in Win32.<br>Without the bothering loseConnection tracebacks.<br>First of all, I have to apology for the mistake in my last post.<br>I claimed that calling the flashInput and flashOutput can be used as<br>
the workaround.I am wrong.<br>The way I use with SerialPort is different from the standard way:<br><br>SerialPort(protocol_instance, comport, reactor, baudrate)<br><br>instead, I create a SerialConnect and connect the serial port by:<br>
<br>connector = reactor.connectWith(SerialConnector,comport,baudrate,factory)<br><br>I welcome someone else to improve this connector for it to be more reliable<br>if this approach is worthy. For the script, please see the attachment.<br>
<br>Iap<br>BTW:  I am not sure if it is proper to attach the script in mail list.<br>I tried to paste it in the mail body. After pasting it into the gmail&#39;s editor,<br>the format of the script is terrible.<br>