Pyserial again
Peter Hansen
peter at engcorp.com
Tue Mar 7 06:21:21 EST 2006
luca72 wrote:
> Here is my code ; why after the readline the port close?
>
What is the line of code before the first one shown here?
> ser = serial.Serial(0)
> ser.baudrate = 9600
> ser.parity = serial.PARITY_ODD
> ser.stopbits = serial.STOPBITS_TWO
> ser.bytesize =serial.EIGHTBITS
> ser.setRTS(level = 0)
> ser.setDTR(level = 0)
> ser.timeout = 1
>
> ser.readline()
>
> Why after this the port close.
What's the next line of code after ser.readline()?
-Peter
More information about the Python-list
mailing list