delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/23/08:57:48

X-Spam-Check-By: sourceware.org
Message-ID: <43D4E0CB.3080106@byu.net>
Date: Mon, 23 Jan 2006 06:57:31 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: andyburgess <AndyBurgess AT argonet DOT co DOT uk>
CC: cygwin AT cygwin DOT com
Subject: Re: Serial port hangs unless I run Hyperterminal?
References: <4dedbe8ed5AndyBurgess AT argonet DOT co DOT uk>
In-Reply-To: <4dedbe8ed5AndyBurgess@argonet.co.uk>
X-IsSubscribed: yes
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to andyburgess on 1/23/2006 6:28 AM:
> 
> I'm getting an issue when I run my GNU C program.  It's hanging on the
> write/read operation to a GSM modem attached to my COM1 *when* the PC has
> initially been switched on from cold. However the crazy thing is if I run
> Hyperterminal after boot-up, fire a couole of commands to the modem and close
> Hyperterminal down, my program subsequently runs perfectly! In the program,
> I've avoided setting anything on the modem (no tcsetattr) - except the O_RDWR
> and O_NOCTTY on opening the port.

Code snippets?  Are you using the correct port?  More details would have
been nice.  Cygwin serial port setting commands emulate Linux, so you
should use on "/dev/ttyS0" and not on "COM1".

Also, from the command line, you can use "stty -f /dev/ttyS0" to read and
set the settings of your port, rather than relying on hyperterm.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin coreutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD1ODL84KuGfSFAYARAscWAJ4hD1QLAM/p7mgFDgdHTvTL8KtTsgCfXsHA
RFa4nvSJHPE+aiHZVUZJwAo=
=WEf+
-----END PGP SIGNATURE-----

--
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