This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Send a file thru RS232

What is the best protocol to use to send a file thru RS232. It is gonna be a 256Kbyte of data.

Parents
  • Tommy, as you say that speed is not a problem, my personal inclination would be to keep things as simple and convenient as possible. Go for Intel format and start with a prototype version that simply ignores all those checksums. Get things working and add the bells and whistles that experience (and common sense) tells you are necessary.

    If you really want to keep things simple, consider having a write command and a verify command. In the case of a verify, the file is downloaded again, and the receiver simply checks that the data is identical to that received previously. This will save you from having to worry about checksums, CRCs etc.

    If you are actually downloading code that ends up getting executed, the code could include its own CRC check - which is not a bad idea anyway.

Reply
  • Tommy, as you say that speed is not a problem, my personal inclination would be to keep things as simple and convenient as possible. Go for Intel format and start with a prototype version that simply ignores all those checksums. Get things working and add the bells and whistles that experience (and common sense) tells you are necessary.

    If you really want to keep things simple, consider having a write command and a verify command. In the case of a verify, the file is downloaded again, and the receiver simply checks that the data is identical to that received previously. This will save you from having to worry about checksums, CRCs etc.

    If you are actually downloading code that ends up getting executed, the code could include its own CRC check - which is not a bad idea anyway.

Children
No data