-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
different ESP board diferent web server behiavior #1889
Comments
ESP-xx modules do not have any differences except for their physical layout and antenna options. If something works on one module but doesn't work on another, you might want to check if
|
thanks dear @igrr but why module has different behavior when we select different Settings in IDE (name of board , speed of flash , reset method, flash size,...) why each vendor define it's own Settings in IDE? what's the benefit of that ? |
@mkeyno Because some manufacturer uses 512KB flash, another uses 4MB flash, some have cut off the two pins that go to the flash so it can only be driven in DIO-mode, some have all the pins connected, allowing the flash to be driven in the much faster QIO-mode, and then there are the pin-definitions, like e.g. on the Nodemcu the pin that's marked as D0 is actually GPIO16, whereas on another manufacturer's board a similarly-named pin D0 could be some entirely different GPIO-pin underneath, or they may use some other naming-scheme altogether -- these board-specific pin-definitions are there for ease-of-use reasons. Basically, a lot of settings that vary between manufacturer to manufacturer. |
thanks @WereCatf for your answer , so you were saying the only main different is the flash size & flash connection type(hardware connection) , other should not has much impact on module programming , however I was wondering if you have any suggestion for ESP-07 IDE setting |
There is no such a thing as an ESP8266 with only 56KB Flash, you probably mean 512KB. Setting IDE to generic ESP and flash-mode to DIO should work every ESP-module out there, you just have to make sure the flash-size is correct. In your case, it might be a good idea to format your SPIFFS, too, to make sure it's not corrupted. |
thanks @WereCatf , I ran some test to find correct size of flash and SPIFF, and it run now but somethings new come up , I put about 200kb pages on the SPIFF and simple webserver to serve those pages , but when I connected to AP, it shows nothings , no request form browser send to AP node whereas my laptop correctly connected to that AP, I've tried with other browser but nothings happened, it seems AP can not received any header request from browser whereas with example of library , node received all request form browser , I might add my sketch totally work with all browser when I use NodeMCU module ESP-07 ESP8266WebServer server(80); void handledyn() { char temp[400]; snprintf ( temp, 400, "\ \ \ <title>ESP8266 Demo</title>\ <style>\ body { background-color: #cccccc; font-family: Arial, Helvetica, Sans-Serif; Color: #88; }\ </style>\ \ \Hello from ESP8266!\Uptime: %02d:%02d:%02d \ \ \ ",
); } server.send ( 200, "image/svg+xml", out); String formatBytes(size_t bytes){ } if(path.endsWith("/")) path += "index.html"; String contentType = getContentType(path); //Serial.println("\t contentType: " + contentType); void setup() { /* You can remove the password parameter if you want the AP to be open. */ IPAddress myIP = WiFi.softAPIP(); server.onNotFound ( handleNotFound ); // start DNS server for a specific domain name void loop() { ` out put Configuring access point...
|
So, the same sketch, with no modifications to it, works correctly on the Nodemcu but not your ESP-07? I see you are using Arduino IDE 1.6.7, are you also using an older version of the ESP8266-stuff for Arduino? Perhaps you could try installing IDE 1.6.8 and grabbing the latest stuff from here and testing if it works any better? If the answer to the first question is yes, and it doesn't work any better with IDE 1.6.8 and latest stuff from here, then it sounds like a bug in the SPIFFS-library or the webserver-lib. |
dear @WereCatf I ran another test , I upload the same file on SPIFF and sketch with two same module (nodeMCU) but supersized when one module work fine and other not , one get any request from browser and respond fast and other seems dumb to any browser request , how is happened ? when I connected to AP node I set the both network on home type in windows 7 64x |
So, you didn't try with newer IDE and ESP8266-libs? |
not for IDE but my ESP8266-libs is the last one |
I did , I test it with Arduino 1.6.8 hourly nights , the same issue , it is possible somehow my node not registered for windows 7 and no request pass it to my AP node |
dear @igrr do you have any idea why same sketch and file have different behavior for same module |
dear @igrr & @WereCatf I set debug level to "All" in Arduino deice setting (Generic ESP8266) but what is out come is the endless following info, I don't know why my code work fine with one module and respond browser request but other not or partially catch the browser header request |
You are absolutely certain that your module is getting enough power? Unstable power-supply or too little power could also cause something like this, I guess. I do not have an ESP-07 to test with. |
I've check with NodeMCU, one module work and respond find and other not, can you kindly advise me how can enable debug on nodeMCU just like the generic esp8266 , it seems this option not available for nodeMCU |
You can use the same generic settings for the Nodemcu-kit as you use for the ESP-07, except set Flash to 4MB - size. Ie. flash size to 4MB, flash-mode to DIO. |
no change buddy |
no change , I'm so confuse and exhausted, how come pair of same module behave differently ? |
Did you check the power-supply you're using for the ESP-07? |
right now I work with 2 pair of nodeMCU rev 1conected to my laptop USB |
I didn't ask about your Nodemcu, since that's working. I asked about the ESP-07. |
when I have continue issue with my ESP-07 I've change it with nodeMCU but code work with one and not work for other |
@WereCatf I got some info , in my code there is function which is restore some parameter from EEPROM , when I disable it the module work fine, the restore parameter has not to do with wifi parameter and setting , how this affect the wifi performance |
` Serial.begin(115200);
if(MyMode[0]=='A' || reset_number>4 || SSID.length()<3 ) }
} server.on("/process", process); void loop() if(MyMode[0]=='A') dnsServer.processNextRequest(); } ` |
the module that already work has preset EEPROM, but when I program my code on new module there is no preset EEPROM data , how this brutally affect the module performance , dear @WereCatf can you kindly check my setup function |
There are no such functions in the library as EEPROM_Read and EEPROM_Write, are those something you've written yourself? |
yes buddy |
Hi dear @igrr
I run the modified webserver example of last stable code in 3 different ESP board, there is couple of pages on flash but strange is whereas speed and performance is good on NodeMCU(ESP-12 core) module but for the ESP-01/1MB flash , ESP-07/56KB flash modules most time pages not loaded or partially loaded , it seems same code run on the ESP-01/1MB flash , ESP-07/56KB flash so slowly regards to ESP-12E core , I choose different Settings in IDE for ESP-01 & ESP-07 (such as Generic ESP, ESPdunio , Sparkfun ESP thing ,...) . I can program and upload data for couple of setting and not for others , is there any special setting for such module ? how could I have same performance like ESP-12E?is this probably related to @luc-github issue
BR
The text was updated successfully, but these errors were encountered: