--- Warning: Serial ports accessed as /dev/tty.* will hang gdb if launched.
--- Using /dev/cu.usbmodem11301 instead...
--- esp-idf-monitor 1.7.0 on /dev/cu.usbmodem11301 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x1c (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380dd6
--- 0x40380dd6: esp_cpu_wait_for_intr at /Users/rdzleo/esp/esp-idf/v5.4.2/esp-idf/components/esp_hw_support/cpu.c:64
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x56c
load:0x403c8700,len:0x4
load:0x403c8704,len:0xc30
load:0x403cb700,len:0x2e2c
entry 0x403c890c
I (36) octal_psram: vendor id    : 0x0d (AP)
I (36) octal_psram: dev id       : 0x02 (generation 3)
I (36) octal_psram: density      : 0x03 (64 Mbit)
I (38) octal_psram: good-die     : 0x01 (Pass)
I (42) octal_psram: Latency      : 0x01 (Fixed)
I (46) octal_psram: VCC          : 0x01 (3V)
I (50) octal_psram: SRF          : 0x01 (Fast Refresh)
I (55) octal_psram: BurstType    : 0x01 (Hybrid Wrap)
I (60) octal_psram: BurstLen     : 0x01 (32 Byte)
I (64) octal_psram: Readlatency  : 0x02 (10 cycles@Fixed)
I (69) octal_psram: DriveStrength: 0x00 (1/1)
I (74) MSPI Timing: PSRAM timing tuning index: 5
I (78) esp_psram: Found 8MB PSRAM device
I (81) esp_psram: Speed: 80MHz
I (84) cpu_start: Multicore app
I (99) cpu_start: Pro cpu start user code
I (99) cpu_start: cpu freq: 240000000 Hz
I (99) app_init: Application information:
I (99) app_init: Project name:     xiaozhi
I (102) app_init: App version:      1.7.2
I (106) app_init: Compile time:     Aug 13 2025 14:11:06
I (111) app_init: ELF file SHA256:  70cab7f6a...
I (116) app_init: ESP-IDF:          v5.4.2-dirty
I (120) efuse_init: Min chip rev:     v0.0
I (124) efuse_init: Max chip rev:     v0.99 
I (128) efuse_init: Chip rev:         v0.2
I (132) heap_init: Initializing. RAM available for dynamic allocation:
I (138) heap_init: At 3FCAD230 len 0003C4E0 (241 KiB): RAM
I (143) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (148) heap_init: At 600FE01C len 00001FBC (7 KiB): RTCRAM
I (154) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator
I (161) spi_flash: detected chip: generic
I (164) spi_flash: flash io: qio
I (168) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (173) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (180) main_task: Started on CPU0
I (190) esp_psram: Reserving pool of 64K of internal memory for DMA/internal allocations
I (190) main_task: Calling app_main()
I (200) BackgroundTask: background_task started
I (210) Board: UUID=6830e80c-5c18-40e4-a04e-1ab889e80ef1 SKU=movecall-moji-esp32s3
I (210) button: IoT Button Version: 3.5.0
I (210) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (220) button: IoT Button Version: 3.5.0
I (220) gpio: GPIO[46]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (230) button: IoT Button Version: 3.5.0
I (230) gpio: GPIO[45]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (240) button: IoT Button Version: 3.5.0
I (250) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (250) MovecallMojiESP32S3: Initializing buttons...
I (260) MovecallMojiESP32S3: Boot button initialized on GPIO0
I (260) MovecallMojiESP32S3: Volume up button initialized on GPIO46
I (270) MovecallMojiESP32S3: Volume down button initialized on GPIO45
I (280) MovecallMojiESP32S3: Story button initialized on GPIO18
I (280) MovecallMojiESP32S3: All buttons initialized successfully
I (290) MovecallMojiESP32S3: Initializing battery monitor...
I (290) MovecallMojiESP32S3: Battery monitor initialized on GPIO10
I (300) MovecallMojiESP32S3: 在构造函数完成后调用触摸初始化
I (310) Application: STATE: starting
I (310) MovecallMojiESP32S3: Initializing audio codec...
I (310) MovecallMojiESP32S3: Initializing I2C bus for audio codec...
I (320) MovecallMojiESP32S3: Creating Es8311AudioCodec instance...
I (330) Es8311AudioCodec: Duplex channels created
I (340) ES8311: Work in Slave mode
I (340) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (340) Es8311AudioCodec: Es8311AudioCodec initialized
I (350) MovecallMojiESP32S3: Audio codec initialized successfully
I (350) Application: WiFi board detected, setting opus encoder complexity to 3
I (360) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
I (360) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:1
I (370) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
I (380) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:1
I (400) Adev_Codec: Open codec device OK
I (400) AudioCodec: Set input enable to true
I (400) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
I (400) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:1
I (410) Adev_Codec: Open codec device OK
I (420) AudioCodec: Set output enable to true
I (420) AudioCodec: Audio codec started
I (420) Application: Device startup completed, playing boot sound
I (420) Application: STATE: configuring
I (430) DnsServer: Starting DNS server
I (430) pp: pp rom version: e7ae62f
I (430) net80211: net80211 rom version: e7ae62f
I (450) wifi:wifi driver task: 3fcdcd90, prio:23, stack:6656, core=0
I (450) wifi:wifi firmware version: bea31f3
I (450) wifi:wifi certification version: v7.0
I (450) wifi:config NVS flash: enabled
I (450) wifi:config nano formatting: disabled
I (460) wifi:Init data frame dynamic rx buffer num: 32
I (460) wifi:Init dynamic rx mgmt buffer num: 5
I (470) wifi:Init management short buffer num: 32
I (470) wifi:Init static tx buffer num: 16
I (480) wifi:Init tx cache buffer num: 32
I (480) wifi:Init static tx FG buffer num: 2
I (480) wifi:Init static rx buffer size: 1600
I (490) wifi:Init static rx buffer num: 16
I (490) wifi:Init dynamic rx buffer num: 32
I (500) wifi_init: rx ba win: 16
I (500) wifi_init: accept mbox: 6
I (500) wifi_init: tcpip mbox: 32
I (500) wifi_init: udp mbox: 6
I (510) wifi_init: tcp mbox: 6
I (510) wifi_init: tcp tx win: 5760
I (510) wifi_init: tcp rx win: 5760
I (520) wifi_init: tcp mss: 1440
I (520) wifi_init: WiFi/LWIP prefer SPIRAM
I (530) wifi:Set ps type: 0, coexist: 0

I (530) phy_init: phy_version 701,f4f1da3a,Mar  3 2025,15:50:10
I (570) wifi:mode : sta (98:a3:16:c1:df:80) + softAP (98:a3:16:c1:df:81)
I (570) wifi:enable tsf
I (570) wifi:Total power save buffer number: 8
I (570) wifi:Init max length of beacon: 752/752
I (580) wifi:Init max length of beacon: 752/752
I (580) WifiConfigurationAp: Access Point started with SSID Airhub-DF81
I (580) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (600) WifiConfigurationAp: Web server started
W (600) Application: Alert 配网模式: 手机连接热点 Airhub-DF81，浏览器访问 http://192.168.4.1

 []
I (610) WifiBoard: Free internal: 76527 minimal internal: 72443
I (1290) MovecallMojiESP32S3: Battery ADC: 1421, Average: 1421, Level: 0%
I (1310) MovecallMojiESP32S3: 开始延迟初始化触摸板...
I (1310) MovecallMojiESP32S3: 初始化触摸板...
I (1310) MovecallMojiESP32S3: 配置触摸传感器...
I (1310) MovecallMojiESP32S3: 校准触摸阈值...
I (1310) MovecallMojiESP32S3: 触摸板 0 初始原始值: 20504
I (1320) MovecallMojiESP32S3: 触摸板 0 设置固定阈值: 5000
I (1330) MovecallMojiESP32S3: 触摸板 1 初始原始值: 20977
I (1330) MovecallMojiESP32S3: 触摸板 1 设置固定阈值: 5000
I (1340) MovecallMojiESP32S3: 触摸板 2 初始原始值: 20422
I (1340) MovecallMojiESP32S3: 触摸板 2 设置固定阈值: 5000
I (1350) MovecallMojiESP32S3: 触摸板 3 初始原始值: 15889
I (1350) MovecallMojiESP32S3: 触摸板 3 设置固定阈值: 5000
I (1360) MovecallMojiESP32S3: 启用触摸传感器滤波器
I (1370) MovecallMojiESP32S3: 触摸阈值校准完成，使用固定阈值: 5000
I (1370) MovecallMojiESP32S3: 创建触摸事件队列...
I (1380) MovecallMojiESP32S3: 注册触摸中断处理程序...
I (1380) MovecallMojiESP32S3: 创建触摸事件任务...
I (1390) MovecallMojiESP32S3: 触摸事件任务启动
I (1390) MovecallMojiESP32S3: 所有触摸状态已重置
I (1390) MovecallMojiESP32S3: 触摸事件任务开始主循环
I (1400) MovecallMojiESP32S3: 设置触摸监控...
I (1410) MovecallMojiESP32S3: 触摸板初始化完成
I (2290) MovecallMojiESP32S3: Battery ADC: 1789, Average: 1605, Level: 0%
I (3290) MovecallMojiESP32S3: Battery ADC: 1526, Average: 1578, Level: 0%
I (10610) WifiBoard: Free internal: 82175 minimal internal: 68343
I (17110) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<0,0>, prof:1, snd_ch_cfg:0x0
I (17110) wifi:station: 42:11:28:b6:60:39 join, AID=1, bgn, 40U
I (17110) WifiConfigurationAp: Station 42:11:28:b6:60:39 joined, AID=1
I (17190) wifi:<ba-add>idx:2 (ifx:1, 42:11:28:b6:60:39), tid:0, ssn:0, winSize:64
I (17240) esp_netif_lwip: DHCP server assigned IP to a client, IP is: 192.168.4.2
I (17410) DnsServer: Sending DNS response to 192.168.4.1
W (17450) httpd_uri: httpd_uri: URI '/generate_204_894ca791-559f-49d9-9487-9124ce5ae135' not found
W (17450) httpd_txrx: httpd_resp_send_err: 404 Not Found - Nothing matches the given URI
I (17470) DnsServer: Sending DNS response to 192.168.4.1
I (17590) wifi:station: 42:11:28:b6:60:39 leave, AID = 1, reason = 3, bss_flags is 33786979, bss:0x3c23c554
I (17590) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<0,0>, prof:1, snd_ch_cfg:0x0
I (17600) wifi:<ba-del>idx:2, tid:0
I (17600) WifiConfigurationAp: Station 42:11:28:b6:60:39 left, AID=1
I (20610) WifiBoard: Free internal: 82235 minimal internal: 68343
I (21940) MovecallMojiESP32S3: BOOT button clicked
I (21940) MovecallMojiESP32S3: 触摸任务已解锁，可以接收新的触摸
I (21940) MovecallMojiESP32S3: 当前设备状态: 2
I (21940) MovecallMojiESP32S3: 所有触摸状态已重置
I (21940) MovecallMojiESP32S3: 唤醒设备
I (26020) MovecallMojiESP32S3: BOOT button clicked
I (26020) MovecallMojiESP32S3: 当前设备状态: 2
I (26020) MovecallMojiESP32S3: 触摸任务已解锁，可以接收新的触摸
I (26020) MovecallMojiESP32S3: 唤醒设备
I (26020) MovecallMojiESP32S3: 所有触摸状态已重置
I (26800) MovecallMojiESP32S3: BOOT button clicked
I (26800) MovecallMojiESP32S3: 当前设备状态: 2
I (26800) MovecallMojiESP32S3: 触摸任务已解锁，可以接收新的触摸
I (26800) MovecallMojiESP32S3: 唤醒设备
I (26810) MovecallMojiESP32S3: 所有触摸状态已重置
I (27380) MovecallMojiESP32S3: BOOT button clicked
I (27380) MovecallMojiESP32S3: 当前设备状态: 2
I (27380) MovecallMojiESP32S3: 触摸任务已解锁，可以接收新的触摸
I (27380) MovecallMojiESP32S3: 唤醒设备
I (27380) MovecallMojiESP32S3: 所有触摸状态已重置
I (27700) MovecallMojiESP32S3: BOOT button clicked too frequently, ignoring this click
I (30610) WifiBoard: Free internal: 82235 minimal internal: 68343
I (40610) WifiBoard: Free internal: 82235 minimal internal: 68343
I (50610) WifiBoard: Free internal: 82235 minimal internal: 68343
I (60610) WifiBoard: Free internal: 82047 minimal internal: 68343
I (63290) MovecallMojiESP32S3: Battery ADC: 1436, Average: 1583, Level: 0%
I (70610) WifiBoard: Free internal: 82235 minimal internal: 68343
I (76400) MovecallMojiESP32S3: BOOT button clicked
I (76400) MovecallMojiESP32S3: 触摸任务已解锁，可以接收新的触摸
I (76400) MovecallMojiESP32S3: 当前设备状态: 2
I (76400) MovecallMojiESP32S3: 所有触摸状态已重置
I (76410) MovecallMojiESP32S3: 唤醒设备
I (77780) MovecallMojiESP32S3: BOOT button clicked
I (77780) MovecallMojiESP32S3: 当前设备状态: 2
I (77780) MovecallMojiESP32S3: 触摸任务已解锁，可以接收新的触摸
I (77780) MovecallMojiESP32S3: 唤醒设备
I (77780) MovecallMojiESP32S3: 所有触摸状态已重置
I (80610) WifiBoard: Free internal: 82047 minimal internal: 68343
I (88390) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, sta:<0,0>, prof:1, snd_ch_cfg:0x0
I (88390) wifi:station: 82:9e:e0:bd:8a:73 join, AID=1, bgn, 40U
I (88400) WifiConfigurationAp: Station 82:9e:e0:bd:8a:73 joined, AID=1
I (88420) wifi:<ba-add>idx:2 (ifx:1, 82:9e:e0:bd:8a:73), tid:0, ssn:0, winSize:64
I (88660) esp_netif_lwip: DHCP server assigned IP to a client, IP is: 192.168.4.3
I (88940) DnsServer: Sending DNS response to 192.168.4.1
I (89040) DnsServer: Sending DNS response to 192.168.4.1
W (89050) httpd_uri: httpd_uri: URI '/generate_204_75ee3b15-1afe-4671-8783-e2597ae9a1ec' not found
W (89050) httpd_txrx: httpd_resp_send_err: 404 Not Found - Nothing matches the given URI
I (89080) DnsServer: Sending DNS response to 192.168.4.1
I (89140) DnsServer: Sending DNS response to 192.168.4.1
I (89200) DnsServer: Sending DNS response to 192.168.4.1
I (90000) DnsServer: Sending DNS response to 192.168.4.1
I (90220) DnsServer: Sending DNS response to 192.168.4.1
I (90250) DnsServer: Sending DNS response to 192.168.4.1
I (90270) DnsServer: Sending DNS response to 192.168.4.1
I (90290) DnsServer: Sending DNS response to 192.168.4.1
I (90440) DnsServer: Sending DNS response to 192.168.4.1
I (90440) DnsServer: Sending DNS response to 192.168.4.1
I (90440) DnsServer: Sending DNS response to 192.168.4.1
I (90450) DnsServer: Sending DNS response to 192.168.4.1
I (90450) DnsServer: Sending DNS response to 192.168.4.1
I (90610) WifiBoard: Free internal: 82195 minimal internal: 68343
I (90890) DnsServer: Sending DNS response to 192.168.4.1
I (91040) DnsServer: Sending DNS response to 192.168.4.1
I (91330) wifi:<ba-add>idx:3 (ifx:1, 82:9e:e0:bd:8a:73), tid:6, ssn:0, winSize:64
I (91640) DnsServer: Sending DNS response to 192.168.4.1
I (91780) DnsServer: Sending DNS response to 192.168.4.1
I (91780) DnsServer: Sending DNS response to 192.168.4.1
I (92630) DnsServer: Sending DNS response to 192.168.4.1
I (92650) WifiConfigurationAp: SSID: ZCWH, RSSI: -26, Authmode: 4
I (92650) WifiConfigurationAp: SSID: airhub, RSSI: -32, Authmode: 3
I (92650) WifiConfigurationAp: SSID: aWiFi, RSSI: -35, Authmode: 0
I (92650) WifiConfigurationAp: SSID: ChinaNet-A9Gs, RSSI: -37, Authmode: 4
I (92660) WifiConfigurationAp: SSID: -C311, RSSI: -42, Authmode: 4
I (92670) WifiConfigurationAp: SSID: liang, RSSI: -48, Authmode: 4
I (92670) WifiConfigurationAp: SSID: welcome to miao, RSSI: -65, Authmode: 4
I (92680) WifiConfigurationAp: SSID: 建隆, RSSI: -67, Authmode: 4
I (92680) WifiConfigurationAp: SSID: 建隆, RSSI: -69, Authmode: 4
I (92690) WifiConfigurationAp: SSID: On79, RSSI: -71, Authmode: 4
I (92700) WifiConfigurationAp: SSID: 建隆, RSSI: -72, Authmode: 4
I (92700) WifiConfigurationAp: SSID: WiFijian, RSSI: -73, Authmode: 4
I (92710) WifiConfigurationAp: SSID: CandyTime_B35CF6, RSSI: -73, Authmode: 3
I (92710) WifiConfigurationAp: SSID: EZVIZ_BC4318972, RSSI: -75, Authmode: 3
I (92720) WifiConfigurationAp: SSID: Xiaomi_2946, RSSI: -76, Authmode: 4
I (92730) WifiConfigurationAp: SSID: DIRECT-61-HP +, RSSI: -77, Authmode: 3
I (92730) WifiConfigurationAp: SSID: 工作2.4, RSSI: -78, Authmode: 7
I (92740) WifiConfigurationAp: SSID: 工作2.4, RSSI: -82, Authmode: 7
W (92750) httpd_uri: httpd_uri: URI '/favicon.ico' not found
W (92750) httpd_txrx: httpd_resp_send_err: 404 Not Found - Nothing matches the given URI
I (93020) DnsServer: Sending DNS response to 192.168.4.1
I (93020) DnsServer: Sending DNS response to 192.168.4.1
I (93490) DnsServer: Sending DNS response to 192.168.4.1
I (93520) DnsServer: Sending DNS response to 192.168.4.1
I (93520) DnsServer: Sending DNS response to 192.168.4.1
I (93520) DnsServer: Sending DNS response to 192.168.4.1
W (93680) httpd_uri: httpd_uri: URI '/mmtls/47908f7f' not found
W (93690) httpd_txrx: httpd_resp_send_err: 404 Not Found - Nothing matches the given URI
I (93710) DnsServer: Sending DNS response to 192.168.4.1
I (93710) DnsServer: Sending DNS response to 192.168.4.1
I (93730) DnsServer: Sending DNS response to 192.168.4.1
W (93750) httpd_uri: httpd_uri: URI '/mmtls/47908f7f' not found
W (93750) httpd_txrx: httpd_resp_send_err: 404 Not Found - Nothing matches the given URI
W (93750) httpd_parse: parse_block: incomplete (0/128) with parser error = 16
W (93760) httpd_txrx: httpd_resp_send_err: 400 Bad Request - Bad request syntax
I (94330) DnsServer: Sending DNS response to 192.168.4.1
I (94340) DnsServer: Sending DNS response to 192.168.4.1
W (95410) httpd_uri: httpd_uri: URI '/mmtls/23375888' not found
W (95410) httpd_txrx: httpd_resp_send_err: 404 Not Found - Nothing matches the given URI
I (96050) DnsServer: Sending DNS response to 192.168.4.1
W (96810) wifi:Password length matches WPA2 standards, authmode threshold changes from OPEN to WPA2
I (96820) WifiConfigurationAp: Connecting to WiFi airhub
I (97070) wifi:[ADDBA]RX DELBA, reason:1, delete tid:0, initiator:1(originator)
I (97070) wifi:<ba-del>idx:2, tid:0
I (97080) wifi:[ADDBA]RX DELBA, reason:1, delete tid:6, initiator:1(originator)
I (97080) wifi:<ba-del>idx:3, tid:6
I (97570) wifi:<ba-add>idx:2 (ifx:1, 82:9e:e0:bd:8a:73), tid:0, ssn:371, winSize:64
I (99640) DnsServer: Sending DNS response to 192.168.4.1
I (99740) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (99740) wifi:state: init -> auth (0xb0)
I (99760) wifi:state: auth -> assoc (0x0)
I (99770) wifi:state: assoc -> run (0x10)
I (99800) wifi:connected with airhub, aid = 4, channel 1, BW20, bssid = 70:2a:d7:85:bc:eb
I (99800) wifi:security: WPA2-PSK, phy: bgn, rssi: -33
I (99810) wifi:pm start, type: 0

I (99810) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (99810) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (99820) WifiConfigurationAp: Connected to WiFi airhub
I (99830) wifi:state: run -> init (0x0)
I (99840) wifi:pm stop, total sleep time: 0 us / 23918 us

I (99840) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (99840) WifiConfigurationAp: Save SSID airhub 6
I (100270) DnsServer: Sending DNS response to 192.168.4.1
W (100290) httpd_uri: httpd_uri: URI '/mmtls/48588809' not found
W (100300) httpd_txrx: httpd_resp_send_err: 404 Not Found - Nothing matches the given URI
I (100610) WifiBoard: Free internal: 81391 minimal internal: 68343
I (101630) DnsServer: Sending DNS response to 192.168.4.1
I (101640) DnsServer: Sending DNS response to 192.168.4.1
I (101790) DnsServer: Sending DNS response to 192.168.4.1
I (101800) DnsServer: Sending DNS response to 192.168.4.1
I (101950) DnsServer: Sending DNS response to 192.168.4.1
W (102640) httpd_uri: httpd_uri: URI '/mmtls/63faaef8' not found
W (102640) httpd_txrx: httpd_resp_send_err: 404 Not Found - Nothing matches the given URI
I (103030) WifiConfigurationAp: Rebooting...
I (103430) wifi:station: 82:9e:e0:bd:8a:73 leave, AID = 1, reason = 2, bss_flags is 33786979, bss:0x3c23c528
I (103430) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (103430) wifi:<ba-del>idx:2, tid:0
I (103440) WifiConfigurationAp: Station 82:9e:e0:bd:8a:73 left, AID=1
I (105030) wifi:flush txq
I (105030) wifi:stop sw txq
I (105030) wifi:lmac stop hw txq
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x1c (SPI_FAST_FLASH_BOOT)
Saved PC:0x40379e9d
--- 0x40379e9d: esp_restart_noos at /Users/rdzleo/esp/esp-idf/v5.4.2/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:162
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x56c
load:0x403c8700,len:0x4
load:0x403c8704,len:0xc30
load:0x403cb700,len:0x2e2c
entry 0x403c890c
I (35) octal_psram: vendor id    : 0x0d (AP)
I (35) octal_psram: dev id       : 0x02 (generation 3)
I (36) octal_psram: density      : 0x03 (64 Mbit)
I (37) octal_psram: good-die     : 0x01 (Pass)
I (41) octal_psram: Latency      : 0x01 (Fixed)
I (46) octal_psram: VCC          : 0x01 (3V)
I (50) octal_psram: SRF          : 0x01 (Fast Refresh)
I (54) octal_psram: BurstType    : 0x01 (Hybrid Wrap)
I (59) octal_psram: BurstLen     : 0x01 (32 Byte)
I (64) octal_psram: Readlatency  : 0x02 (10 cycles@Fixed)
I (69) octal_psram: DriveStrength: 0x00 (1/1)
I (74) MSPI Timing: PSRAM timing tuning index: 5
I (77) esp_psram: Found 8MB PSRAM device
I (81) esp_psram: Speed: 80MHz
I (84) cpu_start: Multicore app
I (98) cpu_start: Pro cpu start user code
I (98) cpu_start: cpu freq: 240000000 Hz
I (98) app_init: Application information:
I (99) app_init: Project name:     xiaozhi
I (102) app_init: App version:      1.7.2
I (106) app_init: Compile time:     Aug 13 2025 14:11:06
I (111) app_init: ELF file SHA256:  70cab7f6a...
I (115) app_init: ESP-IDF:          v5.4.2-dirty
I (119) efuse_init: Min chip rev:     v0.0
I (123) efuse_init: Max chip rev:     v0.99 
I (127) efuse_init: Chip rev:         v0.2
I (131) heap_init: Initializing. RAM available for dynamic allocation:
I (137) heap_init: At 3FCAD230 len 0003C4E0 (241 KiB): RAM
I (142) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (148) heap_init: At 600FE01C len 00001FBC (7 KiB): RTCRAM
I (153) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator
I (160) spi_flash: detected chip: generic
I (163) spi_flash: flash io: qio
I (167) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (172) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (179) main_task: Started on CPU0
I (189) esp_psram: Reserving pool of 64K of internal memory for DMA/internal allocations
I (189) main_task: Calling app_main()
I (209) BackgroundTask: background_task started
I (209) Board: UUID=6830e80c-5c18-40e4-a04e-1ab889e80ef1 SKU=movecall-moji-esp32s3
I (209) button: IoT Button Version: 3.5.0
I (219) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (229) button: IoT Button Version: 3.5.0
I (229) gpio: GPIO[46]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (239) button: IoT Button Version: 3.5.0
I (239) gpio: GPIO[45]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (249) button: IoT Button Version: 3.5.0
I (249) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (259) MovecallMojiESP32S3: Initializing buttons...
I (269) MovecallMojiESP32S3: Boot button initialized on GPIO0
I (269) MovecallMojiESP32S3: Volume up button initialized on GPIO46
I (279) MovecallMojiESP32S3: Volume down button initialized on GPIO45
I (279) MovecallMojiESP32S3: Story button initialized on GPIO18
I (289) MovecallMojiESP32S3: All buttons initialized successfully
I (299) MovecallMojiESP32S3: Initializing battery monitor...
I (299) MovecallMojiESP32S3: Battery monitor initialized on GPIO10
I (309) MovecallMojiESP32S3: 在构造函数完成后调用触摸初始化
I (309) Application: STATE: starting
I (319) MovecallMojiESP32S3: Initializing audio codec...
I (319) MovecallMojiESP32S3: Initializing I2C bus for audio codec...
I (329) MovecallMojiESP32S3: Creating Es8311AudioCodec instance...
I (339) Es8311AudioCodec: Duplex channels created
I (339) ES8311: Work in Slave mode
I (349) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (349) Es8311AudioCodec: Es8311AudioCodec initialized
I (349) MovecallMojiESP32S3: Audio codec initialized successfully
I (359) Application: WiFi board detected, setting opus encoder complexity to 3
I (369) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
I (369) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:1
I (379) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
I (379) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:1
I (409) Adev_Codec: Open codec device OK
I (409) AudioCodec: Set input enable to true
I (409) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
I (409) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:1
I (419) Adev_Codec: Open codec device OK
I (429) AudioCodec: Set output enable to true
I (429) AudioCodec: Audio codec started
I (429) Application: Device startup completed, playing boot sound
I (429) pp: pp rom version: e7ae62f
I (429) net80211: net80211 rom version: e7ae62f
I (449) wifi:wifi driver task: 3fcdbbf4, prio:23, stack:6656, core=0
I (449) wifi:wifi firmware version: bea31f3
I (449) wifi:wifi certification version: v7.0
I (449) wifi:config NVS flash: disabled
I (459) wifi:config nano formatting: disabled
I (459) wifi:Init data frame dynamic rx buffer num: 32
I (459) wifi:Init dynamic rx mgmt buffer num: 5
I (469) wifi:Init management short buffer num: 32
I (469) wifi:Init static tx buffer num: 16
I (479) wifi:Init tx cache buffer num: 32
I (479) wifi:Init static tx FG buffer num: 2
I (479) wifi:Init static rx buffer size: 1600
I (489) wifi:Init static rx buffer num: 16
I (489) wifi:Init dynamic rx buffer num: 32
I (499) wifi_init: rx ba win: 16
I (499) wifi_init: accept mbox: 6
I (499) wifi_init: tcpip mbox: 32
I (509) wifi_init: udp mbox: 6
I (509) wifi_init: tcp mbox: 6
I (509) wifi_init: tcp tx win: 5760
I (509) wifi_init: tcp rx win: 5760
I (519) wifi_init: tcp mss: 1440
I (519) wifi_init: WiFi/LWIP prefer SPIRAM
I (519) phy_init: phy_version 701,f4f1da3a,Mar  3 2025,15:50:10
I (559) phy_init: Saving new calibration data due to checksum failure or outdated calibration data, mode(0)
I (569) wifi:mode : sta (98:a3:16:c1:df:80)
I (579) wifi:enable tsf
I (1299) MovecallMojiESP32S3: Battery ADC: 1321, Average: 1321, Level: 0%
I (1309) MovecallMojiESP32S3: 开始延迟初始化触摸板...
I (1309) MovecallMojiESP32S3: 初始化触摸板...
I (1309) MovecallMojiESP32S3: 配置触摸传感器...
I (1309) MovecallMojiESP32S3: 校准触摸阈值...
I (1319) MovecallMojiESP32S3: 触摸板 0 初始原始值: 20503
I (1319) MovecallMojiESP32S3: 触摸板 0 设置固定阈值: 5000
I (1329) MovecallMojiESP32S3: 触摸板 1 初始原始值: 20965
I (1329) MovecallMojiESP32S3: 触摸板 1 设置固定阈值: 5000
I (1339) MovecallMojiESP32S3: 触摸板 2 初始原始值: 111889
I (1349) MovecallMojiESP32S3: 触摸板 2 设置固定阈值: 5000
I (1349) MovecallMojiESP32S3: 触摸板 3 初始原始值: 15850
I (1359) MovecallMojiESP32S3: 触摸板 3 设置固定阈值: 5000
I (1359) MovecallMojiESP32S3: 启用触摸传感器滤波器
I (1369) MovecallMojiESP32S3: 触摸阈值校准完成，使用固定阈值: 5000
I (1379) MovecallMojiESP32S3: 创建触摸事件队列...
I (1379) MovecallMojiESP32S3: 注册触摸中断处理程序...
I (1389) MovecallMojiESP32S3: 创建触摸事件任务...
I (1389) MovecallMojiESP32S3: 触摸事件任务启动
I (1389) MovecallMojiESP32S3: 所有触摸状态已重置
I (1399) MovecallMojiESP32S3: 触摸事件任务开始主循环
I (1409) MovecallMojiESP32S3: 设置触摸监控...
I (1409) MovecallMojiESP32S3: 触摸板初始化完成
I (2299) MovecallMojiESP32S3: Battery ADC: 1277, Average: 1299, Level: 0%
I (2979) wifi: Found AP: airhub, BSSID: 70:2a:d7:85:bc:eb, RSSI: -30, Channel: 1, Authmode: 3
I (2989) WifiBoard: Starting WiFi connection, playing network connection sound
W (2989) wifi:Password length matches WPA2 standards, authmode threshold changes from OPEN to WPA2
I (3079) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (3089) wifi:state: init -> auth (0xb0)
I (3099) wifi:state: auth -> assoc (0x0)
I (3109) wifi:state: assoc -> run (0x10)
I (3139) wifi:connected with airhub, aid = 4, channel 1, BW20, bssid = 70:2a:d7:85:bc:eb
I (3139) wifi:security: WPA2-PSK, phy: bgn, rssi: -40
I (3139) wifi:pm start, type: 1

I (3139) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (3149) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (3159) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (3169) wifi:<ba-add>idx:0 (ifx:0, 70:2a:d7:85:bc:eb), tid:0, ssn:0, winSize:64
I (3299) MovecallMojiESP32S3: Battery ADC: 1289, Average: 1295, Level: 0%
I (5729) wifi: Got IP: 192.168.124.32
I (5729) esp_netif_handlers: sta ip: 192.168.124.32, mask: 255.255.255.0, gw: 192.168.124.1
I (5729) MODEL_LOADER: The storage free size is 22400 KB
I (5729) MODEL_LOADER: The partition size is 3072 KB
I (5739) MODEL_LOADER: Successfully load srmodels
I (5739) AudioProcessor: Non-realtime mode: Standard VAD enabled
I (5749) AudioProcessor: AFE configuration: AEC=disabled, VAD=enabled, core=1, priority=5
I (5759) AFE: AFE Version: (1MIC_V250121)
I (5759) AFE: Input PCM Config: total 1 channels(1 microphone, 0 playback), sample rate:16000
I (5769) AFE: AFE Pipeline: [input] -> |NS(WebRTC)| -> |VAD(WebRTC)| -> [output]
I (5769) AudioProcessor: Audio communication task started, feed size: 160 fetch size: 512
I (5779) Application: 🔧 Using simple VAD for basic voice detection - complex echo-aware VAD disabled
I (5789) AudioProcessor: Echo-aware VAD params updated: snr_threshold=0.30, min_silence=200ms, cooldown=500ms
W (5799) AFE_CONFIG: wakenet model not found. please load wakenet model...
I (5809) AFE: AFE Version: (1MIC_V250121)
I (5809) AFE: Input PCM Config: total 1 channels(1 microphone, 0 playback), sample rate:16000
I (5819) AFE: AFE Pipeline: [input] -> |VAD(WebRTC)| -> [output]
I (5819) WakeWordDetect: Audio detection task started, feed size: 512 fetch size: 512
I (5829) Application: STATE: idle
I (6649) Application: Entering idle state, playing standby sound
I (6659) main_task: Returned from app_main()
I (16659) Application: Free internal: 68551 minimal internal: 65459
I (18459) MovecallMojiESP32S3: BOOT button clicked
I (18459) MovecallMojiESP32S3: 触摸任务已解锁，可以接收新的触摸
I (18459) MovecallMojiESP32S3: 当前设备状态: 3
I (18469) MovecallMojiESP32S3: 从待命状态切换到聆听状态
I (18459) MovecallMojiESP32S3: 所有触摸状态已重置
I (18469) MovecallMojiESP32S3: 强制重新初始化音频输出
I (18479) I2S_IF: Pending out channel for in channel running
I (18489) AudioCodec: Set output enable to false
I (18539) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
I (18539) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:1
I (18549) Adev_Codec: Open codec device OK
I (18559) AudioCodec: Set output enable to true
I (18559) MovecallMojiESP32S3: 播放提示音：卡卡在呢
I (18559) MovecallMojiESP32S3: 等待音频播放完成...
I (19199) MovecallMojiESP32S3: 音频队列已清空，等待硬件输出完成...
I (19699) MovecallMojiESP32S3: 音频播放完成
I (19699) Application: STATE: connecting
I (19739) Application: Attempting to open audio channel
I (19739) WebSocket: Connecting to wss://airlab-xiaozhi.airlabs.art:443/xiaozhi/v1/
I (19869) wifi:<ba-add>idx:1 (ifx:0, 70:2a:d7:85:bc:eb), tid:5, ssn:0, winSize:64
I (19999) esp-x509-crt-bundle: Certificate validated
I (20869) Application: 🟢 音频通道已打开
I (20869) Application: 🔄 禁用电源管理模式
I (20869) wifi:Set ps type: 0, coexist: 0

I (20879) Application: 🟢 音频通道初始化完成
I (20879) Application: Setting listening mode to 0
I (20879) Application: STATE: listening
I (23339) Application: Simple VAD state change: speaking=true, device_state=5
I (23519) Application: Simple VAD state change: speaking=false, device_state=5
I (24099) Application: Simple VAD state change: speaking=true, device_state=5
I (24199) Application: Simple VAD state change: speaking=false, device_state=5
I (25339) Application: Simple VAD state change: speaking=true, device_state=5
I (25419) MovecallMojiESP32S3: BOOT button clicked
I (25419) MovecallMojiESP32S3: 触摸任务已解锁，可以接收新的触摸
I (25419) MovecallMojiESP32S3: 当前设备状态: 5
I (25419) MovecallMojiESP32S3: 所有触摸状态已重置
I (25419) MovecallMojiESP32S3: 🔵 BOOT button pressed in Listening state - switching to idle
I (25439) MovecallMojiESP32S3: 从聆听状态切换到待命状态
I (25459) WS: Websocket disconnected
I (25459) WS: Audio processor stopped immediately
I (25459) Application: 🔴 音频通道关闭，开始清理任务
I (25469) Application: 🔴 后台任务完成
I (25499) WS: 🔧 WebSocket已安全删除
I (25499) Application: 🔧 设备不在idle状态，跳过电源管理设置
I (25499) Application: 🔄 设置设备为空闲状态
I (25499) Application: STATE: idle
I (25499) Application: Entering idle state, playing standby sound
I (34659) Application: Free internal: 70803 minimal internal: 57567