Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Detect CTS

Posted on 2010-09-14
2
Medium Priority
?
695 Views
Last Modified: 2012-05-10
Is there a way to detect the CTS line programmatically (linux)?
0
Comment
Question by:sjose16
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 1000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

596 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