Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSerialPort.write() integrity
Qt 6.11 is out! See what's new in the release blog

QSerialPort.write() integrity

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 591 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.
  • H Offline
    H Offline
    hyur
    wrote on last edited by hyur
    #1

    Is this function just pushing data?
    Or do integrity checks as well?

    Data must be sent and received between the hardware and QT.
    I am contemplating whether to add a checksum algorithm.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Bytes in one end, bytes out the other. No higher level protocol.

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        As @ChrisW67 suggests, the protocol, checksum, etc is for you to implement. Serial ports are nothing more than a wire transfert. You are responsible for establishing all the higher level data frame format, transfert checks etc.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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