官方例程dueros连接WiFi热点无反应,请帮忙看看

tanghuanqiao
Posts: 6
Joined: Sun Sep 08, 2019 1:56 pm

官方例程dueros连接WiFi热点无反应,请帮忙看看

Postby tanghuanqiao » Sun Sep 08, 2019 2:10 pm

1.苹果手机发送WiFi热点AP 用官方例程dueros编译烧写后,log提示没有连接服务成功 多次连接后进入休眠。但手机已经发现ESP32开发板已经连接上热点,请问是什么异常。 下面是异常log:

----------------------------- ESP Audio Platform -----------------------------
| |
| ESP_AUDIO v1.2-dc23f7a |
| Compile date: Aug 5 2019-15:37:00 |
------------------------------------------------------------------------------
I (1105) ESP_AUDIO_CTRL: Func:media_ctrl_create, Line:146, MEM Total:4261228 Bytes, Inter:166960 Bytes, Dram:133040 Bytes

I (1126) AUDIO_HAL: Codec mode is 3, Ctrl:1
W (1132) I2S: I2S driver already installed
I (1133) LYRAT_V4_3: I2S0, MCLK output by GPIO0
I (1138) STAGEFRIGHTMP3_DECODER: MP3 init
I (1145) AUDIO_WRAPPER: Func:setup_player, Line:155, MEM Total:4253044 Bytes, Inter:158684 Bytes, Dram:124764 Bytes

I (1153) AUDIO_WRAPPER: esp_audio instance is:0x3f807ac8
I (1645) event: sta ip: 172.20.10.4, mask: 255.255.255.240, gw: 172.20.10.1
I (1646) WIFI_SERV: Got ip:172.20.10.4
W (1647) WIFI_SERV: STATE type:2, pdata:0x0, len:0
I (1653) DUEROS: PERIPH_WIFI_CONNECTED [192]
I (1776,tid:3ffbc76c) lightduer_session.c( 44):random = 75933
E (1861) DUEROS: Recv Que DUER_CMD_LOGIN
I (1861) DUEROS: duer_start, len:1

I (1779,tid:3ffbc76c) lightduer_engine.c( 220):duer_engine_start, g_handler:3F80CAAC, length:1, profile:3F80D690
E (1790,tid:3ffbc76c) lightduer_ca.c( 645): create the configuation failed...
W (1865) DUEROS: duer_callback: type:0, source:0x3f806b8c data:2, data_len:0
I (1797,tid:3ffbc76c) lightduer_ds_log_cache.c( 45):cached tracecode: 0x12010301
I (1812,tid:3ffbc76c) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (1820,tid:3ffbc76c) lightduer_connagent.c( 207):start fail! status:-18
E (1826,tid:3ffbc76c) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (1834,tid:3ffbc76c) lightduer_engine.c( 812):duer_engine_stop has stopped
I (1841,tid:3ffbc76c) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (1849,tid:3ffbc76c) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (1941) DUEROS: event: 1
E (1944) DUEROS: event: DUER_EVENT_STOPPED
W (1949) DUEROS: duer_callback: type:0, source:0x3f806b8c data:1, data_len:0
W (1864,tid:3ffbc76c) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F9B90, timespent = 85
W (1967) DUEROS: reason:0
I (1969) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:2
E (3975) DUEROS: Func:retry_login_timer_cb
E (3975) DUEROS: Recv Que DUER_CMD_LOGIN
I (3986) DUEROS: duer_start, len:1

I (3901,tid:3ffbc76c) lightduer_engine.c( 220):duer_engine_start, g_handler:3F80CAAC, length:1, profile:3F80D690
W (3987) DUEROS: duer_callback: type:0, source:0x3f806b8c data:2, data_len:0
E (3909,tid:3ffbc76c) lightduer_ca.c( 645): create the configuation failed...
I (3923,tid:3ffbc76c) lightduer_ds_log_cache.c( 45):cached tracecode: 0x12010301
I (3932,tid:3ffbc76c) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (3939,tid:3ffbc76c) lightduer_connagent.c( 207):start fail! status:-18
E (3945,tid:3ffbc76c) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (3953,tid:3ffbc76c) lightduer_engine.c( 812):duer_engine_stop has stopped
I (3960,tid:3ffbc76c) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (3968,tid:3ffbc76c) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (4061) DUEROS: event: 1
E (4063) DUEROS: event: DUER_EVENT_STOPPED
W (4068) DUEROS: duer_callback: type:0, source:0x3f806b8c data:1, data_len:0
W (3984,tid:3ffbc76c) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F9B90, timespent = 82
W (4076) DUEROS: reason:0
I (4098) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:4
E (8098) DUEROS: Func:retry_login_timer_cb
E (8098) DUEROS: Recv Que DUER_CMD_LOGIN
I (8098) DUEROS: duer_start, len:1

