I use both /dev/ttyS1 and S2 in my application. It seems that /dev/ttyS2 is the default text console - and this causes me some problems with stdin. When I use open() and close() on /dev/ttyS2, I inadvertently close stdin for my ssh over wifi console. As I log in over wifi using ssh, and I configure ...