This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Serial port hangs unless I run Hyperterminal?


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]