Mcu and Serial Communications
-
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.
-
@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 ?
-
@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.
-
@jsulm Yes i know. Thank you for answering.
5/7