471,354 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

pyserial: loose connection after inactivity

Hello,

I configure the serial connection using:

self.port = serial.Serial(baudrate=57600,
timeout=0.06,
parity=serial.PARITY_EVEN,
stopbits=serial.STOPBITS_TWO,
bytesize = serial.EIGHTBITS)

After X hours of inactivity I loose connection to my serial device, with error
message "Input/Output error" printed to stdout. The error happens both on
Linux and Windows (although the error message is probably different on
Windows, I've only been told the behaviour is the same).

I cannot find an obvious reason for why this is happening, and since it
happens after a long time of inactivite, debugging is awkward. So I though
I'd run the question through the expert panel for ideas, before venturing
down the path of pain and suffering myself :)

Best regards,
Frank
Nov 8 '07 #1
0 835

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Kelia Nichols | last post: by
13 posts views Thread by Bob Greschke | last post: by
4 posts views Thread by Zarathustra | last post: by
20 posts views Thread by luca72 | last post: by
7 posts views Thread by alexandre_irrthum | last post: by
2 posts views Thread by Jon | last post: by
dmjpro
reply views Thread by dmjpro | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.