Comm port status HOW?

Hi,
I have two QNX system communicating each other via serial communication.
Every 10 milliseconds a small amount of data transaction is done between
both.
While commuinicating I have to get the comm port status.
The status must include Port hardware information whether it is functinoing
well or not
If com port is failed or data is lost then I must get the appropriate
status.
I could not find any function for my purpose. please if anyone is having any
idea then let me know it

Thanks in advance

Sunil Warke

While commuinicating I have to get the comm port status.
The status must include Port hardware information whether it is
functinoing
well or not
If com port is failed or data is lost then I must get the appropriate
status.

If you could elaborate what type of failure you’re looking for, I’m sure
someone will have some ideas. Many people push that detection to the
protocol layer, so retransmission counts, framing errors etc can be
seen/measured. From memory, the only errors you can detect (I’m assuming
RS-232 serial) parity errors (if you’re using parity) and overrun errors.

Perhaps someone from the hardware group can comment on if you can extract
that info from the driver via a defined interface.

\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

Sunil Warke <sunil@bnftech.com> wrote:

Hi,
I have two QNX system communicating each other via serial communication.
Every 10 milliseconds a small amount of data transaction is done between
both.
While commuinicating I have to get the comm port status.
The status must include Port hardware information whether it is functinoing
well or not
If com port is failed or data is lost then I must get the appropriate
status.
I could not find any function for my purpose. please if anyone is having any
idea then let me know it

Are you looking at getting parity errors and suchlike? This can be
gotten in the standard way with the tcsetattr/tcgetattr option for
+parmrk, -ignpar, etc.

If you’re looking for line status – e.g. +rts/-dtr, take a look
at qnx_ioctl(), it allows you to query status lines, and the comments
in <sys/qioctl.h> tell what request to send and which bits mean what.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.