您尚未登录。

楼主 #1 2019-04-02 17:51:14

xieshang
会员
注册时间: 2019-03-27
已发帖子: 3
积分: 3

ESP32-LyraT 4.3运行DuerOS无法连接问题

1、根据官方README看到
    1.1、make menuconfig 确认硬件为4.3;
    1.2、设置WIFI信息为手机AP;
    1.3、设置烧写串口COM6;
    1.4、将DuerOS下载的Profile包中,将01号文件修改为duer_profile,覆盖ADF_PATH/components/dueros_service/文件夹中的原文件。
    1.5、执行make flash monitor并将开发板设置到烧写模式,烧写完成后复位开发板。
2、log打印信息如下:

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3f (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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:5856
ho 0 tail 12 room 4
load:0x40078000,len:7892
load:0x40080000,len:5948
0x40080000: _WindowOverflow4 at E:/msys32/home/xsc/esp/esp-adf/esp-idf/components/freertos/xtensa_vectors.S:1685

entry 0x40080320
0x40080320: _KernelExceptionVector at ??:?

I (31) boot: ESP-IDF v3.1.1-6-g2aa9a2118-dirty 2nd stage bootloader
I (31) boot: compile time 17:41:26
I (33) boot: Enabling RNG early entropy source...
I (37) boot: SPI Speed      : 80MHz
I (41) boot: SPI Mode       : DIO
I (45) boot: SPI Flash Size : 4MB
I (49) boot: Partition Table:
I (53) boot: ## Label            Usage          Type ST Offset   Length
I (60) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (75) boot:  2 factory          factory app      00 00 00010000 00300000
I (83) boot: End of partition table
I (87) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x65384 (414596) map
I (215) esp_image: segment 1: paddr=0x000753ac vaddr=0x3ffb0000 size=0x04020 ( 16416) load
I (220) esp_image: segment 2: paddr=0x000793d4 vaddr=0x3ffb4020 size=0x00000 (     0) load
I (222) esp_image: segment 3: paddr=0x000793dc vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at E:/msys32/home/xsc/esp/esp-adf/esp-idf/components/freertos/xtensa_vectors.S:1685

I (231) esp_image: segment 4: paddr=0x000797e4 vaddr=0x40080400 size=0x0682c ( 26668) load
I (248) esp_image: segment 5: paddr=0x00080018 vaddr=0x400d0018 size=0x12e15c (1237340) map
0x400d0018: _flash_cache_start at ??:?

I (604) esp_image: segment 6: paddr=0x001ae17c vaddr=0x40086c2c size=0x113e0 ( 70624) load
0x40086c2c: ieee80211_output_process at ??:?

I (628) esp_image: segment 7: paddr=0x001bf564 vaddr=0x400c0000 size=0x00000 (     0) load
I (628) esp_image: segment 8: paddr=0x001bf56c vaddr=0x50000000 size=0x00000 (     0) load
I (648) boot: Loaded app from partition at offset 0x10000
I (648) boot: Disabling RNG early entropy source...
I (649) spiram: SPI RAM mode: flash 80m sram 80m
I (654) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (661) cpu_start: Pro cpu up.
I (665) cpu_start: Starting app cpu, entry point is 0x40081508
0x40081508: call_start_cpu1 at E:/msys32/home/xsc/esp/esp-adf/esp-idf/components/esp32/cpu_start.c:231

I (0) cpu_start: App cpu up.
I (1134) spiram: SPI SRAM memory test OK
I (1135) heap_init: Initializing. RAM available for dynamic allocation:
I (1135) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1141) heap_init: At 3FFBB658 len 000249A8 (146 KiB): DRAM
I (1147) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1154) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1160) heap_init: At 4009800C len 00007FF4 (31 KiB): IRAM
I (1166) cpu_start: Pro cpu start user code
I (1171) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (1179) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (82) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (163) DUEROS: ADF version is v1.0-52-g627f1b5-dirty
I (165) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (168) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
W (203) PERIPH_TOUCH: _touch_init
I (203) SDCARD: Trying to mount with base path=/sdcard
I (254) SDCARD: CID name SA08G!

