From: Austin S. <te...@of...> - 2002-09-23 16:56:54
|
On Mon, Sep 23, 2002 at 12:32:45PM -0400, Hal Vaughan wrote: > I'm using expect to dial up a remote system, retreive data, then log off. > Other perl scripts then process the data. > > The problem is in communicating with my modem. I've noticed that when I first > re-boot (and possibly other times, but I'm not sure), when I run this > program, I keep getting an endless string of ^H from the modem. If, instead, > I run Minicom, then quit without sending the termination strings (quitting > instead of a "regular" exit from the program), then run my perl programs, I > have no problem accessing the modem. > > Is this an Expect problem, or is Minicom doing something in C that Perl > doesn't do? I don't know C, but as best I can tell Minicom does some things > with ioctl (and perhaps more), but I have no clear idea what's going on. > > Any ideas? > It's been awhile since I've worked with modems, but IIRC you need to stty('raw') the line before talking to the modem. In particular I think they don't like the default 'ICANON' setting. I think most of the time I've just spawned cu (comes w/ taylor uucp package) rather than work with the modem directly anyway. It does locking on the device, among other benefits. YMMV. Austin |