-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TW#17012] Wifi Interface Stop #1372
Comments
Is it WiFi Configuration or WiFi related issue or other? |
I found that its not related to SPIFFS. |
@Pratikhyadav Can you describe relationship between this issue with SPIFFS. I am confused about this. If you can give difference between workable code and unworkable code, it will help a lot. |
Hello @jack0c I Found That its not SPIFFS related Issue. This Issue reproduced when i used Flash write Operation When i used Flash operation. Not Working Code: Only Change I applied is Added Flash Write Logic Which is Shown Below:
My partition Table is as following: Let me know if you requires more detail. |
@Pratikhyadav |
Hello @jack0c Yes I used Post_file[post_buffer_lenght++]=buf[i]; Code is As following.
Let me know If you need More detail. |
Hi @jack0c |
Again, |
Hi @jack0c yes, your first suggestion is to the point. and i rectified my mistake as well. my set up is like this -
at the beginning these reading and writing to flash operation is happening properly. but, after several(about hundreds of) requests MY SERVER's AP IS GETTING DISAPPEARED & it is no more discoverable by any device running STA mode. NOTE: this issue is seen only when i do flash write and flash erase operations after socket read. After AP disappear I got following messages after around 5 to 10 minutes: W (4158142) wifi: pp task q full: s=11 p=3ffca928 W (4160142) wifi: pp task q full: s=11 p=3ffca938 W (4162142) wifi: pp task q full: s=11 p=3ffca948 W (4164142) wifi: pp task q full: s=11 p=3ffca958 W (4166142) wifi: pp task q full: s=11 p=3ffca968 W (4168142) wifi: pp task q full: s=11 p=3ffca978 W (4170142) wifi: pp task q full: s=11 p=3ffca988 W (4172142) wifi: pp task q full: s=11 p=3ffca998 W (4174142) wifi: pp task q full: s=11 p=3ffca9a8 W (4176142) wifi: pp task q full: s=11 p=3ffca9b8 W (4178142) wifi: pp task q full: s=11 p=3ffca9c8 W (4180142) wifi: pp task q full: s=11 p=3ffca9d8 W (4182142) wifi: pp task q full: s=11 p=3ffca9e8 W (4184142) wifi: pp task q full: s=11 p=3ffca9f8 W (4186142) wifi: pp task q full: s=11 p=3ffcaa08 W (4188142) wifi: pp task q full: s=11 p=3ffcaa18 W (4190142) wifi: pp task q full: s=11 p=3ffcaa28 I would like to know the reason why you are suggesting me to go through OTA example. As I have tested Standalone task in which i have written 900 kB data into flash from 0x300000 location with http server which works fine. And what if i just want to store my file or data(rather than taking OTA, validating and then storing) into flash on client's http request.In this case i cant use OTA API. |
@Pratikhyadav What's your idf version? |
I am using idf 2.1 and its detail is as following commit:27574a31e7c41f6e22e10e9b9d7713c6d49f795d |
Can you please use idf 2.1.1, commit : 8bca703. |
I used 2.1.1 But still facing same issue. But if i used 3.0rc1 its work for 24 hour and still working. Is it IDF related issue? is there any bug in WiFi stack or Flash APIs of older idf ? |
@Pratikhyadav Thank you for testing. |
This Is bin file in which issue is reproduced Let me know if you want more detail about it. |
@zhangyanjiaoesp Please use this bin file to test. |
@Pratikhyadav I have run your bin file, but I can't find the AP SSID and password. So how the http client connect to it ? |
After Flashing Provided REST with AP Interface Firmware into ESP32 Board, Execute below provided steps to start REST Interface testing with different GET/POST/PUT/DELETE requests
3)Send HTTP Rest POST request by any Rest client( I used POSTMAN) to Server with 900 Kbytes as attached image using below mentioned URL If complete file is received by server than it will send HTML page in response with message “POST was Requested”. If File is NOT received completely than You will see Error message on console of ESP board : NOTE:Issue was reproduced in long run. |
Use Uppercase instead of Lowercase . Let me know if you need any other information about it. |
Can you provide the test code for http_client? |
curl+simpleget.sh.zip U can download it from following link you can run following script for continues Rest request. Replace File location on POST requesting attached script. |
You say
,so I want to know how long it will be? several hours? or one day? |
Issue reproduce randomly every time. Some times its reproduce in 1 to 2 hour and some times its take more than 12 hours. So better to run this test for One Day. |
Hello @zhangyanjiaoesp Have you tried to test and to reproduce this issue on your end ? If you have any doubt on "HOW TO TEST" let me know. |
@Pratikhyadav I have reproduce your test, and I'm finding the reason of the issue |
@Pratikhyadav Can you provide whole your test code? I test with the OTA example, in AP+STA mode, so the behavior is same to your test, and the idf version is v2.1. I have tested almost a whole day, but I can't reproduce the problem. So I need your test code. |
Thank you @zhangyanjiaoesp for putting efforts to reproduce issue on your end. |
Hi @Pratikhyadav , |
Hello, If i provide you my Test code can you tell me exact root cause of this problem? Thanks |
If you provide your test code, it's better for us to find the root cause of this problem |
Hello Have you debugged it ? Is there any issue in my code? Let me know if you find anything. |
hello @zhangyanjiaoesp @FayeY As my another apps are using esp-idf 2.1 i need to know which part cause this problem. SO request you to find exact root cause of this issue.and Let me know ASAP. Thanks |
@Pratikhyadav |
Thanks @zhangyanjiaoesp waiting for your reply. Many Thanks.. |
Hello @zhangyanjiaoesp Any update? |
Hi Pratik, sorry that these days are the Chinese Spring Festival Days, so all our engineers are on holiday. They will back to work in the next couple days. Sorry for the inconvenience. |
Hi @FayeY OK. Humble request to do it ASAP. |
@zhangyanjiaoesp please help to update it when you back to work from holiday. |
@Pratikhyadav I use your code to test before the holiday. When it runs on dual core, the problem can be reproduced , but when it runs on single core, the problem can not be reproduced. I need to test more to find the root cause. |
@Pratikhyadav |
sorry, Can you tell more specific? which change is affected to this issue? |
Hello, |
@Pratikhyadav Please pull the latest idf release/v2.1 to check |
Hello,
I created HTTP server using lwip netcon library.
Also i applied changes as suggested by :
#784.
I have following scenario:
When i Create simple http server it works fine.(Tested it with more than 140000 requested).
But when used spiffs to store my data in file transition stop at random time and when i try to connect
to http server , i can’t. I have to reboot Board.
3)To Check that is there any issue with spiffs i run standalone test in which i did same functionality of my
http server, without any socket(netcon) API. Which is works fine.
But when I merge Spiffs with simple http My server stop responding after some request(around 1500), And can’t reconnect with it.
My spiffs Partition is as following:
My Wifi configuration is as following:
Where my parser Function Check which kind of requests(POST, GET,DELETE,PUT) is requested from client, and send html formatted string in respond.
When POST is requested so file which is sent in POST request , I stored it in SPIFFS in http_parser's Body callback using fopen and fwrite.
After More than 1000 Requests Server stop responding , And has following log:
Am I missing something?
The text was updated successfully, but these errors were encountered: