Serial Programming Question

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Liberty Young
Fecha:  
A: plug-discuss
Asunto: Serial Programming Question
I'm writing a quick program that ignores handshaking lines. I believe to
do that, one thing i'd like to do is "fake" CTS and DSR high by setting
them via an ioctl.

like so

int fd = open("/dev/usb/tts/0", O_RDWR);
int status = TIOCM_CTS | TIOCM_DSR

if (ioctl(fd, TIOCMSET, &status) < 0 ) return -1;

However, those lines aren't being set high. More importantly, I'm not
seeing the usb-serial driver pick up that ioctl (pl2303_tiocmset)
request and processing it. I'm not sure if the tiocmset ioctl() is not
being done correctly of if another driver is picking up that request,
whereas I'd like to have the pl2303.ko driver process that request.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss