pyserial and com port interrupts
bokr at oz.net
Wed Jan 12 22:11:23 EST 2005
On Wed, 12 Jan 2005 14:24:48 -0800, engsol <engsolnorm at peak.org> wrote:
>Has anyone done a script that will rspond to the serial com port(s)
>receive buffer interrupt, as opposed to polling and timeouts?
>Win2000 is the main interest right now.
Have you looked into letting the OS do it? I.e., reading from COM4:
or whatever port in a thread maybe one byte at a time? Maybe you can
get your end functionality without writing low levels stuff, depending ;-)
I haven't done this, but it seems an easy thing to try a few experiments with.
The control panel should let you set baud rates and handshaking etc. I would think.
More information about the Python-list