From owner-freebsd-questions Wed Oct 27 15:26:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 0AF3F14E78 for ; Wed, 27 Oct 1999 15:26:27 -0700 (PDT) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (patr530-a055.otenet.gr [195.167.115.55]) by athserv.otenet.gr (8.9.3/8.9.3) with SMTP id BAA26463 for ; Thu, 28 Oct 1999 01:26:23 +0300 (EET DST) Received: (qmail 8187 invoked by uid 1001); 27 Oct 1999 16:12:16 -0000 To: freebsd-questions@freebsd.org Subject: Re: Modem problem References: <3815CC55.49A5DE3A@designstein.com> From: Giorgos Keramidas Date: 27 Oct 1999 19:12:16 +0300 In-Reply-To: Ryan Linwood's message of "Tue, 26 Oct 1999 10:44:21 -0500" Message-ID: <86u2ncn5pb.fsf@localhost.hell.gr> Lines: 37 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "20 Minutes to Nikko" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ryan Linwood writes: > The problem is that the modems constantly drop out of autoanswer. My far-fetched guess... have you saved in the active profiles of your modems the proper things for auto-answering? i.e. set the register S0 to the number of rings before auto-answering? If not, you could use minicom or some other terminal application to send to your modems the following commands. ATS0=1 AT&W0 AT&W1 > I want to create a crontab to call a shell script that will just send > an AT command to the modems every 10 minutes to reset them. Hm, I'm almost sure that you don't want to do this. Won't this reset the modem and hang up any active connection too? > My problem is that I am not quite sure how to send a direct command to > a modem in a shell script. A simple "echo" command would be enough, although you would not be able to see the OK responces of your modem. Try something like: # echo -n "AT^M" >/dev/cuaa1 [ assuming that your modem is connected to /dev/cuaa1, of course ] Note that to insert a literal ^M in the command you might want to press the keystrokes ^V^M -- depending on your shell. -- Giorgos Keramidas, "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message