Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Qextserialport comm. error
Qt 6.11 is out! See what's new in the release blog

Qextserialport comm. error

Scheduled Pinned Locked Moved C++ Gurus
1 Posts 1 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    simonCpp
    wrote on last edited by
    #1

    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->setBaudRate(BAUD691200);
    port->setDataBits(DATA_8);
    port->setParity(PAR_NONE);
    port->setStopBits(STOP_1);
    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved