home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.misc
- Path: sparky!uunet!wupost!darwin.sura.net!mlb.semi.harris.com!sloth.mlb.semi.harris.com!pjp
- From: pjp@sloth.mlb.semi.harris.com (Pat J. Pinchera)
- Subject: Re: Serial Commmunication between a Sun IPC and 68000
- References: <1993Jan7.223609.16598@mlb.semi.harris.com>
- Date: Fri, 8 Jan 1993 16:11:25 GMT
- Nntp-Posting-Host: sloth.mlb.semi.harris.com
- Organization: Interface & Control Systems, Inc., Melbourne FL
- Sender: news@mlb.semi.harris.com
- Message-ID: <1993Jan8.161125.288@mlb.semi.harris.com>
- Lines: 23
-
- In article <1993Jan7.223609.16598@mlb.semi.harris.com> pjp@sloth.mlb.semi.harris.com (I) wrote:
- >I've been trying to use the serial port on our Sun IPC for communications
- >with a 68000 single board computer. I'm able to write data to it but unable
- >to read data from it.
- >
- >Through lots of little test programs, I can read and write through the
- >serial ports on the Sun (i.e. Sun connected to a terminal, read and write),
- >and did the same thing with the 68000. But when it comes to getting the two
- >to talk to one another, the Sun can not read from the 68000.
- >
- >The method I'm using is to open the /dev/ttyb file via 'open',
- [stuff deleted]
-
- I've narrowed down the problem. The read that takes place on the Sun (of
- the serial port) really doesn't do anything until it sees a new-line
- <NL>. That is when the read happens and data is obtained. If data is
- coming over to the serial line and there is no <NL>, then the read never
- sees it. That's why my test programs with the serial port connected to
- a DEC Terminal work, the DEC Terminal always sends the <NL>.
-
- OK, so how can I make the read happen without those nasty little <NL>'s?
-
- Pat
-