Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    FTP fails on larger files

    Scheduled Pinned Locked Moved Issues & Bugs
    ftp
    4 Posts 3 Posters 604 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      crumble
      last edited by

      FTP fails on LoPy running 1.20.0.rc4 while downloding larger files from FAT 32 SD card.

      I have some trouble with short ones as well. It seems that it lags depending on the amount of data send over the FTP service. If the lag is too long, the connection betwenn LoPy and Filezilla is closed.

      The LoPy seems to like failing around 610204 Bytes when a background thread is running.

      Are there any logs on the LoPy to trace the problem?
      Is there something like good old kermit to receive the file over the working USB connection?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • E Offline
        Eric Waai
        last edited by

        direct file acces by the serial port is not possible as far as i know
        you could change the way of updating the sequans over uart descirbed here
        there is the uart used to transfer a file to the module over uart.
        i guess this could be easily(depending on your skill) changed to work the other way around

        i might note i never had any issues transferring large files. the mode software .dup files are 10 times bigger than the number of bytes your describing. although i never tried downloading the file. i only uploaded it.

        1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @crumble
          last edited by

          @crumble I cannot confirm that behavior. I transferred several times a file of 1.3 MByte to and from a FiPy with v1.20.0.rc4. File transfer to and from a SD card with FAT file system. The file system on the flash is Littlefs.
          The device was either sitting in the REPL prompt or running a fast loop:
          while True: pass
          The file transfer tool used was FZilla.
          Transferring the file from and to flash with the busy loop running also worked well.

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            crumble @robert-hh
            last edited by

            Checked it with a second SD card with only one partition and rebootetd the router and clickt the LoRa antenna into the WiFi part. It is faster and I get less problems and sometimes larger files, but it will still breaks. Sometimes after a few megabytes sometime after a few k.

            At the moment it is only a nice to have feature. I wat to check the saved stream of the GPS in an editor before I use it as a test stream for my module. I will stop testing.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom