home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!think.com!yale.edu!spool.mu.edu!umn.edu!doug.cae.wisc.edu!v_white
- From: v_white@ece.wisc.edu (Victor White)
- Subject: Serial port communication difficulties
- Organization: College of Engineering, Univ. of Wisconsin-Madison
- Date: 10 Nov 92 11:50:12 CST
- Message-ID: <1992Nov10.115012.29368@doug.cae.wisc.edu>
- References: <HARDY.92Nov9233637@golem.ps.uci.edu> <1992Nov10.165515.21369@organpipe.uug.arizona.edu>
- Sender: v_white@janus.ece.wisc.edu
- Lines: 29
-
-
- Friends,
- This may be more UNIX than NeXT, but here goes.
-
- I've been trying to get two way communication between a cheapy slave computer
- and to a Next through their serial ports to shuffle data back and forth.
-
- On the slave I can easily check the ports status, and if there is data,
- I can read it off byte by byte. Writing is also smooth. There are
- good routines to make sure it doesn't get hung.
-
- But on the Next, it seems much harder. I simply thought by opening
- a file being /dev/cua, I could check the ports status via feof().
- But alas, it always says theres more data there, and so it continially
- gets hung on reading after the lasst charachter is read. I tried all
- sorts of variations with the cable, conecting various permutaions of
- RTS/CTS and so on, but to no avail.
-
- In sum, the Next has no trouble reading the data from the port.
- But its only problem is that it can not find a correct answer
- for the status of the port.
-
- Is there a simple solution or a better way?
-
- I'll sumarize if theres enough interest.
-
- Thanks,
- Victor
- v_white@janus.ece.wisc.edu
-