Serial port failure

Grant Edwards grante at visi.com
Fri Dec 15 17:08:08 EST 2006


On 2006-12-15, hg <hg at nospam.org> wrote:

>> Here is OpenPort
>> 
>> ####################################################################
>> #### OpenPort procedure
>> ####################################################################
>> def OpenPort(name):
>>     BRate = 19200
>>     Tout  = 3
[...]

>>> > for i in range(3):
>>> > port = OpenPort()

> I don't get it: you never pass any parameter to OpenPort

The code he posted isn't the code he's actually running.

> The second thing I wonder about is whether you need to reinit
> serial every time.

I don't know what you mean by "reinit serial".

-- 
Grant Edwards                   grante             Yow!  We are now enjoying
                                  at               total mutual interaction in
                               visi.com            an imaginary hot tub...



More information about the Python-list mailing list