Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123768

Bug in QSerialPort

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • None
    • 6.6.0
    • Serial Port
    • None
    • Qt Creator 12.0.0.0 community
      QT version 6.6.0
      Windows
    • Windows
    • QSerialPort is fine.

    Description

      Hello
      I have several problems for QSerialPort in Windows 10 and version qt 6.6.0
      First, I have a question about using QSerialPort.
      In Windows I understand that for the communication between the program and the device to work I have to set "serialport" as open and then:
      _serial_port->setDataTerminalReady(true);
      But it is ALWAYS FALSE and never changes anywhere in the program but it is mandatory for the program.(I also tried to remove it)

      I don't know if you have modified this over time or if it is a bug or if it is the cause of:
      When I request data from the device, at "random" times, the device crashes and returns nothing.
      And I have checked with other "realterm" type programs and it works perfect so the device is fine.
      But in QT, it fails.
      Example using QT + Telnet:

      As you can see, for example, it fails and it doesnt return "64" when i say "gf" in random moments,so readyread is not emitted since "it isn't available data".. When i say "it isn't available data", it means that bytesavailable() return 0 before readyread signal.
      So i want to know if it its a bug from QT in windows or whatever...

      Code of the config:

      I hope that it can be fixed as soon as possible or at least...that we can confirm that it is a bug or not.

      Best regards

       

      Attachments

        1. bth-connection-server.zip
          171 kB
        2. Captura.PNG
          Captura.PNG
          4 kB
        3. Captura2.PNG
          Captura2.PNG
          40 kB
        4. ClientTesting.zip
          5 kB
        5. remoteusbconnection.cpp
          7 kB
        6. remoteusbconnection.h
          1 kB
        7. USBPROJECT-SERIALPORT.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            albertomonreal Alberto Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes