john30 / ebusd-esp32

Firmware for ESP32-C3 allowing eBUS communication for ebusd (https://github.com/john30/ebusd)
https://adapter.ebusd.eu/v5
23 stars 1 forks source link

Connecting to Wi-Fi network fails #5

Closed brz closed 4 months ago

brz commented 1 year ago

I received my v5 in the mail yesterday but I am unable to connect it to my Wi-Fi network. I installed firmware version 2023-06-18 and after select the Wi-Fi network and entering the password, I get the following screen: afbeelding

Afterwards the connection times out: afbeelding

I am 100% certain that the password is correct. My Wi-Fi network supports 2.4GHz and 5Ghz but the 5Ghz network is not stable. It support Wi-Fi N (not ac or ax). I run OpenWRT on my router.

Since this didn't work I tried connecting to the EBUS AP from my smartphone, I can connect to the AP and was able to configure it successfully this way.

farfade commented 1 year ago

Hello,

First of all, thank you for the nice huge work you've done providing this adapter 👍

I've faced a similar problem here trying to establish a WIFI connection (but with an error message "Unable to connect" instead of "Timeout").

I was trying to perform a connection to my Access Point with WPA2-PSK.

When I looked at the logs of my access point, I see the adapter connection successful, including the negociation of the pairwise key handshake, just like any other clients :

IEEE 802.11: authenticated IEEE 802.11: associated (aid 3) RADIUS: starting accounting session 0116CD47D6D34E41 WPA: pairwise key handshake completed (RSN)

But from the adapter point of view, it can't connect.

The logs provided by the adapter are very minimal and do not help to figure it out :

error: unable to connect to 'MY_WIFI' console: Command returned non-zero error code: 0x1 (ERROR)

After further investigation, I finally found out that my DHCP server wasn't answering to the adapter IP request. Problem solved !

Some things that should have facilitated my debugging process :

Thanks for reading and again for this amazing product !

Best,

farfade

john30 commented 1 year ago

it supports what esp-idf does at the development branch of the build date, so there is no limitation on using 2.4 or 5 GHz e.g.

if you need a fix IP, you can connect to the easi AP "EBUS" and adjust the IP settings for station mode accordingly (IMRPOV does not support setting a fix IP).

john30 commented 8 months ago

fix ip for wifi was added some releases ago, failed connect logging should be there already. so please check again and if it still fails, then post the output of the log command via serial repl

john30 commented 4 months ago

closed for inactivity