/dev/ttyS1, /dev/cua1 and linux-2.2.2

/dev/ttyS1, /dev/cua1 and linux-2.2.2

Post by I.R » Thu, 04 Mar 1999 04:00:00



Hello,

I'd like to know if there's a FAQ/docu available that can help me configure
my /dev/ttyS1 for the use with chat and pppd.

I am currently using an "upgraded" RedHat4.2 with linux-2.2.2 kernel.
Surprisingly /dev/cua1 is no longer supported (results in some "Network down"
message, when you try it anyway).

One symptom is that, e.g. 'stty ispeed 115200 < /dev/ttyS1' or
'chat "" ATZ OK ATDT$NUMBER ... < /dev/ttyS1 > /dev/ttyS1' won't return.

I.R.

 
 
 

/dev/ttyS1, /dev/cua1 and linux-2.2.2

Post by Villy Kru » Fri, 05 Mar 1999 04:00:00




>Hello,

>I'd like to know if there's a FAQ/docu available that can help me configure
>my /dev/ttyS1 for the use with chat and pppd.

>I am currently using an "upgraded" RedHat4.2 with linux-2.2.2 kernel.
>Surprisingly /dev/cua1 is no longer supported (results in some "Network down"
>message, when you try it anyway).

>One symptom is that, e.g. 'stty ispeed 115200 < /dev/ttyS1' or
>'chat "" ATZ OK ATDT$NUMBER ... < /dev/ttyS1 > /dev/ttyS1' won't return.

Some of these utilities might not work for ttySx devices, but current
versions does.  Try an upgraded chat utility.  Probably should upgrade
everything to RH5.2 level, as the current chat also requires glibc,
which requires an upgraded ......

The stty command won't return until carrier is present from the modem,
and that is the expected behaviour from most unix versions as well.

Villy

 
 
 

/dev/ttyS1, /dev/cua1 and linux-2.2.2

Post by I.R » Fri, 05 Mar 1999 04:00:00



[...]

Quote:>Some of these utilities might not work for ttySx devices, but current
>versions does.  Try an upgraded chat utility.  Probably should upgrade
>everything to RH5.2 level, as the current chat also requires glibc,
>which requires an upgraded ......

Thanks, I will try that.

Quote:>The stty command won't return until carrier is present from the modem,
>and that is the expected behaviour from most unix versions as well.

Well all right, but that can't be the whole story. stty works perfectly with
my modem on cua1 (i.e. it returns). I always thought cua1 and ttyS1 show the
same behaviour. setserial -a says they are equally configured.

I.R.

 
 
 

/dev/ttyS1, /dev/cua1 and linux-2.2.2

Post by Villy Kru » Fri, 05 Mar 1999 04:00:00




>Well all right, but that can't be the whole story. stty works perfectly with
>my modem on cua1 (i.e. it returns). I always thought cua1 and ttyS1 show the
>same behaviour. setserial -a says they are equally configured.

That is because when you open the cua device before carrier is present and
the device is not otherwise busy, then the open will succeed.  With ttyS
the open will suspend until carrier is present, unless you do a non-blocking
open.  Dialer programs like chat must be programmed to do excactly that; or
they won't work.

If cua and ttyS showed the same behaviour, there would not have been any
reason to make a separate cua device in the first place.

If you have the mgetty package you might try to take a look at the
following file: (redhat 5.2)

/usr/doc/mgetty-1.1.14/ttyS-cua.txt

Villy

 
 
 

/dev/ttyS1, /dev/cua1 and linux-2.2.2

Post by Doug DeJul » Fri, 05 Mar 1999 04:00:00




>Well all right, but that can't be the whole story. stty works perfectly with
>my modem on cua1 (i.e. it returns). I always thought cua1 and ttyS1 show the
>same behaviour. setserial -a says they are equally configured.

The cua and ttyS ports have never shown the same behavior.  The ttyS
port is POSIX compatible, and the cua one is not -- the differences
are basically for compatability with very old software that was
written before POSIX.
--

HKS, Incorporated | http://www.hks.net/~ddj/
 
 
 

1. ppp-on: tty_io.c: process 200 (pppd) used obsolete /dev/cua1 - update software to use /dev/ttyS1 tty_io.c: process 267 (pppd) used obsolete /dev/cua1 update software to use /dev/ttyS1

 I just got 2.1.107  kernel..  because I need my UDMA hard disk
working  good ;)
  and upgrade PPP  to 2.3.5...

 I  get this message when  I  try to run ppp-on
 this is not a problem on the script! was running before...

tty_io.c: process 200 (pppd) used obsolete /dev/cua1 - update software
to
use /dev/ttyS1

/dev/cua1 -
update software to use /dev/ttyS1

  tanks!

I'm sorry about the bad English...   I'm Brazilian ;)

2. Things for Linux Newbies Would Like to See.

3. /dev/cua1 <-> /dev/ttyS1?

4. PERL 5.0 and Socket.pm, screwing up, help

5. /dev/cua1 /dev/ttyS1

6. HELP !!!!

7. (/dev/ttyS1): Permission denied cu: /dev/ttyS1: Line in use Connection lost

8. Jaz Drive install - Can't get it to boot 01010101

9. minicom, uugetty, /dev/[modem,cua1,ttyS1] Hmm...

10. Using /dev/cua1 for outgoing calls, while running /sbin/mgetty ttyS1

11. Two mice /dev/psaux and /dev/ttyS1 possible under Linux

12. How to send commands to /dev/modem or /dev/cua1 ?

13. cat file > /dev/cua1 vs. cp file /dev/cual ?