Mcu and Serial Communications
-
wrote on 22 Feb 2021, 11:19 last edited by
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? -
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?@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.
-
@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.
wrote on 22 Feb 2021, 11:40 last edited by@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.
-
@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.
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 ?
-
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 ?
wrote on 22 Feb 2021, 12:47 last edited by@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
-
@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
@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.
-
@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.
wrote on 22 Feb 2021, 12:58 last edited by@jsulm Yes i know. Thank you for answering.
1/7