tty_fd = open(tty_dev,O_WRONLY| O_NOCTTY | O_NONBLOCK); ...impostazione attributi della porta... write(tty_fd,"ciao\r",5);