wirelessly transmitting JPEG

Discussion in 'Embedded Systems and Microcontrollers' started by phongkem, Nov 25, 2012.

  1. phongkem

    Thread Starter New Member

    Nov 19, 2011
    23
    0
    I'm having a project of transmitting and receiving JPEG image wirelessly using xbee module. I have successfully transmitted and received few bytes on test but when I transmitted whole JPEG file I had a problem. Sometime, few bytes of JPEG file was missing, then the image can not be shown correctly or sometime cannot be shown totally. I try to find away to recover the file but still don't figure it out. Please give me some suggestions. Thanks a lot.
    My system include: PC->Arduino2560->Xbee ~~> Xbee->Arduino2560->PC.
     
  2. takao21203

    Distinguished Member

    Apr 28, 2012
    3,577
    463
    Generate a CRC for each 1K block.
    Transmit back the received CRC + test if CRC does match (on receiver side).
    Retransmit 1K block if needed.
     
    phongkem likes this.
Loading...