I (477) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
E (477) gpio: gpio_install_isr_service(394): GPIO isr service already installed
E (484) DUEROS: Func:dueros_task, Line:150, Malloc failed
I (488) wifi: wifi driver task: 3ffc3274, prio:23, stack:3584, core=0
I (494) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (497) wifi: wifi firmware version: b2c9a19
I (506) ES8388_DRIVER: init,out:02, in:00
I (510) wifi: config NVS flash: enabled
I (369,tid:3ffbe450) I (517) wifi: config nano formating: disabled
I (519) AUDIO_HAL: Codec mode is 3, Ctrl:1
I (523) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (532) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (538) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (545) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (566) wifi: Init dynamic tx buffer num: 32
I (566) wifi: Init data frame dynamic rx buffer num: 32
I (566) I2S: APLL: Req RATE: 44100, real rate: 43945.238, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11249981.000, SCLK: 140
6247.625000, diva: 1, divb: 0
I (570) wifi: Init management frame dynamic rx buffer num: 32
I (585) AUDIO_PIPELINE: audio_pipeline_link:0x3f8078e8, i2s, 0x3f80823c
I (589) wifi: Init static tx buffer num: 16
I (597) AUDIO_PIPELINE: audio_pipeline_link:0x3f80805c, filter, 0x3f80a27c
I (601) wifi: Init static rx buffer size: 1600
I (609) AUDIO_ELEMENT: [i2s] Element task created
I (612) wifi: Init static rx buffer num: 10
lightduer_session.c(  44):random = 75933
I (622) wifi: Init dynamic rx buffer num: 32
I (625) AUDIO_ELEMENT: [filter] Element task created
I (635) AUDIO_ELEMENT: [raw] Element task created
I (640) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:303, MEM Total:4299092 Bytes, Inter:190052 Bytes, Dram:157332
Bytes