I (8016,tid:3ffbc76c) lightduer_engine.c( 220):duer_engine_start, g_handler:3F80CAAC, length:1, profile:3F80D690
W (8101) DUEROS: duer_callback: type:0, source:0x3f806b8c data:2, data_len:0
E (8028,tid:3ffbc76c) lightduer_ca.c( 645): create the configuation failed...
I (8040,tid:3ffbc76c) lightduer_ds_log_cache.c( 45):cached tracecode: 0x12010301
I (8047,tid:3ffbc76c) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (8056,tid:3ffbc76c) lightduer_connagent.c( 207):start fail! status:-18
E (8062,tid:3ffbc76c) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (8070,tid:3ffbc76c) lightduer_engine.c( 812):duer_engine_stop has stopped
I (8076,tid:3ffbc76c) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (8085,tid:3ffbc76c) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (8177) DUEROS: event: 1
E (8180) DUEROS: event: DUER_EVENT_STOPPED
W (8100,tid:3ffbc76c) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F9B90, timespent = 85
W (8185) DUEROS: duer_callback: type:0, source:0x3f806b8c data:1, data_len:0
W (8204) DUEROS: reason:0
I (8205) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:8
E (16211) DUEROS: Func:retry_login_timer_cb
E (16216) DUEROS: Recv Que DUER_CMD_LOGIN
I (16217) DUEROS: duer_start, len:1

I (16132,tid:3ffbc76c) lightduer_engine.c( 220):duer_engine_start, g_handler:3F80CAAC, length:1, profile:3F80D690
W (16219) DUEROS: duer_callback: type:0, source:0x3f806b8c data:2, data_len:0
E (16143,tid:3ffbc76c) lightduer_ca.c( 645): create the configuation failed...
I (16156,tid:3ffbc76c) lightduer_ds_log_cache.c( 45):cached tracecode: 0x12010301
I (16163,tid:3ffbc76c) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18
E (16172,tid:3ffbc76c) lightduer_connagent.c( 207):start fail! status:-18
E (16178,tid:3ffbc76c) lightduer_connagent.c( 286):Action failed: event: 1, status: -18
W (16186,tid:3ffbc76c) lightduer_engine.c( 812):duer_engine_stop has stopped
I (16193,tid:3ffbc76c) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18
I (16201,tid:3ffbc76c) lightduer_connagent.c( 257):connect stopped, status:-18!!
E (16293) DUEROS: event: 1
E (16297) DUEROS: event: DUER_EVENT_STOPPED
W (16301) DUEROS: duer_callback: type:0, source:0x3f806b8c data:1, data_len:0
W (16217,tid:3ffbc76c) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F9B90, timespent = 85
W (16318) DUEROS: reason:0
I (16322) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:16

jason.mao
Posts: 45
Joined: Mon Nov 19, 2018 2:05 am

Re: 官方例程dueros连接WiFi热点无反应,请帮忙看看

Postby jason.mao » Mon Sep 09, 2019 1:57 am

Hi

你先看一下DuerOS 示例里面的readme,是不是有步骤遗漏。看你的log,应该是没有使用有效的profile。

tanghuanqiao
Posts: 6
Joined: Sun Sep 08, 2019 1:56 pm

Re: 官方例程dueros连接WiFi热点无反应,请帮忙看看

Postby tanghuanqiao » Tue Sep 10, 2019 2:52 pm

jason.mao wrote:
Mon Sep 09, 2019 1:57 am
Hi

你先看一下DuerOS 示例里面的readme,是不是有步骤遗漏。看你的log,应该是没有使用有效的profile。
你好,十分感谢你的回复。 不过我这边根据readme ,用百度申请到的Duer_Light_Profile文件替换掉原来的Profile文件,后会出现Sys Info: Get disk info failed这样的错误,然后启动不了服务自动休眠了,下面是这个现象的log




----------------------------- ESP Audio Platform -----------------------------
I (947) AUDIO_ELEMENT: [filter] Element task created
I (959) AUDIO_ELEMENT: [raw] Element task created
I (965) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:324, MEM Total:4280132 Bytes, Inter:181688
Bytes, Dram:147768 Bytes

