From owner-freebsd-questions Wed Mar 10 10:45:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from george.lbl.gov (george.lbl.gov [131.243.2.12]) by hub.freebsd.org (Postfix) with ESMTP id 67A63151C3 for ; Wed, 10 Mar 1999 10:45:17 -0800 (PST) (envelope-from mperry@george.lbl.gov) Received: (from mperry@localhost) by george.lbl.gov (8.9.2/8.9.2) id KAA06403 for freebsd-questions@freebsd.org; Wed, 10 Mar 1999 10:45:00 -0800 (PST) Date: Wed, 10 Mar 1999 10:45:00 -0800 (PST) Message-Id: <199903101845.KAA06403@george.lbl.gov> From: mperry@george.lbl.gov To: freebsd-questions@freebsd.org Subject: Serial Communication questions Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All, I'm trying to communicate with a serial device that requires sending it a hardware BREAK to get it into its active state. So I'm trying this: ioctl(file_desc, TIOCSBRK, NULL); usleep(TIMEOUT); ioctl(file_desc, TIOCCBRK, NULL); I'm not having luck, so the following questions come to mind (and were not answered in the man pages) 1). Does the ioctl() call with argument 2 as TIOCSBRK add stop bit(s) to the sequence of zero bits that it sends? 2). One possible c_cflag for the termio struct that one can specify is CSTOPB. My understanding is that if CSTOPB is specified, 2 stop bits are sent; if not specified, then 1 stop bit is used. Is there a way under freeBSD to specify NO stop bits? Thanks, Marcia (mperry@george.lbl.gov) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message