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. Open a serial port on Ubuntu SO
Forum Updated to NodeBB v4.3 + New Features

Open a serial port on Ubuntu SO

Scheduled Pinned Locked Moved General and Desktop
6 Posts 5 Posters 5.4k 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.
  • G Offline
    G Offline
    gRicky
    wrote on last edited by
    #1

    Hi guys,

    How can I open a serial port and communication on Ubuntu using Qt-Creator? Is already there a functionalities or QtWidget that can do that?

    Thks in advance.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TFabbri
      wrote on last edited by
      #2

      You have to include the libraries for using the serial port communication and write the instructions like a classical C++ program.
      Moreover, there is this library "QxtSerialPort":http://code.google.com/p/qextserialport/, but I've never used.
      It's already been discussed "here":http://qt-project.org/forums/viewthread/9986

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AcerExtensa
        wrote on last edited by
        #3

        Qt-Creator is just an IDE. And QtWidget is an GUI element... For Serial communication you can use 3rd Qt libraries like "QextSerialPort":http://code.google.com/p/qextserialport/...

        God is Real unless explicitly declared as Integer.

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

          bq. Qt libraries like QextSerialPort [code.google.com]…

          Or better - "QtSerialPort":http://qt-project.org/wiki/QtSerialPort

          because QtSerialPort more functional and easier.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Ali Sarlak
            wrote on last edited by
            #5

            HI
            you can see "http://yengal-marumugam.blogspot.com/2011/07/serial-port-manipulation-in-c-linux.html".
            you will need that use posix api in your app.i do this in windows in my app i use windows.h and ... .
            serial port and other depends on platform .

            of course Qt-Creator is just an IDE ;)

            I hope that helped

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Ali Sarlak
              wrote on last edited by
              #6

              If your problem solved please add [Solved] tag

              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