Closed cgfoed closed 5 years ago
(2) You can create a TCP server on your mobile APP or computer to eliminate interference from ESP32 softAP. << I did that. I can connect to a TCP server on my mobile APP with other devices or other WROOM running https://github.com/espressif/esp-idf/tree/master/examples/protocols/sockets/tcp_client
(1) I hope you provide a complete log
First log from https://github.com/espressif/esp-idf/tree/master/examples/protocols/sockets/tcp_client
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6472
load:0x40078000,len:11664
ho 0 tail 12 room 4
load:0x40080400,len:6664
entry 0x40080764
I (30) boot: ESP-IDF v4.0-dev-1287-gd7e659df2 2nd stage bootloader
I (30) boot: compile time 11:36:25
I (30) boot: Enabling RNG early entropy source...
I (36) boot: SPI Speed : 40MHz
I (40) boot: SPI Mode : DIO
I (44) boot: SPI Flash Size : 4MB
I (48) boot: Partition Table:
I (52) boot: ## Label Usage Type ST Offset Length
I (59) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (67) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (74) boot: 2 factory factory app 00 00 00010000 00100000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x19e64 (106084) map
I (132) esp_image: segment 1: paddr=0x00029e8c vaddr=0x3ffb0000 size=0x0323c ( 12860) load
I (137) esp_image: segment 2: paddr=0x0002d0d0 vaddr=0x40080000 size=0x00400 ( 100x40080000: _WindowOverflow4 at /home/cgfoed/esp/esp-idf/components/freertos/xtensa_vectors.S:177824) load
I (139) esp_image: segment 3: paddr=0x0002d4d8 vaddr=0x40080400 size=0x02b38 ( 11064) load
I (152) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x69074 (430196) map
0x400d0018: _stext at ??:?
I (308) esp_image: segment 5: paddr=0x00099094 vaddr=0x40082f38 size=0x0d154 ( 53588) load
0x40082f38: esp_flash_get_size at /home/cgfoed/esp/esp-idf/components/spi_flash/esp_flash_api.c:609
I (340) boot: Loaded app from partition at offset 0x10000
I (340) boot: Disabling RNG early entropy source...
I (340) cpu_start: Pro cpu up.
I (344) cpu_start: Application information:
I (349) cpu_start: Project name: tcp_client
I (354) cpu_start: App version: v4.0-dev-1287-gd7e659df2
I (360) cpu_start: Compile time: Jul 24 2019 11:36:23
I (366) cpu_start: ELF file SHA256: 378f9738b8b92605...
I (372) cpu_start: ESP-IDF: v4.0-dev-1287-gd7e659df2
I (379) cpu_start: Starting app cpu, entry point is 0x400810a4
0x400810a4: call_start_cpu1 at /home/cgfoed/esp/esp-idf/components/esp32/cpu_start.c:283
I (0) cpu_start: App cpu up.
I (389) heap_init: Initializing. RAM available for dynamic allocation:
I (396) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (402) heap_init: At 3FFB91A8 len 00026E58 (155 KiB): DRAM
I (408) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (415) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (421) heap_init: At 4009008C len 0000FF74 (63 KiB): IRAM
I (427) cpu_start: Pro cpu start user code
I (446) spi_flash: detected chip: generic
I (446) spi_flash: flash io: dio
I (446) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (549) wifi: wifi driver task: 3ffc0a80, prio:23, stack:3584, core=0
I (549) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (549) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (579) wifi: wifi firmware version: 3c39e82
I (579) wifi: config NVS flash: enabled
I (579) wifi: config nano formating: disabled
I (579) wifi: Init dynamic tx buffer num: 32
I (579) wifi: Init data frame dynamic rx buffer num: 32
I (589) wifi: Init management frame dynamic rx buffer num: 32
I (589) wifi: Init management short buffer num: 32
I (599) wifi: Init static rx buffer size: 1600
I (599) wifi: Init static rx buffer num: 10
I (609) wifi: Init dynamic rx buffer num: 32
I (609) example_connect: Connecting to myssid...
I (709) phy: phy_version: 4101, 100880e, Jul 12 2019, 19:32:06, 0, 0
I (709) wifi: mode : sta (24:0a:c4:c1:05:54)
I (839) wifi: new:<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1
I (1819) wifi: state: init -> auth (b0)
I (1829) wifi: state: auth -> assoc (0)
I (1829) wifi: state: assoc -> run (10)
I (1849) wifi: connected with myssid, channel 1, 40U, bssid = 24:0a:c4:c1:07:41
I (1849) wifi: pm start, type: 1
I (3029) tcpip_adapter: sta ip: 192.168.4.5, mask: 255.255.255.0, gw: 192.168.4.1
I (3529) example_connect: Connected to myssid
I (3529) example_connect: IPv4 address: 192.168.4.5
I (3529) example_connect: IPv6 address: fe80:0000:0000:0000:260a:c4ff:fec1:0554
I (3539) example: Socket created, connecting to 192.168.4.4:8070
I (3559) example: Successfully connected
I (3569) example: Received 50 bytes from 192.168.4.4:
I (3569) example: �����ֻ��ͻ��˵���Ϣ���������ߣ�192.168.4.5��62471
I (19939) example: Received 9 bytes from 192.168.4.4:
I (19939) example: Hi there
Looks like that on the app:
And now the log from mdf example:
~/esp/esp-mdf/examples/function_demo/mwifi/router$ make erase_flash flash -j5 monitor ESPBAUD=921600 ESPPORT=/dev/ttyUSB0
Toolchain path: /home/cgfoed/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
GENCONFIG
CC build/app_update/esp_ota_ops.o
CC build/app_trace/app_trace_util.o
CXX build/asio/asio/asio/src/asio.o
CC build/app_trace/host_file_io.o
AR build/app_update/libapp_update.a
CC build/app_trace/app_trace.o
CC build/bootloader_support/src/efuse.o
Python requirements from /home/cgfoed/esp/esp-mdf/esp-idf/requirements.txt are satisfied.
CC build/bootloader_support/src/bootloader_flash.o
CC build/bt/bt.o
CC build/app_trace/gcov/gcov_rtio.o
CC build/bootloader_support/src/flash_qio_mode.o
AR build/app_trace/libapp_trace.a
AR build/bt/libbt.a
CC build/coap/libcoap/src/address.o
CC build/console/commands.o
CC build/bootloader_support/src/secure_boot_signatures.o
CC build/bootloader_support/src/bootloader_utility.o
CC build/coap/libcoap/src/async.o
AR build/console/libconsole.a
CXX build/cxx/cxx_guards.o
CC build/coap/libcoap/src/block.o
CC build/bootloader/bootloader_support/src/efuse.o
CC build/bootloader_support/src/bootloader_common.o
CC build/coap/libcoap/src/coap_time.o
CC build/bootloader/bootloader_support/src/bootloader_flash.o
CC build/bootloader_support/src/secure_boot.o
CC build/coap/libcoap/src/debug.o
CC build/bootloader/bootloader_support/src/flash_qio_mode.o
CC build/bootloader/bootloader_support/src/secure_boot_signatures.o
CC build/bootloader_support/src/bootloader_clock.o
CC build/bootloader/bootloader_support/src/bootloader_init.o
CC build/coap/libcoap/src/encode.o
CC build/bootloader_support/src/flash_partitions.o
CXX build/cxx/cxx_exception_stubs.o
CC build/coap/libcoap/src/mem.o
AR build/cxx/libcxx.a
CC build/bootloader_support/src/esp_image_format.o
CC build/bootloader/log/log.o
CC build/bootloader/bootloader_support/src/bootloader_utility.o
CC build/coap/libcoap/src/net.o
CC build/bootloader/bootloader_support/src/bootloader_common.o
AR build/bootloader/log/liblog.a
CC build/bootloader/spi_flash/spi_flash_rom_patch.o
CC build/bootloader_support/src/bootloader_sha.o
CC build/bootloader/bootloader_support/src/secure_boot.o
CC build/bootloader_support/src/flash_encrypt.o
CC build/bootloader/bootloader_support/src/bootloader_clock.o
AR build/bootloader/spi_flash/libspi_flash.a
CC build/coap/libcoap/src/option.o
CC build/bootloader/soc/esp32/cpu_util.o
CC build/bootloader/bootloader_support/src/flash_partitions.o
CC build/bootloader_support/src/bootloader_random.o
CC build/bootloader/soc/esp32/rtc_time.o
CC build/bootloader/bootloader_support/src/esp_image_format.o
CC build/bootloader/soc/esp32/rtc_init.o
AR build/bootloader_support/libbootloader_support.a
CC build/coap/libcoap/src/pdu.o
CC build/driver/spi_slave.o
CC build/bootloader/soc/esp32/rtc_clk_init.o
CC build/bootloader/bootloader_support/src/bootloader_sha.o
CC build/bootloader/soc/esp32/rtc_sleep.o
CC build/coap/libcoap/src/resource.o
CC build/bootloader/bootloader_support/src/flash_encrypt.o
CC build/bootloader/soc/esp32/rtc_clk.o
CC build/driver/spi_master.o
CC build/bootloader/bootloader_support/src/bootloader_random.o
CC build/bootloader/soc/src//memory_layout_utils.o
CC build/coap/libcoap/src/str.o
AR build/bootloader/bootloader_support/libbootloader_support.a
CC build/bootloader/main/bootloader_start.o
AR build/bootloader/soc/libsoc.a
CC build/coap/libcoap/src/subscribe.o
AR build/bootloader/main/libmain.a
CC build/coap/libcoap/src/uri.o
LD build/bootloader/bootloader.elf
CC build/coap/port/coap_io_socket.o
CC build/driver/sigmadelta.o
CC build/esp-tls/esp_tls.o
CC build/driver/uart.o
esptool.py v2.6
AR build/coap/libcoap.a
CC build/driver/sdspi_transaction.o
CC build/esp32/panic.o
CC build/esp_adc_cal/esp_adc_cal.o
AR build/esp-tls/libesp-tls.a
CC build/esp_event/default_event_loop.o
CC build/esp32/esp_adapter.o
AR build/esp_adc_cal/libesp_adc_cal.a
CC build/driver/sdio_slave.o
CC build/esp_event/esp_event.o
CC build/esp32/ets_timer_legacy.o
CC build/esp_http_client/esp_http_client.o
CC build/esp32/event_default_handlers.o
CC build/esp_event/esp_event_private.o
CC build/driver/i2s.o
AR build/esp_event/libesp_event.a
CC build/esp32/task_wdt.o
CC build/esp_http_server/src/httpd_main.o
CC build/esp_http_client/lib/http_header.o
CC build/esp32/sleep_modes.o
CC build/esp_http_server/src/httpd_txrx.o
AR build/asio/libasio.a
CC build/esp_http_client/lib/http_auth.o
CC build/esp_https_ota/src/esp_https_ota.o
CC build/driver/periph_ctrl.o
AR build/esp_https_ota/libesp_https_ota.a
CC build/esp32/dbg_stubs.o
CC build/esp_ringbuf/ringbuf.o
CC build/esp_http_client/lib/http_utils.o
CC build/esp32/hw_random.o
CC build/esp_http_server/src/httpd_uri.o
CC build/esp32/cpu_start.o
AR build/esp_http_client/libesp_http_client.a
CC build/driver/ledc.o
CC build/esp32/cache_sram_mmu.o
CC build/ethernet/emac_dev.o
CC build/esp_http_server/src/httpd_parse.o
CC build/esp32/restore.o
AR build/esp_ringbuf/libesp_ringbuf.a
CC build/driver/sdmmc_transaction.o
CC build/ethernet/emac_main.o
CC build/esp32/crosscore_int.o
CC build/ethernet/eth_phy/phy_common.o
CC build/driver/sdspi_host.o
CC build/esp_http_server/src/httpd_sess.o
CC build/esp32/phy_init.o
CC build/driver/gpio.o
CC build/ethernet/eth_phy/phy_lan8720.o
CC build/ethernet/eth_phy/phy_ip101.o
CC build/esp_http_server/src/util/ctrl_sock.o
CC build/driver/pcnt.o
CC build/esp32/pm_trace.o
CC build/ethernet/eth_phy/phy_tlk110.o
CC build/driver/rmt.o
AR build/esp_http_server/libesp_http_server.a
CC build/driver/mcpwm.o
CC build/esp32/spiram_psram.o
AR build/ethernet/libethernet.a
CC build/driver/spi_common.o
CC build/esp32/cache_err_int.o
CC build/expat/expat/expat/lib/xmlparse.o
CC build/esp32/esp_timer_esp32.o
CC build/driver/can.o
CC build/fatfs/src/ffsystem.o
CC build/esp32/clk.o
CC build/fatfs/src/diskio_wl.o
CC build/freemodbus/modbus/mb.o
CC build/esp32/freertos_hooks.o
CC build/fatfs/src/ff.o
CC build/esp32/gdbstub.o
CC build/driver/timer.o
CC build/freemodbus/port/portother.o
CC build/esp32/fast_crypto_ops.o
CC build/freemodbus/port/porttimer.o
CC build/esp32/lib_printf.o
CC build/driver/sdmmc_host.o
CC build/esp32/ipc.o
CC build/freemodbus/port/portserial.o
CC build/esp32/intr_alloc.o
CC build/driver/i2c.o
CC build/fatfs/src/ffunicode.o
CC build/freemodbus/port/portevent.o
CC build/fatfs/src/vfs_fat_sdmmc.o
CC build/freemodbus/modbus/ascii/mbascii.o
CC build/esp32/reset_reason.o
AR build/expat/libexpat.a
CC build/freemodbus/modbus/functions/mbutils.o
CC build/driver/rtc_module.o
CC build/fatfs/src/diskio.o
CC build/esp32/core_dump.o
CC build/freemodbus/modbus/functions/mbfuncinput.o
CC build/fatfs/src/diskio_sdmmc.o
CC build/esp32/coexist.o
CC build/freemodbus/modbus/functions/mbfuncholding.o
CC build/freertos/xtensa_intr.o
CC build/fatfs/src/vfs_fat_spiflash.o
CC build/esp32/wifi_init.o
CC build/freertos/queue.o
CC build/freemodbus/modbus/functions/mbfuncdisc.o
CC build/esp32/event_loop.o
CC build/fatfs/src/vfs_fat.o
CC build/freemodbus/modbus/functions/mbfuncother.o
CC build/freertos/croutine.o
CC build/esp32/pm_esp32.o
CC build/freemodbus/modbus/functions/mbfunccoils.o
AR build/driver/libdriver.a
CC build/freertos/list.o
CC build/esp32/esp_err_to_name.o
CC build/fatfs/src/diskio_rawflash.o
CC build/heap/heap_caps_init.o
CC build/freertos/xtensa_init.o
CC build/freemodbus/modbus/rtu/mbcrc.o
CC build/esp32/stack_check.o
AR build/fatfs/libfatfs.a
CC build/freertos/port.o
CC build/esp32/esp_timer.o
CC build/freemodbus/modbus/rtu/mbrtu.o
CC build/heap/heap_caps.o
CC build/freertos/event_groups.o
CC build/esp32/dport_access.o
CC build/freertos/tasks.o
CC build/freemodbus/modbus_controller/mbcontroller.o
CC build/esp32/pm_locks.o
CC build/freertos/timers.o
CC build/heap/multi_heap.o
CC build/esp32/system_api.o
CC build/esp32/brownout.o
CC build/freertos/FreeRTOS-openocd.o
CC build/esp32/spiram.o
AR build/freemodbus/libfreemodbus.a
CC build/heap/heap_trace.o
CC build/freertos/xtensa_overlay_os_hook.o
CC build/esp32/esp_himem.o
AS build/freertos/xtensa_context.o
CC build/esp32/int_wdt.o
AS build/freertos/portasm.o
AR build/heap/libheap.a
AS build/freertos/xtensa_vectors.o
CC build/esp32/hwcrypto/sha.o
CC build/esp32/hwcrypto/aes.o
AS build/freertos/xtensa_vector_defaults.o
AS build/freertos/xtensa_intr_asm.o
AR build/freertos/libfreertos.a
CC build/log/log.o
AS build/esp32/dport_panic_highint_hdl.o
CC build/libsodium/port/randombytes_esp32.o
CC build/libsodium/libsodium/src/libsodium/crypto_generichash/blake2b/ref/generichash_blake2b.o
CC build/lwip/apps/dhcpserver/dhcpserver.o
CC build/lwip/apps/ping/ping.o
AR build/esp32/libesp32.a
CC build/lwip/apps/ping/esp_ping.o
AR build/log/liblog.a
CC build/libsodium/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-ref.o
CC build/main/router_example.o
CC build/lwip/lwip/src/api/netdb.o
CC build/libsodium/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.o
CC build/libsodium/libsodium/src/libsodium/randombytes/randombytes.o
CC build/libsodium/libsodium/src/libsodium/sodium/utils.o
CC build/lwip/lwip/src/api/api_lib.o
CC build/lwip/lwip/src/api/netifapi.o
CC build/lwip/lwip/src/api/tcpip.o
CC build/libsodium/port/crypto_hash_mbedtls/crypto_hash_sha256_mbedtls.o
CC build/libsodium/port/crypto_hash_mbedtls/crypto_hash_sha512_mbedtls.o
AR build/main/libmain.a
CC build/mbedtls/mbedtls/library/ripemd160.o
AR build/libsodium/liblibsodium.a
CC build/mcommon/mdf_event_loop.o
CC build/mconfig/mconfig_security.o
CC build/lwip/lwip/src/api/netbuf.o
CC build/mbedtls/mbedtls/library/sha1.o
CC build/lwip/lwip/src/api/err.o
CC build/mcommon/mdf_err_to_name.o
CC build/mdebug/mdebug_espnow.o
CC build/lwip/lwip/src/api/api_msg.o
CC build/mconfig/mconfig_queue.o
CC build/mbedtls/mbedtls/library/x509_csr.o
CC build/mcommon/mdf_info_store.o
CC build/mdebug/mdebug_console.o
CC build/mconfig/mconfig_blufi.o
CC build/mbedtls/mbedtls/library/oid.o
CC build/mconfig/mconfig_chain.o
CC build/mcommon/mdf_mem.o
CC build/mdebug/mdebug_cmd.o
CC build/mbedtls/mbedtls/library/ecp.o
CC build/lwip/lwip/src/api/sockets.o
AR build/mcommon/libmcommon.a
CC build/mbedtls/mbedtls/library/chachapoly.o
AR build/mdebug/libmdebug.a
CC build/mdns/mdns_console.o
CC build/mbedtls/mbedtls/library/blowfish.o
AR build/mconfig/libmconfig.a
CC build/mbedtls/mbedtls/library/x509.o
CC build/mespnow/mespnow.o
AR build/mespnow/libmespnow.a
CC build/mbedtls/mbedtls/library/ssl_ticket.o
CC build/mbedtls/mbedtls/library/ecp_curves.o
CC build/mdns/mdns_networking.o
CC build/mdns/mdns.o
CC build/miniz/miniz.o
CC build/mlink/mlink_notice.o
CC build/lwip/lwip/src/apps/sntp/sntp.o
CC build/lwip/lwip/src/core/stats.o
CC build/mbedtls/mbedtls/library/cipher.o
CC build/mlink/mlink_utils.o
CC build/lwip/lwip/src/core/mem.o
CC build/mbedtls/mbedtls/library/pkcs11.o
CC build/mlink/mlink_sniffer.o
CC build/lwip/lwip/src/core/inet_chksum.o
CC build/mbedtls/mbedtls/library/pem.o
AR build/miniz/libminiz.a
CC build/lwip/lwip/src/core/init.o
CC build/mqtt/esp-mqtt/mqtt_client.o
CC build/mbedtls/mbedtls/library/entropy_poll.o
CC build/mlink/mlink_ble.o
CC build/mbedtls/mbedtls/library/x509write_csr.o
CC build/lwip/lwip/src/core/memp.o
CC build/mlink/mlink_espnow.o
CC build/mbedtls/mbedtls/library/md_wrap.o
CC build/lwip/lwip/src/core/tcp.o
CC build/mlink/mlink_trigger.o
CC build/mbedtls/mbedtls/library/version_features.o
CC build/mbedtls/mbedtls/library/havege.o
CC build/mqtt/esp-mqtt/lib/mqtt_outbox.o
AR build/mdns/libmdns.a
CC build/mbedtls/mbedtls/library/nist_kw.o
CC build/lwip/lwip/src/core/dns.o
CC build/mbedtls/mbedtls/library/dhm.o
CC build/mqtt/esp-mqtt/lib/mqtt_msg.o
CC build/mlink/mlink_json.o
CC build/mbedtls/mbedtls/library/rsa.o
CC build/mqtt/esp-mqtt/lib/platform_esp32_idf.o
CC build/lwip/lwip/src/core/timeouts.o
CC build/mbedtls/mbedtls/library/md4.o
CC build/mlink/mlink_httpd.o
AR build/mqtt/libmqtt.a
CC build/lwip/lwip/src/core/ip.o
CC build/mbedtls/mbedtls/library/platform_util.o
CC build/mwifi/mwifi.o
CC build/mupgrade/mupgrade_node.o
CC build/lwip/lwip/src/core/raw.o
CC build/mbedtls/mbedtls/library/sha256.o
CC build/mupgrade/mupgrade_root.o
CC build/lwip/lwip/src/core/tcp_in.o
CC build/mlink/mlink_handle.o
CC build/mbedtls/mbedtls/library/error.o
CC build/mbedtls/mbedtls/library/pkwrite.o
AR build/mwifi/libmwifi.a
CC build/lwip/lwip/src/core/pbuf.o
CC build/newlib/time.o
CC build/mupgrade/mupgrade_check.o
CC build/mbedtls/mbedtls/library/ssl_cli.o
AR build/mupgrade/libmupgrade.a
CC build/newlib/termios.o
CC build/lwip/lwip/src/core/netif.o
CC build/nghttp/nghttp2/lib/nghttp2_http.o
CC build/newlib/syscalls.o
AR build/mlink/libmlink.a
CC build/mbedtls/mbedtls/library/asn1parse.o
CC build/newlib/syscall_table.o
CC build/nghttp/nghttp2/lib/nghttp2_hd_huffman.o
CC build/mbedtls/mbedtls/library/ssl_tls.o
CC build/newlib/poll.o
CC build/lwip/lwip/src/core/sys.o
CC build/mbedtls/mbedtls/library/version.o
CC build/newlib/locks.o
CC build/nghttp/nghttp2/lib/nghttp2_rcbuf.o
CC build/newlib/random.o
CC build/lwip/lwip/src/core/def.o
CXX build/nvs_flash/src/nvs_ops.o
CC build/newlib/pthread.o
CC build/nghttp/nghttp2/lib/nghttp2_session.o
CXX build/nvs_flash/src/nvs_page.o
CC build/newlib/select.o
CC build/lwip/lwip/src/core/udp.o
AR build/newlib/libnewlib.a
CC build/nghttp/nghttp2/lib/nghttp2_stream.o
CC build/lwip/lwip/src/core/tcp_out.o
CC build/mbedtls/mbedtls/library/gcm.o
CC build/openssl/library/ssl_cert.o
CC build/openssl/library/ssl_methods.o
CC build/mbedtls/mbedtls/library/cmac.o
CC build/openssl/library/ssl_pkey.o
CC build/mbedtls/mbedtls/library/md2.o
CC build/lwip/lwip/src/core/ipv4/ip4_frag.o
CC build/mbedtls/mbedtls/library/ssl_cache.o
CC build/openssl/library/ssl_x509.o
CC build/openssl/library/ssl_lib.o
CXX build/nvs_flash/src/nvs_item_hash_list.o
CC build/mbedtls/mbedtls/library/ssl_srv.o
CC build/lwip/lwip/src/core/ipv4/dhcp.o
CC build/nghttp/nghttp2/lib/nghttp2_hd.o
CC build/openssl/library/ssl_stack.o
CC build/openssl/platform/ssl_pm.o
CC build/mbedtls/mbedtls/library/x509_crt.o
CC build/lwip/lwip/src/core/ipv4/etharp.o
CC build/nghttp/nghttp2/lib/nghttp2_frame.o
CC build/openssl/platform/ssl_port.o
AR build/openssl/libopenssl.a
CXX build/nvs_flash/src/nvs_encr.o
CC build/nghttp/nghttp2/lib/nghttp2_outbound_item.o
CC build/protobuf-c/protobuf-c/protobuf-c/protobuf-c.o
CC build/nghttp/nghttp2/lib/nghttp2_pq.o
CC build/lwip/lwip/src/core/ipv4/ip4_addr.o
CC build/mbedtls/mbedtls/library/ecdh.o
CC build/nghttp/nghttp2/lib/nghttp2_queue.o
CC build/lwip/lwip/src/core/ipv4/igmp.o
CC build/nghttp/nghttp2/lib/nghttp2_submit.o
CC build/mbedtls/mbedtls/library/asn1write.o
CC build/nghttp/nghttp2/lib/nghttp2_helper.o
CC build/mbedtls/mbedtls/library/aria.o
CC build/mbedtls/mbedtls/library/chacha20.o
CC build/lwip/lwip/src/core/ipv4/ip4.o
CC build/mbedtls/mbedtls/library/debug.o
CC build/nghttp/port/http_parser.o
CC build/mbedtls/mbedtls/library/x509_create.o
CXX build/nvs_flash/src/nvs_storage.o
CC build/lwip/lwip/src/core/ipv4/autoip.o
CC build/mbedtls/mbedtls/library/ecjpake.o
CC build/mbedtls/mbedtls/library/md.o
AR build/protobuf-c/libprotobuf-c.a
CC build/lwip/lwip/src/core/ipv4/icmp.o
CC build/mbedtls/mbedtls/library/ecdsa.o
CC build/lwip/lwip/src/core/ipv6/ip6_frag.o
CC build/protocomm/src/common/protocomm.o
CC build/mbedtls/mbedtls/library/ssl_ciphersuites.o
CC build/mbedtls/mbedtls/library/xtea.o
CC build/protocomm/src/security/security0.o
CC build/mbedtls/mbedtls/library/aes.o
AR build/nghttp/libnghttp.a
CC build/protocomm/src/security/security1.o
CC build/lwip/lwip/src/core/ipv6/dhcp6.o
CC build/pthread/pthread_local_storage.o
CC build/mbedtls/mbedtls/library/rsa_internal.o
CC build/lwip/lwip/src/core/ipv6/inet6.o
CC build/pthread/pthread_cond_var.o
CC build/mbedtls/mbedtls/library/cipher_wrap.o
CC build/protocomm/proto-c/sec1.pb-c.o
CC build/lwip/lwip/src/core/ipv6/ip6_addr.o
CC build/pthread/pthread.o
CC build/mbedtls/mbedtls/library/arc4.o
CC build/protocomm/proto-c/session.pb-c.o
CXX build/nvs_flash/src/nvs_api.o
CC build/mbedtls/mbedtls/library/bignum.o
CC build/lwip/lwip/src/core/ipv6/ip6.o
CC build/protocomm/proto-c/constants.pb-c.o
CC build/protocomm/proto-c/sec0.pb-c.o
AR build/pthread/libpthread.a
CC build/mbedtls/mbedtls/library/pkparse.o
CC build/protocomm/src/transports/protocomm_console.o
CC build/lwip/lwip/src/core/ipv6/nd6.o
CC build/protocomm/src/transports/protocomm_httpd.o
CC build/sdmmc/sdmmc_init.o
CC build/mbedtls/mbedtls/library/padlock.o
AR build/protocomm/libprotocomm.a
CC build/mbedtls/mbedtls/library/threading.o
CC build/sdmmc/sdmmc_io.o
CC build/smartconfig_ack/smartconfig_ack.o
CC build/mbedtls/mbedtls/library/x509_crl.o
AR build/smartconfig_ack/libsmartconfig_ack.a
CC build/sdmmc/sdmmc_common.o
CC build/mbedtls/mbedtls/library/camellia.o
CC build/lwip/lwip/src/core/ipv6/mld6.o
CC build/mbedtls/mbedtls/library/hkdf.o
CC build/soc/esp32/soc_memory_layout.o
AR build/nvs_flash/libnvs_flash.a
CC build/soc/esp32/rtc_pm.o
CC build/mbedtls/mbedtls/library/timing.o
CC build/mbedtls/mbedtls/library/certs.o
CC build/sdmmc/sdmmc_mmc.o
CC build/soc/esp32/rtc_periph.o
CC build/mbedtls/mbedtls/library/pkcs5.o
CC build/soc/esp32/cpu_util.o
CC build/mbedtls/mbedtls/library/ssl_cookie.o
CC build/lwip/lwip/src/core/ipv6/ethip6.o
CC build/soc/esp32/sdmmc_periph.o
CC build/soc/esp32/rtc_wdt.o
CC build/mbedtls/mbedtls/library/poly1305.o
CC build/spi_flash/flash_mmap.o
CC build/sdmmc/sdmmc_cmd.o
CC build/lwip/lwip/src/core/ipv6/icmp6.o
CC build/mbedtls/mbedtls/library/memory_buffer_alloc.o
CC build/soc/esp32/sdio_slave_periph.o
CC build/mbedtls/mbedtls/library/hmac_drbg.o
CC build/soc/esp32/rtc_time.o
CC build/spi_flash/partition.o
CC build/lwip/lwip/src/netif/slipif.o
CC build/mbedtls/mbedtls/library/base64.o
CC build/sdmmc/sdmmc_sd.o
CC build/soc/esp32/spi_periph.o
CC build/spi_flash/spi_flash_rom_patch.o
CC build/mbedtls/mbedtls/library/des.o
CC build/lwip/lwip/src/netif/ethernet.o
CC build/soc/esp32/rtc_init.o
CC build/mbedtls/mbedtls/library/pk.o
AR build/sdmmc/libsdmmc.a
CC build/spi_flash/cache_utils.o
CC build/lwip/lwip/src/netif/lowpan6.o
CC build/soc/esp32/rtc_clk_init.o
CC build/spiffs/spiffs_api.o
CC build/mbedtls/mbedtls/library/platform.o
CC build/lwip/lwip/src/netif/ethernetif.o
CC build/spi_flash/flash_ops.o
CC build/soc/esp32/gpio_periph.o
CC build/mbedtls/mbedtls/library/ctr_drbg.o
CC build/spiffs/esp_spiffs.o
CC build/soc/esp32/rtc_sleep.o
CC build/lwip/port/esp32/vfs_lwip.o
CC build/mbedtls/mbedtls/library/x509write_crt.o
CC build/lwip/port/esp32/freertos/sys_arch.o
CC build/soc/esp32/rtc_clk.o
AR build/spi_flash/libspi_flash.a
CC build/spiffs/spiffs/src/spiffs_cache.o
CC build/mbedtls/mbedtls/library/pk_wrap.o
CC build/lwip/port/esp32/netif/wlanif.o
CC build/mbedtls/mbedtls/library/entropy.o
CC build/spiffs/spiffs/src/spiffs_gc.o
CC build/soc/src//memory_layout_utils.o
CC build/spiffs/spiffs/src/spiffs_nucleus.o
CC build/mbedtls/mbedtls/library/sha512.o
CC build/lwip/port/esp32/netif/dhcp_state.o
AR build/soc/libsoc.a
CC build/mbedtls/mbedtls/library/aesni.o
CC build/mbedtls/mbedtls/library/pkcs12.o
CC build/spiffs/spiffs/src/spiffs_check.o
CC build/lwip/port/esp32/netif/ethernetif.o
CC build/spiffs/spiffs/src/spiffs_hydrogen.o
CC build/mbedtls/mbedtls/library/ccm.o
CC build/lwip/port/esp32/debug/lwip_debug.o
CC build/mbedtls/mbedtls/library/md5.o
CC build/tcp_transport/transport_ws.o
AR build/lwip/liblwip.a
CC build/tcp_transport/transport_utils.o
CC build/tcp_transport/transport.o
CC build/tcp_transport/transport_tcp.o
AR build/spiffs/libspiffs.a
CC build/tcpip_adapter/tcpip_adapter_lwip.o
CC build/ulp/ulp.o
CC build/mbedtls/port/mbedtls_debug.o
CC build/vfs/vfs_uart.o
CC build/ulp/ulp_macro.o
CC build/mbedtls/port/esp_sha1.o
CC build/tcp_transport/transport_ssl.o
CC build/mbedtls/port/esp_sha256.o
AR build/ulp/libulp.a
CC build/vfs/vfs.o
CC build/mbedtls/port/esp_bignum.o
AR build/tcp_transport/libtcp_transport.a
CXX build/wear_levelling/wear_levelling.o
CC build/wifi_provisioning/src/wifi_config.o
CC build/mbedtls/port/net_sockets.o
AR build/tcpip_adapter/libtcpip_adapter.a
CC build/wpa_supplicant/src/crypto/aes-internal-enc.o
CXX build/wear_levelling/WL_Flash.o
CC build/wifi_provisioning/proto-c/wifi_constants.pb-c.o
CC build/wpa_supplicant/src/crypto/sha256-internal.o
CC build/wifi_provisioning/proto-c/wifi_config.pb-c.o
CC build/mbedtls/port/esp_hardware.o
AR build/vfs/libvfs.a
CC build/xtensa-debug-module/trax.o
CC build/mbedtls/port/esp_mem.o
CC build/wpa_supplicant/src/crypto/md5-internal.o
CC build/mbedtls/port/esp_sha512.o
AR build/xtensa-debug-module/libxtensa-debug-module.a
AR build/wifi_provisioning/libwifi_provisioning.a
Erasing entire flash...
Building partitions from /home/cgfoed/esp/esp-mdf/examples/function_demo/mwifi/router/partitions.csv...
AR build/mbedtls/libmbedtls.a
CC build/wpa_supplicant/src/crypto/aes-internal.o
CC build/wpa_supplicant/src/crypto/sha1.o
CXX build/wear_levelling/WL_Ext_Safe.o
CXX build/wear_levelling/SPI_Flash.o
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting...CC build/wpa_supplicant/src/crypto/aes-internal-dec.o
CC build/wpa_supplicant/src/crypto/crypto_internal.o
CXX build/wear_levelling/Partition.o
CXX build/wear_levelling/WL_Ext_Perf.o
...CC build/wpa_supplicant/src/crypto/aes-unwrap.o
CC build/wpa_supplicant/src/crypto/crypto_internal-rsa.o
CC build/wpa_supplicant/src/crypto/des-internal.o
.AR build/wear_levelling/libwear_levelling.a
CC build/wpa_supplicant/src/crypto/dh_groups.o
.CC build/wpa_supplicant/src/crypto/ms_funcs.o
CC build/wpa_supplicant/src/crypto/crypto_mbedtls.o
CC build/wpa_supplicant/src/crypto/aes-wrap.o
CC build/wpa_supplicant/src/crypto/sha1-internal.o
CC build/wpa_supplicant/src/crypto/md4-internal.o
CC build/wpa_supplicant/src/crypto/dh_group5.o
CC build/wpa_supplicant/src/crypto/sha256.o
CC build/wpa_supplicant/src/crypto/rc4.o
CC build/wpa_supplicant/src/crypto/md5.o
CC build/wpa_supplicant/src/crypto/aes-cbc.o
CC build/wpa_supplicant/src/crypto/sha1-pbkdf2.o
CC build/wpa_supplicant/src/crypto/bignum.o
CC build/wpa_supplicant/src/crypto/crypto_internal-modexp.o
CC build/wpa_supplicant/src/crypto/crypto_internal-cipher.o
CC build/wpa_supplicant/port/os_xtensa.o
CC build/wpa_supplicant/src/fast_crypto/fast_aes-wrap.o
CC build/wpa_supplicant/src/fast_crypto/fast_sha256-internal.o
CC build/wpa_supplicant/src/fast_crypto/fast_aes-cbc.o
CC build/wpa_supplicant/src/fast_crypto/fast_crypto_internal.o
CC build/wpa_supplicant/src/fast_crypto/fast_sha256.o
CC build/wpa_supplicant/src/fast_crypto/fast_aes-unwrap.o
CC build/wpa_supplicant/src/fast_crypto/fast_crypto_internal-modexp.o
CC build/wpa_supplicant/src/fast_crypto/fast_crypto_internal-cipher.o
CC build/wpa_supplicant/src/wpa2/eap_peer/eap.o
CC build/wpa_supplicant/src/wpa2/eap_peer/eap_common.o
CC build/wpa_supplicant/src/wpa2/eap_peer/mschapv2.o
CC build/wpa_supplicant/src/wpa2/eap_peer/eap_tls.o
_CC build/wpa_supplicant/src/wpa2/eap_peer/eap_tls_common.o
__CC build/wpa_supplicant/src/wpa2/eap_peer/eap_ttls.o
_CC build/wpa_supplicant/src/wpa2/eap_peer/eap_peap.o
_CC build/wpa_supplicant/src/wpa2/eap_peer/eap_mschapv2.o
..CC build/wpa_supplicant/src/wpa2/eap_peer/eap_peap_common.o
.CC build/wpa_supplicant/src/wpa2/tls/tlsv1_record.o
.CC build/wpa_supplicant/src/wpa2/tls/pkcs8.o
CC build/wpa_supplicant/src/wpa2/tls/x509v3.o
.CC build/wpa_supplicant/src/wpa2/tls/tlsv1_cred.o
CC build/wpa_supplicant/src/wpa2/tls/tlsv1_client_read.o
CC build/wpa_supplicant/src/wpa2/tls/tlsv1_common.o
CC build/wpa_supplicant/src/wpa2/tls/rsa.o
CC build/wpa_supplicant/src/wpa2/tls/tlsv1_client_write.o
CC build/wpa_supplicant/src/wpa2/tls/asn1.o
CC build/wpa_supplicant/src/wpa2/tls/tlsv1_client.o
CC build/wpa_supplicant/src/wpa2/tls/tlsv1_server_read.o
CC build/wpa_supplicant/src/wpa2/tls/pkcs1.o
CC build/wpa_supplicant/src/wpa2/tls/pkcs5.o
CC build/wpa_supplicant/src/wpa2/tls/tlsv1_server.o
CC build/wpa_supplicant/src/wpa2/tls/bignum.o
CC build/wpa_supplicant/src/wpa2/tls/tlsv1_server_write.o
CC build/wpa_supplicant/src/wpa2/tls/tls_internal.o
CC build/wpa_supplicant/src/wpa2/utils/base64.o
__CC build/wpa_supplicant/src/wpa2/utils/ext_password.o
__CC build/wpa_supplicant/src/wps/eap_common.o
_CC build/wpa_supplicant/src/wps/wps_attr_process.o
CC build/wpa_supplicant/src/wps/wps_validate.o
CC build/wpa_supplicant/src/wps/wps_attr_parse.o
CC build/wpa_supplicant/src/wps/wps_dev_attr.o
...CC build/wpa_supplicant/src/wps/wps.o
.CC build/wpa_supplicant/src/wps/wps_common.o
.CC build/wpa_supplicant/src/wps/wps_registrar.o
CC build/wpa_supplicant/src/wps/wps_attr_build.o
CC build/wpa_supplicant/src/wps/uuid.o
CC build/wpa_supplicant/src/wps/wps_enrollee.o
AR build/wpa_supplicant/libwpa_supplicant.a
LD build/router.elf
_____.....___
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, Coding Scheme None
MAC: 24:0a:c4:1d:4f:b0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Erasing flash (this may take a while)...
Chip erase completed successfully in 2.8s
Hard resetting via RTS pin...
esptool.py v2.6
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting........__
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, Coding Scheme None
MAC: 24:0a:c4:1d:4f:b0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 31...
Wrote 8192 bytes (31 compressed) at 0x0000d000 in 0.0 seconds (effective 15254.9 kbit/s)...
Hash of data verified.
Compressed 23168 bytes to 13726...
Wrote 23168 bytes (13726 compressed) at 0x00001000 in 0.2 seconds (effective 1033.3 kbit/s)...
Hash of data verified.
Compressed 839424 bytes to 519112...
Wrote 839424 bytes (519112 compressed) at 0x00010000 in 7.1 seconds (effective 948.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 162...
Wrote 3072 bytes (162 compressed) at 0x00008000 in 0.0 seconds (effective 3073.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
MONITOR
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,lYK�1N�Hh
������12 room 4
load:0x40078000,len:10272
loa��x�8�0bb���6608
entry 0x40080764
I (30) boot: ESP-IDF v3.2.2-42-g4a9f33944 2nd stage bootloader
I (30) boot: compile time 12:35:59
I (30) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed : 40MHz
I (39) boot: SPI Mode : DIO
I (43) boot: SPI Flash Size : 4MB
I (48) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (66) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (73) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (81) boot: 3 ota_0 OTA app 00 10 00010000 001e0000
I (88) boot: 4 ota_1 OTA app 00 11 001f0000 001e0000
I (96) boot: 5 coredump Unknown data 01 03 003d0000 00010000
I (103) boot: 6 reserved Unknown data 01 fe 003e0000 00020000
I (111) boot: End of partition table
I (115) boot: No factory image, trying OTA 0
I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x20ad8 (133848) map
I (176) esp_image: segment 1: paddr=0x00030b00 vaddr=0x3ffb0000 size=0x02ba4 ( 11172) load
I (181) esp_image: segment 2: paddr=0x000336ac vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at /home/cgfoed/esp/esp-mdf/esp-idf/components/freertos/xtensa_vectors.S:1779
I (183) esp_image: segment 3: paddr=0x00033ab4 vaddr=0x40080400 size=0x0c55c ( 50524) load
I (213) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x99b2c (629548) map
0x400d0018: _stext at ??:?
I (433) esp_image: segment 5: paddr=0x000d9b4c vaddr=0x4008c95c size=0x03388 ( 13192) load
0x4008c95c: ppResortTxAMPDU at ??:?
I (448) boot: Loaded app from partition at offset 0x10000
I (448) boot: Disabling RNG early entropy source...
I (449) cpu_start: Pro cpu up.
I (452) cpu_start: Single core mode
I (457) heap_init: Initializing. RAM available for dynamic allocation:
I (464) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (470) heap_init: At 3FFB9900 len 00026700 (153 KiB): DRAM
I (476) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (483) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (489) heap_init: At 4008FCE4 len 0001031C (64 KiB): IRAM
I (495) cpu_start: Pro cpu start user code
I (178) cpu_start: Starting scheduler on PRO CPU.
I (207) wifi: wifi driver task: 3ffc1a78, prio:23, stack:3584, core=0
I (207) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (211) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (235) wifi: wifi firmware version: 0c3a77a
I (235) wifi: config NVS flash: enabled
I (235) wifi: config nano formating: disabled
I (236) wifi: Init dynamic tx buffer num: 32
I (239) wifi: Init data frame dynamic rx buffer num: 32
I (244) wifi: Init management frame dynamic rx buffer num: 32
I (250) wifi: Init management short buffer num: 32
I (255) wifi: Init static rx buffer size: 1600
I (259) wifi: Init static rx buffer num: 10
I (262) wifi: Init dynamic rx buffer num: 32
I (268) wifi: Set ps type: 0
W (270) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (457) phy: phy_version: 4008, 544f89f, Jan 24 2019, 14:54:06, 0, 2
I (467) wifi: mode : sta (24:0a:c4:1d:4f:b0)
I (469) [mwifi, 177]: esp-mdf version: v1.0-beta1-2-gc1cc50f-dirty
W (469) wifi: [beacon]interval:100ms
I (471) wifi: mode : sta (24:0a:c4:1d:4f:b0) + softAP (24:0a:c4:1d:4f:b1)
I (478) wifi: Total power save buffer number: 16
I (481) wifi: Init max length of beacon: 752/752
I (486) wifi: Init max length of beacon: 752/752
I (493) mesh: <nvs>read layer:0, err:0x1102
I (494) mesh: <nvs>read assoc:0, err:0x1102
W (499) wifi: [beacon]interval:100ms
I (1497) wifi: Total power save buffer number: 16
I (2496) wifi: Set ps type: 0
I (2501) wifi: mode : sta (24:0a:c4:1d:4f:b0)
I (2504) mesh: <MESH_NWK_LOOK_FOR_NETWORK>need_scan:0x3, need_scan_router:0x0, look_for_nwk_count:1
I (2505) [mwifi, 113]: MESH is started
I (2508) [router_example, 332]: event_loop_cb, event: 0
I (2514) [router_example, 336]: MESH is started
I (2519) [router_example, 233]: NODE task is running
I (2525) [router_example, 203]: Note read task is running
I (6414) mesh: [S1]myssid, 24:0a:c4:c1:07:41, channel:1, rssi:-11
I (6414) mesh: find router:[ssid_len:6]myssid, rssi:-11, 24:0a:c4:c1:07:41(encrypted), new channel:1, old channel:0
I (6420) mesh: [FIND][ch:0]AP:17, otherID:0, MAP:0, idle:0, candidate:0, root:0[24:0a:c4:c1:07:41]router found
I (6429) mesh: [FIND:1]find a network, channel:1, cfg<channel:0, router:myssid, 00:00:00:00:00:00>
I (6438) [router_example, 332]: event_loop_cb, event: 24
I (6439) wifi: mode : sta (24:0a:c4:1d:4f:b0) + softAP (24:0a:c4:1d:4f:b1)
W (6452) wifi: <MESH AP>adjust channel:1, secondary channel offset:1(40U)
I (6460) wifi: Total power save buffer number: 16
I (6767) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:0][24:0a:c4:c1:07:41]router found<>
I (6769) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-13], mine:0, voter:0
I (6775) mesh: 1250, vote myself, router rssi:-13 > voted rc_rssi:-120
I (6782) mesh: [SCAN:1/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-13,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (7098) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (7101) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-13], mine:0, voter:0
I (7107) mesh: [SCAN:2/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-13,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (7424) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (7426) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (7432) mesh: [SCAN:3/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (7749) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (7751) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (7757) mesh: [SCAN:4/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (8074) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (8076) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-13], mine:0, voter:0
I (8082) mesh: [SCAN:5/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-13,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (8399) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (8401) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (8408) mesh: [SCAN:6/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (8724) mesh: [SCAN][ch:1]AP:1, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (8726) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (8733) mesh: [SCAN:7/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (9049) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (9051) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-15], mine:0, voter:0
I (9058) mesh: [SCAN:8/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-15,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (9374) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (9377) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (9383) mesh: [SCAN:9/10]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (9699) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (9702) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (9708) mesh: [SCAN:10/13+x+]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (10025) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (10027) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (10034) mesh: [SCAN:11/13+x+]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (10350) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (10353) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (10359) mesh: [SCAN:12/13+x+]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
I (10676) mesh: [SCAN][ch:1]AP:2, other(ID:0, RD:0), MAP:0, idle:0, candidate:1, root:0, topMAP:0[c:0,i:1][24:0a:c4:c1:07:41]router found<>
I (10678) mesh: 1212[SCAN]init rc[24:0a:c4:1d:4f:b1,-14], mine:0, voter:0
I (10685) mesh: [SCAN:13/13+x+]rc[128][24:0a:c4:1d:4f:b1,-13], self[24:0a:c4:1d:4f:b0,-14,reason:0,votes:1,idle][mine:1,voter:1(1.00)percent:0.90][128,1,24:0a:c4:1d:4f:b1]
W (10700) wifi: [beacon]interval:100ms
I (10704) mesh: [DONE]connect to router:myssid, channel:1, rssi:-14, 24:0a:c4:c1:07:41[layer:0, assoc:0], my_vote_num:1/voter_num:1, rc[24:0a:c4:1d:4f:b1/-13/1]
I (10848) wifi: n:1 1, o:1 1, ap:1 1, sta:1 1, prof:1
I (11839) wifi: state: init -> auth (b0)
I (11846) wifi: state: auth -> assoc (0)
I (11855) wifi: state: assoc -> run (10)
I (11861) wpa: <EAPOL>state:6
I (11861) wpa: <EAPOL>receiving the 1/4 EAPOL-Key, state:6
I (11869) wpa: <EAPOL>state:7
I (11870) wpa: <EAPOL>receiving the 3/4 EAPOL-Key, state:7
I (11870) wifi: connected with myssid, channel 1, 40U
I (11876) wifi: pm start, type: 0
I (11879) mesh: [scan]new scanning time:600ms
W (11880) wifi: [beacon]new interval:300ms
I (11888) mesh: <nvs>write layer:1
I (11891) [mwifi, 80]: Parent is connected
I (11892) [router_example, 332]: event_loop_cb, event: 7
I (11893) [mwifi, 149]: State represents: 0
I (11902) [router_example, 340]: Parent is connected on station interface
I (11910) [router_example, 332]: event_loop_cb, event: 11
I (11916) [router_example, 332]: event_loop_cb, event: 14
D (12348) [router_example, 246]: Node send, size: 72, data: {"src_addr": "24:0a:c4:1d:4f:b0","data": "Hello TCP Server!","count": 0}
I (12531) [router_example, 281]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -14, node num: 1, free heap: 171452
I (13250) event: sta ip: 192.168.4.2, mask: 255.255.255.0, gw: 192.168.4.1
I (13251) [router_example, 332]: event_loop_cb, event: 17
I (13253) [router_example, 353]: Root obtains the IP address. It is posted by LwIP stack automatically
I (13263) [router_example, 84]: TCP client read task is running
I (13264) [router_example, 169]: TCP client write task is running
I (13270) [router_example, 43]: Create a tcp client, ip: 192.168.4.4, port: 8070
I (13285) [router_example, 56]: socket created, sockfd: 54
D (15351) [router_example, 246]: Node send, size: 72, data: {"src_addr": "24:0a:c4:1d:4f:b0","data": "Hello TCP Server!","count": 1}
D (18354) [router_example, 246]: Node send, size: 72, data: {"src_addr": "24:0a:c4:1d:4f:b0","data": "Hello TCP Server!","count": 2}
I (22531) [router_example, 281]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -14, node num: 1, free heap: 158176
W (31544) [router_example, 59]: socket connect, ret: -1, ip: 192.168.4.4, port: 8070
I (32048) [router_example, 43]: Create a tcp client, ip: 192.168.4.4, port: 8070
I (32049) [router_example, 56]: socket created, sockfd: 55
I (32531) [router_example, 281]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -14, node num: 1, free heap: 158080
I (42531) [router_example, 281]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -14, node num: 1, free heap: 158284
W (50555) [router_example, 59]: socket connect, ret: -1, ip: 192.168.4.4, port: 8070
I (51056) [router_example, 43]: Create a tcp client, ip: 192.168.4.4, port: 8070
I (51057) [router_example, 56]: socket created, sockfd: 56
I (52531) [router_example, 281]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -14, node num: 1, free heap: 157988
I (62531) [router_example, 281]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -14, node num: 1, free heap: 158192
W (69564) [router_example, 59]: socket connect, ret: -1, ip: 192.168.4.4, port: 8070
While the app doesn't see any new client connection
Ret = connect(sockfd, (struct sockaddr *)&server_addr, sizeof(struct sockaddr_in));
MDF_ERROR_GOTO(ret < 0, ERR_EXIT, "<%s> socket connect, ret: %d, ip: %s, port: %d",
Strerror(errno), ret, ip, port);
Changed to fixed IP -> 192.168.4.50 Still, everything works over the softAP WROOM Module ✔ iPhone TCP Client.......................<-softAP->........iPad TCP Server ✔ ESP32 WROOM TCP Client.....<-softAP->........iPad TCP Server ✔ iPhone TCP Client ......................<-softAP->........WROOM TCP Server
✖ iPhone TCP Server.......................<-softAP->........WROOM ESP-MDF router sample ✖ iPad TCP Server............................<-softAP->........WROOM ESP-MDF router sample ✖ ESP32 WROOM TCP Server.....<-softAP->........WROOM ESP-MDF router sample
I (13270) [router_example, 43]: Create a tcp client, ip: 192.168.4.50, port: 8070
D (15346) [router_example, 245]: Node send, size: 72, data: {"src_addr": "24:0a:c4:1d:4f:b0","data": "Hello TCP Server!","count": 1}
D (18349) [router_example, 245]: Node send, size: 72, data: {"src_addr": "24:0a:c4:1d:4f:b0","data": "Hello TCP Server!","count": 2}
I (22531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 158168
W (31544) [router_example, 58]: <Software caused connection abort> socket connect, ret: -1, ip: 192.168.4.50, port: 8070
I (32045) [router_example, 43]: Create a tcp client, ip: 192.168.4.50, port: 8070
I (32531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 158080
I (42531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 158272
W (50549) [router_example, 58]: <Software caused connection abort> socket connect, ret: -1, ip: 192.168.4.50, port: 8070
I (51050) [router_example, 43]: Create a tcp client, ip: 192.168.4.50, port: 8070
I (52531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 157988
I (62531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 158180
W (69554) [router_example, 58]: <Software caused connection abort> socket connect, ret: -1, ip: 192.168.4.50, port: 8070
I (70055) [router_example, 43]: Create a tcp client, ip: 192.168.4.50, port: 8070
I (72531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 157896
I (82531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 157996
W (88562) [router_example, 58]: <Software caused connection abort> socket connect, ret: -1, ip: 192.168.4.50, port: 8070
git show
commit c1cc50f6107fae59fbef570567331b91b0b59819 (HEAD -> master, origin/master, origin/HEAD)
Merge: 5aa32d3 6622a98
Author: Zhan Zhao Chen <zhanzhaochen@espressif.com>
Date: Wed Jul 17 15:44:20 2019 +0800
Merge branch 'docs/README.md' into 'master'
docs(README): Modify the hyperlink in the README
See merge request application/esp-mdf!298
~/esp/esp-mdf/examples/function_demo/mwifi/router$ git diff
diff --git a/examples/function_demo/mwifi/router/main/router_example.c b/examples/function_demo/mwifi/router/main/router_example.c
index cfc0846..9193bdc 100755
--- a/examples/function_demo/mwifi/router/main/router_example.c
+++ b/examples/function_demo/mwifi/router/main/router_example.c
@@ -54,8 +54,8 @@ static int socket_tcp_client_create(const char *ip, uint16_t port)
MDF_ERROR_GOTO(sockfd < 0, ERR_EXIT, "socket create, sockfd: %d", sockfd);
ret = connect(sockfd, (struct sockaddr *)&server_addr, sizeof(struct sockaddr_in));
- MDF_ERROR_GOTO(ret < 0, ERR_EXIT, "socket connect, ret: %d, ip: %s, port: %d",
- ret, ip, port);
+ MDF_ERROR_GOTO(ret < 0, ERR_EXIT, "<%s> socket connect, ret: %d, ip: %s, port: %d",
+ strerror(errno), ret, ip, port);
return sockfd;
ERR_EXIT:
I'll try dedicated router tomorrow.
✔ iPad TCP Server.......................<-Hardware AP->........WROOM ESP-MDF router sample
The question remains why I can't use the espressif softAP running on a WROOM with this specific example - when all other combinations of TCP communication work.
As I need to use an ESP32 as "router" in my specific project I have no other choice as to investigate this issue further.
Any help would be great!
maybe interesting
I get an other error, when I try: ✖ WROOM ESP-MDF router sample.....<-softAP->........WROOM TCP Server
I (168769) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 5001
W (168771) [router_example, 58]: <Connection reset by peer> socket connect, ret: -1, ip: 192.168.4.1, port: 5001
This error occurs immediately, while in the other config:
✖ WROOM ESP-MDF router sample.....<-softAP->........iPhone TCP Server
I (51050) [router_example, 43]: Create a tcp client, ip: 192.168.4.50, port: 8070
I (52531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 157988
I (62531) [router_example, 280]: System information, channel: 1, layer: 1, self mac: 24:0a:c4:1d:4f:b0, parent bssid: 24:0a:c4:c1:07:41, parent rssi: -7, node num: 1, free heap: 158180
W (69554) [router_example, 58]: <Software caused connection abort> socket connect, ret: -1, ip: 192.168.4.50, port: 8070
the other error occurs after 30s or so.
Still this works fine: ✔ iPhone TCP Client ....................................<-softAP->........WROOM TCP Server
@cgfoed We will fix ESP32 as a softap issue as soon as possible. Once we fix it, we will notify you immediately. You are temporarily using a router for testing.
Because our ESP-MDF uses the 192.168.4.1 network segment by default, if softap also uses this network segment, there will be conflicts. Please modify the softap network segment as follows:
tcpip_adapter_ip_info_t ip_info = {
.ip.addr = ipaddr_addr("192.168.1.1"),
.netmask.addr = ipaddr_addr("255.255.255.0"),
.gw.addr = ipaddr_addr("192.168.1.1"),
};
tcpip_adapter_dhcps_stop(TCPIP_ADAPTER_IF_AP);
tcpip_adapter_set_ip_info(TCPIP_ADAPTER_IF_AP, &ip_info);
tcpip_adapter_dhcps_start(TCPIP_ADAPTER_IF_AP);
Thanks! That did the trick.
Hello @zhanzhaocheng , I have the same problem using esp-mdf router example. Can you explan me how can I fix this erro:
`I (16945) mesh:
I (19626) mesh: [scan]new scanning time:600ms, beacon interval:300ms
I (19706) mesh:
After some debugging I'm quite confident that there is a bug in https://github.com/espressif/esp-mdf/tree/master/examples/function_demo/mwifi/router
I always get the error W (67050) [router_example, 59]: socket connect, ret: -1, ip: 192.168.4.1, port: 8070
What is working:
I got every samplecode working so fart - except function_demo/mwifi/router
Tried hard coding IP and Server to socket_tcp_client_create and different IP / Port configs i've got no clue to where to look for the error now