home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / misc / 5384 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.9 KB

  1. 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
  2. From: lupe@ukw.uucp (Lupe Christoph)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: Serial Device Driver Info Needed
  5. Keywords: Serial Port, SPARCstation 1+
  6. Message-ID: <1992Nov22.111402.4936@ukw.uucp>
  7. Date: 22 Nov 92 11:14:02 GMT
  8. References: <24105@hacgate.SCG.HAC.COM>
  9. Sender: uucp@stasys.sta.sub.org
  10. Organization: cic
  11. Lines: 32
  12.  
  13. dave@pce2.fu.hac.com (Dave Fandel) writes:
  14.  
  15. >I need information on how to access one of the RS-232 ports on
  16. >a SUN SPARCstation 1+.  Pointers to books, articles, or sources
  17. >greatly appreciated.
  18.  
  19. >Detail Info on the Problem:
  20. >We are writing an ADA program that needs to communicate via a
  21. >9600 baud RS-232 link to a radio's Communication Module (ie RS-232
  22. >driver/controller/interface).  
  23.  
  24. >As I see it I need to code some sort of device driver to handle the
  25. >input and output streams and act as an interface to the main ADA
  26. >code.  This device driver can be written in C and linked in with
  27. >the main code.  I have written IBM PC serial device drivers, so I
  28. >have some knowledge of what needs to be done, but I can't seem to
  29. >track down how to do the same thing on the SUN.
  30.  
  31. Start by doing "man termio". You will need to assemble the
  32. parameters for your device and stuff them into the device
  33. driver and the STREAMS modules. Then you can just read and
  34. write the file descriptor.
  35.  
  36. If you happen to have a device with a protocol that has
  37. realtime constraints, you might have to write a STREAMS module
  38. yourself. Read the Sun manual about STREAMS modules for
  39. that, it's pretty good.
  40. -- 
  41. | ...!unido!ukw!lupe  (German EUNet, "bang")     |  Disclaimer:            |
  42. | lupe@ukw.UUCP       (German EUNet, domain)     |  This is an unofficial  |
  43. | suninfo!alanya!lupe (Sun Germany)              |  opinion of Christoph & |
  44. | Res non sunt complicanda praeter necessitatem. |  Imschweiler Consulting |
  45.