home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16619 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!ames!eos!aio!zaphod!john
  3. From: john@zaphod.JSC.NASA.GOV (John Fwu/HawkEye)
  4. Subject: Need help on serial I/O
  5. Message-ID: <1992Nov18.202226.23935@aio.jsc.nasa.gov>
  6. Keywords: TTY, Parity, driver, termio, serial
  7. Sender: john@zaphod (John Fwu/HawkEye)
  8. Organization: IGOAL
  9. Date: Wed, 18 Nov 1992 20:22:26 GMT
  10. Lines: 27
  11.  
  12. We got an 12-bit plus sign A/D converter with asynchronous
  13. serial interace.  The way it send 12 bit is pad the 12 bit
  14. into two bytes.  The lower byte has "even parity" and the upper
  15. byte has "odd parity".  We need to base on the parity to figure
  16. out the byte order then put the 12 bit data together.
  17.  
  18. Base on my experience, we can use ioctl set the serial (tty) port
  19. to "none", "odd" or "even" parity.  How can we handle both parity
  20. at the same time.  May be we may set the parity to "even", then 
  21. the upper byte will cause a "parity error".  How can we detect
  22. the "parity error" or it just not available in the UNIX tty
  23. driver?  If we were able to detect the parity error, can we
  24. also get the upper byte intact?
  25.  
  26. Your help will be appreciated very much.  If possible please
  27. CC to me at "john@trillian.jsc.nasa.gov", since our news server
  28. is not stable recently.
  29.  
  30. Help!!!!!
  31.  
  32.  
  33. -- 
  34. ------------
  35. J. John Fwu (john@trillian.jsc.nasa.gov)
  36. Integrated Graphics Operations and Analysis Laboratory (IGOAL)
  37. NASA JSC, ER6, Houston, TX 77058  | Voice: (713) 483-8101 FAX: 483-3204
  38. _______________________________________________________________________
  39.