Need interrupt driven serial driver (QNX 6)

Hi,
I would like to have an interrupt driven RS232 driver - does anyone have
code they would like to share? I have looked at the example in Rob
Krten’s book (Chapter 4), but am wondering if this hasn’t already been
done many times by better programmers than myself…

Thanks.

The devc-8250 is most likely interrupt driven.
Do you want to replace this?

Bruce Davis wrote:

Hi,
I would like to have an interrupt driven RS232 driver - does anyone have
code they would like to share? I have looked at the example in Rob
Krten’s book (Chapter 4), but am wondering if this hasn’t already been
done many times by better programmers than myself…

I need to get a pulse or message or something when a character (or terminator)
arrives so I don’t need to poll. I don’t see how to do this with read() or
readcond().

Alex wrote:

The devc-8250 is most likely interrupt driven.
Do you want to replace this?

Bruce Davis wrote:

Hi,
I would like to have an interrupt driven RS232 driver - does anyone have
code they would like to share? I have looked at the example in Rob
Krten’s book (Chapter 4), but am wondering if this hasn’t already been
done many times by better programmers than myself…

Previously, Bruce Davis wrote in qdn.public.qnxrtp.os:

I need to get a pulse or message or something when a character (or terminator)
arrives so I don’t need to poll. I don’t see how to do this with read() or
readcond().

Here are two approaches.

  1. Have a thread read the device, and when it receives a char, send the char
    in a pulse to the main process.

  2. use select_attach().


    Mitchell Schoenbrun --------- maschoen@pobox.com

“Mitchell Schoenbrun” <maschoen@pobox.com> wrote in message
news:Voyager.010313175625.261D@schoenbrun.com

Previously, Bruce Davis wrote in qdn.public.qnxrtp.os:
I need to get a pulse or message or something when a character (or
terminator)
arrives so I don’t need to poll. I don’t see how to do this with read()
or
readcond().

Here are two approaches.

  1. Have a thread read the device, and when it receives a char, send the
    char
    in a pulse to the main process.

  2. use select_attach().

  1. ionotify()

Mitchell Schoenbrun --------- > maschoen@pobox.com