This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using COM0 as serial



Hello,

I am trying to use COM0 as a regular serial port not a terminal. The kernel uses COM0 "dev/tty" as a console by default right? In this project I use the same COM port to talk to other devices in serial mode. How do I change COM0 from terminal mode to serial mode. I have try to close("dev/tty") and then open("dev/ttyS", O_RDWR) and I get an error opening the port.

 

Regards,

Javier