Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!gatech!bloom-beacon!tut.cis.ohio-state.edu!mailrus!uwmcsd1!ig!agate!ucbvax!ucsd!ucsdhub!ucrmath!jantypas From: jantypas@ucrmath.UUCP (John Antypas) Newsgroups: comp.unix.questions Subject: Talking to serial devices on Sys V? Message-ID: <349@ucrmath.UUCP> Date: 11 Jul 88 15:58:01 GMT Reply-To: jantypas@ucrmath.UUCP (John Antypas) Organization: University of California at Riverside Lines: 12 Hello again. Does anyone out there in Sys V know what the correct procedure for openning a two-way connection to a serial device is? I want to be to send ascii strings to a few devices and read results back, but every time I fiddle with all of the various stty type values, I get various results -- all wrong. How can one for example, write a C program which will open a 2400 baud connection to a modem on /dev/tty0, send the string "AT" and then attempt to read the "OK" from the modem? Sounds trivial, but it hasn't been for me!