Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Jun 1998 15:52:00 -0400
From:      MetcalJM@utrc.utc.com
To:        sderdau@bit-net.com
Cc:        questions@FreeBSD.ORG
Subject:   RE: Initializing a modem
Message-ID:  <C77AD5DA2AA7D111859D00805FA72468033633@EXPRESS7>

next in thread | raw e-mail | index | archive | help
That's basically what I'm already doing with expect.
I'm looking for a smooth non-interactive way to do that.

Thanks,

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


-----Original Message-----
From: Stephen A. Derdau [mailto:sderdau@bit-net.com]
Sent: Saturday, June 06, 1998 3:50 AM
To: MetcalJM@utrc.utc.com
Subject: Re: Initializing a modem


I'm a newbie at this but would typing ppp 
then term
help
I've used this to write changes to my modem
when you start it it tells you how to escape it and quit at
the ppp> prompt.



MetcalJM@utrc.utc.com wrote:
> 
> 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

-- 
                   "FreeBSD It's That and Much Much More"
                   Find out Why @ http://www.freebsd.org
			
Stephen A. Derdau
http://sderdau.bit-net.com

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C77AD5DA2AA7D111859D00805FA72468033633>