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 22 Feb 2021, 11:19 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?

    J 1 Reply Last reply 22 Feb 2021, 11:29
    0
    • D deleted286
      22 Feb 2021, 11:19

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 22 Feb 2021, 11:29 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 22 Feb 2021, 11:40
      1
      • J jsulm
        22 Feb 2021, 11:29

        @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 22 Feb 2021, 11:40 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.

        M 1 Reply Last reply 22 Feb 2021, 11:46
        0
        • D deleted286
          22 Feb 2021, 11:40

          @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.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 22 Feb 2021, 11:46 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 22 Feb 2021, 12:47
          0
          • M mrjj
            22 Feb 2021, 11:46

            @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 22 Feb 2021, 12:47 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

            J 1 Reply Last reply 22 Feb 2021, 12:54
            0
            • D deleted286
              22 Feb 2021, 12:47

              @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

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 22 Feb 2021, 12:54 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 22 Feb 2021, 12:58
              0
              • J jsulm
                22 Feb 2021, 12:54

                @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 22 Feb 2021, 12:58 last edited by
                #7

                @jsulm Yes i know. Thank you for answering.

                1 Reply Last reply
                0

                7/7

                22 Feb 2021, 12:58

                • Login

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