![]() ![]() Some Debug Information during run: WRITTEN 1 QDebug() << "I AM NOT READY!" << endl // <- SOMETIMES (OR OFTEN) I AM HERE I only found, where the problem is.ĭeviceControl_SerialPort->write(input) // waitForBytesWritten(30000)) // waitForReadyRead(3000)) // readAll() // waitForReadyRead(10)) // readAll() ĭeviceControl_List.at(0)->setAngleEncoderData(output.at(1), output.at(2)) ĭeviceControl_List.at(1)->setAngleEncoderData(output.at(3), output.at(4)) ![]() I have been trying many times to solve this problem, but no success. In waitForReadyRead(time) I can use even long time, but anyway I can't get data. The problem is next: sometimes I write symbol to port and don't get data with waitForReadyRead(), but with next writing I get double size data (10 bytes instead of 5 bytes). In order to get data I need to send any symbol (1 byte) and then I will get 5 bytes data word. Now I try to use QSerialPort to get data from some device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |