From owner-freebsd-questions Fri Mar 15 1: 8: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cpio.nildram.co.uk (pm6-159.dial.nildram.co.uk [195.149.1.159]) by hub.freebsd.org (Postfix) with ESMTP id D64E537B405 for ; Fri, 15 Mar 2002 01:07:52 -0800 (PST) Received: from odin.yggdrasil (localhost.yggdrasil [127.0.0.1]) by cpio.nildram.co.uk (8.11.6/8.11.6) with SMTP id g2F97Da13830 for freebsd-questions@freebsd.org; Fri, 15 Mar 2002 09:07:45 GMT (envelope-from tim@cpio.nildram.co.uk) Date: Fri, 15 Mar 2002 09:07:45 GMT From: Tim Preece Message-Id: <200203150907.g2F97Da13830@cpio.nildram.co.uk> To: freebsd-questions@freebsd.org Subject: Modem AT Commands X-Mailer: Gmail 0.7.0 (http://gmail.linuxpower.org) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Can anyone please inform me as to how I may send specific commands to a modem. ? I have a script that switches my ppp dial up number depending on weather I am calling in the day time, or at night and weekends. However I would like to refine this further so that I can turn my modem speaker off during the night, and back on during the day. My modem uses M0 to turn off the speaker, so I have tried adding ATM0 into my chat script in various ways, i.e. set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\ ATM0 OK \\dATDT\\T TIMEOUT 40 CONNECT" or set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 ATM0 OK \\dATDT\\T TIMEOUT 40 CONNECT" but all this does is cause the script to hang, although at some point, I did get the speaker to turn off. If it cant be done through the chat script, is there some software that would allow me to communicate to the modem directly ( this would be nice to do anyhow ) ? Thanks in advance. -- - Tim Preece. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message