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

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!wupost!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: Re: Serial Commmunication between a Sun IPC and 68000
  5. References: <1993Jan7.223609.16598@mlb.semi.harris.com>
  6. Date: Fri, 8 Jan 1993 16:11:25 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: <1993Jan8.161125.288@mlb.semi.harris.com>
  11. Lines: 23
  12.  
  13. In article <1993Jan7.223609.16598@mlb.semi.harris.com> pjp@sloth.mlb.semi.harris.com (I) wrote:
  14. >I've been trying to use the serial port on our Sun IPC for communications
  15. >with a 68000 single board computer.  I'm able to write data to it but unable
  16. >to read data from it.
  17. >
  18. >Through lots of little test programs, I can read and write through the
  19. >serial ports on the Sun (i.e. Sun connected to a terminal, read and write), 
  20. >and did the same thing with the 68000.  But when it comes to getting the two
  21. >to talk to one another, the Sun can not read from the 68000.
  22. >
  23. >The method I'm using is to open the /dev/ttyb file via 'open',
  24. [stuff deleted]
  25.  
  26. I've narrowed down the problem.  The read that takes place on the Sun (of
  27. the serial port) really doesn't do anything until it sees a new-line
  28. <NL>.  That is when the read happens and data is obtained.  If data is
  29. coming over to the serial line and there is no <NL>, then the read never
  30. sees it.  That's why my test programs with the serial port connected to
  31. a DEC Terminal work, the DEC Terminal always sends the <NL>.
  32.  
  33. OK, so how can I make the read happen without those nasty little <NL>'s?
  34.  
  35. Pat
  36.