This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Downloading big files using FTP AT commands

Hello Team Nordic,

We are using nrf9160 DK with nrf connect SDK 1.5.0 and mfw_nrf9160_1.2.3 modem firmware .

We are currently evaluating the FTP AT command set and according to our requirement we need to download a huge file 120KB from the FTP server. Is there a way in which we can get the data in chunks, like by specifying MTU and keep storing it in buffer? We want to store this data in our second bank for doing OTA, that's why we need the data to come in parts. 

If not, can you suggest a way to do the same.

Thanks,

Parents
  • Hello!

    We don't have any implementation doing this at the moment, but I suggest looking into using the the REST (restart) command of FTP. This enables you to restart a download at a certain point in the data, so you can implement some sort of scheme that downloads a chunk of data, storing it in a buffer, and then restarting the download at the offset. As specified in the FTP client documentation some adjustments might have to be done for the API to work with specific servers.

    Alternatively you could look into the Download Client API, which uses HTTPS/CoAP, but handles fragmentation of large files.

    Best regards,
    Carl Richard

Reply
  • Hello!

    We don't have any implementation doing this at the moment, but I suggest looking into using the the REST (restart) command of FTP. This enables you to restart a download at a certain point in the data, so you can implement some sort of scheme that downloads a chunk of data, storing it in a buffer, and then restarting the download at the offset. As specified in the FTP client documentation some adjustments might have to be done for the API to work with specific servers.

    Alternatively you could look into the Download Client API, which uses HTTPS/CoAP, but handles fragmentation of large files.

    Best regards,
    Carl Richard

Children
Related