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. Mcu and Serial Communications
QtWS25 Last Chance

Mcu and Serial Communications

Scheduled Pinned Locked Moved Unsolved General and Desktop
serialwidgetqt5
7 Posts 3 Posters 901 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.
  • D Offline
    D Offline
    deleted286
    wrote on last edited by
    #1

    Hi everyone. I have a MCU and an application. I want to get datas from MCU to my app and send datas from my application to MCU. It should be half duplex communication. I know, i should use QSerialPort for it. I will connect mcu with a usb on my computer. But i have some questions,
    What kind of communication protocol should I follow for this? What format should my data be?

    jsulmJ 1 Reply Last reply
    0
    • D deleted286

      Hi everyone. I have a MCU and an application. I want to get datas from MCU to my app and send datas from my application to MCU. It should be half duplex communication. I know, i should use QSerialPort for it. I will connect mcu with a usb on my computer. But i have some questions,
      What kind of communication protocol should I follow for this? What format should my data be?

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

      @suslucoder said in Mcu and Serial Communications:

      What kind of communication protocol should I follow for this? What format should my data be?

      What is running on this MCU? Either the data format and protocol are defined by what is running there or you have to define it.

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

      D 1 Reply Last reply
      1
      • jsulmJ jsulm

        @suslucoder said in Mcu and Serial Communications:

        What kind of communication protocol should I follow for this? What format should my data be?

        What is running on this MCU? Either the data format and protocol are defined by what is running there or you have to define it.

        D Offline
        D Offline
        deleted286
        wrote on last edited by
        #3

        @jsulm there are some coordinates which are limited. Let say like GPS datas. I have A and it has two coorditanes Ax and Ay. I want to get Ax and Ay from serial.

        mrjjM 1 Reply Last reply
        0
        • D deleted286

          @jsulm there are some coordinates which are limited. Let say like GPS datas. I have A and it has two coorditanes Ax and Ay. I want to get Ax and Ay from serial.

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

          @suslucoder

          Hi
          But is the code in the MCU already prepared to send the Ax, Ay
          on the serial and if yes, in what format or in what data type.

          Who made the code inside the MCU ?

          D 1 Reply Last reply
          0
          • mrjjM mrjj

            @suslucoder

            Hi
            But is the code in the MCU already prepared to send the Ax, Ay
            on the serial and if yes, in what format or in what data type.

            Who made the code inside the MCU ?

            D Offline
            D Offline
            deleted286
            wrote on last edited by
            #5

            @mrjj Yes it was prepared. It has the datas in the format of binary row data as i know. For serial reading, can i convert them into string? I want to do a widget like progress bar, according to coming datas, it should fill up

            jsulmJ 1 Reply Last reply
            0
            • D deleted286

              @mrjj Yes it was prepared. It has the datas in the format of binary row data as i know. For serial reading, can i convert them into string? I want to do a widget like progress bar, according to coming datas, it should fill up

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

              @suslucoder said in Mcu and Serial Communications:

              For serial reading, can i convert them into string?

              Of course. If you know how exactly the binary format is defined.

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

              D 1 Reply Last reply
              0
              • jsulmJ jsulm

                @suslucoder said in Mcu and Serial Communications:

                For serial reading, can i convert them into string?

                Of course. If you know how exactly the binary format is defined.

                D Offline
                D Offline
                deleted286
                wrote on last edited by
                #7

                @jsulm Yes i know. Thank you for answering.

                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