No ESP Easy connection to my other WiFi access points with same SSID

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: No ESP Easy connection to my other WiFi access points with same SSID

#51 Post by mrwee » 13 Jul 2021, 08:16

TD-er wrote: 12 Jul 2021, 21:16 Well, I've spent all day today working out other WiFi reconnect issues.
I don't think it is solely the "mesh" that's causing issues here.
It's not limited to mesh Wi-Fi only. I'm running on a Ubiquity network with several AP's, and often see ESPEasy jumping from a good AP to a AP with much worse RSSI or ESPEasy never selecting the closest & strongest AP.
If you need me to test recent fixes, I'd be happy to :D

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#52 Post by TD-er » 13 Jul 2021, 09:56

The core 3.0.1 is not yet working fine.
I have a pending PR to support core 3.0.1, but it is a bit unpredictable right now as it may work fine on one build and immediately crash on a next build.
That's the reason I have not yet merged this PR.

The changes for WiFi are in this pending PR and it is also being tested by another user.
https://github.com/letscontrolit/ESPEasy/pull/3702

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#53 Post by Rini52 » 14 Jul 2021, 10:14

Td

I build a custom flash using the source form the git hub removed some sensors and controllers and used the ESP8266 board version 3.0.1 of Arduino-IDE. I put the Wifi to b/g only and reconnect on lost wifi connection. The biggest stability gain(no disconnects) came from removing the regular Wifi-scan. Now i can switch between mAP lite bridge and the (mesh) Asus router with a simple reboot. I will leave it running for the next few days and see what happens. Hope this gives you some hooks ....

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#54 Post by Rini52 » 14 Jul 2021, 11:42

Td

Thanks for sharing. I also did set the "do not start AP" setting. As you suggested. My wifi signals are way higher compared to sgtester but It seems to work ok now ...

My settings are below:

Force WiFi B/G: true
Restart WiFi Lost Conn: true
Force WiFi No Sleep: true
Periodical send Gratuitous ARP: false
Connection Failure Threshold: 0
Max WiFi TX Power: 17.50
Current WiFi TX Power: 0.00
WiFi Sensitivity Margin: 3
Send With Max TX Power: false
Extra WiFi scan loops: 0
Periodical Scan WiFi: false
Use Last Connected AP from RTC: false
Firmware
Build:⋄ 20114 - Mega
System Libraries:⋄ ESP82xx Core 3.0.1, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2
Git Build:⋄ My Build: Jul 13 2021 20:13:54
Plugin Count:⋄ 16 [Normal]
Build Origin: Self built
Build Time:⋄ Jul 13 2021 20:13:47
Binary Filename:⋄ firmware.bin
Build Platform:⋄
Git HEAD:⋄

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#55 Post by TD-er » 14 Jul 2021, 23:24

The "periodical scan WiFi" is now set to default disabled as it caused quite a lot of issues for some.
I think I may even remove it.

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#56 Post by Rini52 » 17 Jul 2021, 15:42

TD

I tested your newest build ESP_Easy_mega_20210615_energy_ESP8266_4M1M and my own build with core 3.0.1 (both based on 20114-mega). In both cases the periodic wifi scan was switched off and the new option "do not start AP" was switched on. The results sofar are great. No sudden disconnects anymore, but note that I have strong wifi signals.
The primary wifi is SSID of mAP lite and the fallback is set to my mesh ASUS.

I tested several situations:
1) Remove TCP connection behind the router (testing pings etc) but WIFI radio signal stays on.
Result both reconnected to MQTT without any problem. => So OK
2) Both were connected to the single wifi (mAP-lite) and I switched the wifi radio off.
Result: both builds connected to my mesh ASUS router with no problems : =>So OK
Also warm reboot went OK.
3) Switched the mAP lite wifi radio on again and warm rebooted them:
Result both connected back to the mesh ASUS router. Not to the primary mAP lite. (for me this is ok)
What I noticed is that your build (20210615) was checking things, because the webserver was inaccessible for a while.
But finally was connected to the ASUS OK.
4) Now I power cycled them (cold reboot).
Result both connected to ASUS if you do it quickly (< 1 min).
When you wait a liitle longer (> 3 min?) they connect to the Primary mAP lite again.

Pretty impressive results, compared to the original results and disconnects.

Therefore it looks that indeed the Wifi scanning is interfering with running stable connections and prohibits reconnecting correctly.
Your suggestion to remove it looks tempting. But I don't know how that works out in low level Wifi radio with high noise levels.

