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. High-speed QSerialPort?
Forum Updated to NodeBB v4.3 + New Features

High-speed QSerialPort?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.6k 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.
  • R Offline
    R Offline
    RogueWarrior
    wrote on last edited by
    #1

    Has anyone attempted to use QSerialPort to talk to a high-speed serial port device. For example, FTDI makes USB-serial interface chips that can run at 1 megabaud. Does the internal buffering have the ability to suck in data that fast without choking?

    What I'm running into on a Mac is the keyboard and mouse locking up hard requiring a force reboot if I set a breakpoint in the code or call usleep and this is with the most basic code to just read in some data. Full disclosure: I had to do what FTDI calls baud rate aliasing to repurpose the 300 baud setting for 1000000. This works fine with plain old non-Qt POSIX code.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      I don't know about QSerialPort.
      But when application stops on breakpoint or sleeps the Qt events are not processed and application may hung if something requires permanent attention and processing.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RogueWarrior
        wrote on last edited by
        #3

        Never mind. There's a driver problem. I discovered that if I set a breakpoint in plain old non-Qt code, the Mac will eventually lock up. :-(

        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