-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Hellomesh example fails with IwIP v2 Variants - works with IwIP v1.4 #6206
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
Comments
I have tried all IwIP v2 variants and they all crash. Only V1.4 does not crash, and connects and works with other units. |
@RudyFiero
|
@aerlon I installed the current git version. I compiled with V2 Lower Memory and it is working as expected. No more resetting. Joins with a board with 1.4 and with V2. I'm glad that it had been fixed. I tried a couple of weeks ago (with 2.5.2) and it failed then. I didn't have enough time to go through the it properly and then raise an issue. I'm on vacation now so I decided to take another crack at it. |
Great! |
Thank you guys for all the work you do. |
Basic Infos
Platform
SDK:3.0.0-dev(c0f7b44)
Core:2.5.2=20502000
lwIP:STABLE-2_1_2_RELEASE
glue:1.1-7-g82abda3
BearSSL:a143020
Also with
SDK:2.2.1(cfd48f3)
Core:2.5.2=20502000
lwIP:STABLE-2_1_2_RELEASE
glue:1.1-7-g82abda3
BearSSL:a143020
Also with
SDK:2.2.2-dev(c0eb301)
Core:2.5.2=20502000
lwIP:STABLE-2_1_2_RELEASE
glue:1.1-7-g82abda3
BearSSL:a143020
Settings in IDE
Problem Description
I load the Hellomesh.INO example. Do a manual reset. It gets through setup. Gets into loop. It enters the scan routine. It never makes it to timeOfLastScan = millis(); It never get through loop() even once.
I added Serial.print statements in the code to see how far it gets.
EDIT:
MCVE Sketch
Debug Messages
SDK:3.0.0-dev(c0f7b44)/Core:2.5.2=20502000/lwIP:STABLE-2_1_2_RELEASE/glue:1.1-7-g82abda3/BearSSL:a143020
Note that this library can use static IP:s for the nodes to speed up connection times.
Use the setStaticIP method as shown in this example to enable this.
Ensure that nodes connecting to the same AP have distinct static IP:s.
Also, remember to change the default mesh network password!
Setting up mesh node...
bcn 0
del if1
usl
mode : sta(18:fe:34:f1:fe:f6)
add if0
lwIP version is at least 2.0.3. Static ip optimizations enabled.
mode : sta(18:fe:34:f1:fe:f6) + softAP(1a:fe:34:f1:fe:f6)
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
bcn 0
del if1
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
ip:192.168.4.17,mask:255.255.255.0,gw:192.168.4.1
++++ end of setup 1028
++++ led 15 1028
++++ in scan 1028
++++ in scan after String request 1030
bcn 0
del if1
mode : sta(18:fe:34:f1:fe:f6)
:ref 1
:ctmo
:abort
:ur 1
:del
Server unavailable
mode : sta(18:fe:34:f1:fe:f6) + softAP(1a:fe:34:f1:fe:f6)
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
Fatal exception 28(LoadProhibitedCause):
epc1=0x40208140, epc2=0x00000000, epc3=0x00000000, excvaddr=0x001cc842, depc=0x00000000
Exception (28):
epc1=0x40208140 epc2=0x00000000 epc3=0x00000000 excvaddr=0x001cc842 depc=0x00000000
ctx: cont
sp: 3ffffcd0 end: 3fffffc0 offset: 01a0
3ffffe70: 3ffee5dc ffffffff 3ffffe90 402044bc
3ffffe80: 3ffee5dc 3ffee61c 3ffee4dc 40203f6c
3ffffe90: 00000000 3ffe0000 001cc842 00000000
3ffffea0: 00ff01bc 001cc842 3ffffe90 001cc842
3ffffeb0: 3ffe874a 00000000 3ffe8749 402068e6
3ffffec0: 00000000 4bc6a7f0 9916872b 3fffff60
3ffffed0: 3ffe84dc 00000004 3ffee6a0 402049ac
3ffffee0: 00000009 3ffee4dc 401001c0 40204cc5
3ffffef0: 00000000 00000000 3fff0184 00000000
3fffff00: 3ffe84dc 3ffee4dc 3ffee6a0 40204d50
3fffff10: 3ffe84dc 3ffee4dc 3ffee6a0 3fffff60
3fffff20: 3ffe84dc 3ffee4dc 3ffee6a0 402015cd
3fffff30: 00000000 00000000 fffee6a0 00000000
3fffff40: 00000000 fffee4dc 00000000 00000000
3fffff50: fffe005f 00000000 00000000 fffee7bc
3fffff60: 00000000 00000000 fffee6a0 00000000
3fffff70: 00000000 ff04a8c0 00000000 00000000
3fffff80: ffffdad0 3fff022c 002c002f ff2012c6
3fffff90: 402084a0 1104a8c0 feefeffe 3ffee7bc
3fffffa0: 3fffdad0 00000000 3ffee78c 40205b2c
3fffffb0: feefeffe feefeffe 3ffe850c 401005b9
<<<stack<<<
ets Jan 8 2013,rst cause:1, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld
SDK:3.0.0-dev(c0f7b44)/Core:2.5.2=20502000/lwIP:STABLE-2_1_2_RELEASE/glue:1.1-7-g82abda3/BearSSL:a143020
Note that this library can use static IP:s for the nodes to speed up connection times.
Use the setStaticIP method as shown in this example to enable this.
Ensure that nodes connecting to the same AP have distinct static IP:s.
Also, remember to change the default mesh network password!
Setting up mesh node...
bcn 0
del if1
usl
mode : sta(18:fe:34:f1:fe:f6)
add if0
lwIP version is at least 2.0.3. Static ip optimizations enabled.
mode : sta(18:fe:34:f1:fe:f6) + softAP(1a:fe:34:f1:fe:f6)
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
bcn 0
del if1
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
ip:192.168.4.17,mask:255.255.255.0,gw:192.168.4.1
++++ end of setup 1029
++++ led 15
1030
++++ in scan 1030
++++ in scan after String request 1031
bcn 0
del if1
mode : sta(18:fe:34:f1:fe:f6)
:ref 1
Debug Messages
****************************** STACK DUMP ******************************
Decoding 11 results
0x402044bc: TransmissionResult::TransmissionResult(NetworkInfo const&, transmission_status_t) at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFiMesh\src/TransmissionResult.cpp line 42
0x40203f6c: ESP8266WiFiMesh::attemptTransmission(String const&, bool, bool, bool, bool) at c:\users\rudy\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2\bits/stl_vector.h line 922
: (inlined by) ESP8266WiFiMesh::attemptTransmission(String const&, bool, bool, bool, bool) at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\libraries\ESP8266WiFiMesh\src/ESP8266WiFiMesh.cpp line 529
0x402068e6: uart_write at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/uart.cpp line 498
0x402049ac: HardwareSerial::write(unsigned char const*, unsigned int) at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/HardwareSerial.h line 158
0x401001c0: millis at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/core_esp8266_wiring.cpp line 186
0x40204cc5: Print::write(char const*) at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Print.h line 60
0x40204d50: Print::println() at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Print.cpp line 178
0x402015cd: loop at C:\Users\Rudy\AppData\Local\Temp\arduino_modified_sketch_801160/HelloMesh.ino line 163
0x402084a0: WiFiServer::write(unsigned char const*, unsigned int) at ?? line ?
0x40205b2c: loop_wrapper() at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/core_esp8266_main.cpp line 125
0x401005b9: cont_wrapper at C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/cont.S line 81
The text was updated successfully, but these errors were encountered: