Hello everyone
I have few confusions as to how to send datapackets. When we send a data packet from device to another, say I have a "string". How Do I send it? Are data sent as a hex or binary number?If so do i first convert the "string" into hex or binary and then send it over the communication medium(say UART)??
What is the underlying concept behind it?
To elaborate my question, say I have two hex numbers to be sent using the UART, do i wrap it in some specific form and send it and retrieve it on the other side?Say if I have a data structure, in that case how do i send it?Thats a lot of question,sorry for that. But I am confused.
If there is any reading material available please suggest. Sending data packets is very cruicial in an embedded system, so I want to really get to the basics .Thank you