its running with many glitches
simplyfied RX timeout
try a simpler (synchron) approach
straightened the state machine
little fix, more debug messages