Serial port cyclically receives and sends data