Hope above helps you in your evaluations. And many thanks for the your info and hard work to get things going again.

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#57 Post by TD-er » 17 Jul 2021, 19:24

Today I did merge the WiFi reconnect code, so would be great if you could test a build based on the current 'mega' branch.
I will also rebase it into the core 3.0.0 PR, but that's not yet done.

I did notice there were still some issues with the WiFi scan.
In some situations you could get a callback to the "wifi scan done" function, before it was actually done scanning.
So that's fixed in the latest code too.

Edit:
Rebased it into the 'core 3.0.0' PR too. (I expected merge conflicts, but apparently there were none)

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#58 Post by Rini52 » 18 Jul 2021, 18:26

TD

I loaded pulled the 3705 branch from the git and put the libs etc in to the Arduino-IDE and compiled it with Arduino. One warning for "L-Cristals" encounterd. I don't use it and I used core 3.0.1. Perhaps related? All went oke. Rebooting and switching. Indeed you get an error message about the scan but that was to be expected. What surprised me was: I made an connect error with the MQTT server and the WD messages was reporting higher fails(see list below) . After it was connected correctly the number of fails are going down and the error messages disappear....?
Maybe some interference here...

Below list of serial port and settings used:


--> serial log
17:53:51.219 -> 212006 : Info : WD : Uptime 4 ConnectFailures 0 FreeMem 23720 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
17:53:51.219 -> 212008 : Error : WiFi : Scan not needed, good candidate present
17:54:21.228 -> 242006 : Info : WD : Uptime 4 ConnectFailures 0 FreeMem 23152 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
17:54:21.228 -> 242007 : Error : WiFi : Scan not needed, good candidate present
17:54:51.201 -> 272006 : Info : WD : Uptime 5 ConnectFailures 0 FreeMem 23152 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
17:54:51.234 -> 272007 : Error : WiFi : Scan not needed, good candidate present
17:55:21.233 -> 302006 : Info : WD : Uptime 5 ConnectFailures 0 FreeMem 23152 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
17:55:21.233 -> 302007 : Error : WiFi : Scan not needed, good candidate present
17:55:51.227 -> 332006 : Info : WD : Uptime 6 ConnectFailures 0 FreeMem 23552 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
17:55:51.227 -> 332008 : Info : WiFi : Start network scan all channels
17:55:52.819 -> 333607 : Info : WiFi : Scan finished, found: 5
17:56:21.215 -> 362006 : Info : WD : Uptime 6 ConnectFailures 0 FreeMem 24168 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
-------Connection error with MQTT broker ---------------
17:56:51.206 -> 392006 : Info : WD : Uptime 7 ConnectFailures 0 FreeMem 23784 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
17:58:43.263 -> 504057 : Error : MQTT : Broker C002 connection failed (15/0)
17:58:44.291 -> 505077 : Error : MQTT : Broker C002 connection failed (16/0)
17:58:45.286 -> 506057 : Error : MQTT : Broker C002 connection failed (17/0)
17:58:46.281 -> 507060 : Error : MQTT : Broker C002 connection failed (18/0)
17:58:47.276 -> 508060 : Error : MQTT : Broker C002 connection failed (19/0)
17:58:48.106 -> 508879 : Info : MQTT : Connected to broker with client ID: MyESP_Easy_2_2
17:58:48.106 -> 508881 : Info : Subscribed to: domoticz/out
17:58:51.224 -> 512006 : Info : WD : Uptime 9 ConnectFailures 17 FreeMem 21744 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
17:59:21.238 -> 542006 : Info : WD : Uptime 9 ConnectFailures 17 FreeMem 21744 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init


18:01:21.230 -> 662006 : Info : WD : Uptime 11 ConnectFailures 17 FreeMem 22896 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
18:01:21.263 -> 662007 : Info : WiFi : Start network scan all channels
18:01:22.822 -> 663607 : Info : WiFi : Scan finished, found: 5
18:01:51.226 -> 692006 : Info : WD : Uptime 12 ConnectFailures 16 FreeMem 22896 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
----< end log

----> settings

