LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-27-2005, 04:23 AM   #1
ecsed
Registered User
 
Registered: Jun 2005
Location: Graz/Austria
Distribution: RedHat Linux
Posts: 11

Rep: Reputation: 0
Question DCD may be programmed as input <<OR>> output?


Hy there,

I'm monitoring/setting the RS232 status line DCD by the
ioctl (sioControlStatusHandle, TIOCMGET, &sioControlInfo)
and
ioctl (sioControlStatusHandle, TIOCMSET, &sioControlInfo)
commands.

What I don't understand is the question how the Linux-driver recognizes whether I'm programming a modem or a terminal, i.e. whether the DCD-signal acts as an output (setting/writing the TIOCM_CD - bit as a modem) or as an input (getting/reading the TIOCM_CD - bit as a terminal). Actually I'm programming a modem.

The serial device was opened by
sioHandle = open (devString, O_RDWR | O_NONBLOCK | O_NOCTTY);

Thanks for your help!
Regards
Egon
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dd input/output error matazar42 Linux - General 3 10-08-2005 05:22 PM
Input/output error greenthing Linux - Software 4 04-28-2005 09:54 AM
Input/Output error new@linux Linux - Newbie 1 01-21-2005 07:59 AM
what is input output error? paschim Linux - Newbie 2 10-24-2004 05:53 PM
Input/Output error Toker Linux - Newbie 4 10-01-2003 02:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration