Date: Mon, 8 Sep 1997 23:33:12 -0700 (PDT) From: Jaye Mathisen <mrcpu@cdsnet.net> To: hackers@freebsd.org Subject: How the heck do you drop DTR? Message-ID: <Pine.NEB.3.95.970908231659.8638B-100000@mail.cdsnet.net>
next in thread | raw e-mail | index | archive | help
Taking my ppp problem /modem interaction to its illogical extreme, I hacked up a simple modem dialler test system under perl5. It works OK, after having to define some constants like CCTS_IFLOW and CRTS_OFLOW that for some reason the POSIX module for perl5 doesn't define. However, for the life of me, I can't figure out how to actually drop DTR. I thought closing the file handle would do it, but it doesn't, after my program exits, the modem is still on-line, and DTR is still asserted. I've looked through the termios.h include file, and can't even find any kind of constant that may have something to do with it. getty didn't show anything obvious. revoke() doesn't look right. I can't find any docs on a function called vhangup(), or at least, no man page. Looking at the source for ppp, there's something in a HangupModem() function about setting the baud rate to 0. It looks like this does the trick, but I'm not sure it's the "right" way to do it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.970908231659.8638B-100000>