serialPort.write(buff);serialPort.waitForBytesWritten(50);if (serialPort.waitForReadyRead(100)) buff2 = serialPort.readAll();