Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    QextSerialPort and bytesWritten(qint64) signal

    3rd Party Software
    3
    4
    2611
    Loading More Posts
    • 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.
    • Q
      qxoz last edited by

      Hi everyone!
      How can I detect, is all data sended?
      signal bytesWritten(qint64) not emit after data writing complete.

      1 Reply Last reply Reply Quote 0
      • K
        kuzulis Qt Champions 2020 last edited by

        If my memory serves me, the bytesWritten() is not implemented in QextSerialPort.

        Try another library:
        http://qt-project.org/wiki/QtSerialPort

        Get the source code here:
        https://qt.gitorious.org/qtplayground/qtserialport/archive-tarball/master

        But bear in mind that bytesWritten () returns only the number of bytes that were sent to the port driver. ie not the fact that they are actually sent to the Tx line.

        1 Reply Last reply Reply Quote 0
        • D
          dbzhang800 last edited by

          Hi qxoz,

          Which verison of QextSerialPort are you using now? note that bytesWritten(qint64) only works in EventDriven mode.

          These is a related issue: http://code.google.com/p/qextserialport/issues/detail?id=103 but I am not sure whether it is valid or not.

          Debao

          1 Reply Last reply Reply Quote 0
          • Q
            qxoz last edited by

            Thanks for answers.
            to 1+1=2: Yes i forgot turn EventDriven mode.
            to kuzulis: Thanks for link. I think in future i`ll use this one.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post