uart open with timeout