lkml.org 
[lkml]   [2004]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: belkin usb serial converter (mct_u232), break not working
Date
On Wednesday 20 October 2004 23:21, you wrote:
> What kernel version are you running?

2.6.8.1

Well, a stock debian one out of sarge, kernel-image-2.6.8-1-686-smp, configs
at http://www.stewarts.org.uk/stuff/config-2.6.8-1-686. There is not much
difference between a stock 2.6.8.1 and the debian 2.6.8:-
http://www.stewarts.org.uk/stuff/debian.2.6.8.patch

On Wednesday 20 October 2004 23:27, you wrote:
> Can you record and display the return code from the ioctl()?

porttest.c:
#include <sys/fcntl.h>
#include <sys/ioctl.h>
main(int argc, char ** argv) {
int r, fd = open(argv[1], O_RDWR|O_NOCTTY);
r=ioctl(fd, TCSBRKP, 20);
printf("%d\n", r);
close(fd);
}

$ ./porttest /dev/ttyS0
0
$ ./porttest /dev/ttyUSB0
0

Regards
--
Tom

PGP Fingerprint [DCCD 7DCB A74A 3E3B 60D5 DF4C FC1D 1ECA 68A7 0C48]
PGP Publickey [http://www.stewarts.org.uk/public-key.asc]
PGP ID [0x68A70C48]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.082 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site