Solved

Detect CTS

Posted on 2010-09-14
2
678 Views
Last Modified: 2012-05-10
Is there a way to detect the CTS line programmatically (linux)?
0
Comment
Question by:sjose16
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 33677723
You can use 'ioctl()' with TIOCMGET to get the resiter's status, see http://www.easysw.com/~mike/serial/serial.html#5_1_1 ("Serial Programming Guide for POSIX Operating Systems - Getting the Control Signals")
    #include <unistd.h>
    #include <termios.h>

    int fd;
    int status;

    ioctl(fd, TIOCMGET, &status);

Open in new window

0
 
LVL 5

Expert Comment

by:greatsubash
ID: 33679698
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to split this in C++ 4 102
mapShare challenge 13 109
C# code editing and collaboration 3 115
C++ mouse_event mouse look 7 83
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question