Skip to content
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

Update to SDK 2.1.0 #3215

Closed
igrr opened this issue May 8, 2017 · 21 comments
Closed

Update to SDK 2.1.0 #3215

igrr opened this issue May 8, 2017 · 21 comments

Comments

@igrr
Copy link
Member

igrr commented May 8, 2017

non-OS SDK 2.1.0 has been released, with support for 16 MB flash size, support for broadcast packets in ESP-NOW, fixes for ARP, UDP broadcast, and other issues.

@alex-yazdan
Copy link

Because of fixing ARP issue, It's important to upgrade to this SDK,
How long does it take to upgrade to this SDK ?

@igrr
Copy link
Member Author

igrr commented May 8, 2017

@alirezza updating libraries should probably take a couple of hours (there's usually some breakage, SDK archives repackaging, and LD script hacking involved). As for the other parts of the checklist, depends, I wouldn't venture a guess.

Also I must mention that the top priority now is to clear all the blocking issues and push a new stable release, even if it doesn't include an SDK update. Feel free however to contribute to this issue if you find it important.

@jonhp
Copy link
Contributor

jonhp commented May 8, 2017

How about combining your top priority with the new SDK. Possibly one could help the other?

@capedra
Copy link

capedra commented May 22, 2017

@igrr How's it going? Could you please implement this for the next version 2.4.0-RC2 ? Thanks!

@torntrousers
Copy link
Contributor

+1 from me for getting the 2.1.0 SDK in the next release!

@hcs-svn
Copy link

hcs-svn commented May 22, 2017

+1 because of the fixed ARP bug (#2330). To get rid of this would be very important.

@igrr igrr mentioned this issue May 23, 2017
11 tasks
igrr added a commit that referenced this issue May 23, 2017
@igrr
Copy link
Member Author

igrr commented May 23, 2017

Created #3278.

Only ran webserver, PWM, and OTA tests. Folks interested in SDK 2.1.0 are encouraged to try that branch and report what works and what doesn't.

To use that PR, follow instructions for installing git version (remove the version installed using boards manager first). Then check out the PR by doing git checkout update_sdk_2.1.0.

@hcs-svn
Copy link

hcs-svn commented May 30, 2017

Folks interested in SDK 2.1.0 are encouraged to try that branch and report what works and what doesn't.

I have a sketch that uses:

  • connect to an access point
  • provide access point for configuration
  • I2C (BMP180, BME180, LM75, MCP23008, SC16IS750, SSD1306 OLED)
  • SPI (two RFM69)
  • analog
  • several WiFiServer where clients connect
  • web frontend using ESP8266WebServer
  • ota update using Update.begin, write, end ... in combination with ESP8266WebServer upload
  • serial port communication

Everything work fine since several days.

@TridentTD
Copy link

Next release please use esp-mesh by this newest version
https://github.com/espressif/ESP8266_MESH_DEMO

esp-mesh on sdk2.1.0 still not update.

@devyte
Copy link
Collaborator

devyte commented Sep 6, 2017

@igrr what do you need to move forward with this? My knowledge of what is required is pretty much nullptr, but I'm willing to help out as I can starting this coming weekend.

@igrr
Copy link
Member Author

igrr commented Sep 6, 2017

Thanks @devyte. Do any of the to-do items listed in the PR (#3278 (comment)) make sense to you? I think testing whether new SDK implementation of wifi reconnect works with WiFiManager is something you could help with.

@devyte
Copy link
Collaborator

devyte commented Sep 6, 2017

@igrr most don't. I'm sorry, I'm a higher level code developer, since decades, so my low level skills are beyond rusty.
I think I can do the wifimanager test. Also, I've been toying with getting a few Wemos D1 mini pros. I'll buy them tomorrow for testing, but they'll take a (long) while to reach me.

@igrr
Copy link
Member Author

igrr commented Sep 6, 2017

Also, i am not sure about merging SDK2.1.0 into 2.4.0. Pretty hard to say what might get broken. Should not prevent finishing work on SDK2.1.0 though...

@igrr
Copy link
Member Author

igrr commented Sep 6, 2017

(also, probably OT here, but maybe some items in the "pending/todo" columns of https://github.com/esp8266/Arduino/projects/1 might make sense to you — once these are resolved, we can release 2.4.0 or at least -rc2).

@devyte
Copy link
Collaborator

devyte commented Sep 26, 2017

@igrr I just looked at the 2.1.0 changelist, and there are some rather important fixes in there, such as a fix for connecting to a wifi with hidden ssid, and the UDP broadcast extra bytes issue.
Also, there are 10 commits to the espressif github after the 2.1.0 release. Some of them seem to be fixes to outstanding issues, like the wpa2 enterprise identity api, and a fix for long time deep sleep. There are some iram optimizations as well.
Should we consider pulling the latest git NONOS? I think it merits at least exploring. If not for the release, then at least to be merged into master right after.

You said:

testing whether new SDK implementation of wifi reconnect works with WiFiManager

The only change in the reconnect behavior of the wifi mentioned in the changelist is when trying to connect to an AP that doesn't exist. I do see mentions of changes in the wifi events, though.
Should I just test whether the wifimanager works as expected?

@igrr
Copy link
Member Author

igrr commented Sep 26, 2017 via email

@freedib
Copy link

freedib commented Oct 3, 2017

I just looked at SDK 2.1 update because I needed new header definitions which were not in SDK 2.0.
It seems some file in https://github.com/esp8266/Arduino/tree/update_sdk_2.1.0/tools/sdk/include are the old ones or at least not the same as in ESP8266_NONOS_SDK.
I had concerns about in c_type.h (expected a definition for size_t) and uart_register.h (expected a definition for UART_TXD_INV).
Are there any reasons for this difference? Thanks

@hemangjoshi37a
Copy link

hemangjoshi37a commented Oct 9, 2017

does anyone know how to install this? I have downloaded the zip file but dont know how to install in my system. Please help me.
Link that I downloaded : https://github.com/espressif/ESP8266_NONOS_SDK/releases/tag/v2.1.0
but there is no .bin file to upgrade firmware. What should I do?
Currently I am using firmware build myself from https://nodemcu-build.com

@devyte
Copy link
Collaborator

devyte commented Oct 30, 2017

@igrr I've been testing the WiFiManager examples for a while now, and tbh I don't really see any difference. The only issue I encountered is that the scan-related page loads fail sometimes. From what I can tell, it's due to one of the following:

  • the WiFiManager object doesn't use async scanning, and so you face the channel hopping issue and related random disconnect from the SoftAP
  • the ESP8266Webserver issue, or rather, the lwip1.4 issue caused by browsers doing multiple requests (same symptom I encountered a while back, which caused me to move to the ESPAsyncWebserver)

So I don't think the WiFiManager behavior is impacted, at least as far as I can tell.
My conclusion for the WiFiManager: green light.

@dalbert2
Copy link
Contributor

I've been testing 2.1.0-rc2 WPS functionality to see if it fixed WPS with modern (802.11ac) routers and unfortunately it still does not work although it works perfectly with older 802.11b/g/n routers.
See issue: #3941

@JaimeSilva
Copy link

How can I upload to a new SDK? should I use ESP FLASH DOWNLOAD TOOL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests