Re: pyserial and com port interrupts

From: Bengt Richter (bokr_at_oz.net)
Date: 01/13/05


Date: Thu, 13 Jan 2005 03:11:23 GMT

On Wed, 12 Jan 2005 14:24:48 -0800, engsol <engsolnorm@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.

Regards,
Bengt Richter



Relevant Pages

  • Re: Highly responsive serial port
    ... Note that read request to the serial driver can be completed ... by reading specified number of bytes, ... you either don't want to rely on timeouts (design your protocol ... Would a driver(in kernel mode) have enough priority to process such requests in time? ...
    (microsoft.public.win32.programmer.kernel)
  • Re: gay wizard / lesbian witch?
    ... >> HELENA (amazed that anyone other than Phil and her are still reading ... > days while the gay mafia have whined incessantly and complained about ME ... I was amazed that anyone else was even reading this thread because it ... *Who* has whined about you not letting the subject drop? ...
    (alt.fan.harry-potter)
  • Re: Highly responsive serial port
    ... That's all I do with timeouts. ... by reading specified number of bytes, ... over USB, ethernet or even serial port. ... Would a driver(in kernel mode) have enough priority to process such ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Thread imbalance
    ... shouldn't be that bad - do you have lots of compute-intensive threads? ... As the OP's problem points out, Python threads don't offer any ... Timeouts on the threading module's Condition objects are ... inherit the polling implementation. ...
    (comp.lang.python)
  • Re: Why Free?
    ... What possible reason can there be for letting these animals go free? ... I mean not incarcerated in a jail. ... Reading the article does start to make you wonder about the judicial system - does make you think they should have been given a more severe punishment - does make you post the link to the article - does make you read the Manchester Evening News - might make you read other stories in the paper ........ ...
    (uk.legal)