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. QT interfacing with stm32 board through USB
Forum Updated to NodeBB v4.3 + New Features

QT interfacing with stm32 board through USB

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 609 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 21 Feb 2022, 13:14 last edited by
    #1

    Hello, I am working with stm32 board
    I have to establish communication between the stm32 board and qt gui through the usb(not rs232)
    I have created gui in which 3 leds and 1 switch included.
    So, when I select led1 ON these command I have to send to the stm32 board through USB.
    Then LED will start blinking on stm32 board.
    In stm32 board, we are using USB_FS.
    So, in qt how I can establish these communication?Can you share me usb related projects or link using USB.
    I am using only usb and not RS232 or serial port(UART).

    N 1 Reply Last reply 21 Feb 2022, 17:06
    0
    • K kk2507
      21 Feb 2022, 13:14

      Hello, I am working with stm32 board
      I have to establish communication between the stm32 board and qt gui through the usb(not rs232)
      I have created gui in which 3 leds and 1 switch included.
      So, when I select led1 ON these command I have to send to the stm32 board through USB.
      Then LED will start blinking on stm32 board.
      In stm32 board, we are using USB_FS.
      So, in qt how I can establish these communication?Can you share me usb related projects or link using USB.
      I am using only usb and not RS232 or serial port(UART).

      N Offline
      N Offline
      ndias
      wrote on 21 Feb 2022, 17:06 last edited by
      #2

      Hi @kk2507 ,

      Are you using your STM as USB CDC libusb device or USB virtual COM port to communicate with your application?

      PS: I suggest you move this topic to the category Mobile and Embedded.

      K 1 Reply Last reply 22 Feb 2022, 04:36
      0
      • N ndias
        21 Feb 2022, 17:06

        Hi @kk2507 ,

        Are you using your STM as USB CDC libusb device or USB virtual COM port to communicate with your application?

        PS: I suggest you move this topic to the category Mobile and Embedded.

        K Offline
        K Offline
        kk2507
        wrote on 22 Feb 2022, 04:36 last edited by
        #3

        @ndias Yes, we are using usb as virtual com port

        N 1 Reply Last reply 22 Feb 2022, 10:02
        0
        • K kk2507
          22 Feb 2022, 04:36

          @ndias Yes, we are using usb as virtual com port

          N Offline
          N Offline
          ndias
          wrote on 22 Feb 2022, 10:02 last edited by
          #4

          Hi @kk2507 ,

          Although I have never worked with serial ports in QML, I think a good starting point would be: https://github.com/ayberkozgur/qml-serialport . It implements a QML wrappers from QSerialPort object.

          1 Reply Last reply
          0

          1/4

          21 Feb 2022, 13:14

          • Login

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