I (652) AUDIO_PIPELINE: Pipeline started
I (657) DUEROS: Recorder has been created
I (653) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1
I (662) REC_ENG: ESP SR Engine, chunksize is 480, FRAME_SIZE:960, frequency:16000
E (676) REC_ENG: Recorder Engine Running ..., vad_window=9, wakeup=10000 ms, vad_off=800 ms, threshold=90 ms, sensit
ivity=0
I (668) I2S_STREAM: AUDIO_SI (691TREAM_READ) phy: phy_veER,Rate:48rsion: 4000, 000,ch:2?[b6198fa, Sep 0m
?[0;32 3 2018, 15:1mI (688) R1:06, 0, 0?[0EC_ENm
G: state idle
I (702) I2S: APLL: Req RATE: 48000, real rate: 47999.961, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 12287990.000, SCLK: 153
5998.750000, diva: 1, divb: 0
I (703) wifi: mode : sta (24:0a:c4:9c:fc:50)
W (503,tid:3ffbe450) lightduer_events.c(  80):[lightduer_ca] <== event end = 401891C0, timespent = 134
I (704) AUDIO_ELEMENT: [filter] AEL_MSG_CMD_RESUME,state:1
I (737) RSP_FILTER: sample rate of source data : 48000, channel of source data : 2, sample rate of destination data
: 16000, channel of destination data : 1
I (1208) wifi: n:4 0, o:1 0, ap:255 255, sta:4 0, prof:1
I (1893) wifi: state: init -> auth (b0)
I (1943) wifi: state: auth -> assoc (0)
I (1956) wifi: state: assoc -> run (10)
I (1994) wifi: connected with XSC_mob, channel 4
I (1994) wifi: pm start, type: 1

I (2669) event: sta ip: 192.168.43.131, mask: 255.255.255.0, gw: 192.168.43.1
I (2670) DUEROS: PERIPH_WIFI_CONNECTED [276]
E (2671) DUEROS: Recv Que DUER_CMD_LOGIN
I (2676) DUEROS: duer_start, len:1

I (2558,tid:3ffbe450) lightduer_engine.c( 220):duer_engine_start, g_handler:3F8077D0, length:1, profile:3F8000D0
E (2568,tid:3ffbe450) lightduer_ca.c( 645):    create the configuation failed...
I (2575,tid:3ffbe450) lightduer_ds_log_cache.c(  45):cached tracecode: 0x12010301
I (2582,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (2591,tid:3ffbe450) lightduer_connagent.c( 207):start fail! status:-18
E (2605,tid:3ffbe450) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (2605,tid:3ffbe450) lightduer_engine.c( 812):duer_engine_stop has stopped
W (2682) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:2, data_len:0
I (2611,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (2627,tid:3ffbe450) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (2757) DUEROS: event: 1
E (2760) DUEROS: event: DUER_EVENT_STOPPED
W (2765) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:1, data_len:0
W (2643,tid:3ffbe450) lightduer_events.c(  80):[lightduer_ca] <== event end = 40189264, timespent = 85
I (2774) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:2
E (4817) DUEROS: Func:retry_login_timer_cb
E (4817) DUEROS: Recv Que DUER_CMD_LOGIN
I (4817) DUEROS: duer_start, len:1

W (4820) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:2, data_len:0
I (4697,tid:3ffbe450) lightduer_engine.c( 220):duer_engine_start, g_handler:3F8077D0, length:1, profile:3F807864
E (4714,tid:3ffbe450) lightduer_ca.c( 645):    create the configuation failed...
I (4721,tid:3ffbe450) lightduer_ds_log_cache.c(  45):cached tracecode: 0x12010301
I (4728,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (4738,tid:3ffbe450) lightduer_connagent.c( 207):start fail! status:-18
E (4743,tid:3ffbe450) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (4751,tid:3ffbe450) lightduer_engine.c( 812):duer_engine_stop has stopped
I (4758,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (4766,tid:3ffbe450) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (4896) DUEROS: event: 1
E (4899) DUEROS: event: DUER_EVENT_STOPPED
W (4904) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:1, data_len:0
W (4782,tid:3ffbe450) lightduer_events.c(  80):[lightduer_ca] <== event end = 40189264, timespent = 85
I (4912) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:4
E (8932) DUEROS: Func:retry_login_timer_cb
E (8942) DUEROS: Recv Que DUER_CMD_LOGIN
I (8943) DUEROS: duer_start, len:1

W (8943) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:2, data_len:0
I (8821,tid:3ffbe450) lightduer_engine.c( 220):duer_engine_start, g_handler:3F8077D0, length:1, profile:3F807864
E (8835,tid:3ffbe450) lightduer_ca.c( 645):    create the configuation failed...
I (8843,tid:3ffbe450) lightduer_ds_log_cache.c(  45):cached tracecode: 0x12010301
I (8849,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (8858,tid:3ffbe450) lightduer_connagent.c( 207):start fail! status:-18
E (8864,tid:3ffbe450) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (8872,tid:3ffbe450) lightduer_engine.c( 812):duer_engine_stop has stopped
I (8879,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (8887,tid:3ffbe450) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (9018) DUEROS: event: 1
E (9021) DUEROS: event: DUER_EVENT_STOPPED
W (8903,tid:3ffbe450) lightduer_events.c(  80):[lightduer_ca] <== event end = 40189264, timespent = 82
W (9034) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:1, data_len:0
I (9041) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:8
E (17050) DUEROS: Func:retry_login_timer_cb
E (17051) DUEROS: Recv Que DUER_CMD_LOGIN
I (17051) DUEROS: duer_start, len:1

I (16931,tid:3ffbe450) lightduer_engine.c( 220):duer_engine_start, g_handler:3F8077D0, length:1, profile:3F807864
W (17054) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:2, data_len:0
E (16941,tid:3ffbe450) lightduer_ca.c( 645):    create the configuation failed...
I (16955,tid:3ffbe450) lightduer_ds_log_cache.c(  45):cached tracecode: 0x12010301
I (16963,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (16973,tid:3ffbe450) lightduer_connagent.c( 207):start fail! status:-18
E (16978,tid:3ffbe450) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (16985,tid:3ffbe450) lightduer_engine.c( 812):duer_engine_stop has stopped
I (16994,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (17001,tid:3ffbe450) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (17130) DUEROS: event: 1
E (17134) DUEROS: event: DUER_EVENT_STOPPED
W (17139) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:1, data_len:0
W (17017,tid:3ffbe450) lightduer_events.c(  80):[lightduer_ca] <== event end = 40189264, timespent = 86
I (17147) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:16

离线

楼主 #3 2019-04-02 18:24:33

xieshang
会员
注册时间: 2019-03-27
已发帖子: 3
积分: 3

Re: ESP32-LyraT 4.3运行DuerOS无法连接问题

晕哥 说:

https://github.com/espressif/esp-idf/issues/738

这个问题和你的有点像




heyinling 评论道 on 28 Jun 2017
我知道了。我也在esp_wifi_connect事件任务中调用recv disconnect事件时调用。我的测试结果是这个问题只发生在特定的AP上。

您的重现步骤如下:

关掉手机上的热点
等待ESP32断开连接
再次打开热点,检查ESP32重新连接是否成功
如果您可以帮助提供Android版手机,也会有所帮助。我们将尝试重现此错误。

貌似最后也没解决.



看看换个 手机或者路由器试一试


因为没见过正确的打印信息,也看到别人的log里面是把profile都打出来了,但我的没有打出来:

I (2558,tid:3ffbe450) lightduer_engine.c( 220):duer_engine_start, g_handler:3F8077D0, length:1, profile:3F8000D0
E (2568,tid:3ffbe450) lightduer_ca.c( 645):    create the configuation failed...
I (2575,tid:3ffbe450) lightduer_ds_log_cache.c(  45):cached tracecode: 0x12010301
I (2582,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (2591,tid:3ffbe450) lightduer_connagent.c( 207):start fail! status:-18
E (2605,tid:3ffbe450) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (2605,tid:3ffbe450) lightduer_engine.c( 812):duer_engine_stop has stopped
W (2682) DUEROS: duer_callback: type:0, source:0x3f806bd8 data:2, data_len:0
I (2611,tid:3ffbe450) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (2627,tid:3ffbe450) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (2757) DUEROS: event: 1
E (2760) DUEROS: event: DUER_EVENT_STOPPED

不知道是否与系统有关系,我现在是用win10,到时候试试docker或者虚拟机看看。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn