From owner-freebsd-questions  Fri Jun  5 11:41:12 1998
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id LAA17501
          for freebsd-questions-outgoing; Fri, 5 Jun 1998 11:41:12 -0700 (PDT)
          (envelope-from owner-freebsd-questions@FreeBSD.ORG)
Received: from murphy ([192.65.177.210])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA17432
          for <questions@freebsd.org>; Fri, 5 Jun 1998 11:40:43 -0700 (PDT)
          (envelope-from MetcalJM@utrc.utc.com)
From: MetcalJM@utrc.utc.com
Received: from cliff-fe.res.utc.com (172.31.20.77)
 by murphy.utc.com (PMDF V4.3-10 #6532) id <01IXVQ1XXMOW002URP@murphy.utc.com>;
 Fri, 05 Jun 1998 14:39:33 -0500 (EST)
Received: from Express5.res.utc.com by cliff-fe.res.utc.com (SMI-8.6/SMI-SVR4)
 id OAA02208; Fri, 5 Jun 1998 14:39:22 -0400
Received: by express5.res.utc.com with Internet Mail Service (5.5.1960.3)
 id <MKV4CMY3>; Fri, 5 Jun 1998 14:39:28 -0400
Date: Fri, 05 Jun 1998 14:39:20 -0400
Subject: Initializing a modem
To: questions@FreeBSD.ORG
Cc: metcalf@snet.net
Message-id: <C77AD5DA2AA7D111859D00805FA72468033630@EXPRESS7>
MIME-version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)
Content-type: text/plain
Content-transfer-encoding: 7BIT
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

Hi,

I was wondering if FreeBSD has any utilities or if someone has written a
very
simple program to send AT strings to a modem on a sio? serial port.
Currently I am using ijjppp in term mode to write the strings and that
works fine.  Unfortunately, I would like to send the AT string to the
modem
non-interactively from a script.  I can use 'expect' to get the job done
with
ijjppp, but that seems to be a bit of a kludge.  In the past, I have
tried
writing directly to the raw device, 

eg. echo "ATZ" > /dev/cuaa0

but that seems to put the modem in a funny state.  Also, since I can't
see 
the return message (OK) with this method, I never knew if it really
worked.

Is there a standard FreeBSD utility to do what I'm looking to do?  If
not,
does anyone have any _simple_ C code I can hack to do this?

Many Regards,

JM
> -------------
> Jeffrey M. Metcalf
> United Technologies Research Center
> metcaljm@utrc.utc.com
> (860) 610-7576
> 
> 
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message