Ron Marcus
- 27th December 2005, 02:41
Hey PICers,
I have an application that transfers a file from one SD card to another wirelessly. I've got the RF link working at 100%, but wondered what the proper protocol is for sending a file. Would one send the file size, then subtract the data packet size from that number at the receive end until it is zero? Or just send the data and timeout if there is no reception after a preset length of time? I don't want to add too much overhead to the transmissions, and need to recreate the file exactly at the receive end. Is there some trick to this, or am I overthinking it?
Thanks for any help,
Ron
I have an application that transfers a file from one SD card to another wirelessly. I've got the RF link working at 100%, but wondered what the proper protocol is for sending a file. Would one send the file size, then subtract the data packet size from that number at the receive end until it is zero? Or just send the data and timeout if there is no reception after a preset length of time? I don't want to add too much overhead to the transmissions, and need to recreate the file exactly at the receive end. Is there some trick to this, or am I overthinking it?
Thanks for any help,
Ron