Configured SSID1: Wifi_LoT@RT_MIK
Configured SSID2: Wifi_147@RT_ASU
STA MAC: 48:3F:DA:A4:xx:xx
AP MAC: 4A:3F:DA:A4:xx:xx
WiFi Settings
Force WiFi B/G: false
Restart WiFi Lost Conn: true
Force WiFi No Sleep: true
Periodical send Gratuitous ARP: false
Connection Failure Threshold: 0
Max WiFi TX Power: 17.50
Current WiFi TX Power: 0.00
WiFi Sensitivity Margin: 3
Send With Max TX Power: false
Extra WiFi scan loops: 0
Periodical Scan WiFi: true
Use Last Connected AP from RTC: false
Firmware
Build:⋄ 20114 - Mega
System Libraries:⋄ ESP82xx Core 3.0.1, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2
Git Build:⋄ My Build: Jul 18 2021 13:08:09
Plugin Count:⋄ 16 [Normal]
Build Origin: Self built
Build Time:⋄ Jul 18 2021 13:08:02
Binary Filename:⋄ firmware.bin
Build Platform:⋄ unknown
Git HEAD:⋄
System Status
Syslog Log Level: None
Serial Log Level: Info
Web Log Level: None
Network Services
Network Connected: ✔
NTP Initialized: ✔
MQTT Client Connected: ✔
ESP Board
ESP Chip ID: 10760502 (0xA43136)
ESP Chip Frequency: 80 MHz
ESP Chip Model: ESP8266
ESP Chip Cores: 1
ESP Board Name: ESP8266_NODEMCU_ESP12E

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#59 Post by Rini52 » 07 Aug 2021, 20:53

TD

Today i copied the new mega-20210802 github code to my local arduine-ide settings and recompiled the code. After two compile error corrections Its running okay. Many thanks for the WIFI stabilization and the "MQTT quote" correction from Ton. below my input. Don't how how to get it in the Github for review/correction..


1) The ConfigPage.cpp file

out-commented line 134. It was not found by the compiler...

addFormHeader(F("Main Settings"));

Settings.Name[25] = 0;
SecuritySettings.Password[25] = 0;
addFormTextBox(F("Unit Name"), F("name"), Settings.Name, 25);
// addFormNote(String(F("Hostname: ")) + NetworkCreateRFCCompliantHostname()); <----- line 134 removed.....
addFormNumericBox(F("Unit Number"), F("unit"), Settings.Unit, 0, UNIT_NUMBER_MAX);
addFormCheckBox(F("Append Unit Number to hostname"), F("appendunittohostname"), Settings.appendUnitToHostname());
addFormPasswordBox(F("Admin Password"), F("password"), SecuritySettings.Password, 25);

addFormSubHeader(F("Wifi Settings"));



2) The update reported before in file _CPlugin_Helper.cpp was not in the new mega 20210802.

// Add request header as fall back.
// When adding another "accept" header, it may be interpreted as:
// "if you have XXX, send it; or failing that, just give me what you've got."
http.addHeader(F("Accept"), F("*/*;q=0.1"));

delay(0);
#if defined(CORE_POST_2_6_0) || defined(ESP32)
http.begin(client, host, port, uri, false); // HTTP
#else
http.begin(client, host, port, uri); <--- line 531 "client" update
#endif




my settings:

System Info Copy info to clipboard (⋄)
Unit Number: 2
Local Time: 2021-08-07 20:25:14
Time Source: NTP
Uptime: 0 days 0 hours 50 minutes
Load: 13.50% (LC=1156)
CPU Eco Mode: false
Boot: Cold Boot (0)
Reset Reason: External System
Last Action before Reboot: Background Task
SW WD count: 0


Memory

Free RAM: 20080
Heap Max Free Block: 18104
Heap Fragmentation: 10%
Free Stack: 3648


Network

IP Config: Static
IP / Subnet: 192.168.50.9 / 255.255.255.0
Gateway: 192.168.50.1
Client IP: 192.168.50.101
DNS: 192.168.50.1 / (IP unset)
Allowed IP Range: 192.168.50.0 - 192.168.50.255
Connected: 50 m 22 s
Number Reconnects: 0


WiFi ❔ <http://www.letscontrolit.com/wiki/index.php/Wifi>

WiFi Connection: 802.11n (RSSI -43 dBm)
SSID: Wifi_LoT@RT_MIK (08:55:31:xxxxxxx)
Channel: 9
Encryption Type: WPA2/PSK
Last Disconnect Reason: (1) Unspecified
Configured SSID1: Wifi_LoT@RT_MIK
Configured SSID2: Wifi_147@RT_ASU
STA MAC: 48:3F:DA:xxxxxxx
AP MAC: 4A:3F:DA:xxxxxxx