I (970) wifi: n:6 0, o:1 0, ap:255 255, sta:6 0, prof:1
I (978) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1
I (983) wifi: state: init -> auth (b0)
I (988) I2S_STREAM: AUDIO_STREAM_READER,Rate:48000,ch:2
I (996) wifi: state: auth -> assoc (0)
I (1000) I2S: APLL: Req RATE: 48000, real rate: 47999.961, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 122
87990.000, SCLK: 1535998.750000, diva: 1, divb: 0
I (1006) wifi: state: assoc -> run (10)
I (977) AUDIO_PIPELINE: Pipeline started
I (1022) DUEROS: Recorder has been created
I (1020) AUDIO_ELEMENT: [filter] AEL_MSG_CMD_RESUME,state:1
I (1029) wifi: connected with TangPhone, channel 6
I (1028) REC_ENG: ESP SR Engine, chunksize is 480��� FRAME_SIZE:960, frequency:16000
I (1042) wifi: pm start, type: 1

E (1046) REC_ENG: Recorder Engine Running ..., vad_window=9, wakeup=10000 ms, vad_off=800 ms, thr
eshold=90 ms, sensitivity=0
I (1043) 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 (1061) REC_ENG: state idle
| |
| ESP_AUDIO v1.2-dc23f7a |
| Compile date: Aug 5 2019-15:37:00 |
------------------------------------------------------------------------------
I (1112) ESP_AUDIO_CTRL: Func:media_ctrl_create, Line:146, MEM Total:4256872 Bytes, Inter:162604
Bytes, Dram:128684 Bytes

I (1124) AUDIO_HAL: Codec mode is 3, Ctrl:1
W (1151) I2S: I2S driver already installed
I (1151) LYRAT_V4_3: I2S0, MCLK output by GPIO0
I (1152) STAGEFRIGHTMP3_DECODER: MP3 init
I (1157) AUDIO_WRAPPER: Func:setup_player, Line:155, MEM Total:4253040 Bytes, Inter:158680 Bytes,
Dram:124760 Bytes

