Date: Wed, 10 Mar 1999 10:45:00 -0800 (PST) From: mperry@george.lbl.gov To: freebsd-questions@freebsd.org Subject: Serial Communication questions Message-ID: <199903101845.KAA06403@george.lbl.gov>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903101845.KAA06403>