Programming serial communication in C

Programming serial communication in C

Post by Rainer Spielbaue » Thu, 23 Jan 1997 04:00:00



I want to use the serial port of our SUN SPARC II to receive some
command strings (lenght of about 20 to 500 characters) and send some report
strings.

How can I do this programming in C ?

Rainer

 
 
 

Programming serial communication in C

Post by Celeste Stokel » Fri, 24 Jan 1997 04:00:00



> I want to use the serial port of our SUN SPARC II to receive some
> command strings (lenght of about 20 to 500 characters) and send some > > report strings.
> How can I do this programming in C ?

There are excellent how-tos and sample serial port code at
http://www.easysw.com/~mike/serial/
The page is "Serial Programming Guide for POSIX Compliant Operating
Systems".

..Celeste Stokely, Unix System Administration Consultant
Stokely Consulting, 211 Thompson Square, Mountain View CA 94043
Voice: 415.967.6898 - FAX: 415.967.0160

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Celeste's Tutorials on Solaris 2.x/SunOS 4.1.3+ Modems & Terminals
        are available via the Web at http://www.stokely.com
See our Web pages for lots of Unix Serial Port & Sysadm Resources!
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -