Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTR doesn't drop

Status
Not open for further replies.

Bertil

Technical User
Mar 7, 2002
24
SE
I establish a SLIP connection by running "slattach" (slattach +c +v +mtu 552 /dev/tty1a rmt1 site1 9600 &).

When session is over, process is stopped by using "kill".

Process is stopped but sometimes DTR on tty1a stays on. The only way I have found to drop DTR is to run:
cu -l tty1a dir
~.[rmt1]

Is there a simpler way to make sure that DTR always drops when process is killed??
 
You may want to review the 'ttydef' used by the port ...
 
Not sure which version you are running but...

on 5.0.5

try using the +f option to enable hardware flow on the slattach command. or use the tty1A device.
 
I do not have the file "ttydef". I am using Open Desktop 3.2 v 4.2. Maybe "/etc/gettydefs" is the file I should examine?
Any idea which parameter affects DTR??
 
ok on 3.2.4.2 slattach does not have the +f option so,
use the tty1A device.
^
 
My mistake about 'ttydefs'. The file to review is '/etc/gettydefs'. Some options to review are:
- hupcl: hang up on logout
- clocal: modem control that also implies half-duplex mode

You may want to include a 'disable' command in your script. The 'enable/disable' commands toggle DTR, DSR, and RTS. My 'tty2a' port responds this way;
- after a 'diasable': 4(RTS) high, 6(DSR) low, 20(DTR) high
- after an 'enable': 4(RTS) low, 6(DSR) high, 20(DTR) low

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top