Subject: Configuring Serial Ports From: cs416530@lux.latrobe.edu.au (Matthew I Gillard) Date: Mon, 12 Apr 1993 14:29:14 GMT
From the replies I have recieved I have gathered the following
information:
/dev/ttyS# corresponds to the dial-in ttys, whereas /dev/cua#
corresponds to the dial-out devices. My list of devices follows:
crw-rw-rw- 1 root root 4, 64 Jan 9 1992 ttyS0
crw-rw-rw- 1 root root 4, 65 Jan 7 07:31 ttyS1
crw-rw-rw- 1 root root 4, 66 Jan 23 1980 ttyS2
crw-rw-rw- 1 root root 4, 67 Oct 14 1992 ttyS3
crw-rw-rw- 1 root root 5, 64 Apr 12 17:06 cua0
crw-rw-rw- 1 root root 5, 65 Apr 12 14:33 cua1
crw-rw-rw- 1 root root 5, 66 Apr 12 14:33 cua2
crw-rw-rw- 1 root root 5, 67 Apr 12 14:33 cua3
Now, here is a detailed step by step description of my problem:
I am using xcomm, I type: xc -l /dev/cua1
(My modem is connected to COM2)
xcomm replies with a screenfull of the same error message ( presumably
when it is sending the initialization string ).
The error message is: Sendbyte: write error!
My mouse is connected to COM1. I tried to write to COM1 while the mouse
is connected to COM1, using xcomm -l /dev/cua0 ( and modem still connected to COM2 ), to see if it is actually writing to the COM port, and it doesnt give any errors. I check the directory entry of /dev/cua0, and the time it was
last accessed corresponded to the time I ran xc.
BUT, originally, when I wrote to /dev/cua1, and xcomm gave errors, the
time /dev/cua1 was last accessed was not changed. So somewhere along
the way, the initialisation string isnt actually getting to the modem at
all. The modem is an internal 2400bps. I was thinking that maybe the
/dev/cua# doesn't like internal modems...comments??????
Anyway, just for interest I tried xc -l /dev/cua2 ( for COM 3 ) even
though I dont have anything connected to COM3 and I did the same for
COM4. Interestingly the results where EXACTLY the same as when I wrote
to COM2 which DOES exist ( The port I have my modem on ).
So I figure that it doesn't think COM 2 exists.
Lastly, I put my modem on COM 1 and the same error happened. It is like
where ever I put my modem, UNIX doesn't think that COM port exists.
Thanks in advance,
Matthew Gillard
E-MAIL: cs416530@lux.latrobe.edu.au
-- ============================================================================= Matthew Gillard, | Blessed are they who run around Computer Systems Engineering, | in circles, for they shall be La Trobe University, | known as wheels.