-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266 can't get DHCP IP addres from Asus router #8299
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
Comments
Any comment pls? |
Not really a helpful reply from me, but I am quite curious to see an answer, as it is reported often by users of my software too. |
Any core higher then 2.5.2 is useless with asus routers :( I stay with 2.5. |
Well it seems also to depend on the firmware of those Asus routers, as reported by some. (I don't have Asus routers here) |
Thx. I'll pay attention when new asus' fws will be releasing. |
It was more like downgrade made it work (again), but I have no idea what specific router it was. |
With latest release, can you try, in the tools menu:
Did you also try to flash OpenWrt on your asus router ? |
Hi, thx for reply. I didn't try OpenWrt because I use Mesh system. Regards |
Hi @cniedzi , I have an ASUS Rt-AC86U running Merlin firmware. My IoT device runs tasmota wit Arduino Core 2.7.4.9 and I have the same problem with DHCP addresses. I took a trace on the router and I can clearly see that the device ignores the DHCP offer from the router, |
#8319 may fix this issue (follow the links for explanations). |
Having the same issue with tasmota zbridge connecting to a ASUS RT-AX88U running wrt-merlin. The bridge required several manual power cycles after a reboot before it would reconnect to wifi. Following the guide below and another forum post, once "Wi-Fi Agile Multiband" was disabled on the 2.4 band the issue completely dissapeared. https://www.asus.com/us/support/FAQ/1042475 Setting the IP on the device will probably be a better short term solution but maybe this info will help someone else until the fix above is implemented. |
@movodos we have a test version of Tasmota available with the fix |
Tasmota 10.0.0.2 test version with #8319 fix did not help. I still have the same DHCP issues on my ASUS router. Trace attached. |
Hi, any news about this issue? Core 3.0.2 still doesn't work for me :( |
There are suggestions after your last message that we'd like to have reports about. |
I've tried Alpha board manager and to install 0.0.2 core but there were errors during uploading sketch (for normal releases everyting goes fine). Should I set something in addition?
|
The core 3.0.2-42-gb5f3d1d6 (0.0.1) uploads correctly. |
Hi, any suggestions how to install 0.0.2 core? |
0.0.1 and 0.0.2 installation process are similar, unofficial and experimental. |
I've done what you suggested - 0.0.1 uploads fine while 0.0.2 with error: "Port: 'COM3', does not exist!". |
COM port management is managed by the Arduino IDE. You can try to manually use |
2.5.0 uses esptool - DOES upload 0.0.1 uses upload.py instead of esptool - DOES upload 0.0.2 uses upload.py - DOES NOT upload With 0.0.2 no matter which port I set, "Port: 'COM3', does not exist!". |
I can say 0.0.1 is more or less the same as 3.0.2 - ESP8266 connects to router after ca. 3-5 min. while 2.5.0 instantly. |
You can now remove 0.0.1 and reinstall it, or try the "git version", DHCP updates have just been integrated in master branch. |
I have installed 3.1.0-dev and it looks promising. I can connect to router similarly to 2.5.0. EDIT: Looks like I've stated premature opinion :( Sometimes I can connect immediately, somtimes I can't connect at all or I have to wait long time... Still testing. |
It looks promising, but does it worked? Same problem here with AX56U |
it seems that the latest version on the master branch completely fixed the problem on my Asus AX56U. Congrats guys... is there an ETA for this patch to be released in the next release? |
Same problem here, the workaround in issue #8412 (using |
Thanks, all of my esp8266s have been working fine with my new ASU's xt8 until I had to update one of them ... this 11G solution works just fine! Thanks again!
|
Thank you very much. That fixed everything - WiFi.setPhyMode(WIFI_PHY_MODE_11G); |
This solved my issues |
Had the same problem with a Giga Hub from Bell (Sagecom Fast 5689E). Used ESP8266 boards (3.02) in Arduino. The ESP01 was connecting after many minutes but did not receive an IP address. Using WiFi.setPhyMode(WIFI_PHY_MODE_11G); worked for me also. The connection is in 5 seconds now. |
I had the same problem with x86 openwrt router. I had to use static IP to connect to router. Tried WiFi.setPhyMode and other ways but no luck. I downloaded the source code of this package, removed installed package and tried to debug the issue. Then it got IP in 5 seconds without any code changes! |
Hey, I was having this same issue with an ASUS RT-AX86U router (Merlin firmware). Using I used Wireshark on my PC in my attempts at tracking down the problem and I could see the DHCP discovery broadcast packets coming from the ESP, but the DHCP server on the router simply did not respond to them unless the ESP8266 phy had been set to 11g. The discover packets that wireshark picked up were identical on both 11g and 11n networks (apart from the transaction ID). I also noticed that if I connected my phone to the 2.4G network it would kick start things into working again, and the ESP would be able to get an IP no problem when using 11n! Turning off the router DHCP server and running an external server on the network also worked when the ESP was connected using 11n. Same thing happens with v3.1.1 and v3.1.2. Also be careful when testing with and without |
I would like to add to the issue. I've been struggling for 3-4 days trying to get my Hiletgo ESP8266 NODEMCU devices working reliably and found this open ticket. I reverted to the 2.5.2 core, removed wifi scanning from my sketch (apparently nor supported in the old core), and bingo, the board connects reliably to my ASUS RT-AX86U Pro router. THIS ISSUE SHOULD GET A HIGHER PRIORITY as we're currently at 3.1.2 core and this problem should be fixed! |
Same issue here. Here's a link to the repo that houses the sketch I'm using: https://github.com/ericswpark/nodemcu_plant_watering I had to use the 802.11g downgrade workaround to get the board to reliably connect to my RT-AX56U: It connected fine on the first connection attempt, but subsequent connections failed wrt DHCP. |
Hi,
I have a problem described below. Is there any solution?
Platform
Settings in IDE
Problem Description
I use Wemos D1 mini R2 with Arduino core for ESP8266. With any core version higher than 2.5.2 ESP can't get DHCP IP address from ASUS RT-AX86U router (although according to debug data it succesfully connects to wifi).
When I revert back to core 2.5.2 or 2.5.0 ESP sucessfully connects to Asus router and gets IP address. Is it known issue?
Regards
The text was updated successfully, but these errors were encountered: