home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ornl!sunova!convex!cs.utexas.edu!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!seven-up.East.Sun.COM!sungy!stasys!alanya!lupe
- From: lupe@ukw.uucp (Lupe Christoph)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: Serial Device Driver Info Needed
- Keywords: Serial Port, SPARCstation 1+
- Message-ID: <1992Nov22.111402.4936@ukw.uucp>
- Date: 22 Nov 92 11:14:02 GMT
- References: <24105@hacgate.SCG.HAC.COM>
- Sender: uucp@stasys.sta.sub.org
- Organization: cic
- Lines: 32
-
- dave@pce2.fu.hac.com (Dave Fandel) writes:
-
- >I need information on how to access one of the RS-232 ports on
- >a SUN SPARCstation 1+. Pointers to books, articles, or sources
- >greatly appreciated.
-
- >Detail Info on the Problem:
- >We are writing an ADA program that needs to communicate via a
- >9600 baud RS-232 link to a radio's Communication Module (ie RS-232
- >driver/controller/interface).
-
- >As I see it I need to code some sort of device driver to handle the
- >input and output streams and act as an interface to the main ADA
- >code. This device driver can be written in C and linked in with
- >the main code. I have written IBM PC serial device drivers, so I
- >have some knowledge of what needs to be done, but I can't seem to
- >track down how to do the same thing on the SUN.
-
- Start by doing "man termio". You will need to assemble the
- parameters for your device and stuff them into the device
- driver and the STREAMS modules. Then you can just read and
- write the file descriptor.
-
- If you happen to have a device with a protocol that has
- realtime constraints, you might have to write a STREAMS module
- yourself. Read the Sun manual about STREAMS modules for
- that, it's pretty good.
- --
- | ...!unido!ukw!lupe (German EUNet, "bang") | Disclaimer: |
- | lupe@ukw.UUCP (German EUNet, domain) | This is an unofficial |
- | suninfo!alanya!lupe (Sun Germany) | opinion of Christoph & |
- | Res non sunt complicanda praeter necessitatem. | Imschweiler Consulting |
-