I (1166) AUDIO_WRAPPER: esp_audio instance is:0x3f809b08
I (1649) event: sta ip: 172.20.10.4, mask: 255.255.255.240, gw: 172.20.10.1
I (1650) WIFI_SERV: Got ip:172.20.10.4
W (1651) WIFI_SERV: STATE type:2, pdata:0x0, len:0
I (1656) DUEROS: PERIPH_WIFI_CONNECTED [192]
I (1787,tid:3ffbc76c) lightduer_session.c( 44):random = 75933
E (1873) DUEROS: Recv Que DUER_CMD_LOGIN
I (1874) DUEROS: duer_start, len:1470
{"configures":"{}","bindToken":"1751ae90b276dee5a502f35ccaa40f8b","coapPort":443,"token":"6duygJf
cAizU8kW78a6QdsMwfQbERssQ","serverAddr":"device.iot.baidu.com","lwm2mPort":443,"uuid":"1dfd000000
000a","rsaCaCrt":"-----BEGIN CERTIFICATE-----\nMIIDUDCCAjgCCQCmVPUErMYmCjANBgkqhkiG9w0BAQUFADBqMQ
swCQYDVQQGEwJD\nTjETMBEGA1UECAwKU29tZS1TdGF0ZTEOMAwGA1UECgwFYmFpZHUxGDAWBgNVBAMM\nDyouaW90LmJhaWR
1LmNvbTEcMBoGCSqGSIb3DQEJARYNaW90QGJhaWR1LmNvbTAe\nFw0xNjAzMTEwMzMwNDlaFw0yNjAzMDkwMzMwNDlaMGoxCz
AJBgNVBAYTAkNOMRMw\nEQYDVQQIDApTb21lLVN0YXRlMQ4wDAYDVQQKDAViYWlkdTEYMBYGA1UEAwwPKi5p\nb3QuYmFpZHU
uY29tMRwwGgYJKoZIhvcNAQkBFg1pb3RAYmFpZHUuY29tMIIBIjAN\nBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtbhIei
N7pznzuMwsLKQj2xB02+51\nOvCJ5d116ZFLjecp9qtllqOfN7bm+AJa5N2aAHJtsetcTHMitY4dtGmOpw4dlGqx\nluoz50k
WJWQjVR+z6DLPnGE4uELOS8vbKHUoYPPQTT80eNVnl9S9h/l7DcjEAJYC\nIYJbf6+K9x+Ti9VRChvWcvgZQHMRym9j1g/7CK
GMCIwkC+6ihkGD/XG40r7KRCyH\nbD53KnBjBO9FH4IL3rGlZWKWzMw3zC6RTS2ekfEsgAtYDvROKd4rNs+uDU9xaBLO\ndXT
l5uxgudH2VnVzWtj09OUbBtXcQFD2IhmOl20BrckYul+HEIMR0oDibwIDAQAB\nMA0GCSqGSIb3DQEBBQUAA4IBAQCzTTH91j
Nh/uYBEFekSVNg1h1kPSujlwEDDf/W\npjqPJPqrZvW0w0cmYsYibNDy985JB87MJMfJVESG/v0Y/YbvcnRoi5gAenWXQNL4\
nh2hf08A5wEQfLO/EaD1GTH3OIierKYZ6GItGrz4uFKHV5fTMiflABCdu37ALGjrA\nrIjwjxQG6WwLr9468hkKrWNG3dMBHK
vmqO8x42sZOFRJMkqBbKzaBd1uW4xY5XwM\nS1QX56tVrgO0A3S+4dEg5uiLVN4YVP/Vqh4SMtYkL7ZZiZAxD9GtNnhRyFsWl
C2r\nOVSdXs1ttZxEaEBGUl7tgsBte556BIvufZX+BXGyycVJdBu3\n-----END CERTIFICATE-----\n","macId":"","v
ersion":14489}
W (2008) DUEROS: duer_callback: type:0, source:0x3f806b8c data:2, data_len:0
I (1922,tid:3ffbc76c) lightduer_engine.c( 220):duer_engine_start, g_handler:3F80CAAC, length:1470
, profile:3F80D690
I (1937,tid:3ffbc76c) lightduer_ca_conf.c( 38): duer_conf_get_string: uuid = 1dfd000000000a
I (1946,tid:3ffbc76c) lightduer_ca_conf.c( 38): duer_conf_get_string: serverAddr = device.iot
.baidu.com
I (1975,tid:3ffbc76c) baidu_ca_socket_adp.c( 134):DNS lookup succeeded. IP=163.177.151.84
I (2033,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
W (2033,tid:3ffbc76c) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F9BB4, timespent
= 112
I (2956,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
W (2956,tid:3ffbc76c) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F9D48, timespent
= 878
I (2963,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (2973,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (2980,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (2988,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (2997,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (3005,tid:3ffbc76c) lightduer_engine.c( 220):duer_engine_start, g_handler:3F80CAAC, length:0, p
rofile:00000000
I (3015,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
W (3147,tid:3ffbc76c) lightduer_coap.c( 532):duer_coap_nsdl_tx: sent = 0
I (3148,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (3159,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (3163,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (3169,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (3178,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (3185,tid:3ffbc76c) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK)
I (3732,tid:3ffbc76c) lightduer_connagent.c( 177):connect started!
I (3734,tid:3ffbc76c) lightduer_voice.c( 697):Mutex initializing
I (3734,tid:3ffbc76c) lightduer_ds_log_cache.c( 67):no cache report
E (3825) DUEROS: event: 0
I (3828) DUEROS: duer_dcs_init
I (3748,tid:3ffbc76c) lightduer_dcs_router.c( 283):namespace: ai.dueros.private.protocol
I (3755,tid:3ffbc76c) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.screen_e
xtended_card
I (3765,tid:3ffbc76c) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.system
I (3772,tid:3ffbc76c) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.voice_in
put
I (3781,tid:3ffbc76c) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.voice_ou
tput
I (3791,tid:3ffbc76c) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.speaker_
controller
I (3800,tid:3ffbc76c) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.audio_pl
ayer
I (3895) AUDIO_WRAPPER: duer_dcs_get_speaker_state
E (3904) DUEROS: event: DUER_EVENT_STARTED
I (3904) DUEROS: Dueros DUER_CMD_CONNECTED, duer_state:2
W (3819,tid:3ffbc76c) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F9D48, timespent
= 91
I (3835,tid:3ffbc76c) lightduer_connagent.c( 212):add resource successfully!!
W (3912) DUEROS: duer_callback: type:0, source:0x3f806b8c data:3, data_len:0
I (3841,tid:3ffbc76c) lightduer_connagent.c( 212):add resource successfully!!
W (3855,tid:3ffbc76c) lightduer_engine.c( 634):data cache has not sent, pending..., dcache_len:1,
qcache_len:4
W (3868,tid:3ffbc76c) lightduer_system_info.c( 306):Undefined memory type, 0
E (3873,tid:3ffbc76c) lightduer_system_info.c( 389):Sys Info: Get disk info failed

jason.mao
Posts: 45
Joined: Mon Nov 19, 2018 2:05 am

Re: 官方例程dueros连接WiFi热点无反应,请帮忙看看

Postby jason.mao » Mon Oct 28, 2019 3:19 am

Hi tanghuanqiao,
你有用“Hi乐鑫”去唤醒吗?从你的log来看是正常的,链接DuerOS后等待用户的交互(语音唤醒或者REC按键触发)。

Who is online

Users browsing this forum: No registered users and 1 guest