receive state machine from UART PC implemented