Date: Mon, 21 Dec 1998 15:18:43 +0300 From: Dmitriy Agaphonov <rzhevsky@fpm.kubsu.ru> To: freebsd-questions@FreeBSD.ORG Subject: RS-232 Message-ID: <367E3CA3.8014A48F@fpm.kubsu.ru>
next in thread | raw e-mail | index | archive | help
Dear Tech Support, I've got a problem about communicating to APC UPS via RS-232. I have to perform control for DCD, TXD and other pins of RS-232. After my program does int fd = open("/dev/cuaa1", O_RDWR, 0); .... int st; int rc = ioctl(fd, TIOCMGET, &st); rc becomes -1 and errno becomes 25 (it means "inappropriate ioctl for device"). It happends too when file name of device is "/dev/cuaia1", "/dev/ttyd1" and so on. Could you tell me what do I do on the wrong way? How can I perform control for RS-232 pins? Best Regards, Dmitriy Agaphonov. 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?367E3CA3.8014A48F>