Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ames!haven!ncifcrf!nlm-mcs!adm!news From: TAYBENGH%NUSDISCS.BITNET@cunyvm.cuny.edu Newsgroups: comp.unix.wizards Subject: serial port I/O in Unix Message-ID: <22822@adm.BRL.MIL> Date: 21 Mar 90 15:00:06 GMT Sender: news@adm.BRL.MIL Lines: 12 Hi, Can I send and receive data via serial port by calling open(), read() and write() on tty device? What if the device connected by the serial port is not a terminal, can I still use the tty device driver as serial-port driver? If not, how can I poll/read/write serial port just like DOS environment (which use interrupt)? For example, direct programming the hardware (serial port) in Unix? Any pointers? Thanks in advance.. -Beng Hang Tay (email address: taybengh@nusdiscs.bitnet) Department of Information Systems and Computer Science National University of Singapore