Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Signal Handling
Qt 6.11 is out! See what's new in the release blog

Signal Handling

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
18 Posts 5 Posters 4.7k Views 3 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.
  • Naveen_DN Naveen_D

    @SGaist
    Hi,
    I want to create an api which can connect to the embedded board's lower layer through which i want to get the output of the lower level code to my application UI.

    For ex, i have a c code which will be running continuously at the board level and giving output, i want to create an api which will connect to this code and whenever i want i can take the output and display it in my application UI or make some changes based on that output in my UI.

    yuvaramY Offline
    yuvaramY Offline
    yuvaram
    wrote on last edited by
    #5

    @Naveen_D hi , do you want to communicate between process or within threads.

    Yuvaram Aligeti
    Embedded Qt Developer
    : )

    Naveen_DN 1 Reply Last reply
    0
    • yuvaramY yuvaram

      @Naveen_D hi , do you want to communicate between process or within threads.

      Naveen_DN Offline
      Naveen_DN Offline
      Naveen_D
      wrote on last edited by
      #6

      @yuvaram Hi
      Actually i want to know which will be better, I am new to it, Can you elaborate and tell how does it work.

      Naveen_D

      yuvaramY 1 Reply Last reply
      0
      • Naveen_DN Naveen_D

        @yuvaram Hi
        Actually i want to know which will be better, I am new to it, Can you elaborate and tell how does it work.

        yuvaramY Offline
        yuvaramY Offline
        yuvaram
        wrote on last edited by yuvaram
        #7

        @Naveen_D
        Signal & Slots is applicable within a process.
        Inorder to communicate between processes, use IPC mechanism.

        I suggest, use your C code in worker thread and signal to main thread to update in UI.

        Yuvaram Aligeti
        Embedded Qt Developer
        : )

        1 Reply Last reply
        1
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #8

          What kind of board is that ?

          What will you extract from it that you want to make available to other application(s) ?

          How are you getting the data from that "lower level" ?

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

          Naveen_DN 1 Reply Last reply
          0
          • SGaistS SGaist

            What kind of board is that ?

            What will you extract from it that you want to make available to other application(s) ?

            How are you getting the data from that "lower level" ?

            Naveen_DN Offline
            Naveen_DN Offline
            Naveen_D
            wrote on last edited by
            #9

            @SGaist

            What kind of board is that ?

            iMX-6 board.

            What will you extract from it that you want to make available to other application(s) ?

            I have an code running continuously in the backend, from which i want to read the output and based on that make some changes in my application UI.

            How are you getting the data from that "lower level" ?

            it will be giving the output in the terminal, from which i want to read.

            Thanks

            Naveen_D

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #10

              What is that backend ?

              What are you reading from the board ?

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

              Naveen_DN 1 Reply Last reply
              0
              • SGaistS SGaist

                What is that backend ?

                What are you reading from the board ?

                Naveen_DN Offline
                Naveen_DN Offline
                Naveen_D
                wrote on last edited by
                #11

                @SGaist

                What are you reading from the board ?

                I have an c code for IoT(Internet of things) which will be continuously running in that board and which gives output in the terminal, that i want to read through my program and make changes in my UI

                Naveen_D

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #12

                  Then, why not integrate that C code directly in your application ?

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

                  Naveen_DN 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    Then, why not integrate that C code directly in your application ?

                    Naveen_DN Offline
                    Naveen_DN Offline
                    Naveen_D
                    wrote on last edited by
                    #13

                    @SGaist Ya i can do that, in fact at present i hav integrated with my HMI, but i have a requirement that HMI layer should only have the UI part and should have API call for functions like ioT, music play etc.

                    Naveen_D

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #14

                      Do you mean contact a REST service to get the data ?

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

                      Naveen_DN 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        Do you mean contact a REST service to get the data ?

                        Naveen_DN Offline
                        Naveen_DN Offline
                        Naveen_D
                        wrote on last edited by
                        #15

                        @SGaist Yes sir, like that only.

                        Naveen_D

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #16

                          Then why do you need to catch signal from the terminal if you have to contact a web service ?

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

                          Naveen_DN 1 Reply Last reply
                          1
                          • SGaistS SGaist

                            Then why do you need to catch signal from the terminal if you have to contact a web service ?

                            Naveen_DN Offline
                            Naveen_DN Offline
                            Naveen_D
                            wrote on last edited by
                            #17

                            @SGaist No actually i don't want to call a web service, i just want to get output from the code running within the iMX-6 board. so that i can call it through one of the API's from my HMI. So that i do not need to integrate the same with my HMI.

                            Naveen_D

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              PeterJohn48115
                              wrote on last edited by PeterJohn48115
                              #18

                              Hi...i am a new user here. As per my knowledge you could use QProcess to capture the terminal application's standard output, if you start it from your application. Signal & Slots is applicable within a process.Inorder to communicate between processes, use IPC mechanism.

                              one-stop pcb

                              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
                              • Unsolved