fix serial communication problem. But current implementation is based on timing (need to go through GUI in 10 seconds