simple FTP Server EthernetEnc

Home Forums The libraries hosted on the site Simple FTP Server simple FTP Server EthernetEnc

Tagged: 

Viewing 8 reply threads
  • Author
    Posts
    • #19196
      Daniel van Aalst

        Hello Mr. Mischianti,

        for an actual project I’m using your FTP server library on an custom ESP32 board. With wifi it works well.
        I have also an Ethernet extension with an ENC28J60 connected to the SPI interface. (EthernetENC library, similar to the Ethernet library)
        With this the FTP Server don’t work, and when Wifi isn’t activated the ESP starts in Boot Loop:

        assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)

        Backtrace:0x40084105:0x3ffb24b00x4008db31:0x3ffb24d0 0x40092fd5:0x3ffb24f0 0x4010d48d:0x3ffb2620 0x4011f481:0x3ffb2650 0x4011f4e1:0x3ffb2670 0x4010cc51:0x3ffb26c0 0x400e0642:0x3ffb26e0 0x400e06bc:0x3ffb2730 0x400e2a79:0x3ffb2750 0x400d58b7:0x3ffb2780 0x400dde1b:0x3ffb27a0 0x400efc9e:0x3ffb2820

        Is there a simple way to use this library with the ENC Ethernet?
        If yes, would it be possible that after compiling it works dependent of the used Wifi or Ethernet?

        Thanks
        Daniel van Aalst

      • #19204
        Renzo Mischianti
        Keymaster

          Hi Daniel,
          I fix the problem, and now work; I will release the new version with a working example soon.

          No, sorry, switching the library after compiling isn’t possible for the structure of the library.
          Bye Renzo

        • #19261
          Daniel van Aalst

            Hi Renzo,

            thanks for this.

            Would it be possible to create two instances of the ftp server for both network operation? Or make a copy of the library working paralel?

            Thanks

          • #19266
            Renzo Mischianti
            Keymaster

              Hi Daniel,
              I release the library.

              I don’t know if It’s possible, but if you do a copy of the library and change the class name I think It’s possible.

              Bye Renzo

            • #19796
              Flaminio

                Hi Renzo,

                Could you share what pins should I use with this library? SD module and Ethernet module Enc28J60. (The SPI and CS)

                Thanks in advance!

              • #19800
                Renzo Mischianti
                Keymaster

                  Hi Flaminio,
                  the configuration of the devices is independent of the SimpleFTPServer library, you must only select the correct config in FtpServerKey.h as you can read in the articles.

                  FTP server on esp8266 and esp32

                  Bye Renzo

                • #32101
                  yingele
                  Participant

                    Hi Renzo,

                    I am trying to make use of this nice library of yours. My particular interest is in ENC28J60 variant for ESP32 (example ESP32_FFAT_enc28j60).

                    It compiles all right, connects to the network (via DHCP), initializes FFAT filesystem successfully, but crashes at ftpSrv.begin(“user”,”password”).

                    I tried running this on ESP32C6 and ESP32S3 with the same result. ENC28J60 works fine on its own. Also, your WiFi based sketch works fine. It’s just this ENC device…

                    Below is the decoded backtrace from ESP32S3. Is this something you could look into and (hopefully) fix? Or am I doing something wrong? I did see your comment in FtpServerKey.h (line 65) regarding Ethernet.h, but esp32 core 3 already has it right.

                    thank you very much,
                    Tim

                    assert failed: xQueueSemaphoreTake queue.c:1709 (( pxQueue ))

                    0x420353ca: dhcp_discover at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4\dhcp.c:1127
                    0x42024036: rmt_set_intr_priority_to_group at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_driver_rmt/src\rmt_common.c:252
                    0x42035909: dhcp_recv at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4\dhcp.c:1926
                    0x4203595a: dhcp_recv at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4\dhcp.c:1967
                    0x42022fd5: is in nvs::Page::readItem(unsigned char, nvs::ItemType, char const*, void*, unsigned int, unsigned char, nvs::VerOffset) (/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/nvs_flash/src/nvs_page.cpp:251).
                    0x4200d146: _GLOBAL__sub_I_Serial0() at C:\Users\yingele\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\cores\esp32\HardwareSerial.cpp:616
                    0x4200d20c: is in IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char) (C:\Users\yingele\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\cores\esp32\IPAddress.cpp:60).
                    0x42007cef: FtpServer::processCommand() at c:\Users\yingele\Documents\Arduino\libraries\SimpleFTPServer\FtpServer.cpp:709
                    0x4200323e: uip_process at c:\Users\yingele\Documents\Arduino\libraries\EthernetENC\src\utility\uip.c:1474
                    0x42010d27: uartBegin at C:\Users\yingele\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\cores\esp32\esp32-hal-uart.c:465

                  • #32105
                    Renzo Mischianti
                    Keymaster

                      Hi,
                      It’s important to set the correct library for EthernetEnc in FTPibraryKey.h and check that the library you set is the same as the one in your test.
                      Bye Renzo

                    • #32118
                      yingele
                      Participant

                        thank you Renzo, I’ll give it a try.

                        Tim

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