Hi All
Just started using the ESP-IDF. Started with the WiFi station example. From the logs, everything looks OK. The module (have a rev1 dev board) connects to the AP (can confirm this in router page). But, I am unable to ping it. I tried adding some code to ping the GW from the ESP32 and that fails as well.
Tried setting a static IP. Used some information available. Stopped DHCP, and configured the IP. As per the logs, the ESP32 is supposedly connected to the AP. But, in the router page, the static IP is not shown. The earlier allocated dynamic IP is still shown but the device name is shown as "unknown" instead of "espressif" (like it is shown when using dynamic IP).
Tried enabling all the debug logs. I did not see anything that looked wrong.
The interesting part is that if I use the example from the arduino core and flash the image from the arduino IDE, it works fine (did not try static IP).
I am out of ideas.
ESP32 - No connectivity
-
- Posts: 9769
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 - No connectivity
No idea on why pinging fails, but the board may not show up in your routers list because lists like this tend to display the DHCP leases only. You could test that by having some other device (e.g. laptop) connect to the AP with a static IP and see if it shows up.
-
- Posts: 5
- Joined: Sat Sep 07, 2019 6:57 am
Re: ESP32 - No connectivity
I have a few ESP8266 based devices around the house. All have static IPs and they show up in the list.ESP_Sprite wrote: ↑Mon Sep 09, 2019 3:38 amNo idea on why pinging fails, but the board may not show up in your routers list because lists like this tend to display the DHCP leases only. You could test that by having some other device (e.g. laptop) connect to the AP with a static IP and see if it shows up.
Anyhow, the more important thing, of course, is that the ESP32 is not reachable.
The arduino example works fine but the esp-idf example does not. I am not even sure what to try next. Could it have anything to do with the fact that I am using some old revision of esp32 and the idf has issues with it ? But I would assume that the arduino core internally relies on the IDF itself ?
The example should work as is right ? I mean, it does kinda "work" in the sense that the logs shows it getting connected to the AP. I tried playing around with the menuconfig stuff. No luck.
Was gonna check the arduino core code. See if there is anything else done....
-
- Posts: 5
- Joined: Sat Sep 07, 2019 6:57 am
Re: ESP32 - No connectivity
I tried the SoftAP example. Works fine. Can ping the ESP32 (GW) and another device connected to it.
Why won't the sta mode example work ?
Why won't the sta mode example work ?
-
- Posts: 5
- Joined: Sat Sep 07, 2019 6:57 am
Re: ESP32 - No connectivity
Well, station example started working after I moved to esp-idf v4.0 (v4.0-dev-1476-g1b8ed9abf) !!! So, there is actually something wrong on the master branch ?
This is kinda good enough for me, as I can continue with my work. The problem is that once I move to v4.0, the export scripts (export.ps1 etc) disappear. Any way around this ? Or do I manually pick all the stuff needed from the master branch and place it as required ?
This is kinda good enough for me, as I can continue with my work. The problem is that once I move to v4.0, the export scripts (export.ps1 etc) disappear. Any way around this ? Or do I manually pick all the stuff needed from the master branch and place it as required ?
-
- Posts: 5
- Joined: Sat Sep 07, 2019 6:57 am
Re: ESP32 - No connectivity
Installed the tools and requirements...
Back to the original problem... So there seems to be some issue on the master then ?
Back to the original problem... So there seems to be some issue on the master then ?
Who is online
Users browsing this forum: Google [Bot], MicroController, snutw_ and 134 guests