How to send jpeg image to avr?

Discussion in 'Embedded Systems and Microcontrollers' started by anhnha, Oct 3, 2012.

  1. anhnha

    Thread Starter Active Member

    Apr 19, 2012
    773
    45
    Hello,
    I need to send jpeg from PC to AVR as follows:
    JPEG (from PC) => RS232 =>--------------=> USART(atmega128) => SD card.
    I have never done it before and hope anyone who has experience give me some advice about it.
    Can you tell me how to send from PC to USART?
    Which kind of image format I should to save in SD card?
    .....
    What should I take into consideration?
    Thanks for help.
     
  2. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    In the simplest form you simply output the bytes from PC at some reasonable speed. The atmega will create a file on the SD card and fill it with the received bytes. You may or may not need to use a filesystem such as FAT to store the files, depending on what else you want to do with the card.

    When you got this done you can add things like flow control and checksum to be sure that what you written on the card is the same thing as was sent.
     
Loading...