WiFi Settings

Force WiFi B/G: false
Restart WiFi Lost Conn: true
Force WiFi No Sleep: true
Periodical send Gratuitous ARP: false
Connection Failure Threshold: 0
Max WiFi TX Power: 17.50
Current WiFi TX Power: 0.00
WiFi Sensitivity Margin: 3
Send With Max TX Power: false
Extra WiFi scan loops: 0
Periodical Scan WiFi: true
Use Last Connected AP from RTC: false


Firmware

Build:⋄ 20114 - Mega
System Libraries:⋄ ESP82xx Core 3.0.2, NONOS SDK 2.2.2-dev(38a443e),
LWIP: 2.1.2
Git Build:⋄ My Build: Aug 7 2021 19:12:42
Plugin Count:⋄ 16 [Normal]
Build Origin: Self built
Build Time:⋄ Aug 7 2021 19:12:35
Binary Filename:⋄ firmware.bin
Build Platform:⋄
Git HEAD:⋄


System Status

Syslog Log Level: None
Serial Log Level: Info
Web Log Level: None


Network Services

Network Connected: ✔
NTP Initialized: ✔
MQTT Client Connected: ✔


ESP Board

ESP Chip ID: 10760502 (0xA43136)
ESP Chip Frequency: 80 MHz
ESP Chip Model: ESP8266
ESP Chip Cores: 1
ESP Board Name: ESP8266_NODEMCU_ESP12E


Storage

Flash Chip ID: Vendor: 0xD8 Device: 0x4016
Flash Chip Real Size: 4096 kB
Flash IDE Size: 4096 kB
Flash IDE Speed: 40 MHz
Flash IDE Mode: DIO
Flash Writes: 26 daily / 36 boot
Sketch Size: 780 kB (2288 kB free)
Max. OTA Sketch Size: 1019 kB (1044464 bytes)
OTA possible: true
OTA 2-step Needed: false
SPIFFS Size: 934 kB (843 kB free)
Page size: 256
Block size: 8192
Number of blocks: 116
Maximum open files: 5
Maximum path length: 32


Powered by Let's Control It <http://www.letscontrolit.com/>
community
Build: firmware.bin Aug 7 2021
<https://github.com/letscontrolit/ESPEasy/releases>

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#60 Post by TD-er » 08 Aug 2021, 00:21

Hmm have to get back to it tomorrow. Can't mark it unread on the forum, so hope I won't forget.

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#61 Post by TD-er » 08 Aug 2021, 00:42

Code: Select all

#if defined(CORE_POST_2_6_0) || defined(ESP32)
http.begin(client, host, port, uri, false); // HTTP
#else
http.begin(client, host, port, uri); <--- line 531 "client" update
#endif
Why is this needed?
You aren''t compiling it with all flags set as they are set by all the configuration scripts in PlatformIO.

If this is not being compiled as it should, then other parts may also use the wrong code.

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#62 Post by Rini52 » 08 Aug 2021, 12:41

Td

I did follow your WIKI for Arduino. No extra flags are mentioned, or maybe I missed something? Anyway the home build code is running okay with the above mentioned adjustments.
Platformio is jet another tool to learn. I went through numerous tools/platforms in my life, mainly Linux based. For the time being the "local" Arduino is clear and oke for me.

Regards,
Rini

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#63 Post by TD-er » 08 Aug 2021, 14:46

With "wiki" you mean "read the docs", right?
https://espeasy.readthedocs.io/en/lates ... rduino-ide

Especially building using Custom.h

Can you also test with a build we made to make sure your WiFi is also present in those builds?
Otherwise we've no clue where to start looking.

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#64 Post by Ath » 08 Aug 2021, 15:13

Rini52 wrote: 08 Aug 2021, 12:41 I went through numerous tools/platforms in my life, mainly Linux based. For the time being the "local" Arduino is clear and oke for me.
In that case: Please have a look at the VSCode/PlatformIO combo, it is way more modern, capable and usable than the, IMHO, rather ancient ArduinoIDE (it feels like '90s software, instead of 21st century). And you don't have to rename the source folder to ESPEasy, just to have it compile ESPEasy.ino :o
I keep suggesting to make this the default (and only) supported development environment for ESPEasy ;)

