oazive
2nd May 2017, 15:29
Hi everyone,
i have a probleme while recieving datas in a QByteArray when i use readAll from QSerialPort, i recieve datas like that when i use qDebug << datas.size() << datas;
(datas is a QByteArray)
512 "11010111111101000001010000010100000101000001010000 01010000010100000101000001010000010100000101000001 01000001010000010100000101000001010000010100000101 00000101000001010000010100000101000001010000010100 00010100000101000001010000010100000101000001010000 01010000010100000101000001010000010100000101000001 01000001010000010100000101000001010000010100000101 00000101000001010000010100000101000001010000010100 00010100000101000001010000010100000101000001010000 01010000010100000101000001010000010100000101000001 010000010100"
6 "0001\r\n"
after recieving the frame i extract the different information, but it doesn't come entirely so the data extraction is not correct, it works only if the frame is less than 512 bits
i have a probleme while recieving datas in a QByteArray when i use readAll from QSerialPort, i recieve datas like that when i use qDebug << datas.size() << datas;
(datas is a QByteArray)
512 "11010111111101000001010000010100000101000001010000 01010000010100000101000001010000010100000101000001 01000001010000010100000101000001010000010100000101 00000101000001010000010100000101000001010000010100 00010100000101000001010000010100000101000001010000 01010000010100000101000001010000010100000101000001 01000001010000010100000101000001010000010100000101 00000101000001010000010100000101000001010000010100 00010100000101000001010000010100000101000001010000 01010000010100000101000001010000010100000101000001 010000010100"
6 "0001\r\n"
after recieving the frame i extract the different information, but it doesn't come entirely so the data extraction is not correct, it works only if the frame is less than 512 bits