utilities on using UART port.