Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. QSerialPort::bytesAvailable() always return 0
QtWS25 Last Chance

QSerialPort::bytesAvailable() always return 0

Scheduled Pinned Locked Moved Unsolved QtonPi
3 Posts 3 Posters 873 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.
  • A Offline
    A Offline
    Alan B
    wrote on 9 Dec 2020, 17:06 last edited by
    #1

    I am trying to write a simple application which communicates via the UART to a LoRa device. I know the port is set up correctly on the Pi as I have verified communications with a .NET application. However, when I try to use Qt and the QSerialPort class I can see the data (using a scope) both in the Tx and Rx directions but calling bytesAvailable() always returns 0.

    I have built the QSerialPort module using 5.12.10.

    Just wondered if anyone else has had a similar problem?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Dec 2020, 18:07 last edited by
      #2

      Hi,

      How are you using QSerialPort ?

      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
      • K Offline
        K Offline
        Kent-Dorfman
        wrote on 10 Dec 2020, 06:59 last edited by
        #3

        See this bug report

        https://bugreports.qt.io/browse/QTBUG-78086

        1 Reply Last reply
        2

        1/3

        9 Dec 2020, 17:06

        • Login

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