NB: I'm born in the (early) 60s, and have used all kinds of development tooling in my 35+ years of being a developer, sometimes even the infamous 'edlin' MS-Dos editor :shock: and while I had some initial aversion against the then only json-editable configuration of VSCode, since about 2 years it replaced everything except specialized IDE's like Visual Studio (for C# development), Eclipse (for Java development) and Delphi (for, well, Delphi development). It really is the best thing since sliced bread (for an editor, of course :lol:).
/Ton (PayPal.me)

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#65 Post by Rini52 » 08 Aug 2021, 18:20

Ton & TD

I installed atom/platformio and after a lot of warnings and error messages it uploaded the code and preserved the rules on the esp8266. It is running the custom build by leaving the Custom.h file (from Arduino) in the clone directory. After 45+ years going from assembler-code/pdo/vax/od 6-bit operating systems/unix(linux) (algol/fortran/cobol/C ..... you name it , I still prefer command type of input, at least you know what your dealing with... Anyway vscode is a problem apparently in linux, therfore i used the atom/platform.... Below the setting page of the code generated. it seems to have done the trick,but it was very unclear what had happend in the generation....

Regards,
Rini




ESP Easy Mega: MyESP_Easy


⌂Main <http://192.168.50.9/>⚙Config
<http://192.168.50.9/config>💬Controllers
<http://192.168.50.9/controllers>📌Hardware
<http://192.168.50.9/hardware>🔌Devices
<http://192.168.50.9/devices>⧴Rules
<http://192.168.50.9/rules>✉Notifications
<http://192.168.50.9/notifications>🔧Tools <http://192.168.50.9/tools>

System Info Copy info to clipboard (⋄)
Unit Number: 2
Local Time: 2021-08-08 18:04:53
Time Source: NTP
Uptime: 0 days 0 hours 43 minutes
Load: 12.27% (LC=1216)
CPU Eco Mode: false
Boot: Cold Boot (0)
Reset Reason: External System
Last Action before Reboot: Background Task
SW WD count: 0


Memory

Free RAM: 16368
Heap Max Free Block: 13136
Heap Fragmentation: 20%
Free Stack: 3664


Network

IP Config: Static
IP / Subnet: 192.168.50.9 / 255.255.255.0
Gateway: 192.168.50.1
Client IP: 192.168.50.101
DNS: 192.168.50.1 / (IP unset)
Allowed IP Range: 192.168.50.0 - 192.168.50.255
Connected: 42 m 20 s
Number Reconnects: 0


WiFi ❔ <http://www.letscontrolit.com/wiki/index.php/Wifi>

WiFi Connection: 802.11n (RSSI -44 dBm)
SSID: Wifi_LoT@RT_MIK (xxxxxxxxxxx)
Channel: 9
Encryption Type: WPA2/PSK
Last Disconnect Reason: (8) Assoc leave
Configured SSID1: Wifi_LoT@RT_MIK
Configured SSID2: Wifi_147@RT_ASU
STA MAC: 48:3F:DA:xxxxxxx
AP MAC: 4A:3F:DA:xxxxxxx


WiFi Settings

Force WiFi B/G: false
Restart WiFi Lost Conn: true
Force WiFi No Sleep: true
Periodical send Gratuitous ARP: false
Connection Failure Threshold: 0
Max WiFi TX Power: 17.50
Current WiFi TX Power: 0.00
WiFi Sensitivity Margin: 3
Send With Max TX Power: false
Extra WiFi scan loops: 0
Periodical Scan WiFi: true
Use Last Connected AP from RTC: false


Firmware

Build:⋄ 20114 - Mega
System Libraries:⋄ ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e),
LWIP: 2.1.2 PUYA support
Git Build:⋄ My Build: Aug 8 2021 17:13:11
Plugin Count:⋄ 16
Build Origin: Self built
Build Time:⋄ Aug 8 2021 17:13:06
Binary Filename:⋄ ESP_Easy_mega_20210808_custom_ESP8266_4M1M
Build Platform:⋄ Linux-5.4.0-80-generic-x86_64-with-glibc2.29
Git HEAD:⋄ pygit2_not_installed


System Status

Syslog Log Level: None
Serial Log Level: Info
Web Log Level: None


Network Services

Network Connected: ✔
NTP Initialized: ✔
MQTT Client Connected: ✔


ESP Board

ESP Chip ID: 10760502 (0xA43136)
ESP Chip Frequency: 80 MHz
ESP Chip Model: ESP8266
ESP Chip Cores: 1
ESP Board Name: PLATFORMIO_ESP12E


Storage

Flash Chip ID: Vendor: 0xD8 Device: 0x4016
Flash Chip Real Size: 4096 kB
Flash IDE Size: 4096 kB
Flash IDE Speed: 40 MHz
Flash IDE Mode: DOUT
Flash Writes: 0 daily / 0 boot
Sketch Size: 750 kB (2320 kB free)
Max. OTA Sketch Size: 1019 kB (1044464 bytes)
OTA possible: true
OTA 2-step Needed: false
SPIFFS Size: 934 kB (843 kB free)
Page size: 256
Block size: 8192
Number of blocks: 116
Maximum open files: 5
Maximum path length: 32


Powered by Let's Control It <http://www.letscontrolit.com/>
community
Build: ESP_Easy_mega_20210808_custom_ESP8266_4M1M Aug 8 2021
<https://github.com/letscontrolit/ESPEasy/releases>

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#66 Post by TD-er » 08 Aug 2021, 21:05

You can still build it using command line if you like.
See the build script in the tools directory.

The command like stuff for building using PlatformIO is quite simple:
- activate Python virtual env. (see build script in the tools directory how it is created)
- run "pio run -e <your env name>"

See the defined environments with "custom" in the name to pick your desired custom env (e.g. for ESP32 or ESP8266)
The most flexible way of building your own custom build is to rename the src/Custom-sample.h to src/Custom.h (mind the capital C)
And of course uncomment whatever controller or plugin you need.
If there is no src/Custom.h file is not present, the Python scripts in tools/pio are used to define the selections for the Custom builds.

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#67 Post by Rini52 » 08 Aug 2021, 22:03

Td,

Thanks for your "tool" tip. I overlooked that one. In the mean time I have the vscode working for platformio.(had to remove some conflicts in my linux setup). I must admit that the compilation is a lot faster then with Arduino-ide. The custom.h file is also working. I see that you are using an older esp core than i was using (my orginal build used 3.0.1 or 3.0.2.). Therefore I assume you will encounter the cplugin_helper problem if you switch over to a newer version of esp8266 core. Again many thanks for the feetback.

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#68 Post by TD-er » 08 Aug 2021, 22:09

See also this PR: https://github.com/letscontrolit/ESPEasy/pull/3680
It is about the core 3.0.x to make it to build.
You can build a specific PR by using the -p flag along with the build script.
e.g. "-p 3680" for building that PR.

The PR will also allow a very nice new feature of core 3.0.0 where I can use 2 stacks on ESP8266.
Building the "beta" envs based on core 3.0.x will give you this new feature.

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#69 Post by Rini52 » 08 Jan 2022, 13:04

TD

Back in august I build a custom build for the Esp-easy. It now runs for 129 days with more than 308 reconnects. So in the end it turned out to work as a very reliable build for the mesh Asus router. see build below.

Regards
Rini

--->

ESP Easy Mega: MyESP_Easy


⌂Main <http://192.168.50.7/>⚙Config
<http://192.168.50.7/config>💬Controllers
<http://192.168.50.7/controllers>📌Hardware
<http://192.168.50.7/hardware>🔌Devices
<http://192.168.50.7/devices>⧴Rules
<http://192.168.50.7/rules>✉Notifications
<http://192.168.50.7/notifications>🔧Tools <http://192.168.50.7/tools>

System Info Copy info to clipboard (⋄)
Unit Number: 3
Local Time: 2022-01-08 12:55:31
Time Source: NTP
Time Wander: -0.002 [msec/sec]
Uptime: 129 days 2 hours 43 minutes
Load: 10.29% (LC=1694)
CPU Eco Mode: false
Boot: Soft Reboot (2)
Reset Reason: Software/System restart
Last Action before Reboot: Intended Reboot: timer, id: 5
SW WD count: 0


Memory

Free RAM: 11296
Heap Max Free Block: 7968
Heap Fragmentation: 29%
Free Stack: 3664


Network

IP Config: Static
IP / Subnet: 192.168.50.7 / 255.255.255.0
Gateway: 192.168.50.1
Client IP: 192.168.50.115
DNS: 192.168.50.1 / (IP unset)
Allowed IP Range: 192.168.50.0 - 192.168.50.255
Connected: 1d19h29m
Number Reconnects: 309


WiFi ❔ <http://www.letscontrolit.com/wiki/index.php/Wifi>

WiFi Connection: 802.11n (RSSI -58 dBm)
SSID: Wifi_147@RT_ASU (04:D9:F5:xxxxxxxx)
Channel: 7
Encryption Type: WPA2/PSK
Last Disconnect Reason: (8) Assoc leave
Configured SSID1: Wifi_147@RT_ASU
Configured SSID2: Wifi_LoT@RT_MIK
STA MAC: 8C:AA:xxxxxxxxxxx
AP MAC: 8E:AA:xxxxxxxxxxx


WiFi Settings

Force WiFi B/G: false
Restart WiFi Lost Conn: true
Force WiFi No Sleep: true
Periodical send Gratuitous ARP: true
Connection Failure Threshold: 0
Max WiFi TX Power: 17.50
Current WiFi TX Power: 8.00
WiFi Sensitivity Margin: 3
Send With Max TX Power: false
Extra WiFi scan loops: 1
Periodical Scan WiFi: false
Use Last Connected AP from RTC: false


Firmware

Build:⋄ 20114 - Mega
System Libraries:⋄ ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e),
LWIP: 2.1.2 PUYA support
Git Build:⋄ My Build: Aug 26 2021 15:29:55
Plugin Count:⋄ 16
Build Origin: Self built
Build Time:⋄ Aug 26 2021 15:29:51
Binary Filename:⋄ ESP_Easy_mega_20210826_custom_ESP8266_4M1M
Build Platform:⋄ Linux-5.4.0-81-generic-x86_64-with-glibc2.29
Git HEAD:⋄ pygit2_not_installed


