pySerial Windows write problem

Peter Hansen peter at engcorp.com
Thu Jul 28 18:24:59 EDT 2005


Bob Greschke wrote:
 > But writing anything to the port
> quickly (not always right away...like maybe 5-6 iterations through the 
> loop?) causes the
> 
>     win32file.CloseHandle(self.hComPort)
> 
> statement in the 'def close(self)' function of the serialwin32.py file of 
> the pySerial package to hang for a few seconds, then return.  

Are you certain it is this line that is blocking, and not the preceding 
line which is a call to SetCommTimeouts()?  How did you prove which line 
it is?  (I don't have an answer to the problem, just wanted to be sure 
of the information...)

-Peter



More information about the Python-list mailing list