From owner-freebsd-questions Thu Feb 24 17:18:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 7CE9437BC74; Thu, 24 Feb 2000 17:18:39 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (doconnor@cain [203.38.152.97]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id LAA27663; Fri, 25 Feb 2000 11:29:05 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <013701bf7f2a$1c4681c0$0301a8c0@Ptacek> Date: Fri, 25 Feb 2000 11:29:05 +1030 (CST) From: "Daniel O'Connor" To: Ptacek Subject: RE: modem program... Help Cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 25-Feb-00 Ptacek wrote: > I just can't seem to get the modem to hangup. I probably have > to bring the DTR low (+++ATH doesn't work). How > do I do this? Also how can I detect if the modem is in > command mode, for example if the line gets unplugged and I > get a NO CARRIER back how do I know to read that as a > command instead of data? Your '+++ATH0' won't work because there is no delay between the +++ and the ATH0. ie do '+++' wait 2 seconds then send 'ATH0' Or you could set the modem to go into command mode on DTR drop.. --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message