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. [Resolved]Can't configure setting when my program use QserialPort

[Resolved]Can't configure setting when my program use QserialPort

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 2.3k Views
  • 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.
  • I Offline
    I Offline
    Ivan1120
    wrote on 5 Jan 2015, 13:14 last edited by
    #1

    Hi guys:
    is there anyone have the problem that the same application in the different computers, one can work and the other one can't?? My program use QserialPort library to communicate with other machine. And the weird thing is in my computer i can change the setting(baudrate, parity...etc), but in the other computer these fucntion will return false. Does anyone have any idea??

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 5 Jan 2015, 13:19 last edited by
      #2

      Hi,

      Are you using linux ? If so, did you check that the user of the other machine has the rights to access the serial port ? e.g. being part of the "dialout" group

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ivan1120
        wrote on 5 Jan 2015, 13:22 last edited by
        #3

        Hi:
        My computer and the others are win7 .

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 5 Jan 2015, 13:26 last edited by
          #4

          Then did you hard code the name of the serial port and the computers don't use the same ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • I Offline
            I Offline
            Ivan1120
            wrote on 5 Jan 2015, 13:28 last edited by
            #5

            Hi:
            No, i use QSerialPortInfo::availablePorts() to find the correct port.

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Ivan1120
              wrote on 5 Jan 2015, 13:36 last edited by
              #6

              I use errorString() and it shows "The parameter is incorrect.". But it doesn't make sense, in my computer, all things are working.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kuzulis
                Qt Champions 2020
                wrote on 5 Jan 2015, 18:46 last edited by
                #7

                bq. "The parameter is incorrect.”

                1. What type of serial port (chip) did you use?

                2. Please give more info what do you do..

                3. After what of method appears this error?

                4. What version of QtSerialPort did you use?

                5. Can you reproduce this error with Terminal example ?

                6. Can you open these serial ports using others terminals (putty, termite, terraterm)?

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kuzulis
                  Qt Champions 2020
                  wrote on 5 Jan 2015, 19:13 last edited by
                  #8

                  UPD: Probably, it is this bug: https://qt.gitorious.org/qt/qtserialport/commit/fdfd7f69743c64850979c333ddd4d2677d3d2d25

                  which is fixed in future Qt 5.4.1. But you can manually try to download and rebuild of QtSerialPort from sources (from the 5.4 branch).

                  1 Reply Last reply
                  0
                  • I Offline
                    I Offline
                    Ivan1120
                    wrote on 6 Jan 2015, 02:04 last edited by
                    #9

                    Hi,
                    Where can i download QtSerialPort only from sources?? is it compatible with Qt5.3(i am using qt5.3)

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      Ivan1120
                      wrote on 6 Jan 2015, 06:41 last edited by
                      #10

                      Hi guys:
                      I download Qt5.4 and move Qt5SerialPort.dll to the computer that couldn't use comport normally by using Qt serialport library of Qt 5.3. Now, everything are good. Thanks a lot.

                      1 Reply Last reply
                      0

                      1/10

                      5 Jan 2015, 13:14

                      • Login

                      • Login or register to search.
                      1 out of 10
                      • First post
                        1/10
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved