Man-fred / culfw.esp8266

CUL/CUN 433/868 MHz CC1101 Transceiver mit WLAN-Schnittstelle für FHEM - originally forked from svn2github/culfw (https://github.com/svn2github/culfw)
GNU General Public License v2.0
8 stars 5 forks source link

How to setup esp8266 wifi parameters ? #8

Closed jirmjos closed 3 years ago

jirmjos commented 3 years ago

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 (https://github.com/kaloz/mwlwifi/issues/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 commented 3 years ago

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 commented 3 years ago

So closing issue