Having WiFi Interface Problem With SPIFFS
-
- Posts: 23
- Joined: Thu Oct 26, 2017 7:34 am
Having WiFi Interface Problem With SPIFFS
Hello @loboris
I have used your SPIFFS component from you following example which works fine without WiFi
“https://github.com/loboris/ESP32_spiffs ... nts/spiffs”
When I used it With WIFI Interface ,my WIFI Interface is break after some timer.
When I Replace SPIFFS component with SPIFFS component Provided by esp-idf master MY application Works fine. Without Breaking WiFi Interface.
Have you any suggestion about it?
I have used your SPIFFS component from you following example which works fine without WiFi
“https://github.com/loboris/ESP32_spiffs ... nts/spiffs”
When I used it With WIFI Interface ,my WIFI Interface is break after some timer.
When I Replace SPIFFS component with SPIFFS component Provided by esp-idf master MY application Works fine. Without Breaking WiFi Interface.
Have you any suggestion about it?
Re: Having WiFi Interface Problem With SPIFFS
Hi Loboris,
I and Pratik are working together for this feature. Let me explain in details like what we had did till now.
Our main purpose was to do some feasibility for Rest HTTP Interface on ESP32. We had picked up some components like nghttpd2, libmxml, cJSON and dependent libraries for that.
We successfully ported all libraries and started it with simple http based requests which are working fine.
Then we moved it with SPIFFS components and taken your repository as reference to move on. We were earlier using ESP32 IDF 2.0 but now we are using ESP32 IDF 2.1 for our development purpose.
So, We have put our system for overnight http request based stress test but after 1000 to 3000 HTTP requests WiFi suddenly goes into stuck condition which is recovered on reset though there are free heap into device.
But after we had replaced your SPIFFS components with ESP32 IDF 2.1 provided SPIFFS submodule and it works fine without any WiFi hang issue.
So, Would you please check form your end as well and.let me.know if need any further information regarding issue?
I and Pratik are working together for this feature. Let me explain in details like what we had did till now.
Our main purpose was to do some feasibility for Rest HTTP Interface on ESP32. We had picked up some components like nghttpd2, libmxml, cJSON and dependent libraries for that.
We successfully ported all libraries and started it with simple http based requests which are working fine.
Then we moved it with SPIFFS components and taken your repository as reference to move on. We were earlier using ESP32 IDF 2.0 but now we are using ESP32 IDF 2.1 for our development purpose.
So, We have put our system for overnight http request based stress test but after 1000 to 3000 HTTP requests WiFi suddenly goes into stuck condition which is recovered on reset though there are free heap into device.
But after we had replaced your SPIFFS components with ESP32 IDF 2.1 provided SPIFFS submodule and it works fine without any WiFi hang issue.
So, Would you please check form your end as well and.let me.know if need any further information regarding issue?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Having WiFi Interface Problem With SPIFFS
I would recommed using the esp-idf provided spiffs driver, it works very well.
The only limiting factor was missing timestamp handling, which is now included in esp-idf 3.0
I don't know how using spiffs could break wi-fi. The only possible problem I can think of is writting large amount of data to spiffs, as it can block for some time when spiffs gc tries to erase some blocks. Also, if you are using large fs (larger than 1MB) and a lot of small files, opening the file (locating it in the fs) is much slower than on FatFS.
Maybe for your application it would be better to use the FatFS. In some usage cases it is faster than spiffs.
The only limiting factor was missing timestamp handling, which is now included in esp-idf 3.0
I don't know how using spiffs could break wi-fi. The only possible problem I can think of is writting large amount of data to spiffs, as it can block for some time when spiffs gc tries to erase some blocks. Also, if you are using large fs (larger than 1MB) and a lot of small files, opening the file (locating it in the fs) is much slower than on FatFS.
Maybe for your application it would be better to use the FatFS. In some usage cases it is faster than spiffs.
Re: Having WiFi Interface Problem With SPIFFS
Hi,loboris wrote:I would recommed using the esp-idf provided spiffs driver, it works very well.
The only limiting factor was missing timestamp handling, which is now included in esp-idf 3.0
I don't know how using spiffs could break wi-fi. The only possible problem I can think of is writting large amount of data to spiffs, as it can block for some time when spiffs gc tries to erase some blocks. Also, if you are using large fs (larger than 1MB) and a lot of small files, opening the file (locating it in the fs) is much slower than on FatFS.
Maybe for your application it would be better to use the FatFS. In some usage cases it is faster than spiffs.
Thanks for your valuable reply.
The main reason behind using your SPIFFS component is due to directory related APIs which is not included into ESP32 IDF 2.1 supported SPIFFS. I know that Espressif System has released ESP32 IDF 3.0 RC1 SDK but didn't check SPIFFS component into that.
So, I will check that and will let you know the result with that as well.
Actually, We had created partition of 1 MB and we are using file.open, delete, read, write and close related SPIFFS APIs with every Rest Request depending on that request.
Would you please provide example for FatFS as I didn't use it into ESP32?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Having WiFi Interface Problem With SPIFFS
Hi Loboris,
I had checked into ESP32 IDF 2.1 and they didn't provide SPIFFS as component into IDF itself but they had provided into ESP32 IDF 3.0 SDK.
So, Sorry to provide some wrong information from my side.
I had also checked test case API and they had used directory related APIs as well. So, Let me check that as well tomorrow morning and will get back to you with some more update with that.
Also, I had checked FatFS component as well. So, Would you please suggest us which one is better to use amount g SPIFFS and FatFS?
I had checked into ESP32 IDF 2.1 and they didn't provide SPIFFS as component into IDF itself but they had provided into ESP32 IDF 3.0 SDK.
So, Sorry to provide some wrong information from my side.
I had also checked test case API and they had used directory related APIs as well. So, Let me check that as well tomorrow morning and will get back to you with some more update with that.
Also, I had checked FatFS component as well. So, Would you please suggest us which one is better to use amount g SPIFFS and FatFS?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Having WiFi Interface Problem With SPIFFS
Hi Loboris,
We need your urgent help regarding this issue as we are right now stuck after using your SPIFFS components into our running project.
As I have explained earlier that we are facing WiFi stuck issue in overnight stress test while using your SPIFFS which is working fine in normal testing and same code with latest ESP32 IDF 3.0 supported SPIFFS is working fine without any issue.
So, Would you please update your SPIFFS component with compatible to latest ESP32 IDF 3.0 supported SPIFFS so that we can use it for our purpose.
Actually, We have planned to use your SPIFFS component as it is providing some more features like directory creating in addition to file creation.
Let me know if need any information from my side.
We need your urgent help regarding this issue as we are right now stuck after using your SPIFFS components into our running project.
As I have explained earlier that we are facing WiFi stuck issue in overnight stress test while using your SPIFFS which is working fine in normal testing and same code with latest ESP32 IDF 3.0 supported SPIFFS is working fine without any issue.
So, Would you please update your SPIFFS component with compatible to latest ESP32 IDF 3.0 supported SPIFFS so that we can use it for our purpose.
Actually, We have planned to use your SPIFFS component as it is providing some more features like directory creating in addition to file creation.
Let me know if need any information from my side.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Having WiFi Interface Problem With SPIFFS
@Ritesh
If you can send me some code/app example which causes the wifi error, I will run it and try to find the solution.
I'm working on some modifications in esp-idf 3.0 spiffs driver to enable the directory create/remove functions, I expect to finish it in a couple of days.
If you can send me some code/app example which causes the wifi error, I will run it and try to find the solution.
I'm working on some modifications in esp-idf 3.0 spiffs driver to enable the directory create/remove functions, I expect to finish it in a couple of days.
Re: Having WiFi Interface Problem With SPIFFS
Hi Loboris,loboris wrote:@Ritesh
If you can send me some code/app example which causes the wifi error, I will run it and try to find the solution.
I'm working on some modifications in esp-idf 3.0 spiffs driver to enable the directory create/remove functions, I expect to finish it in a couple of days.
I think Pratik has provided some more details for that into below thread. So, Let me know if you need any further informations for that and also let me know if any confusion for that.
https://esp32.com/viewtopic.php?f=13&t=3891
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Having WiFi Interface Problem With SPIFFS
Hi Loboris,
Did you get chance to look details which I have provided I to last update?
Let me know if any confusion or need any more information.
Did you get chance to look details which I have provided I to last update?
Let me know if any confusion or need any more information.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Having WiFi Interface Problem With SPIFFS
I'm testing some changes I've made in spiffs driver. I'll try to test it with intensive wi-fi operations to...
Who is online
Users browsing this forum: Baidu [Spider], cdollar and 105 guests