Important: Please read the Qt Code of Conduct -

Qextserialport comm. error

  • Hey,

    I'm experiencing a very weird and annoying problem. While I record the data and I minimize or maximize the SW window I got corrupted data.

    BUT, If I first open the RealTerm and then open / close the port and then starting to record data with my SW then the problem is gone.

    P.S. it's happened in high rate - 400hz.

    Any suggestions?
    port = new QextSerialPort(portName,QextSerialPort::EventDriven);

    if(!port->open(QIODevice::ReadOnly )) 
        return -1;
    connect( port, SIGNAL(readyRead()), this, SLOT(onReadyRead()));
    port->setFlowControl (FLOW_OFF);
    port->setRts( true );
    port->setDtr( true );

    My setup:
    Windows xp sp3
    Serial port RS-422
    BaudRate : 691200
    Qt 4.7.0
    Qextserialport 1.2 beata2.

Log in to reply