Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    4
    5
    286
    Loading More Posts
    • 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.
    • Stokestack
      Stokestack last edited by 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_1980 1 Reply Last reply Reply Quote 0
      • aha_1980
        aha_1980 Lifetime Qt Champion @Stokestack last edited by

        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 Reply Quote 1
        • gde23
          gde23 last edited by

          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 Reply Quote 1
          • Stokestack
            Stokestack last edited by Stokestack

            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 Reply Quote 1
            • K
              kuzulis Qt Champions 2020 last edited by

              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 Reply Quote 0
              • First post
                Last post