Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. QextSerialPort and bytesWritten(qint64) signal
Forum Update on Monday, May 27th 2025

QextSerialPort and bytesWritten(qint64) signal

Scheduled Pinned Locked Moved 3rd Party Software
4 Posts 3 Posters 2.9k Views
  • 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 Offline
    Q Offline
    qxoz
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by
      #2

      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
      0
      • D Offline
        D Offline
        dbzhang800
        wrote on last edited by
        #3

        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
        0
        • Q Offline
          Q Offline
          qxoz
          wrote on last edited by
          #4

          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
          0

          • Login

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