Skip to content
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

Connecting ESP8266 to FRITZ!Box 3370 #66

Open
tobau opened this issue Sep 13, 2017 · 2 comments
Open

Connecting ESP8266 to FRITZ!Box 3370 #66

tobau opened this issue Sep 13, 2017 · 2 comments

Comments

@tobau
Copy link

tobau commented Sep 13, 2017

Hello,

i got a strange Problem:
I've written a C-Code which connects to an AP and serves TCP at some ports. It works totally fine in my Network (Hitron Hub). A few days ago, i've moved to my parents place to install an ESP to do some lightning control. (FRITZ!Box 3370)
I've changed the SSID and the WPA2 Key in my Code. I've Copy and Pasted both, so its impossible that there is a typo...

How Ever: When i'm powering up the ESP, it finds the network, and tries to connect to it, but it doesn't work. The Log-File of the FRITZ!Box 3370 says, that there was the wrong key.

Here is the Debug-Out from the ESP:

scandone
no FRITZ!Box - Intern found, reconnect after 1s
reconnect
scandone
no FRITZ!Box - Intern found, reconnect after 1s
reconnect
scandone
no FRITZ!Box - Intern found, reconnect after 1s
reconnect
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 7
cnt
state: 5 -> 2 (2a0)
rm 0
reconnect
state: 2 -> 0 (0)
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 7
cnt

and this repeats the whole time.

Is it a problem with TKIP/AES/CCMP? Which encryption does the ESP support?
Is there any way to get a succesfull connection?

Thank you very much!
Greetings

@tobau tobau changed the title Connecting ESP8266 to FRITZ!Box 7490 Connecting ESP8266 to FRITZ!Box 3370 Sep 13, 2017
@evaluationevaluation
Copy link

Hi,

had a similar issue.
In my case it was the "connection mode" of the ESP.
wifi_station_set_config(&stationConf);
wifi_set_phy_mode(PHY_MODE_11B);
wifi_station_set_auto_connect(1);
wifi_station_connect();
The second line seem to force ESP to use 802.11B for connection with the access point and this mode has been deactivated in my WiFi environment. Setting the access point to accept 802.11b/g/n solved the issue for me.
Don't know if this second line is really needed or if it would be better simply to remove this line. Perhaps ESP then connects with the best mode available?!

Greetings
Eva

@tobau
Copy link
Author

tobau commented Jan 22, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants