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

How to write and read without interrupts using QSerialPort

Scheduled Pinned Locked Moved Unsolved General and Desktop
qserialport
3 Posts 3 Posters 435 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.
  • T Offline
    T Offline
    timob256
    wrote on 26 Nov 2022, 14:02 last edited by
    #1
    This post is deleted!
    J 1 Reply Last reply 26 Nov 2022, 14:11
    0
    • T timob256
      26 Nov 2022, 14:02

      This post is deleted!

      J Offline
      J Offline
      JonB
      wrote on 26 Nov 2022, 14:11 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 23 Dec 2023, 07:25 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