🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #1158

Re: Forcing DTR low on modem to hangup from Linux?

#1158
From: Rob Janssen
Date: Wed, 20 Jul 1994 07:55
20 lines
1800 bytes
In <30hcgo$rc@froggy.demon.co.uk> jrmt@froggy.demon.co.uk (Jon Thackray) writes:

>I've been trying to get a 'hangup' program to run after PPP terminates,
>to hang up the modem. SLIP (via the DIP program) use the '+++' and 'ATH'
>commands, but these don't seem to work if the modem is busy receiving data.
>(I think the manual says that '+++' needs a 1 second gap)

>What's the best way to force DTR low (it is DTR, isn't it?), so that the
>modem is /guaranteed/ to go offline ...? Would I need to add a call to the
>kernel to be able to do this, or could it be done from user mode?

Normally, just closing the port should do that.
When it doesn't, make sure the HUPCL bit is set in the termios structure.

Rob
-- 
-------------------------------------------------------------------------
| Rob Janssen                | AMPRnet:   rob@pe1chl.ampr.org           |
| e-mail: pe1chl@rabo.nl     | AX.25 BBS: PE1CHL@PI8UTR.#UTR.NLD.EU     |
-------------------------------------------------------------------------
Technical Details
Message-ID: <Ct8BCH.JFp@pe1chl.ampr.org>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!EU.net!sun4nl!rnzll3!sys3.pe1chl!rob
References: <30hcgo$rc@froggy.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1103af,80980dfa81d91b8e
X-Google-Attributes: gid1103af,public
X-Google-Thread: 151d78,80980dfa81d91b8e
X-Google-Attributes: gid151d78,public
X-Google-Thread: 108f6a,80980dfa81d91b8e
X-Google-Attributes: gid108f6a,public
X-Google-ArrivalTime: 1994-07-20 04:34:44 PST
Newsgroups: comp.os.linux.misc,demon.ip.support.unix,ukc.micro
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!EU.net!sun4nl!rnzll3!sys3.pe1chl!rob
From: rob@pe1chl.ampr.org (Rob Janssen)
Subject: Re: Forcing DTR low on modem to hangup from Linux?
Reply-To: pe1chl@rabo.nl
Organization: PE1CHL
Message-ID: <Ct8BCH.JFp@pe1chl.ampr.org>
References: <30hcgo$rc@froggy.demon.co.uk>
Date: Wed, 20 Jul 1994 07:55:29 GMT
Lines: 20