Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to set QSerialPort flag(EventChar,ReplaceFlow)



  • hello all,
    I want set my serialport settings to the folowing status :
    0_1514783821470_serial_settings.PNG
    I haven't searched proper way to do it. Could you tell me about it if you have some advice,thanks a lot.


  • Lifetime Qt Champion

    @pinkie said in How to set QSerialPort flag(EventChar,ReplaceFlow):

    hello all,
    I want set my serialport settings to the folowing status :
    0_1514783821470_serial_settings.PNG
    I haven't searched proper way to do it. Could you tell me about it if you have some advice,thanks a lot.

    Hi, this looks like something that has to be done by your program itself. It is a higher layer protocol on top of QSerialPort.

    The settings from the first line can be done by QSerialPort, of course.

    Happy New Year


  • Qt Champions 2020

    Hi,

    as I know, it is only Windows specific options, exists in DCB. So, you can try to get the QSerialPort::hande(), request the current DCB structure, change it, and setup back. But I'm not sure, because the QSerialPort was designed as a cross-platform solution.


Log in to reply