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

How to setup esp8266 wifi parameters ? #8

Closed
jirmjos opened this issue Jan 24, 2021 · 2 comments
Closed

How to setup esp8266 wifi parameters ? #8

jirmjos opened this issue Jan 24, 2021 · 2 comments

Comments

@jirmjos
Copy link

jirmjos commented Jan 24, 2021

Hi Man-fred

So interesting your cul.esp8266 project, and first to all so Sorry abut my ignorance, but I want to setup some esp8266 cul gateway devices for my Max! eq3 system.

Once flashed my esp8266 device (Wemos D1 mini), with the provided V01-67-00.culfw-esp8266.ino.d1_mini.bin inside the project and do setup wifi and ip parameteres trough serial follwing the CUL commandref.html, the ESP seems unable to connect over wifi with a weird error message that I can see in logs on my wifi router (OpenWRT).
I try another router (firmware form own manufacturer not OpenWRT) and device are unable to connect too, but this router don't provider log, so cannot see what error

Finding over internet (kaloz/mwlwifi#278, https://forum.openwrt.org/t/solved-wrt32x-and-smart-plug-problems/35509) the issue seems maybe a problem related with the ESP core version used on compilation but with several hours triying to fix it on my OpenWRT router no give any success.

Triying to use another ESP8266 Core making compile whole project by mysef but I'm unable to figure out how to arrange with your project struture (I'm use Arduino IDE version 1.8.9) needed to link all library files used, and other files related, so I'm unable to follow that path.

Wifi error are described bellow:

Router log:
...
Sun Jan 24 23:34:28 2021 daemon.info hostapd: wlan0-1: STA 98:f4:ab:fb:ad:ac IEEE 802.11: authenticated
Sun Jan 24 23:34:28 2021 daemon.info hostapd: wlan0-1: STA 98:f4:ab:fb:ad:ac IEEE 802.11: associated (aid 1)
Sun Jan 24 23:34:28 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:29 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:30 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:31 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:33 2021 daemon.info hostapd: wlan0-1: STA 98:f4:ab:fb:ad:ac IEEE 802.11: authenticated
Sun Jan 24 23:34:33 2021 daemon.info hostapd: wlan0-1: STA 98:f4:ab:fb:ad:ac IEEE 802.11: associated (aid 1)
Sun Jan 24 23:34:33 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:34 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
...

Serial output commanded:
WisN600_AUX
Wikxxxxxxxxxxxxxxxx
Wia10.10.1.179
Wig10.10.1.1
Win255.255.255.0
⸮Hlz⸮⸮MH⸮�Yp⸮⸮eeprom_init
eeprom_init ok
Connecting 876543210
UDP 1, TCP 0 on 10.10.1.179:2323

Channel 12
CC1100_PARTNUM 0x00: 0
CC1100_VERSION 0x14: 14

Any help will be much appreciated

Best regards
Jose

@jirmjos
Copy link
Author

jirmjos commented Feb 1, 2021

Hi again,

I'm autorepliying to me, because I found what issue had to make propper wifi coneection with my routers.
Simply enought, seems that the wpa2 key I'm using (for all y other esp devices) its not handled propperly by this esp8266 culfw. So I change the wpa key to one that sure meet requeriments and problem was gone.

Regards,
Jose

@jirmjos jirmjos closed this as completed Feb 1, 2021
@jirmjos
Copy link
Author

jirmjos commented Feb 1, 2021

So closing issue

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

1 participant