From owner-freebsd-questions Thu Feb 24 16:49: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guppy.pond.net (guppy.pond.net [205.240.25.2]) by hub.freebsd.org (Postfix) with ESMTP id CF7DC37C295; Thu, 24 Feb 2000 16:48:57 -0800 (PST) (envelope-from ptacek@dashmail.net) Received: from Ptacek (rc1s7p8.dashmail.net [216.36.33.80]) by guppy.pond.net (8.9.3/8.9.3) with SMTP id QAA16279; Thu, 24 Feb 2000 16:34:14 -0800 (PST) Message-ID: <013701bf7f2a$1c4681c0$0301a8c0@Ptacek> From: "Ptacek" To: , Subject: modem program... Help Date: Thu, 24 Feb 2000 16:49:00 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am currently writing a program that will use an attached modem to dial and connect to a remote site to gather data. I have been able to dial, connect, send data back and forth, but 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? Thanks, Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message