delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/02/11:35:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <6.0.1.1.0.20050202171834.01fcf4f8@192.168.2.1>
X-Sender: r&d2%dave-tech DOT it AT 192 DOT 168 DOT 2 DOT 1
Date: Wed, 02 Feb 2005 17:34:49 +0100
To: cygwin AT cygwin DOT com
From: llandre <r&d2 AT dave-tech DOT it>
Subject: Help about serial programming: manipulating DTR
Mime-Version: 1.0
X-IsSubscribed: yes

Hi all,

I'm trying to manipulate the DTR signal of the serial port.
As an example I used this code snippet: 
http://lists.exploits.org/upsdev/Feb2004/00013.html.
I can open the com1, I can send and receive data but the ioctl I use
to read the status of the signals returns -1:

     int status;
     ioctl(upsfd, TIOCMGET, &status);

Anybody can help me? I have no idea about what's wrong with this code.


Thanks a lot in advance,

llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2 AT dave-tech DOT it


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019