Issue: I have a device connected to my computers’ serial port (RS-232). The device is broadcasting 50 byte messages at a 200 Hz rate. I am using the devc-ser8250 driver with FIFO turned on. I have created an application that reads the messages from the serial port, but it is not optimum.
Question: What is the most efficient way to setup the interrupt to notify my application that there is data on the serial port ready to be read and then reset that process?
InterruptAttachEvent()/InterruptWait()/InterruptUnmask()
SIGEV_PULSE_INIT()/ionotify()/MsgSendPulse()/etc.
tcischars()…
Quote - I don’t remember the source of this:
{InterruptAttachEvent()} This approach has a major advantage over using a pulse. A pulse is delivered as a message to the resource manager, which means that if the resource manager’s message-handling threads are busy processing requests, the pulse will be queued until a thread does a MsgReceive().
Thank you for your replies!
FD