reading in all data on serial line then sending out a control X