I am trying to send data over UART port between two microcontrollers. I must write this data received over UART comunication on a file, then how is the correct way to do that? I mean, Which is the correct way or the typical way to determine the end of a package of data? I am thinking to send a special character over uart to check the end of the data package or there is a better way to do that?
thanks for your help.