use first 2/3 byte data to determine how long of while data receive