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. How to write and read without interrupts using QSerialPort
Forum Updated to NodeBB v4.3 + New Features

How to write and read without interrupts using QSerialPort

Scheduled Pinned Locked Moved Unsolved General and Desktop
qserialport
3 Posts 3 Posters 467 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.
  • timob256T Offline
    timob256T Offline
    timob256
    wrote on last edited by
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • timob256T timob256

      This post is deleted!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @timob256 said in How to write and read without interrupts using QSerialPort:

      but I couldn't read it all the time.

      What does this mean?
      You show code reading from/writing to serial port but say nothing about which functions you are calling/testing.
      Why do you keep closing and re-opening the serial port between reads & writes?

      1 Reply Last reply
      3
      • H Offline
        H Offline
        Hellen68
        wrote on last edited by
        #3

        When working with QSerialPort in Qt, you can perform reading and writing operations without using interrupts explicitly. However, it's essential to manage the communication in a way that doesn't block the main thread, especially in a GUI application where blocking operations can freeze the user interface.

        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