Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2002 16:58:06 +0200
From:      Nikolay Petrov <nik@hq.panda.bg>
To:        freebsd-hardware@FreeBSD.org
Subject:   changing com port RTS flag - Inappropriate ioctl for device
Message-ID:  <1527329343.20021105165806@hq.panda.bg>

next in thread | raw e-mail | index | archive | help
Hello ,

I try to change com RTS flag with small perl code:

        require "termios.ph";

        $DEVICE = new IO::File;
        die "Cannot open $tty, $!" unless $DEVICE->open("+<$tty");
        $DEVICE -> autoflush(1);
        IO::Stty::stty($DEVICE, 'raw');
        IO::Stty::stty($DEVICE, 'cs8', 'cread', 'inlcr', 'pass8', $tty_speed);


        ioctl($DEVICE, &TIOCMBIS, &TIOCM_RTS) || print "Error: TIOCMBIS: $!\n";
        ioctl($DEVICE, &TIOCMBIC, &TIOCM_RTS) || print "Error: TIOCMBIC: $!\n";

and i receve 'Inappropriate ioctl for device' error:
        

        Error: TIOCMBIS: Inappropriate ioctl for device
        Error: TIOCMBIC: Inappropriate ioctl for device
        

-- 
Best regards,
 Nikolay                          nik@hq.panda.bg


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1527329343.20021105165806>