Using ESP32 FTP Client for Large File Uploads from SD

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • Do you need to upload large files to FTP from your ESP32 (images, videos or any other files from the SD Card?). Here we show how this can be easily achieved, with virtually any file format! More information and links below...
    Continuing on from our previous video about FTP Uploads, a number of people asked how to transfer larger files, or files which are not text files, so here is the walkthrough to show how this can be done.
    There are minimal changes to include the SD Library, and with our added function to send the File chunk by chunk to the FTP server, you can send a file of virtually any size....
    Try changing the buffer size, and different file sizes on the SD card to see how it affects performance....
    Our Website:
    www.visualmicr...
    Getting Started with FTP and ESP32:
    • Using ESP32 FTP Arduin...
    Sketch Example in this Video:
    www.visualmicr...
    ESP32_FTPClient Library on GitHub:
    github.com/lda...
    FileZilla FTP Server Download for Windows:
    filezilla-proj...
    #Arduino #VisualStudio #esp32

ความคิดเห็น • 29

  • @laurentgonnet9514
    @laurentgonnet9514 2 ปีที่แล้ว +2

    Thanks for the video. But don't forget to initialise your variable buf (unsigned char buf[1024] = {}; )
    otherwise the end of file will not be correct

  • @The_Superior_0ne
    @The_Superior_0ne 3 ปีที่แล้ว +1

    thanks, his video is really helpful. Hope to learn more from you

  • @TheTechToyz
    @TheTechToyz ปีที่แล้ว +1

    Hi checked this and the other ftp client tutorial. I am trying to auto backup a folder containing images on sd card to ftp can you suggest a code to make it work ?

    • @TimFuzail
      @TimFuzail ปีที่แล้ว

      Could you find a solution?

    • @TheTechToyz
      @TheTechToyz ปีที่แล้ว

      No not a yet@@TimFuzail

  • @cmd9785
    @cmd9785 ปีที่แล้ว

    Hi, Can you make a tutorial on how to optimize the speed?

  • @МаксимП-х6р
    @МаксимП-х6р ปีที่แล้ว

    Good evening, I ran into a problem that I can't see the sd card, could you send me the connection diagram

    • @visualmicro4389
      @visualmicro4389  ปีที่แล้ว

      Please ask for support in our forum www.visualmicro.com/forums
      Thank you

  • @garenarabkirlian8041
    @garenarabkirlian8041 3 ปีที่แล้ว

    Hi, love the tutorial! Can I ask on which pin is the CS pin connected?

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      Thanks! On the ESP32 Devkit v4.1 we are using its pre-wired:
      docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-wrover-kit.html#microsd-card

  • @JesusBaez-xm2bv
    @JesusBaez-xm2bv 10 หลายเดือนก่อน

    Is it possible to upload a "LittleFS" file using this library?

    • @visualmicro4389
      @visualmicro4389  7 หลายเดือนก่อน

      I see no reason why not, the file is read from its' source (SD in the example, but could be any filesystem FATFS/LittleFS/SPIFFS etc), and then sent using the FTP Library to the server.

  • @fernthehuman369
    @fernthehuman369 7 หลายเดือนก่อน

    Thank! One question about ChangeWorkDir, If there are folder on my ftp server, such as "wav", and I try to change the upload location. Then I try all .ChangeWorkDir("wav"), ("/wav"),("/wav/"), it all doesnt work well? Where do I need to change?

    • @visualmicro4389
      @visualmicro4389  5 หลายเดือนก่อน

      Please ask for assistance in our forum at visualmicro.com/forums

  • @emreertekin5149
    @emreertekin5149 3 ปีที่แล้ว

    I need the opposite of this project. I need send video packet (1MB mp4) from pc to esp using ftp. How can i do this?

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      Hopefully this gets you moving in the right direction
      th-cam.com/video/GJCu_FJxZJ4/w-d-xo.html

  • @jeffclassics
    @jeffclassics 3 ปีที่แล้ว

    you've done great. i just wonder why the speed is not optimized. isnt the wifi speed of esp32 is max 150mbps? can we achieve even 50% of that?

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว

      I believe that is the absolute best speed possible with raw packets, and here we are using TCP Packets which lowers the data throughput considerably (around 20Mbps)
      docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html#esp32-wi-fi-throughput
      Then the speed will be further impacted here by reading data from the SD Card as well, and the chunking of the file as it uploads.

  • @duojiang8335
    @duojiang8335 2 ปีที่แล้ว

    Thanks for the video. I use an external sd card slot with ESP32(via SPI communication). The sdmmc library doesn't work to mount the sd card so change it to sd library instead. Hoever, the file in the sd card was not able to transfered to the server. Any help?

    • @visualmicro4389
      @visualmicro4389  ปีที่แล้ว

      Please ask for support in our forum www.visualmicro.com/forums.

  • @orangorang2345
    @orangorang2345 2 ปีที่แล้ว

    hi ,for the cs pin on the sd module if using nodemcu esp32 devki which pin is connected to?

    • @visualmicro4389
      @visualmicro4389  2 ปีที่แล้ว +1

      There is a pinout in the library example (available in the IDE, or on the below GitHub page):
      github.com/espressif/arduino-esp32/blob/master/libraries/SD_MMC/examples/SDMMC_time/SDMMC_time.ino
      There also appears to be a setPins() function available which should allow you to choose which pins are used when using this library.

  • @apisaus3686
    @apisaus3686 2 ปีที่แล้ว

    Hi, Thanks for the video. This project is based around Wifi. Can it be used with a GSM carrier as well? I'm using ESP32 out in the fields with a SIM7600 GSM module no Wifi out there!

    • @visualmicro4389
      @visualmicro4389  ปีที่แล้ว

      Please ask for support in our forum www.visualmicro.com/forums

  • @erikpratama7685
    @erikpratama7685 ปีที่แล้ว

    Halo, good video, can we use code for transfer file with smb??

    • @visualmicro4389
      @visualmicro4389  ปีที่แล้ว

      Please ask questions in our forum here www.visualmicro.com/forums/ thanks

  • @wmn8
    @wmn8 3 ปีที่แล้ว

    Can i use this code on an ESP32 Cam?

    • @visualmicro4389
      @visualmicro4389  3 ปีที่แล้ว +1

      I see no reason why not, as it is a standard ESP32 with an SD slot and the camera.

    • @wmn8
      @wmn8 3 ปีที่แล้ว

      @@visualmicro4389 And with esp32 which doesn't have cam but using an external sd slot module?