From owner-freebsd-questions Sat Jun 1 21:45:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (cfedde.dsl.frii.net [216.17.139.141]) by hub.freebsd.org (Postfix) with ESMTP id E4A3637B401 for ; Sat, 1 Jun 2002 21:45:40 -0700 (PDT) Received: from fedde.littleton.co.us (localhost [127.0.0.1]) by fedde.littleton.co.us (8.12.3/8.12.3) with ESMTP id g524jeQW046777; Sat, 1 Jun 2002 22:45:40 -0600 (MDT) Message-Id: <200206020445.g524jeQW046777@fedde.littleton.co.us> To: "Michael D. Harlan" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sending AT commands to modem from commandline ? In-Reply-To: <20020602041247.GA13206@harlanonline.org> From: Chris Fedde Date: Sat, 01 Jun 2002 22:45:40 -0600 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 On Sun, 2 Jun 2002 00:12:47 -0400 "Michael D. Harlan" wrote: +------------------ | I have an external modem attached to COM2 (/dev/cuaa1). Everything is in | good working order and I can connect to it using 'tip' to send it AT | commands. My question is this: can I send AT commands to it from the | command line (or better yet, from a Perl script)? | | I tried this: | # echo "ATS0=1" > /dev/cuaa1 +------------------ The command probably worked. But the modem is probably configured to return to preset config when it looses DTR from the computer. You might need something like an &W at the end of the string to write the setting to nvram. Your modems tech manual will have details on this. +------------------ | Any ideas? Are there any programs that will take redirected output from | the command line? Example: | # ./my_command < my_at_commands.txt +------------------ Tried anything like the following? # cat /dev/cuaa1 & # cat >/dev/cuaa1 < my_at_commands Good Luck -- Chris Fedde To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message