home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / misc / 6173 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!gatech!darwin.sura.net!mlb.semi.harris.com!sloth.mlb.semi.harris.com!pjp
  3. From: pjp@sloth.mlb.semi.harris.com (Pat J. Pinchera)
  4. Subject: Serial Commmunication between a Sun IPC and 68000
  5. Followup-To: comp.sys.sun.misc
  6. Date: Thu, 7 Jan 1993 22:36:09 GMT
  7. Nntp-Posting-Host: sloth.mlb.semi.harris.com
  8. Organization: Interface & Control Systems, Inc., Melbourne FL
  9. Sender: news@mlb.semi.harris.com
  10. Message-ID: <1993Jan7.223609.16598@mlb.semi.harris.com>
  11. Lines: 23
  12.  
  13. I've been trying to use the serial port on our Sun IPC for communications
  14. with a 68000 single board computer.  I'm able to write data to it but unable
  15. to read data from it.
  16.  
  17. Through lots of little test programs, I can read and write through the
  18. serial ports on the Sun (i.e. Sun connected to a terminal, read and write), 
  19. and did the same thing with the 68000.  But when it comes to getting the two
  20. to talk to one another, the Sun can not read from the 68000.
  21.  
  22. The method I'm using is to open the /dev/ttyb file via 'open',
  23. set the input, output, and control flags of termio with tcsetattr,
  24. then use 'read' and 'write'. The flags used are as follows:
  25.  
  26. inputFlag:        IXON, IXANY
  27. outputFlag:        ONLCR, ONLRET
  28. controlFlag:    B9600, CS8, CREAD
  29.  
  30. Does anyone have any suggestions on what I might be doing wrong, or 
  31. suggestions to get it so the Sun can read data from the 68000?
  32.  
  33. Reply here or via e-mail. Thanks.
  34.  
  35. Pat
  36.