Hello,
I am using a imx6 dual light sbc board. At first I builed a 3.14 linux kernel with Yocto 2.0. I have a Qt app.
In the app I use uart module and I am using QSerialPort class. With the 3.14 linux kernel version this app works fine.
Now I updeted linux version to a 4.9 linux version with Yocto 2.4. With the new linux version uart module works incorrectly, the read function is slower that 3.14 version.
The device that is connected to uart transmites every time.
this is the constructure code where I configure uart class.
serial = new QSerialPort;
senderCounter = 0;
/*serial port Configuration*/
serial->setPortName(PORT1);
serial->setBaudRate(QSerialPort::Baud19200/*Baud115200*/);
serial->setDataBits(QSerialPort::Data8);
serial->setParity(QSerialPort::NoParity);
serial->setStopBits(QSerialPort::OneStop);
serial->setFlowControl(QSerialPort::NoFlowControl);
if(serial->open(QIODevice::ReadWrite) == true){
connect(serial,SIGNAL(readyRead()),this,SLOT(readSerial()));
}
Someone who can help me o who had the same problem.
Thank you