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.sendBreak() does not send break on Mac, but does on Windows

QSerialPort.sendBreak() does not send break on Mac, but does on Windows

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

    I'm trying to use the qserialport sendbreak function: https://doc.qt.io/qt-5/qserialport.html#sendBreak.

    On Windows 10 with Qt desktop 5.12.3, this seems to pass a break correctly to an stm32 CDC VCP device. On Mac 10.13.4 with QT 5.11.0 it does not seem to pass a break sequence.

    Is there a way around this or am I doing something wrong?

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

      Hi and welcome to devnet,

      What about using Qt 5.12.3 as well on macOS ?

      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
      • E Offline
        E Offline
        ethan-russell
        wrote on last edited by
        #3

        Just loaded 5.12.3 on my mac as well and it appears to have the same symptoms

        1 Reply Last reply
        0
        • E Offline
          E Offline
          ethan-russell
          wrote on last edited by
          #4

          It appears that this must be part of the Mac USB CDC driver because other terminal software "send break" functions don't work either.

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

            Are you using a FTDI chip ?

            In any case, nice catch.

            @kuzulis are you aware of that issue ?

            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
            • E Offline
              E Offline
              ethan-russell
              wrote on last edited by
              #6

              No I'm using an STM32F7 chip with HAL USB CDC class software.

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

                the QSP::sendBreak() based on tcsendbreak system call (on all POSIX-compatible systems). So, if it does not work, then, it is possible that it is not implemented in OSX driver. Anyway, try to check that QSP::sendBreak() return true. If it return false, then show an error text and error code.

                1 Reply Last reply
                1

                • Login

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