Hi,
We have one requirement in which there is SPIFFS file system is being supported into ESP32.
Now, we need to download that file from ESP32 to device to any PC over console UART or any other UART bases on CLI implementation.
We have tried to port xmodem for that but we are right now facing some issues like hang or stuck while using it with SPIFFS.
Let me Kno if anyone has used any tool or something like that.
Need help to download file from ESP32 over console or other UART
Need help to download file from ESP32 over console or other UART
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Need help to download file from ESP32 over console or other UART
A long time ago I have implemented ymodem protocol for the file transfer over UART.
Look at ESP32_ymodem_example.
The repository was not updated for a long time, maybe some changes are needed for the latest esp-idf.
The transfer was working quite reliably, both download and upload is supported.
Look at ESP32_ymodem_example.
The repository was not updated for a long time, maybe some changes are needed for the latest esp-idf.
The transfer was working quite reliably, both download and upload is supported.
Re: Need help to download file from ESP32 over console or other UART
Hi Loboris,loboris wrote:A long time ago I have implemented ymodem protocol for the file transfer over UART.
Look at ESP32_ymodem_example.
The repository was not updated for a long time, maybe some changes are needed for the latest esp-idf.
The transfer was working quite reliably, both download and upload is supported.
Did you test it recently over ESP32 IDF 2.1 or 2.1.1 or 3.0 RC1?
Also, Upto how much size of file you had verified it for both upload and download?
If you get sometime from your side then would you.please confirm from your side?
Meanwhile I will verify it from my side as well and will inform to you if any changes required
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Need help to download file from ESP32 over console or other UART
I have updated the repository to work with the latest esp-idf.
Tested with esp-idf master branch and esp-idf release/v3.0 branch.
Tested with 800 KB binary file for download/upload (SPIFFS was formated to 1 MB), with UART at 115200 bd.
Tested with 1.5 MB binary file for download/upload (SPIFFS was formated to 2 MB), with UART at 921600 bd.
Tested with esp-idf master branch and esp-idf release/v3.0 branch.
Tested with 800 KB binary file for download/upload (SPIFFS was formated to 1 MB), with UART at 115200 bd.
Tested with 1.5 MB binary file for download/upload (SPIFFS was formated to 2 MB), with UART at 921600 bd.
Re: Need help to download file from ESP32 over console or other UART
Hi Loboris,loboris wrote:I have updated the repository to work with the latest esp-idf.
Tested with esp-idf master branch and esp-idf release/v3.0 branch.
Tested with 800 KB binary file for download/upload (SPIFFS was formated to 1 MB), with UART at 115200 bd.
Tested with 1.5 MB binary file for download/upload (SPIFFS was formated to 2 MB), with UART at 921600 bd.
Thanks for quick update.
I will check and get back to you with results as soon as possible.
I have one question like will it also worked with direct SPI Flash API without using SPIFFS file system?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Need help to download file from ESP32 over console or other UART
It should't be hard to modify it this way. You will need to change file related functions with SPI Flash API related calls in ymodem.c/ymodem.hRitesh wrote:loboris wrote:I have one question like will it also worked with direct SPI Flash API without using SPIFFS file system?
Re: Need help to download file from ESP32 over console or other UART
Ok.loboris wrote:It should't be hard to modify it this way. You will need to change file related functions with SPI Flash API related calls in ymodem.c/ymodem.hRitesh wrote:loboris wrote:I have one question like will it also worked with direct SPI Flash API without using SPIFFS file system?
Thanks again for quick response.
I will check with SPI Flash Raw API and get back to you with results for both Flash and SPIFFS for ymodem.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: No registered users and 100 guests