| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Date: | Tue, 24 Apr 2007 11:26:48 -0700 |
| From: | Gary Johnson <garyjohn AT spk DOT agilent DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Can't use ioctl() to set baud rate on /dev/ttyS0 |
| Message-ID: | <20070424182648.GA5667@suncomp1.spk.agilent.com> |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <20070424013444 DOT GF8693 AT suncomp1 DOT spk DOT agilent DOT com> <20070424024747 DOT GA3478 AT ednor DOT casa DOT cgf DOT cx> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <20070424024747.GA3478@ednor.casa.cgf.cx> |
| User-Agent: | Mutt/1.5.15 (2007-04-06) |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| 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 |
On 2007-04-23, Christopher Faylor wrote:
> On Mon, Apr 23, 2007 at 06:34:45PM -0700, Gary Johnson wrote:
> >I've been working on porting a simple terminal emulator application
> >from HP-UX 10.20 to Cygwin. All it does is make a few termio
> >settings on stdin, stdout and the specified serial port, then copy
> >characters from stdin to the serial port and from the serial port to
> >stdout. It seems to work fine except that it won't set the serial
> >port baud rate.
>
> For cygwin, you'll need to use cfset[io]speed and tcsetattr to set
> baud rate.
That did it! It all works great now. Thank you.
I know I'm going to regret asking this, SHTDI and all, but where is
this documented? I searched the FAQ and User's Guide for ioctl,
etattr and termio and didn't find anything relevant.
Regards,
Gary
--
Gary Johnson | Agilent Technologies
garyjohn AT spk DOT agilent DOT com | Mobile Broadband Division
| Spokane, Washington, USA
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |