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. Multi serial port application

Multi serial port application

Scheduled Pinned Locked Moved Unsolved General and Desktop
49 Posts 5 Posters 14.0k 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.
  • V Offline
    V Offline
    veera
    wrote on last edited by
    #39

    i have verified with minicom slot machine cable is connected with ttyS4 so i am trying with this port

    1 Reply Last reply
    0
    • V Offline
      V Offline
      veera
      wrote on last edited by
      #40

      i have tried ttyS0 and ttyS1 also it is not able to open the serial port....

      mrjjM 1 Reply Last reply
      0
      • V veera

        i have tried ttyS0 and ttyS1 also it is not able to open the serial port....

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #41

        @veera

        ok. not sure what could be wrong with your linux if you have added
        yourself (your username) to dial out group and you are sure that the port exists.

        What linux are you using ?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          veera
          wrote on last edited by
          #42

          ubuntu 16.04 LTS ,i opened serial port now if i choose the run in terminal its opening please help how to set sudo password in qt instead of choosing run in terminal directly need to open

          aha_1980A 1 Reply Last reply
          0
          • V veera

            ubuntu 16.04 LTS ,i opened serial port now if i choose the run in terminal its opening please help how to set sudo password in qt instead of choosing run in terminal directly need to open

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

            @veera said in multi serial port application:

            ubuntu 16.04 LTS ,i opened serial port now if i choose the run in terminal its opening please help how to set sudo password in qt instead of choosing run in terminal directly need to open

            If you need the sudo password than setting yourself into dialout group did not work!

            Have your rebooted your PC after you put yourself into dialout?

            Hint: call error() when opening the serial port fails to get more information about the error.

            Qt has to stay free or it will die.

            jsulmJ 1 Reply Last reply
            2
            • aha_1980A aha_1980

              @veera said in multi serial port application:

              ubuntu 16.04 LTS ,i opened serial port now if i choose the run in terminal its opening please help how to set sudo password in qt instead of choosing run in terminal directly need to open

              If you need the sudo password than setting yourself into dialout group did not work!

              Have your rebooted your PC after you put yourself into dialout?

              Hint: call error() when opening the serial port fails to get more information about the error.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #44

              @aha_1980 @veera Reboot is not needed: just log off and on again after adding yourself to the group.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              aha_1980A 1 Reply Last reply
              1
              • V Offline
                V Offline
                veera
                wrote on last edited by
                #45

                yes i have rebooted system now opened successfully ......Thank you so much

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  veera
                  wrote on last edited by
                  #46

                  how to write and read the hexbytes such as unsigned char ch1[] = {0X01,0X04,0X0F} etc from serial port......

                  mrjjM 1 Reply Last reply
                  0
                  • V veera

                    how to write and read the hexbytes such as unsigned char ch1[] = {0X01,0X04,0X0F} etc from serial port......

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #47

                    @veera
                    Hi
                    Hex is a notation and not a format.
                    The bytes are still just bytes.
                    QByteArray has
                    QByteArray::fromHex
                    http://doc.qt.io/qt-5/qbytearray.html#fromHex
                    and
                    http://doc.qt.io/qt-5/qbytearray.html#toHex

                    1 Reply Last reply
                    3
                    • jsulmJ jsulm

                      @aha_1980 @veera Reboot is not needed: just log off and on again after adding yourself to the group.

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

                      @jsulm I know :) But it does not hurt either and before explaining what logging out an in again means...

                      Qt has to stay free or it will die.

                      1 Reply Last reply
                      2
                      • V Offline
                        V Offline
                        veera
                        wrote on last edited by
                        #49

                        @mrjj ,
                        Okay thanks i will try it now....

                        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