Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. communication between qt application and stm32 board
QtWS25 Last Chance

communication between qt application and stm32 board

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 3 Posters 1.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.
  • K Offline
    K Offline
    kk2507
    wrote on 10 Jan 2022, 06:37 last edited by
    #1

    I am developing an application in qt and want to connect it with the stm32 board. how the qt application and stm32 board will communicate with each other?

    J 1 Reply Last reply 10 Jan 2022, 06:39
    0
    • K kk2507
      10 Jan 2022, 06:37

      I am developing an application in qt and want to connect it with the stm32 board. how the qt application and stm32 board will communicate with each other?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 10 Jan 2022, 06:39 last edited by
      #2

      @kk2507 said in communication between qt application and stm32 board:

      how the qt application and stm32 board will communicate with each other?

      Serial port?
      What communication technology does the board provide?

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

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kk2507
        wrote on 10 Jan 2022, 07:10 last edited by
        #3

        board and application both will communicate using USB HS port.

        J 1 Reply Last reply 10 Jan 2022, 07:13
        0
        • K kk2507
          10 Jan 2022, 07:10

          board and application both will communicate using USB HS port.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 10 Jan 2022, 07:13 last edited by
          #4

          @kk2507 And what will be the protocol?
          There is no support for USB in Qt.
          https://forum.qt.io/topic/105016/usb-communication-in-qt could give you some hints.
          You can also use libusb library.

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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kk2507
            wrote on 10 Jan 2022, 07:20 last edited by
            #5

            we are using usb protocol. if usb is not supporting then how I can form the communication with both application and hardware. can you provide any solution to this?

            J 1 Reply Last reply 10 Jan 2022, 07:21
            0
            • K kk2507
              10 Jan 2022, 07:20

              we are using usb protocol. if usb is not supporting then how I can form the communication with both application and hardware. can you provide any solution to this?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 10 Jan 2022, 07:21 last edited by
              #6

              @kk2507 said in communication between qt application and stm32 board:

              can you provide any solution to this?

              I already did above...

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

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kk2507
                wrote on 10 Jan 2022, 07:40 last edited by
                #7

                I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?

                J K 2 Replies Last reply 10 Jan 2022, 07:43
                0
                • K kk2507
                  10 Jan 2022, 07:40

                  I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 10 Jan 2022, 07:43 last edited by
                  #8

                  @kk2507 said in communication between qt application and stm32 board:

                  will it work?

                  I guess yes

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

                  1 Reply Last reply
                  0
                  • K kk2507
                    10 Jan 2022, 07:40

                    I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?

                    K Offline
                    K Offline
                    KroMignon
                    wrote on 10 Jan 2022, 08:26 last edited by
                    #9

                    @kk2507 said in communication between qt application and stm32 board:

                    I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?

                    Which kind of STM32 board are you targeting?
                    Most of them has and OTG USB-Port which implements a virtual COM port (for example NUCLEO boards)

                    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                    K 1 Reply Last reply 10 Jan 2022, 16:01
                    1
                    • K KroMignon
                      10 Jan 2022, 08:26

                      @kk2507 said in communication between qt application and stm32 board:

                      I want to send the data through the board to the application and again send the data from an application to the board. if we use libusb library. so, will it work?

                      Which kind of STM32 board are you targeting?
                      Most of them has and OTG USB-Port which implements a virtual COM port (for example NUCLEO boards)

                      K Offline
                      K Offline
                      kk2507
                      wrote on 10 Jan 2022, 16:01 last edited by kk2507 1 Oct 2022, 16:10
                      #10

                      @KroMignon I am using the NUCLEO-H745ZI-Q board. which communication protocol I should use and can you provide any example of such communication?

                      K 1 Reply Last reply 10 Jan 2022, 16:20
                      0
                      • K kk2507
                        10 Jan 2022, 16:01

                        @KroMignon I am using the NUCLEO-H745ZI-Q board. which communication protocol I should use and can you provide any example of such communication?

                        K Offline
                        K Offline
                        KroMignon
                        wrote on 10 Jan 2022, 16:20 last edited by KroMignon 1 Oct 2022, 16:21
                        #11

                        @kk2507 said in communication between qt application and stm32 board:

                        I am using the NUCLEO-H745ZI-Q board. which communication protocol I should use and can you provide any example of such communication?

                        I don't understand your question?
                        You have asked about communication channel between NUCLEO board and a Qt Application.
                        My suggestion is to use the virtual COM port (over USB), so on Qt side you could use QSerialPort.

                        The communication protocol depends on software running on NUCLEO board, I do not have any NUCLEO board myself, so hard to give you more information.

                        EDIT a quick search on internet gives me this link for example: https://shawnhymel.com/1795/getting-started-with-stm32-nucleo-usb-virtual-com-port/

                        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                        K 1 Reply Last reply 10 Jan 2022, 16:25
                        1
                        • K KroMignon
                          10 Jan 2022, 16:20

                          @kk2507 said in communication between qt application and stm32 board:

                          I am using the NUCLEO-H745ZI-Q board. which communication protocol I should use and can you provide any example of such communication?

                          I don't understand your question?
                          You have asked about communication channel between NUCLEO board and a Qt Application.
                          My suggestion is to use the virtual COM port (over USB), so on Qt side you could use QSerialPort.

                          The communication protocol depends on software running on NUCLEO board, I do not have any NUCLEO board myself, so hard to give you more information.

                          EDIT a quick search on internet gives me this link for example: https://shawnhymel.com/1795/getting-started-with-stm32-nucleo-usb-virtual-com-port/

                          K Offline
                          K Offline
                          kk2507
                          wrote on 10 Jan 2022, 16:25 last edited by
                          #12

                          @KroMignon ok thank you.

                          1 Reply Last reply
                          0

                          4/12

                          10 Jan 2022, 07:13

                          topic:navigator.unread, 8
                          • Login

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