simpleFTP Server, esp32cam

Home Forums The libraries hosted on the site Simple FTP Server simpleFTP Server, esp32cam

Viewing 6 reply threads
  • Author
    Posts
    • #21020
      hahah
      Participant

        so i tried to keep the setup of the esp32cam the same as the instructions for esp32. although i used the internal sd card, now using the normal SD.h library, this builtin sd card reader doesn’t initialize using that library. so ihave to use the sd_mmc library. does the simpleFTPserver library support the esp32cam sd_mmc library? or is there a work around that i could use to get the FTP working

        thanks

      • #21021
        Renzo Mischianti
        Keymaster

          Hi hahah,
          the library use the FS command settings, so for now if you enter in the FtpServer.h file and substitute these lines probably work:

          (At this position)

          
          	#include <SD.h>
          
          	#define STORAGE_MANAGER SD
          

          with

          
          	#include "SD_MMC.h"
          
          	#define STORAGE_MANAGER SD_MMC
          

          give me feedback.

          I do the integration as soon as possible, but I don’t know when 😛 .

          • #21023
            hahah
            Participant

              hey another doubt.. do i change the value in FtpServerKey as well?

          • #21022
            hahah
            Participant

              Thanks a lot for your almost instantaneous reply 🙂
              P.S. I’d love to give feedback.. could you tell me where?

            • #21024
              Renzo Mischianti
              Keymaster

                You must also change the ESP32 configuration from

                
                #ifndef DEFAULT_FTP_SERVER_NETWORK_TYPE_ESP32
                	#define DEFAULT_FTP_SERVER_NETWORK_TYPE_ESP32 		NETWORK_ESP32
                	#define DEFAULT_STORAGE_TYPE_ESP32 			STORAGE_FFAT
                #endif
                

                to

                
                #ifndef DEFAULT_FTP_SERVER_NETWORK_TYPE_ESP32
                	#define DEFAULT_FTP_SERVER_NETWORK_TYPE_ESP32 		NETWORK_ESP32
                	#define DEFAULT_STORAGE_TYPE_ESP32 			STORAGE_SD
                #endif
                

                use this topic for feedback.

                Bye Renzo

                • #21025
                  hahah
                  Participant

                    i changed all that and tried to run the program. i got this error…
                    “E (1307) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107”

                • #21027
                  Renzo Mischianti
                  Keymaster

                    It seems a common problem,
                    https://github.com/espressif/esp-idf/issues/8409
                    esp32.com/viewtopic.php?t=3155

                    try to add all the code.

                    Bye Renzo

                    • #21028
                      hahah
                      Participant

                        i am noticing that this issue only arrises when i use the simpleftp library. other codes that access the sd card like the code that clicks a pic and saves it to sd card when reset button is clicked works fine..

                    • #21048
                      Renzo Mischianti
                      Keymaster

                        Hi hahah,
                        please share the code to check if there are some issues.
                        Bye Renzo

                      • #21061
                        hahah
                        Participant

                          hi. i was able to resolve the problem.. i ended up using the SD library using the example code that came with the library. Thanks for your help!!

                          Regards.

                      Viewing 6 reply threads
                      • You must be logged in to reply to this topic.
                      Exit mobile version