This is the mail archive of the
mailing list for the Cygwin project.
Re: Serial port hangs unless I run Hyperterminal?
- From: Eric Blake <ebb9 at byu dot net>
- To: andyburgess <AndyBurgess at argonet dot co dot uk>
- Cc: cygwin at cygwin dot com
- Date: Mon, 23 Jan 2006 06:57:31 -0700
- Subject: Re: Serial port hangs unless I run Hyperterminal?
- References: <4dedbe8ed5AndyBurgess@argonet.co.uk>
-----BEGIN PGP SIGNED MESSAGE-----
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 firstname.lastname@example.org
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
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html