System Status

Syslog Log Level: None
Serial Log Level: Info
Web Log Level: Info


Network Services

Network Connected: ✔
NTP Initialized: ✔
MQTT Client Connected: ✔


ESP Board

ESP Chip ID: 925162 (0xE1DEA)
ESP Chip Frequency: 80 MHz
ESP Chip Model: ESP8266
ESP Chip Cores: 1
ESP Board Name: PLATFORMIO_ESP12E


Storage

Flash Chip ID: Vendor: 0x20 Device: 0x4016
Flash Chip Real Size: 4096 kB
Flash IDE Size: 4096 kB
Flash IDE Speed: 40 MHz
Flash IDE Mode: DIO
Flash Writes: 0 daily / 12 boot
Sketch Size: 751 kB (2320 kB free)
Max. OTA Sketch Size: 1019 kB (1044464 bytes)
OTA possible: true
OTA 2-step Needed: false
SPIFFS Size: 934 kB (843 kB free)
Page size: 256
Block size: 8192
Number of blocks: 116
Maximum open files: 5
Maximum path length: 32


Powered by Let's Control It <http://www.letscontrolit.com/>
community
Build: ESP_Easy_mega_20210826_custom_ESP8266_4M1M Aug 26
2021 <https://github.com/letscontrolit/ESPEasy/releases>

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#70 Post by TD-er » 08 Jan 2022, 16:35

