dueros例程使用问题

lys23926635
Posts: 9
Joined: Tue Apr 21, 2020 4:46 am

dueros例程使用问题

Postby lys23926635 » Tue Apr 21, 2020 5:22 am

我使用LyratV4.3 的板子,在跑dueros例程时貌似有点问题,代码无修改,profile已经替换,rec按下后貌似马上就进入了idle,提示 wakeup_time_out的错误,这是什么原因导致的,有人遇到过吗?

E (119692)FETCH_DATA, wakeup_time_out REC_ENG: State :1, vad_speech_on:0, vad_time_mode:0
W (119701) REC_ENG: State WAKEUP_END
I (119705) DUEROS: rec_engine_cb - REC_EVENT_WAKEUP_END
I (119711) REC_ENG: state idle

详细log如下:
I (5389) DUEROS: duer_dcs_init
I (5240,tid:3ffc57d8) lightduer_dcs_router.c( 283):namespace: ai.dueros.private.protocol
I (5246,tid:3ffc57d8) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.screen_extended_card
I (5257,tid:3ffc57d8) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.system
I (5264,tid:3ffc57d8) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.voice_input
I (5273,tid:3ffc57d8) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.voice_output
I (5282,tid:3ffc57d8) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.speaker_controller
I (5292,tid:3ffc57d8) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.audio_player
I (5455) AUDIO_WRAPPER: duer_dcs_get_speaker_state
I (5465) DUEROS: Dueros DUER_CMD_CONNECTED, duer_state:2
E (5465) DUEROS: event: DUER_EVENT_STARTED
W (5467) DUEROS: duer_callback: type:0, source:0x3f8000d8 data:3, data_len:0
W (5317,tid:3ffc57d8) lightduer_events.c( 80):[lightduer_ca] <== event end = 400FA6F4, timespent = 98
I (5333,tid:3ffc57d8) lightduer_connagent.c( 212):add resource successfully!!
I (5341,tid:3ffc57d8) lightduer_connagent.c( 212):add resource successfully!!
W (5347,tid:3ffc57d8) lightduer_engine.c( 634):data cache has not sent, pending..., dcache_len:1, qcache_len:4
W (5359,tid:3ffc57d8) lightduer_system_info.c( 306):Undefined memory type, 0
E (5364,tid:3ffc57d8) lightduer_system_info.c( 389):Sys Info: Get disk info failed
E (7044,tid:3ffc57d8) baidu_ca_socket_adp.c( 390):Can't reach remote host!!! rs = -1
E (7044,tid:3ffc57d8) baidu_ca_socket_adp.c( 407):read socket error 104:Connection reset by peer
E (7049,tid:3ffc57d8) lightduer_net_trans_encrypted.c( 88):mbedtls error: -76(-0x004c)
I (7057,tid:3ffc57d8) lightduer_coap.c( 645):duer_coap_recv: get header error rs = -76, mask = 0, size = 0
I (7068,tid:3ffc57d8) lightduer_ds_log_cache.c( 45):cached tracecode: 0x12010306
I (7074,tid:3ffc57d8) lightduer_ds_log_cache.c( 45):cached tracecode: 0x12010307
I (7081,tid:3ffc57d8) lightduer_connagent.c( 160):=====> event: 4[DUER_EVT_DATA_AVAILABLE], status: -1
E (7090,tid:3ffc57d8) lightduer_connagent.c( 286):Action failed: event: 4, status: -1
E (7099,tid:3ffc57d8) baidu_ca_socket_adp.c( 363):write socket error 104:Connection reset by peer
I (7112,tid:3ffc57d8) baidu_ca_socket_adp.c( 451):stop timer:3F81788C
I (7118,tid:3ffc57d8) baidu_ca_socket_adp.c( 468):start last timer:3F81788C, soc:3F80E820
I (7120,tid:3ffc57d8) lightduer_engine.c( 826):no action
I (7126,tid:3ffc57d8) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -1
I (7133,tid:3ffc57d8) lightduer_connagent.c( 257):connect stopped, status:-1!!
E (7295) DUEROS: event: 1
E (7298) DUEROS: event: DUER_EVENT_STOPPED
W (7303) DUEROS: duer_callback: type:0, source:0x3f8000d8 data:1, data_len:0
W (7149,tid:3ffc57d8) lightduer_events.c( 80):[lightduer_ca] <== event end = 400FA6F4, timespent = 105
W (7311) DUEROS: reason:0
I (7323) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:2
I (7320,tid:3ffc3e6c) baidu_ca_socket_adp.c( 162):soc:3F80E820, destroy:1, fd:-1, ref_count:0, timer:3F81788C
E (9347) DUEROS: Func:retry_login_timer_cb
E (9347) DUEROS: Recv Que DUER_CMD_LOGIN
I (9347) DUEROS: duer_start, len:1470
{"configures":"{}","bindToken":"ff71a7169200fca29fd281d186c5809e","coapPort":443,"token":"5M49bjrjs69A9YHFzh0mfugWQDg3kSrQ","serverAddr":"device.iot.baidu.com","lwm2mPort":443,"uuid":"203e000000000a","rsaCaCrt":"-----BEGIN CERTIFICATE-----\nMIIDUDCCAjgCCQCmVPUErMYmCjANBgkqhkiG9w0BAQUFADBqMQswCQYDVQQGEwJD\nTjETMBEGA1UECAwKU29tZS1TdGF0ZTEOMAwGA1UECgwFYmFpZHUxGDAWBgNVBAMM\nDyouaW90LmJhaWR1LmNvbTEcMBoGCSqGSIb3DQEJARYNaW90QGJhaWR1LmNvbTAe\nFw0xNjAzMTEwMzMwNDlaFw0yNjAzMDkwMzMwNDlaMGoxCzAJBgNVBAYTAkNOMRMw\nEQYDVQQIDApTb21lLVN0YXRlMQ4wDAYDVQQKDAViYWlkdTEYMBYGA1UEAwwPKi5p\nb3QuYmFpZHUuY29tMRwwGgYJKoZIhvcNAQkBFg1pb3RAYmFpZHUuY29tMIIBIjAN\nBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtbhIeiN7pznzuMwsLKQj2xB02+51\nOvCJ5d116ZFLjecp9qtllqOfN7bm+AJa5N2aAHJtsetcTHMitY4dtGmOpw4dlGqx\nluoz50kWJWQjVR+z6DLPnGE4uELOS8vbKHUoYPPQTT80eNVnl9S9h/l7DcjEAJYC\nIYJbf6+K9x+Ti9VRChvWcvgZQHMRym9j1g/7CKGMCIwkC+6ihkGD/XG40r7KRCyH\nbD53KnBjBO9FH4IL3rGlZWKWzMw3zC6RTS2ekfEsgAtYDvROKd4rNs+uDU9xaBLO\ndXTl5uxgudH2VnVzWtj09OUbBtXcQFD2IhmOl20BrckYul+HEIMR0oDibwIDAQAB\nMA0GCSqGSIb3DQEBBQUAA4IBAQCzTTH91jNh/uYBEFekSVNg1h1kPSujlwEDDf/W\npjqPJPqrZvW0w0cmYsYibNDy985JB87MJMfJVESG/v0Y/YbvcnRoi5gAenWXQNL4\nh2hf08A5wEQfLO/EaD1GTH3OIierKYZ6GItGrz4uFKHV5fTMiflABCdu37ALGjrA\nrIjwjxQG6WwLr9468hkKrWNG3dMBHKvmqO8x42sZOFRJMkqBbKzaBd1uW4xY5XwM\nS1QX56tVrgO0A3S+4dEg5uiLVN4YVP/Vqh4SMtYkL7ZZiZAxD9GtNnhRyFsWlC2r\nOVSdXs1ttZxEaEBGUl7tgsBte556BIvufZX+BXGyycVJdBu3\n-----END CERTIFICATE-----\n","macId":"","version":15119}
W (9477) DUEROS: duer_callback: type:0, source:0x3f8000d8 data:2, data_len:0
I (9323,tid:3ffc57d8) lightduer_engine.c( 220):duer_engine_start, g_handler:3F80CE14, length:1470, profile:3F80E7C4
I (9341,tid:3ffc57d8) lightduer_ca_conf.c( 38): duer_conf_get_string: uuid = 203e000000000a
I (9349,tid:3ffc57d8) lightduer_ca_conf.c( 38): duer_conf_get_string: serverAddr = device.iot.baidu.com
I (9380,tid:3ffc57d8) baidu_ca_socket_adp.c( 134):DNS lookup succeeded. IP=220.181.107.198
I (9406,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
W (9406,tid:3ffc57d8) lightduer_events.c( 80):[lightduer_ca] <== event end = 400FA560, timespent = 83
I (10589,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
W (10589,tid:3ffc57d8) lightduer_events.c( 80):[lightduer_ca] <== event end = 400FA6F4, timespent = 1139
I (10601,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10606,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10614,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10623,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10646,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10647,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10653,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10661,tid:3ffc57d8) lightduer_engine.c( 220):duer_engine_start, g_handler:3F80CE14, length:0, profile:00000000
I (10672,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10688,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10689,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10697,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10707,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (10714,tid:3ffc57d8) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (11063,tid:3ffc57d8) lightduer_connagent.c( 177):connect started!
W (11063,tid:3ffc57d8) lightduer_voice.c( 669):voice has finalized, s_func_mutex:00000000, s_mutex:00000000
I (11069,tid:3ffc57d8) lightduer_voice.c( 697):Mutex initializing
E (11229) DUEROS: event: 0
I (11232) DUEROS: duer_dcs_init
W (11081,tid:3ffc57d8) lightduer_dcs_router.c(1131):DCS has been initialized
I (11088,tid:3ffc57d8) lightduer_dcs_voice_input.c( 340):Voice input module has been initialized
W (11096,tid:3ffc57d8) lightduer_dcs_voice_output.c( 227):Voice input module has been initialized
W (11105,tid:3ffc57d8) lightduer_dcs_audio_player.c( 859):DCS audio module has been initialized
E (11268) DUEROS: event: DUER_EVENT_STARTED
I (11268) DUEROS: Dueros DUER_CMD_CONNECTED, duer_state:2
W (11119,tid:3ffc57d8) lightduer_events.c( 80):[lightduer_ca] <== event end = 400FA6F4, timespent = 59
I (11137,tid:3ffc57d8) lightduer_connagent.c( 212):add resource successfully!!
W (11279) DUEROS: duer_callback: type:0, source:0x3f8000d8 data:3, data_len:0
I (11143,tid:3ffc57d8) lightduer_connagent.c( 212):add resource successfully!!
W (11155,tid:3ffc57d8) lightduer_engine.c( 634):data cache has not sent, pending..., dcache_len:1, qcache_len:2
W (11165,tid:3ffc57d8) lightduer_system_info.c( 306):Undefined memory type, 0
E (11172,tid:3ffc57d8) lightduer_system_info.c( 389):Sys Info: Get disk info failed
W (44526) REC_ENG: ### spot keyword ###
I (44526) DUEROS: rec_engine_cb - REC_EVENT_WAKEUP_START
I (44526) DUEROS: rec_engine_cb - Play tone
I (44531) ESP_AUDIO_CTRL: Request_CMD_Queue CMD:0, Available:5, que:0x3ffdec8c
I (44538) ESP_AUDIO_CTRL: Func:_ctrl_play, Line:542, MEM Total:4192888 Bytes, Inter:118196 Bytes, Dram:101624 Bytes

I (44538) ESP_AUDIO_TASK: It's a decoder
I (44554) ESP_AUDIO_TASK: 1.CUR IN:[IN_file],CODEC:[DEC_wav],RESAMPLE:[48000],OUT:[OUT_iis]
I (44563) ESP_AUDIO_TASK: 2.Handles,IN:0x3f80bfc0,CODEC:0x3f80c724,FILTER:0x3f80e7bc,OUT:0x3f80cc8c
I (44573) ESP_AUDIO_TASK: 2.2 Update all pipeline
I (44578) ESP_AUDIO_TASK: 2.3 Linked new pipeline
I (44584) AUDIO_PIPELINE: link el->rb, el:0x3f80bfc0, tag:IN_file, rb:0x3f80e890
I (44592) AUDIO_PIPELINE: link el->rb, el:0x3f80c724, tag:DEC_wav, rb:0x3f80e8b8
I (44600) AUDIO_PIPELINE: link el->rb, el:0x3f80e7bc, tag:resample, rb:0x3f80e8f4
I (44608) ESP_AUDIO_TASK: 3. Previous starting...
I (44633) AUDIO_ELEMENT: [IN_file] Element task created
I (44634) AUDIO_ELEMENT: [DEC_wav] Element task created
I (44635) AUDIO_ELEMENT: [resample] Element task created
I (44640) AUDIO_ELEMENT: [DEC_wav] AEL_MSG_CMD_RESUME,state:1
I (44649) AUDIO_ELEMENT: [IN_file] AEL_MSG_CMD_RESUME,state:1
I (44679) FATFS_STREAM: File size is 29876 byte,pos:0
I (44684) RSP_FILTER: reset sample rate of source data : 16000, reset channel of source data : 1
I (44684) ESP_AUDIO_CTRL: Request_CMD_Queue CMD:1, Available:5, que:0x3ffdec8c
I (44691) ESP_AUDIO_TASK: Received muisc info, then send MEDIA_CTRL_EVT_PLAY
I (44699) ESP_AUDIO_TASK: MEDIA_CTRL_EVT_PLAY, status:0
I (44705) AUDIO_ELEMENT: [OUT_iis] Element task created
I (44711) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:358, MEM Total:4149784 Bytes, Inter:100868 Bytes, Dram:84296 Bytes

I (44723) AUDIO_ELEMENT: [OUT_iis] AEL_MSG_CMD_RESUME,state:1
I (44729) I2S_STREAM: AUDIO_STREAM_WRITER
I (44734) AUDIO_PIPELINE: Pipeline started
I (44740) AUDIO_ELEMENT: [resample] AEL_MSG_CMD_RESUME,state:1
I (44746) RSP_FILTER: sample rate of source data : 16000, channel of source data : 1, sample rate of destination data : 48000, channel of destination data : 2
I (44760) ESP_AUDIO_TASK: ESP_AUDIO status is AEL_STATUS_STATE_RUNNING
W (45053) FATFS_STREAM: No more data,ret:0
I (45053) AUDIO_ELEMENT: IN-[IN_file] AEL_IO_DONE,0
I (45383) AUDIO_ELEMENT: IN-[DEC_wav] AEL_IO_DONE,-2
I (45385) ESP_AUDIO_TASK: Received last pos: 29832 bytes
I (45526) REC_ENG: Wakeup time is out
I (45658) AUDIO_ELEMENT: IN-[resample] AEL_IO_DONE,-2
I (45708) AUDIO_ELEMENT: IN-[OUT_iis] AEL_IO_DONE,-2
I (45746) ESP_AUDIO_TASK: Received last time: 975 ms
I (45746) ESP_AUDIO_TASK: ESP_AUDIO status is AEL_STATUS_STATE_FINISHED
E (45748) REC_ENG: State FETCH_DATA, wakeup_time_out:1, vad_speech_on:0, vad_time_mode:0
W (45756) REC_ENG: State WAKEUP_END
I (45761) DUEROS: rec_engine_cb - REC_EVENT_WAKEUP_END
I (45767) REC_ENG: state idle

Who is online

Users browsing this forum: No registered users and 10 guests