expectedLength is data[2] for deviceControl