Just to be sure, this was not based on the PR I mentioned in my last reply in this thread?

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#71 Post by Rini52 » 09 Jan 2022, 17:00

Correct. I used the standard setup for the build.

Rini52
Normal user
Posts: 47
Joined: 19 Jun 2021, 17:23
Location: NL

Re: No ESP Easy connection to my other WiFi access points with same SSID

#72 Post by Rini52 » 04 May 2023, 15:43

Hi,

After long time I had disconnects again using my Asus AX92U router. It only happened when it was connected to the main mesh hub. The other were okay, but maybe because they had no competition from the others. However I switched off the smart connect for the 2,4GHz band and most importendly I switched off IGMP snooping for the 2.4GHZ band. Now they connect and stay connected today. So it looks it has something to do with layer3 connection in the Asus. The funny thing I noticed was that the Node stayed connected (in the Client list) but no ping or connection could be made. So apparently the ESP8266 can't handle this IGMP (anti Dos) protocol. Keep you posted.

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: No ESP Easy connection to my other WiFi access points with same SSID

#73 Post by TD-er » 04 May 2023, 22:40

IGMP is for multi-cast traffic.
For multi-cast (e.g. watching IP-TV) the device needs to subscribe to keep receiving multi-cast traffic.
IGMP-snooping does keep track of which port/client may want to receive such traffic and shields off any such traffic from those who never seemed to be interested in multi-cast traffic.

Some older hardware can't handle multi-cast traffic and for such it may be useful to have IGMP snooping enabled in the switch/AP to not overload those devices.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests