Used the poll UART method to implement labtest part 1.