Re: belkin usb serial converter (mct_u232), break not working

From: Paul Fulghum
Date: Wed Oct 20 2004 - 18:15:14 EST


On Wed, 2004-10-20 at 17:08, Thomas Stewart wrote:

> take porttest.c:
> #include <sys/fcntl.h>
> #include <sys/ioctl.h>
> main(int argc, char ** argv) {
> int fd = open(argv[1], O_RDWR|O_NOCTTY);
> ioctl(fd, TCSBRKP, 20);
> close(fd);
> }
>
> $ time ./porttest /dev/ttyS0
> real 0m2.001s
> user 0m0.001s
> sys 0m0.000s
>
> A standard serial port with a 2 second break (20*100ms), takes as expected
> just over 2 seconds.
>
> $ time ./porttest /dev/ttyUSB1
> real 0m0.004s
> user 0m0.000s
> sys 0m0.001s
>
> However with the USB converter instead, it takes 5 ms to complete. Much
> shorter than expected.
>
> Is it a driver issue?

Can you record and display the return code from the ioctl()?

Thanks

--
Paul Fulghum
paulkf@xxxxxxxxxxxxx


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/