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. QSerialPort
Qt 6.11 is out! See what's new in the release blog

QSerialPort

Scheduled Pinned Locked Moved General and Desktop
24 Posts 2 Posters 11.2k 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.
  • M Offline
    M Offline
    mastinosoft
    wrote on last edited by
    #8

    It will be very nice if you have any ideas about this problem.

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

      Please try this patch: https://codereview.qt-project.org/#change,85414

      Just try to change content in lines 772-775 and 895 and try to rebuild and check this error again. Because I can not able to reproduce this error on my side.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mastinosoft
        wrote on last edited by
        #10

        thank you I'll try it tomorrow when I'll back to my job. Hope it will works.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mastinosoft
          wrote on last edited by
          #11

          Hi tried to get to the code for Serial Port but it very complicated. Have to do a lot of registration and because I started with Linux just last month it will take more time that I have. Project have to be ready yesterday so I'm in trouble. If it possible can I found the famous SerialPort source code on the other way. You put changed *.cpp file but without all others file I can't do much with it.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kuzulis
            Qt Champions 2020
            wrote on last edited by
            #12
            1. download and install Git
            2. enter command to download sources:
              @git clone git://gitorious.org/qt/qtserialport.git@
            3. enter command to change directory:
              @cd qtserialport@
            4. enter command to fetch a patch:
              @git fetch https://codereview.qt-project.org/p/qt/qtserialport refs/changes/14/85414/2 && git checkout FETCH_HEAD@
            5. Run QtCreator and open
              @qtserialport/qtserialport.pro@
              file in root directory
            6. From the QtCreator, select your Kit with your desired Qt version (5.2) and re-build library
            7. Open the console and go-to to the "shadow" build directory of the QtCreator
            8. enter command:
              @sudo make install@
            9. re-run your application and check again
            1 Reply Last reply
            0
            • M Offline
              M Offline
              mastinosoft
              wrote on last edited by
              #13

              Thank you, I'll try right now.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mastinosoft
                wrote on last edited by
                #14

                had some problem with git but now is OK

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mastinosoft
                  wrote on last edited by
                  #15

                  Now project opens but I have message:
                  @Executable /home/***/Documents/qtserialport/build-qtserialport-Desktop_Qt_5_2_1_GCC_64bit-Debug/examples/serialport/blockingmaster/blockingmaster does not exist.@
                  I have correct Kit information. "Shadow" build directory I spouse is "//build-qtserialport-Desktop_Qt_5_2_1_GCC_64bit-Debug" ?

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

                    bq. “Shadow” build directory I spouse is “//build-qtserialport-Desktop_Qt_5_2_1_GCC_64bit-Debug” ?

                    Yes. Now you should to run "sudo make install" to install QtSerialPort into your Qt 5.2 place (you can check it, see new qserialport*.so in your Qt 5.2 directory).

                    bq. Now project opens but I have message:

                    By default, the "make" command build only the library, without the examples.

                    To build examples you should to enter "make all", or, is more simple - try to open blockingmaster.pro file from QtCreator and re-build an example and to run. :)

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mastinosoft
                      wrote on last edited by
                      #17

                      Thank you. I tried "Terminal" from examples and it not gives error messages but just stop to receive data. Nothing like this happens if I read data from Linux terminal.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mastinosoft
                        wrote on last edited by
                        #18

                        Thank you for all your time. I really appreciate that. But it seams that QSerialPort have problems. I switched to QBluetooth and now I receive all data as it have to be.
                        Best regards.

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

                          Can you please repeat again but with the new :

                          @git fetch https://codereview.qt-project.org/p/qt/qtserialport refs/changes/14/85414/3 && git checkout FETCH_HEAD@

                          command?

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mastinosoft
                            wrote on last edited by
                            #20

                            ***** ~/Documents/qtserialport $ git clone git://gitorious.org/qt/qtserialport.git
                            Cloning into 'qtserialport'...
                            remote: Counting objects: 5574, done.
                            remote: Compressing objects: 100% (2815/2815), done.
                            remote: Total 5574 (delta 3819), reused 3756 (delta 2719)
                            Receiving objects: 100% (5574/5574), 1.46 MiB | 840 KiB/s, done.
                            Resolving deltas: 100% (3819/3819), done.

                            ***** ~/Documents $ cd qtserialport
                            ***** ~/Documents/qtserialport $ git fetch https://codereview.qt-project.org/p/qt/qtserialport refs/changes/14/85414/3 && git checkout FETCH_HEAD
                            fatal: Not a git repository (or any of the parent directories): .git

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

                              Need to do change directory from "~/Documents/qtserialport"

                              ~/Documents/qtserialport $ cd qtserialport

                              because you do pull into ~/Documents/qtserialport but not into ~/Documents

                              please try again :)

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mastinosoft
                                wrote on last edited by
                                #22

                                hi again.
                                Now I tried the new one you sent me. But unfortunately I have the same result. No error messaged but data stops after a few seconds.

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

                                  Ok. Many thanks for your time. Seems that the solution of this problem should be postponed until I won't get an Bluetooth dongle and so on.

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    mastinosoft
                                    wrote on last edited by
                                    #24

                                    Thank you. If you need to know so use I "Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)" and Qstarz 818XT GPS on
                                    "Linux Mint 14 Nadia". Have a nice weekend.

                                    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