int buf_OUT[65];
QString sendStr = ui->sendTextEdit->toPlainText();
for(int i = 0;i < sendStr.length();++i){
QChar t = sendStr.at(i);
buf_OUT[i] = t.toLatin1()-'0';
}