SmingHub / Sming

Sming - powerful open source framework simplifying the creation of embedded C++ applications.
https://sming.readthedocs.io
GNU Lesser General Public License v3.0
1.48k stars 347 forks source link

SmartConfig not working #1150

Open riegaz opened 7 years ago

riegaz commented 7 years ago

For me the SmartConfig sample does not work.

The output from the esp8266 is:

SC version: V2.5.4 mode : sta(5c:cf:7f:33:74:c3) add if0 scandone scandone SC_STATUS_FIND_CHANNEL

I'm under Linux, I followed your guide how to install Sming. I'm on the develop branch.

cometurrata commented 5 years ago

I have a similar problem with develop adfd36a7 and master too, maybe it is related:

Built with SDK 3.0, compile options : ENABLE_ESPCONN=1 ENABLE_CUSTOM_LWIP=1 ENABLE_SSL=1

I got:

SC version: 

***** Fatal exception 3
pc=0x4000228b sp=0x3ffff820 excvaddr=0x40237ee0
ps=0x00000030 sar=0x00000000 vpri=0x00000043
r00: 0x3ffffa40=1073740352 r01: 0x3ffff820=1073739808 r02: 0x00000054=        84 
r03: 0x4000222e=1073750574 r04: 0x3ffef3a6=1073673126 r05: 0x00000045=        69 
r06: 0x00000000=         0 r07: 0x40237ee0=1076068064 r08: 0x3fffd870=1073731696 
r09: 0x00000000=         0 r10: 0x00000000=         0 r11: 0x40001fd9=1073749977 
r12: 0x0000000c=        12 r13: 0x00000018=        24 r14: 0x40001da0=1073749408 
r15: 0x00000008=         8 

Followed by a stacktrace:

0x4000228b: ?? ??:0
0x4000222e: ?? ??:0
0x40237ee0: inet_chksum_pbuf at ??:?
0x40001fd9: ?? ??:0
0x40001da0: ?? ??:0
0x40001e65: ?? ??:0
0x40001e4b: ?? ??:0
0x400069d9: ?? ??:0
0x40001db4: ?? ??:0
0x40001f46: ?? ??:0
0x40006545: ?? ??:0
0x40006545: ?? ??:0
0x400069d9: ?? ??:0
0x40101b2a: wdt_feed at ??:?
0x40100b52: os_printf_plus at ??:?
0x40237ee0: inet_chksum_pbuf at ??:?
0x40100b28: os_printf_plus at ??:?
0x40235ae0: __divsf3 at ??:?
0x4010087f: malloc at ??:?
0x40239a08: operator new[](unsigned int) at /home/come/luko/Sming/Sming/system/esp_cplusplus.cpp:50
0x4010087f: malloc at ??:?
0x400042db: ?? ??:0
0x40239fcd: SerialBuffer::resize(unsigned int) at /home/come/luko/Sming/Sming/system/uart.cpp:149
0x40004b31: ?? ??:0
0x4010087f: malloc at ??:?
0x40218e56: system_param_load at ??:?
0x40202644: smartconfig_start at ??:?
0x4023bb40: StationClass::staticSmartConfigCallback(sc_status, void*) at /home/come/luko/Sming/Sming/Wiring/Printable.h:44
0x40238040: inet_chksum_pbuf at ??:?
0x40237ee0: inet_chksum_pbuf at ??:?
0x4023b3cb: std::_Function_base::_Base_manager<std::_Bind<unsigned int (*(uart_*, std::_Placeholder<1>, std::_Placeholder<2>))(uart_*, void const*, unsigned int)> >::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at /home/come/luko/Sming/Sming/Wiring/Print.h:35
0x4023b9ea: StationClass::smartConfigStart(SmartConfigType, Delegate<void (sc_status, void*)>) at /home/come/luko/Sming/Sming/Wiring/Printable.h:44
0x4010087f: malloc at ??:?
0x4023bb40: StationClass::staticSmartConfigCallback(sc_status, void*) at /home/come/luko/Sming/Sming/Wiring/Printable.h:44
0x4023b394: std::_Function_base::_Base_manager<std::_Bind<unsigned int (*(uart_*, std::_Placeholder<1>, std::_Placeholder<2>))(uart_*, void const*, unsigned int)> >::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at /home/come/luko/Sming/Sming/Wiring/Print.h:35
0x4023c538: std::_Function_base::_Base_manager<std::_Bind<unsigned int (*(uart_*, std::_Placeholder<1>, std::_Placeholder<2>))(uart_*, void const*, unsigned int)> >::_M_get_pointer(std::_Any_data const&) at /opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.5/functional:1893
 (inlined by) std::_Function_handler<unsigned int (char const*, unsigned int), std::_Bind<unsigned int (*(uart_*, std::_Placeholder<1>, std::_Placeholder<2>))(uart_*, void const*, unsigned int)> >::_M_invoke(std::_Any_data const&, char const*, unsigned int) at /opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.5/functional:2056
0x40238e67: init() at /home/come/luko/Sming/Sming/SmingCore/Delegate.h:162
 (inlined by) init() at /home/come/luko/Sming/samples/Basic_SmartConfig/app/application.cpp:41
0x402399d4: cpp_core_initialize at /home/come/luko/Sming/Sming/system/esp_cplusplus.cpp:50
0x4021b430: wdt_init at ??:?
0x402360c0: __divsf3 at ??:?
0x40239700: user_init at /home/come/luko/Sming/Sming/appinit/user_main.cpp:45
0x4021bbf4: flash_data_check at ??:?
0x4021bbf7: flash_data_check at ??:?
0x40101d51: wdt_feed at ??:?
0x40001100: ?? ??:0
0x40101cf8: wdt_feed at ??:?
0x400002e9: ?? ??:0