Home icon indicating copy to clipboard operation
Home copied to clipboard

Esp32 Cant Connect to WIFI

Open AlirezaP opened this issue 1 year ago • 9 comments

Target name(s)

ESP32_PSRAM_REV0

Firmware version

1.8.1.620

Was working before? On which version?

No response

Device capabilities

No response

Description

always connection fail. If I understand correctly the problem, rise from "GetNativeScanReport" in "WifiAdapter.cs".

it worked with ESP32_WROOM_32 and windows.device.wifi but now i update the Firmware to ESP32_PSRAM_REV0 with System.Device.WiFi NuGet and it not work.!

How to reproduce

bool result = WifiNetworkHelper.ScanAndConnectDhcp(Ssid, Password, WifiReconnectionKind.Automatic, false, 0, cs.Token);

Expected behaviour

connect successfully

Screenshots

img1 n1

img2 n2

Aditional information

No response

AlirezaP avatar Oct 29 '23 19:10 AlirezaP

The issue is using the PSRAM firmware on a non PSRAM hardware. The ESP32 WROOM does not have PSRAM. Please use the ESP32_REV0 firmware.

alberk8 avatar Oct 30 '23 00:10 alberk8

@AlirezaP please confirm the above.

josesimoes avatar Oct 30 '23 18:10 josesimoes

Thank you. Yes, you are right. esp32 wroom 32 does not have PSRAM. I changed firmware to ESP32_REV0. The exception was changed, it changed to "unspecific Failor". it rise from "NativeConnect" method in "WifiAdapter.cs".

AlirezaP avatar Oct 30 '23 20:10 AlirezaP

n3

AlirezaP avatar Oct 30 '23 20:10 AlirezaP

n3

How about doing a Wifi Scan? Do you get a return that shows the intended SSID that you want to connect?

alberk8 avatar Oct 31 '23 00:10 alberk8

Wifi scan works. It lists all available access points. But when connecting, the exception is raised

AlirezaP avatar Oct 31 '23 15:10 AlirezaP

n6

AlirezaP avatar Oct 31 '23 15:10 AlirezaP

I can confirm that i have this issue on a: ESP32 (ESP32-D0WD-V3 (revision v3.1)) too.

I flashed esp32_ble_rev3 and tried esp32_ble_rev0 too (AlbertK advised me to try this in Discord).

Im trying to run the improvWifi sample, the following line returns false: https://github.com/nanoframework/Samples/blob/4b1754686fde18562062c1c7f9a846769c34d1db/samples/Bluetooth/ImprovWifi/Improv.cs#L529

Hopefully im not adding this to a different issue but the symptoms and the exceptions look very similar.

FreeFrags avatar Dec 02 '23 12:12 FreeFrags

@FreeFrags the improv sample has been improved. So, should work better.

@AlirezaP do you still have the issue? I've been recently using it on a ESP32 REV0 without PSRAM and all works fine.

Ellerbach avatar Mar 26 '24 12:03 Ellerbach

Please let us know if this is still an issue.

networkfusion avatar May 09 '24 19:05 networkfusion

Testes with ESP32_REV0-1.9.1.93, works.

torbacz avatar May 09 '24 20:05 torbacz