home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.misc
- Path: sparky!uunet!gatech!darwin.sura.net!mlb.semi.harris.com!sloth.mlb.semi.harris.com!pjp
- From: pjp@sloth.mlb.semi.harris.com (Pat J. Pinchera)
- Subject: Serial Commmunication between a Sun IPC and 68000
- Followup-To: comp.sys.sun.misc
- Date: Thu, 7 Jan 1993 22:36:09 GMT
- Nntp-Posting-Host: sloth.mlb.semi.harris.com
- Organization: Interface & Control Systems, Inc., Melbourne FL
- Sender: news@mlb.semi.harris.com
- Message-ID: <1993Jan7.223609.16598@mlb.semi.harris.com>
- Lines: 23
-
- 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',
- set the input, output, and control flags of termio with tcsetattr,
- then use 'read' and 'write'. The flags used are as follows:
-
- inputFlag: IXON, IXANY
- outputFlag: ONLCR, ONLRET
- controlFlag: B9600, CS8, CREAD
-
- Does anyone have any suggestions on what I might be doing wrong, or
- suggestions to get it so the Sun can read data from the 68000?
-
- Reply here or via e-mail. Thanks.
-
- Pat
-