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. STM32, USB and QT

STM32, USB and QT

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 717 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.
  • A Offline
    A Offline
    alberto.brunero
    wrote on last edited by
    #1

    Hi to all,
    I am trying to make a simple program. I just need to communicate with an STM32 board (a discovery one) using the USB OTG FS built in, using a GUI created with QT (I just want to send some strings of text).
    Since I have never programmed using QT, I would like to receive some hints, like what C library I have to use to communicate with the STM32 (libusb?) and maybe some tutorial for doing that.
    I don't need to program the STM32 using QT, since I am already doing that using CubeMX + TrueStudio, I am just searching a way to send/receive data from my micro.

    Thanks in advance.

    1 Reply Last reply
    0
    • artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      Hi.
      Please take a look at QSerialPort and QSerialPortInfo classes. I use them to communicate with barcode scanners. I believe that this should work. If not, please post any description of the protocol that should be used for communication with your device.

      Of course, please ask should you have more questions.

      For more information please re-read.

      Kind Regards,
      Artur

      A 1 Reply Last reply
      4
      • artwawA artwaw

        Hi.
        Please take a look at QSerialPort and QSerialPortInfo classes. I use them to communicate with barcode scanners. I believe that this should work. If not, please post any description of the protocol that should be used for communication with your device.

        Of course, please ask should you have more questions.

        A Offline
        A Offline
        alberto.brunero
        wrote on last edited by
        #3

        @artwaw Thank you very much, I have managed to communicate with my board using QSerialPort.

        aha_1980A 1 Reply Last reply
        2
        • A alberto.brunero

          @artwaw Thank you very much, I have managed to communicate with my board using QSerialPort.

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

          Hi @alberto-brunero,

          glad you solved your problem. So please mark this topic as SOLVED too. Thanks!

          Qt has to stay free or it will die.

          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