home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5331 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.2 KB

  1. Xref: sparky comp.sys.next.programmer:5331 comp.sys.next.hardware:1186
  2. Path: sparky!uunet!mcsun!sunic!diku!dkuug!iesd!iesd.auc.dk!karthy
  3. From: karthy@iesd.auc.dk (Karsten Thygesen)
  4. Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware
  5. Subject: serial communications on NeXT computer
  6. Message-ID: <KARTHY.92Jul23115350@xiv.iesd.auc.dk>
  7. Date: 23 Jul 92 10:53:50 GMT
  8. Sender: news@iesd.auc.dk (UseNet News)
  9. Distribution: comp
  10. Organization: Mathematics and Computer Science, Aalborg University
  11. Lines: 40
  12.  
  13.  
  14. Hi.
  15.  
  16. I am forwarding this question for a friend, but please send any
  17. help/comments to me.
  18.  
  19. Problem: We are currently developing a program to control a
  20. professional video recorder. The video recorder has a serial RS 232
  21. interface which communicates at 38400 bit/s, 8 data bits and odd
  22. parity (i.e. 9 bits per character plus start/stop bits). These
  23. communication parameters cannot be changed in the video recorder. We
  24. have suceeded in producing a C program which reads and a writes to one
  25. of the Next's serial ports at the required speed, but we can't get the
  26. program to send 8 bit data followed by the parity bit. We guess this
  27. is due to limitations in the standard serial drivers (/dev/tty) which
  28. can only generate a parity bit when 7 data bits are used (i.e. max. 8
  29. bits per character plus start/stop bits). To solve the problem, we
  30. would like to know:
  31.  
  32. 1) Are we correct in assuming the above limitation regarding the
  33. standard driver? If not, how do you set it to the required parameters.
  34.  
  35. 2) If the standard driver cannot be set to the required parameters,
  36. how do you access the hardware (SCC chip)? 
  37.  
  38. In both cases, pieces of sample code would be very helpful. (We have a
  39. technical description of the SCC chip itself).
  40.  
  41. Thanks in advance,
  42.  
  43. Karsten.
  44.  
  45. --
  46. --------------------------------------------------------------------
  47. Karsten Thygesen              I Aalborg University                 I
  48. Korsgade 48 2. th             I Institute for electronic systems   I
  49. 9000 Aalborg                  I                                    I
  50. InterNet: karthy@iesd.auc.dk  I Fredrik Bajers vej 7, 9220 Aalborg I
  51. Phone (HOME): +45-98124259    I DK-Denmark.                        I
  52. --------------------------------------------------------------------
  53.