03-02-2021 08:58 AM
Hi friends, i just want to send a numeric value say 40 through serial port to another device at 460800 baud rate, could you please help me what conversions should i made ?
Thanks
Solved! Go to Solution.
03-02-2021 09:11 AM
03-02-2021 10:54 AM
i just want to simulate battery voltage say 40V on serial channel
03-02-2021 11:38 AM
@Akbar7110 wrote:
i just want to simulate battery voltage say 40V on serial channel
That didn't answer the question.
Let's ask the question a different way. What is the device on the other side you are sending the data to? What does it expect the data to look like?
ASCII characters of "4" and "0"? Should it have a termination character like a line feed or carriage return?
Is it a single byte of value 40? (That would be an ASCII character of an open parenthesis "(" ). Multiple bytes?
03-02-2021 11:53 AM
Shameless plug to give you ideas: VIWeek 2020/Proper way to communicate over serial
03-02-2021 12:11 PM
the device on the other side is also receiving serial data which i am sending what type of scaling do i use ?
03-02-2021 12:35 PM
Hi Akbar,
@Akbar7110 wrote:
the device on the other side is also receiving serial data which i am sending what type of scaling do i use ?
Read the manual of the "device on the other side" to learn about the communication scheme supported...
03-03-2021 08:30 AM