Transfer of image files


Closed Thread
Results 1 to 3 of 3
  1. #1
    beto's Avatar
    beto Guest

    Default Transfer of image files

    Hi dear listers. I currently work on a project where the idea is transfer a small image file burned on a 9346 eeprom using serial comms, my problem is how the picmicro 'know' the image size? i. e. the image always is changing?
    TNX

  2. #2
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    The three ways to deal with a variable length file that I have used, are as follows....
    1. Include a file header that includes the file length.
    2. Have a timeout on the receiver, that after a certain length of no signal, it moves on.
    3. Include an end of file sequence that would not be incorporated in the file under normal circumstances. This way the receiver constantly looks for this sequence, and stops receiving data when it finds it.

    You can actually use all of these together as a kind of failsafe if data is lost.

    Hope this helps,
    Ron

  3. #3
    beto's Avatar
    beto Guest


    Did you find this post helpful? Yes | No

    Default

    Unfortunely the data is binary stream, so, I can't put++ bytes from the file, I will work on the choice # 1, I think that is good idea, thanks Ron

Similar Threads

  1. help required regarding reading binary files
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th March 2008, 22:30
  2. Bootloader files for MicroCode Studio Plus
    By keithdoxey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2007, 18:54
  3. Missing 16F882 family include files :-(
    By campmdabt in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th December 2007, 01:17
  4. Replies: 2
    Last Post: - 13th December 2005, 00:11
  5. How can I find Code Loader 18F2620 files ?
    By muskut in forum General
    Replies: 1
    Last Post: - 14th October 2005, 12:26

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts