-
Notifications
You must be signed in to change notification settings - Fork 7.4k
ESP32 with samples\net\wifi gives: net_if: There is no network interface to work with! #36414
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
@torntrousers Please, use |
Thanks @sylvioalves . I've got that to run but it does not seem to connect. I've tried putting in the incorrect password and th elog is the same. Is there some thing I can do to debug what is happening?
|
@torntrousers Have you set that at the |
Yes, I found CONFIG_ESP32_WIFI_SSID and CONFIG_ESP32_WIFI_PASSWORD in zephyrproject\zephyr\samples\boards\esp32\wifi_station\prj.conf and set those for my Wifi access point. I haven;t changed anything else , so whatever the default security type is? |
Any ideas @sylvioalves ? |
@torntrousers I checked that with latest main branch and it worked. Have you performed |
Thanks @sylvioalves . Network is WPA2-Personal (according to WIndows Network Properties). The ESP32 connects to it ok with the ESP32 Arduino framework. I had not run those west commands, I have now but after rebuilding and flashing there is no difference.
|
@torntrousers Is the file |
@sylvioalves no changes other than the ssid/password. It looks like this:
|
@sylvioalves I've tried this with my Wifi access point and also using a hotspot on my Android phone (also WPA2-Personal). Neither work with Zephyr but both work with ESP32 Arduino environment. To workout if its some problem with my Zephyr install/build how about would it be possible for you to build the sample and send it to me so I can try you binary? My hotspot ssid/password is Balloon1/qaz123456. Or what is some other way to debug the problem? |
@torntrousers I have just tested with my phone as well and it worked with same credentials. Find the bin file at zephyr.zip. Hum, You have been working on Windows, right? I'll try in Windows as well.
|
@sylvioalves Your binary does not work for me, so that is interesting. First, just to verify that I'm trying it correctly, I get your binary, copy it to zephyrproject\zephyr\build\zephyr overwriting my local zephyr.bin which is there, and then do So I guess the next is for you to try the binary that my environment generates, zephyr.zip. I wondered if you'd actually used the correct ssid/password so looked in the binary and I can see those there in yours, so it looks good:
Then I wondered how my built one one compares to yours - they are exactly the same size, so that seems good:
and a diff on them is is tiny compared to the size of the files -
The very first bit of the diff is intersting - v2.6.0-385-g2d3195c8a2e2 in mine vs v2.6.0-420-ge62c3c533a37 in yours. You have a newer version of something than me - do you recognize what that is a version of ? Is it an ESP32 thing, the IDF or something? |
Oh, its Zephyr isn't it - I'm on a older build than you. How do I update that? |
I think it is something related to the board config itself. Let me check, I'll get back to you.. BTW, do you have a slack account? |
@sylvioalves , I have just joined the Zephyr slack so yes I have an account now. |
Hi @sylvioalves , any ideas yet? Did that binary built on my system work for you on yours? |
With help from @sylvioalves on slack this has been resolved - it was the Heltec board itself and using a different ESP32 module and it all works fine. Not sure what the problem is with the Heltec board as it works fine with the Arduinio/ESP32 environment, but that can be for another day. |
On an ESP32 trying to run the Zephyr WiFi sample in the samples\net\wifi directory and it fails with:
Any tips on how to get it working?
The text was updated successfully, but these errors were encountered: