Re: pyserial and com port interrupts

2005-01-13 Thread Peter Hansen
engsol wrote: I'm working on a s/w test program using python code. Com1 and com2 play a part. The problem is that the python code has a lot of work to do...and the results from the hardware under test can come from either com1 or com2...at any time. It may be a few milliseconds, or several seconds

Re: pyserial and com port interrupts

2005-01-13 Thread Neil Benn
Neil Benn wrote: engsol 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. Thanks Norm B Hello, I came across this problem as when I first used PySerial, I cam

Re: pyserial and com port interrupts

2005-01-13 Thread Neil Benn
engsol 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. Thanks Norm B Hello, I came across this problem as when I first used PySerial, I came from a java bac

Re: pyserial and com port interrupts

2005-01-12 Thread Stephen Thorne
On Thu, 13 Jan 2005 03:11:23 GMT, Bengt Richter <[EMAIL PROTECTED]> wrote: > On Wed, 12 Jan 2005 14:24:48 -0800, engsol <[EMAIL PROTECTED]> 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

Re: pyserial and com port interrupts

2005-01-12 Thread Grant Edwards
On 2005-01-13, engsol <[EMAIL PROTECTED]> wrote: > I'm not sure what timeout value I'd use. Using threads, and re-loading the > timeout values on the fly may be a solution, but I'm not experienced with > threadsand was hoping to avoid them. Using threads in Python is really, really painless.

Re: pyserial and com port interrupts

2005-01-12 Thread Bengt Richter
On Wed, 12 Jan 2005 14:24:48 -0800, engsol <[EMAIL PROTECTED]> 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., read

Re: pyserial and com port interrupts

2005-01-12 Thread engsol
On Wed, 12 Jan 2005 17:45:48 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >engsol 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. > >What problem do you hope

Re: pyserial and com port interrupts

2005-01-12 Thread Peter Hansen
engsol 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. What problem do you hope to avoid by not using "polling and timeouts"? (Note that if you specify a sizable read t

pyserial and com port interrupts

2005-01-12 Thread engsol
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. Thanks Norm B -- http://mail.python.org/mailman/listinfo/python-list