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. Has anyone gotten QSerialPort to work with a USB-to-serial adapter?
Forum Updated to NodeBB v4.3 + New Features

Has anyone gotten QSerialPort to work with a USB-to-serial adapter?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 655 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.
  • StokestackS Offline
    StokestackS Offline
    Stokestack
    wrote on last edited by Stokestack
    #1

    Hi all. I need to communicate with external devices serially through USB. I have a USB-to-serial adapter (Prolific chipset, similar to FTDI devices), but the Qt serial-enumeration example doesn't show it. It only shows Bluetooth serial ports (under Mac OS 10.15.5).

    I know the device is working, because I can send stuff through it with a terminal. Anybody know why the Qt serial classes don't see it, or how to get it working?

    Thanks!

    aha_1980A 1 Reply Last reply
    0
    • StokestackS Stokestack

      Hi all. I need to communicate with external devices serially through USB. I have a USB-to-serial adapter (Prolific chipset, similar to FTDI devices), but the Qt serial-enumeration example doesn't show it. It only shows Bluetooth serial ports (under Mac OS 10.15.5).

      I know the device is working, because I can send stuff through it with a terminal. Anybody know why the Qt serial classes don't see it, or how to get it working?

      Thanks!

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Stokestack,

      which Qt version are you using?

      Note that even if you can't enumerate the device, you might still be able to use it with QtSerialPort if you know the name.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • gde23G Offline
        gde23G Offline
        gde23
        wrote on last edited by
        #3

        I don't know how it is on macs, but on Linux e.g. if you wire up e.g. an USB serial device like an arduino or something it will show up under /dev/ttyACM0 instead of /dev/tty# so the device path differs in between "normal serial ports" and USB ones.

        1 Reply Last reply
        1
        • StokestackS Offline
          StokestackS Offline
          Stokestack
          wrote on last edited by Stokestack
          #4

          Thanks for the replies, guys!

          It actually works now (Qt 5.15.0). I had heard the Apple driver was janky, so I always unload it before using my serial program (called Serial)... but Serial has its own driver. So the rest of the system was left without one.

          After a shambolic run-in with a defective driver from Prolific (DO NOT install Prolific's PL2303 driver; it will brick your Mac), the Apple driver was re-enabled and the Qt serial examples work fine.

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

            JUST FOR INFO: I'm afraid that it is impossible to do a fixing anymore on an OSX OS from my side. Because I use now an AMD CPU.. )) So, maybe someone in future can fix a future bugs related to OSX..

            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