Issue with cfmakeraw() on USB CDC (Ubuntu 10.04 Desktop)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Experts,
I am using the following code while opening USB Serial to make it as raw port.

tcgetattr( rtio_port, &cdco);
cfmakeraw( &cdco);
cdco.c_cflag |= CS8 | CLOCAL | CREAD;
tcsetattr( port, TCSANOW, &cdco);

After opening the port, If I close and open my application, without
restarting the system, I was unable to open my serial port again with
this options.

Where as if I comment the following lines of code in my application
(Without restart the system), I was able open the serial port.

Pleas let me know, what can I do to fix this.

Regards,
RD
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux