akshada
Member level 3
hello all,
i am trying to receive binary file from my pc to microcontroller using uart.
but i am confused how to detect the end of file?
as i tried to detect \r(attached at the end of the binary string) which i am sending with the binary file.
but unfortunately only a few bytes i could have received because in my binary file there is a hex value 0x0D (equivalent of \r). So, is there any othere means to detect the end of binary file if i don't have any knowledge of the binary file(even size).
thanks in advance...
i am trying to receive binary file from my pc to microcontroller using uart.
but i am confused how to detect the end of file?
as i tried to detect \r(attached at the end of the binary string) which i am sending with the binary file.
but unfortunately only a few bytes i could have received because in my binary file there is a hex value 0x0D (equivalent of \r). So, is there any othere means to detect the end of binary file if i don't have any knowledge of the binary file(even size).
thanks in advance...