1、增加注释、修改系统音量
This commit is contained in:
parent
ea5050309e
commit
8a965b56bf
Binary file not shown.
Binary file not shown.
408
05-最新日志.txt
408
05-最新日志.txt
@ -1,175 +1,233 @@
|
||||
I (34411) VolcRtcProtocol: 上行音频统计: PCM帧=52 字节=16640, G711A帧=0 字节=0, 速率=65234 bps
|
||||
I (34411) VolcRtcProtocol: 下行音频统计: PCM字节=0, OPUS字节=0
|
||||
2025-12-10 10:36:44.167 [E] LiteSocket.c:316 Send data to fd 58 realSend/should 0/36 I/O error type 2
|
||||
I (36151) Application: Simple VAD state change: speaking=true, device_state=7
|
||||
2025-12-10 10:36:44.599 [I] rx_net_audio_jitterbuffer.c:1537 [a_jb]insert ok:dup:total 0:0:0,in: jitter nor=0 reor=0, wj=0, out: pkt=0 t_diff=0 seq_diff=0 buffer_ms=0 target_ms=20 expand_npkt=101 expand_loss=0 start_seq 0 end_seq 0
|
||||
2025-12-10 10:36:44.639 [W] EventReportControl.c:195 PEventReportControl pAvailableLogdataQueue is empty, need drop this message, isStat 1
|
||||
I (36471) Application: AFE输出统计: 帧=32 样本=512
|
||||
I (36471) VolcRtcProtocol: 上行音频统计: PCM帧=51 字节=16320, G711A帧=0 字节=0, 速率=63503 bps
|
||||
I (36471) VolcRtcProtocol: 下行音频统计: PCM字节=0, OPUS字节=0
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=266 binary=1 free_heap=7732388
|
||||
I (36721) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=266 binary=1 free_heap=7732392
|
||||
I (36731) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=266 binary=1 free_heap=7732948
|
||||
I (36791) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=278 binary=1 free_heap=7732532
|
||||
I (37021) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=278 binary=1 free_heap=7732268
|
||||
I (37041) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=278 binary=1 free_heap=7734640
|
||||
I (37091) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=284 binary=1 free_heap=7732556
|
||||
I (37311) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=284 binary=1 free_heap=7732548
|
||||
I (37321) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=284 binary=1 free_heap=7734652
|
||||
I (37391) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=296 binary=1 free_heap=7732348
|
||||
I (37571) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7730264
|
||||
I (37601) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7731628
|
||||
I (37701) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7730676
|
||||
I (37791) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7732580
|
||||
I (37971) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7732304
|
||||
I (37991) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7730792
|
||||
I (38101) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7732624
|
||||
I (38271) VolcRtcProtocol: 接收下行消息: subv
|
||||
2025-12-10 10:36:46.603 [I] rx_net_audio_jitterbuffer.c:1537 [a_jb]insert ok:dup:total 0:0:0,in: jitter nor=0 reor=0, wj=0, out: pkt=0 t_diff=0 seq_diff=0 buffer_ms=0 target_ms=20 expand_npkt=100 expand_loss=0 start_seq 0 end_seq 0
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7730804
|
||||
I (38301) VolcRtcProtocol: 接收下行消息: subv
|
||||
2025-12-10 10:36:46.628 [W] EventReportControl.c:195 PEventReportControl pAvailableLogdataQueue is empty, need drop this message, isStat 1
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7730700
|
||||
I (38401) VolcRtcProtocol: 接收下行消息: subv
|
||||
I (38511) Application: AFE输出统计: 帧=32 样本=512
|
||||
I (38511) VolcRtcProtocol: 上行音频统计: PCM帧=51 字节=16320, G711A帧=0 字节=0, 速率=64025 bps
|
||||
I (38511) VolcRtcProtocol: 下行音频统计: PCM字节=0, OPUS字节=0
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7732516
|
||||
I (38551) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=297 binary=1 free_heap=7732620
|
||||
I (38601) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=303 binary=1 free_heap=7732904
|
||||
I (38691) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=303 binary=1 free_heap=7732548
|
||||
I (38871) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=303 binary=1 free_heap=7730464
|
||||
I (38891) VolcRtcProtocol: 接收下行消息: subv
|
||||
I (38971) Application: Simple VAD state change: speaking=false, device_state=7
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=303 binary=1 free_heap=7734720
|
||||
I (38991) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=303 binary=1 free_heap=7732640
|
||||
I (39181) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=303 binary=1 free_heap=7732368
|
||||
I (39191) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=303 binary=1 free_heap=7732952
|
||||
I (39321) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=301 binary=1 free_heap=7734480
|
||||
I (39331) VolcRtcProtocol: 接收下行消息: subv
|
||||
I (39341) Application: Free internal: 13235 minimal internal: 4807
|
||||
2025-12-10 10:36:48.637 [I] rx_net_audio_jitterbuffer.c:1537 [a_jb]insert ok:dup:total 0:0:0,in: jitter nor=0 reor=0, wj=0, out: pkt=0 t_diff=0 seq_diff=0 buffer_ms=0 target_ms=20 expand_npkt=101 expand_loss=0 start_seq 0 end_seq 0
|
||||
2025-12-10 10:36:48.639 [W] EventReportControl.c:195 PEventReportControl pAvailableLogdataQueue is empty, need drop this message, isStat 1
|
||||
2025-12-10 10:36:48.734 [I] rx_net_audio_jitterbuffer.c:1785 fir pkt seq=0
|
||||
2025-12-10 10:36:48.735 [I] rx_net_audio_jitterbuffer.c:1792 first recv dia cnt=1, fir pkt=0
|
||||
2025-12-10 10:36:48.736 [I] rx_net_audio_jitterbuffer.c:1617 [a_jb]reset jb bsize=0, needr=1, rst_cur_round=1, rst_cnt=-1
|
||||
2025-12-10 10:36:48.738 [I] rx_net_audio_jitterbuffer.c:1785 fir pkt seq=1
|
||||
2025-12-10 10:36:48.763 [I] rx_net_audio_jitterbuffer.c:1443 build_target_delay over need_extract_packet s=100
|
||||
I (40481) VolcRtcProtocol: 接收下行音频首包: 类型=PCM 大小=320
|
||||
I (40481) Application: 收到下行音频首包入队: 字节=320
|
||||
I (40581) Application: AFE输出统计: 帧=32 样本=512
|
||||
I (40591) VolcRtcProtocol: 上行音频统计: PCM帧=51 字节=16320, G711A帧=0 字节=0, 速率=62849 bps
|
||||
I (40591) VolcRtcProtocol: 下行音频统计: PCM字节=1920, OPUS字节=0
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=280 binary=1 free_heap=7678168
|
||||
I (40711) VolcRtcProtocol: 接收下行消息: subv
|
||||
2025-12-10 10:36:49.018 [W] EngineImplX.c:1047 callback pEngineImplX->eventHandler.on_message_received used too many times 4
|
||||
I (40951) Application: Simple VAD state change: speaking=true, device_state=7
|
||||
2025-12-10 10:36:50.283 [I] rx_net_audio_jitterbuffer.c:1717 is burst ver, [a_jb] rtt_to_s: 24, e2e_avg: -1, e2e_max: 0
|
||||
I (42091) Application: Simple VAD state change: speaking=false, device_state=7
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=275 binary=1 free_heap=7665536
|
||||
I (42111) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=281 binary=1 free_heap=7673992
|
||||
I (42311) VolcRtcProtocol: 接收下行消息: subv
|
||||
2025-12-10 10:36:50.638 [W] EventReportControl.c:195 PEventReportControl pAvailableLogdataQueue is empty, need drop this message, isStat 1
|
||||
W (42381) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.31, dist=0.10, echo=0.900
|
||||
I (42391) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
2025-12-10 10:36:50.744 [I] rx_net_audio_jitterbuffer.c:1537 [a_jb]insert ok:dup:total 119:3:122,in: jitter nor=36 reor=281, wj=11, out: pkt=99 t_diff=52 seq_diff=1 buffer_ms=420 target_ms=100 expand_npkt=0 expand_loss=0 start_seq 1 end_seq 118
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=287 binary=1 free_heap=7672624
|
||||
I (42501) VolcRtcProtocol: 接收下行消息: subv
|
||||
W (42531) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.30, dist=0.10, echo=0.900
|
||||
I (42561) Application: Simple VAD state change: speaking=true, device_state=7
|
||||
I (42561) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=293 binary=1 free_heap=7673932
|
||||
I (42611) VolcRtcProtocol: 接收下行消息: subv
|
||||
I (42621) Application: AFE输出统计: 帧=32 样本=512
|
||||
I (42621) VolcRtcProtocol: 上行音频统计: PCM帧=51 字节=16320, G711A帧=0 字节=0, 速率=64105 bps
|
||||
I (42621) VolcRtcProtocol: 下行音频统计: PCM字节=32640, OPUS字节=0
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=299 binary=1 free_heap=7671932
|
||||
I (42811) VolcRtcProtocol: 接收下行消息: subv
|
||||
W (42811) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.38, dist=0.10, echo=0.420
|
||||
I (42871) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
I (42891) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=305 binary=1 free_heap=7672820
|
||||
I (43011) VolcRtcProtocol: 接收下行消息: subv
|
||||
W (43051) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.36, dist=0.10, echo=0.243
|
||||
I (43071) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=311 binary=1 free_heap=7672764
|
||||
I (43111) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=317 binary=1 free_heap=7672320
|
||||
I (43211) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=323 binary=1 free_heap=7671932
|
||||
I (43411) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=336 binary=1 free_heap=7670376
|
||||
I (43711) VolcRtcProtocol: 接收下行消息: subv
|
||||
2025-12-10 10:36:52.286 [I] rx_net_audio_jitterbuffer.c:1717 is burst ver, [a_jb] rtt_to_s: 13, e2e_avg: 0, e2e_max: 0
|
||||
2025-12-10 10:36:52.628 [W] EventReportControl.c:195 PEventReportControl pAvailableLogdataQueue is empty, need drop this message, isStat 1
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=342 binary=1 free_heap=7669460
|
||||
I (44411) VolcRtcProtocol: 接收下行消息: subv
|
||||
2025-12-10 10:36:52.762 [I] rx_net_audio_jitterbuffer.c:1537 [a_jb]insert ok:dup:total 101:0:101,in: jitter nor=12 reor=0, wj=9, out: pkt=101 t_diff=26 seq_diff=1 buffer_ms=420 target_ms=100 expand_npkt=0 expand_loss=0 start_seq 119 end_seq 219
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=348 binary=1 free_heap=7674988
|
||||
I (44611) VolcRtcProtocol: 接收下行消息: subv
|
||||
I (44661) Application: AFE输出统计: 帧=32 样本=512
|
||||
I (44661) VolcRtcProtocol: 上行音频统计: PCM帧=52 字节=16640, G711A帧=0 字节=0, 速率=65288 bps
|
||||
I (44661) VolcRtcProtocol: 下行音频统计: PCM字节=32640, OPUS字节=0
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=354 binary=1 free_heap=7673600
|
||||
I (44711) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=360 binary=1 free_heap=7675268
|
||||
I (44911) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=366 binary=1 free_heap=7672820
|
||||
I (45011) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=372 binary=1 free_heap=7671928
|
||||
I (45301) VolcRtcProtocol: 接收下行消息: subv
|
||||
W (45381) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.34, dist=0.10, echo=1.915
|
||||
I (45411) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=378 binary=1 free_heap=7668812
|
||||
I (45501) VolcRtcProtocol: 接收下行消息: subv
|
||||
W (45531) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.32, dist=0.15, echo=0.180
|
||||
I (45561) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=384 binary=1 free_heap=7670824
|
||||
I (45711) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=401 binary=1 free_heap=7667360
|
||||
I (45821) VolcRtcProtocol: 接收下行消息: subv
|
||||
W (45891) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.30, dist=0.10, echo=1.012
|
||||
I (45951) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
2025-12-10 10:36:54.285 [I] rx_net_audio_jitterbuffer.c:1717 is burst ver, [a_jb] rtt_to_s: 10, e2e_avg: 12, e2e_max: 18
|
||||
W (46191) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.33, dist=0.10, echo=1.166
|
||||
I (46291) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
2025-12-10 10:36:54.644 [W] EventReportControl.c:195 PEventReportControl pAvailableLogdataQueue is empty, need drop this message, isStat 1
|
||||
2025-12-10 10:36:54.783 [I] rx_net_audio_jitterbuffer.c:1537 [a_jb]insert ok:dup:total 101:0:101,in: jitter nor=9 reor=0, wj=13, out: pkt=101 t_diff=29 seq_diff=1 buffer_ms=420 target_ms=100 expand_npkt=0 expand_loss=0 start_seq 220 end_seq 320
|
||||
I (46711) Application: AFE输出统计: 帧=32 样本=512
|
||||
I (46711) VolcRtcProtocol: 上行音频统计: PCM帧=51 字节=16320, G711A帧=0 字节=0, 速率=63624 bps
|
||||
I (46711) VolcRtcProtocol: 下行音频统计: PCM字节=32640, OPUS字节=0
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=270 binary=1 free_heap=7673108
|
||||
I (46911) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=276 binary=1 free_heap=7675136
|
||||
I (47011) VolcRtcProtocol: 接收下行消息: subv
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=288 binary=1 free_heap=7671228
|
||||
I (47211) VolcRtcProtocol: 接收下行消息: subv
|
||||
W (47481) AudioProcessor: 🔴 Entering HIGH INTERFERENCE mode - vol=0.37, dist=0.10, echo=0.957
|
||||
I (47511) AudioProcessor: 🟢 Exiting high interference mode - returning to adaptive suppression
|
||||
[INF|volc_rtc.c:475]message received channel=aibotrtc_G711A_Airhub_rtc33_20251210103631000 src=bot_20251210103631000 size=294 binary=1 free_heap=7670656
|
||||
I (47811) VolcRtcProtocol: 接收下行消息: subv
|
||||
I (49) WeatherApi: 初始化天气API配置 - 默认城市: 北京
|
||||
I (49) WeatherApi: WiFi位置缓存限制已设置为: 5 条
|
||||
I (50) coexist: coex firmware version: 7b9a184
|
||||
I (50) coexist: coexist rom version e7ae62f
|
||||
I (51) main_task: Started on CPU0
|
||||
I (61) main_task: Calling app_main()
|
||||
I (81) BackgroundTask: background_task started
|
||||
I (81) BluetoothProvisioning: 蓝牙配网对象创建完成
|
||||
I (81) button: IoT Button Version: 3.5.0
|
||||
I (81) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
|
||||
I (81) button: IoT Button Version: 3.5.0
|
||||
I (81) gpio: GPIO[4]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
|
||||
I (81) Airhub1: 初始化按钮...
|
||||
I (81) Airhub1: Boot button initialized on GPIO0
|
||||
I (81) Airhub1: Volume up button initialized on GPIO-1
|
||||
I (81) Airhub1: Volume down button initialized on GPIO-1
|
||||
I (81) Airhub1: 故事按键已初始化,GPIO引脚 =4
|
||||
I (81) Airhub1: 所有按键已成功初始化!
|
||||
I (81) Airhub1: Initializing I2C master bus for audio codec...
|
||||
I (81) Airhub1: Scanning I2C bus for devices...
|
||||
I (81) Airhub1: I2C设备在线: 0x18
|
||||
E (81) i2c.master: I2C transaction unexpected nack detected
|
||||
E (81) i2c.master: s_i2c_synchronous_transaction(945): I2C transaction failed
|
||||
E (81) i2c.master: i2c_master_receive(1261): I2C transaction failed
|
||||
E (81) i2c.master: I2C transaction unexpected nack detected
|
||||
E (81) i2c.master: s_i2c_synchronous_transaction(945): I2C transaction failed
|
||||
E (81) i2c.master: i2c_master_receive(1261): I2C transaction failed
|
||||
I (81) Airhub1: I2C设备在线: 0x40
|
||||
I (81) Airhub1: I2C scan completed. Found 2 devices
|
||||
I (81) Airhub1: IMU传感器未初始化,跳过IoT注册
|
||||
I (81) Airhub1: Initializing battery monitor...
|
||||
I (81) Airhub1: ADC calibration initialized
|
||||
I (81) Airhub1: 电池状态监控已初始化,GPIO:6
|
||||
I (81) Airhub1: 非生产测试模式且不在对话状态,姿态传感器业务已禁用以节约资源
|
||||
I (81) PowerSaveTimer: Power save timer enabled
|
||||
I (81) Airhub1: 🔋 PowerSaveTimer已启用,20秒无活动将进入低功耗模式
|
||||
I (81) Airhub1: 在构造函数完成后调用触摸初始化
|
||||
I (81) Application: 打印设置设备状态日志: starting
|
||||
I (91) Application: 正常启动流程,将执行开机播报和网络连接播报
|
||||
I (91) Airhub1: Initializing audio codec...
|
||||
I (91) Airhub1: Creating BoxAudioCodec (ES8311+ES7210, without reference) ...
|
||||
I (91) BoxAudioCodec: Duplex channels created
|
||||
I (91) ES8311: Work in Slave mode
|
||||
I (101) gpio: GPIO[48]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
|
||||
I (101) ES7210: Work in Slave mode
|
||||
I (111) ES7210: Enable ES7210_INPUT_MIC1
|
||||
I (111) ES7210: Enable ES7210_INPUT_MIC2
|
||||
I (111) BoxAudioCodec: BoxAudioDevice initialized
|
||||
I (111) Airhub1: Audio codec initialized successfully
|
||||
I (111) Application: 检测到WiFi板卡,将opus编码器复杂度设置为3
|
||||
I (111) OpusResampler: Resampler configured with input sample rate 16000, output sample rate 8000, and channels 1
|
||||
I (121) I2S_IF: channel mode 2 bits:16/16 channel:2 mask:1
|
||||
I (121) I2S_IF: TDM Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:1
|
||||
I (121) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
|
||||
I (121) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:1
|
||||
I (121) ES7210: Bits 16
|
||||
I (121) ES7210: Enable ES7210_INPUT_MIC1
|
||||
I (131) ES7210: Enable ES7210_INPUT_MIC2
|
||||
I (131) ES7210: Unmuted
|
||||
I (131) Adev_Codec: Open codec device OK
|
||||
I (141) BoxAudioCodec: Input opened: sr=16000 ch=1 mask=0x1 ref=0
|
||||
I (141) AudioCodec: Set input enable to true
|
||||
I (141) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:1
|
||||
I (141) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:1
|
||||
I (151) Adev_Codec: Open codec device OK
|
||||
I (151) AudioCodec: Set output enable to true
|
||||
I (151) AudioCodec: Audio codec started
|
||||
I (251) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (251) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (351) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (351) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (451) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (451) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (551) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (551) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (651) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (651) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (751) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (751) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (851) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (851) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (951) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (951) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1051) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1051) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1081) Airhub1: 开始延迟初始化触摸板...
|
||||
I (1081) Airhub1: 初始化触摸板...
|
||||
I (1081) Airhub1: 配置触摸传感器...
|
||||
I (1081) Airhub1: 校准触摸阈值...
|
||||
I (1081) Airhub1: 触摸板 0 初始原始值: 3578511
|
||||
I (1081) Airhub1: 触摸板 0 设置固定阈值: 5000
|
||||
I (1081) Airhub1: 触摸板 1 初始原始值: 3995179
|
||||
I (1081) Airhub1: 触摸板 1 设置固定阈值: 5000
|
||||
I (1081) Airhub1: 触摸板 2 初始原始值: 3791182
|
||||
I (1081) Airhub1: 触摸板 2 设置固定阈值: 5000
|
||||
I (1081) Airhub1: 触摸板 3 初始原始值: 4048727
|
||||
I (1081) Airhub1: 触摸板 3 设置固定阈值: 5000
|
||||
I (1081) Airhub1: 启用触摸传感器滤波器
|
||||
I (1081) Airhub1: 触摸阈值校准完成,使用固定阈值: 5000
|
||||
I (1081) Airhub1: 创建触摸事件队列...
|
||||
I (1081) Airhub1: 注册触摸中断处理程序...
|
||||
I (1081) Airhub1: 创建触摸事件任务...
|
||||
I (1081) Airhub1: 触摸事件任务启动
|
||||
I (1081) Airhub1: 触摸事件任务开始主循环
|
||||
I (1081) Airhub1: 所有触摸状态已重置
|
||||
I (1081) Airhub1: 设置触摸监控...
|
||||
I (1081) Airhub1: 触摸板初始化完成
|
||||
I (1151) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1151) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1181) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1181) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1251) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1251) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1351) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1351) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1451) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1451) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1551) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1551) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1651) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1651) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1751) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1751) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1851) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1851) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (1951) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (1951) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (2051) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (2051) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (2151) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (2151) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
I (2151) AudioCodec: 将运行时输出音量设置为:80
|
||||
I (2151) Application: 设备启动完成,播放开机播报语音
|
||||
I (2151) pp: pp rom version: e7ae62f
|
||||
I (2151) net80211: net80211 rom version: e7ae62f
|
||||
I (2161) wifi:wifi driver task: 3fce48b4, prio:23, stack:6656, core=0
|
||||
I (2161) wifi:wifi firmware version: bea31f3
|
||||
I (2161) wifi:wifi certification version: v7.0
|
||||
I (2161) wifi:config NVS flash: disabled
|
||||
I (2161) wifi:config nano formatting: disabled
|
||||
I (2161) wifi:Init data frame dynamic rx buffer num: 32
|
||||
I (2161) wifi:Init dynamic rx mgmt buffer num: 5
|
||||
I (2161) wifi:Init management short buffer num: 32
|
||||
I (2161) wifi:Init static tx buffer num: 16
|
||||
I (2161) wifi:Init tx cache buffer num: 32
|
||||
I (2161) wifi:Init static tx FG buffer num: 2
|
||||
I (2161) wifi:Init static rx buffer size: 1600
|
||||
I (2161) wifi:Init static rx buffer num: 16
|
||||
I (2161) wifi:Init dynamic rx buffer num: 32
|
||||
I (2161) wifi_init: rx ba win: 16
|
||||
I (2161) wifi_init: accept mbox: 6
|
||||
I (2161) wifi_init: tcpip mbox: 32
|
||||
I (2161) wifi_init: udp mbox: 6
|
||||
I (2161) wifi_init: tcp mbox: 6
|
||||
I (2161) wifi_init: tcp tx win: 5760
|
||||
I (2161) wifi_init: tcp rx win: 5760
|
||||
I (2161) wifi_init: tcp mss: 1440
|
||||
I (2161) wifi_init: WiFi/LWIP prefer SPIRAM
|
||||
I (2161) phy_init: phy_version 701,f4f1da3a,Mar 3 2025,15:50:10
|
||||
I (2191) wifi:mode : sta (d0:cf:13:03:bb:f0)
|
||||
I (2191) wifi:enable tsf
|
||||
I (2201) Application: 开始播放下行音频: 样本=960 采样率=16000
|
||||
I (4601) wifi: 发现可连接 AP: airhub, BSSID: 70:2a:d7:85:bc:eb, RSSI: -35, Channel: 1, Authmode: 3
|
||||
I (4611) WifiBoard: Starting WiFi connection, playing network connection sound
|
||||
W (4611) wifi:Password length matches WPA2 standards, authmode threshold changes from OPEN to WPA2
|
||||
I (4691) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
|
||||
I (4691) wifi:state: init -> auth (0xb0)
|
||||
I (4721) wifi:state: auth -> assoc (0x0)
|
||||
I (4741) wifi:state: assoc -> run (0x10)
|
||||
I (4751) wifi:connected with airhub, aid = 1, channel 1, BW20, bssid = 70:2a:d7:85:bc:eb
|
||||
I (4761) wifi:security: WPA2-PSK, phy: bgn, rssi: -33
|
||||
I (4761) wifi:pm start, type: 1
|
||||
|
||||
I (4761) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
|
||||
I (4761) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 25000, mt_pti: 14, mt_time: 10000
|
||||
I (4761) wifi:AP's beacon interval = 102400 us, DTIM period = 1
|
||||
I (5081) Airhub1: 📤 电量上报功能已启用,每30秒上报一次
|
||||
I (6301) wifi:<ba-add>idx:0 (ifx:0, 70:2a:d7:85:bc:eb), tid:0, ssn:0, winSize:64
|
||||
I (8781) wifi: Got IP: 192.168.124.47
|
||||
I (8781) esp_netif_handlers: sta ip: 192.168.124.47, mask: 255.255.255.0, gw: 192.168.124.1
|
||||
I (10821) VolcRtcProtocol: 设置Agent配置参数: {"Config":{"WebSearchAgentConfig":{"ParamsString":"{\"bot_id\":\"7585449675889608233\",\"stream\":true,\"location_info\":{\"city\":\"广州市\"}}"}}}
|
||||
I (10821) VolcRtcProtocol: VolcRtcProtocol 开始启动...
|
||||
I (10821) VolcRtcProtocol: 使用Wi-Fi MAC地址作为设备名称(已替换冒号为下划线): d0_cf_13_03_bb_f0
|
||||
I (10821) VolcRtcProtocol: NVS凭证已加载:secret=1 appid=1 device_name=d0_cf_13_03_bb_f0, free_heap=8290496
|
||||
[INF|volc_rtc.c:597]volc_rtc_create: set param[0]: {"debug":{"log_to_console":1}}
|
||||
[INF|volc_rtc.c:597]volc_rtc_create: set param[1]: {"audio":{"codec":{"internal":{"enable":1}}}}
|
||||
[INF|volc_rtc.c:597]volc_rtc_create: set param[2]: {"rtc":{"access":{"concurrent_requests":1}}}
|
||||
[INF|volc_rtc.c:597]volc_rtc_create: set param[3]: {"rtc":{"ice":{"concurrent_agents":1}}}
|
||||
2026-02-02 11:07:18.214 [I] VolcEngineRTCLite.c:153 ****************** HELLO BOOKA (68f0bc7617b8520178bef12c)(1.57.207.001)(HASH-5c3aa20fe851886d21cede0115044e17c3ec8a67) ********************
|
||||
2026-02-02 11:07:18.214 [I] VolcEngineRTCLite.c:158 Platform esp32s3
|
||||
2026-02-02 11:07:18.215 [I] VolcEngineRTCLite.c:161 OsVersion FreeRTOS/unknown
|
||||
2026-02-02 11:07:18.215 [I] VolcEngineRTCLite.c:164 CompilerInfo GCC/14.2.0
|
||||
2026-02-02 11:07:18.215 [I] VolcEngineRTCLite.c:100 BOOKA_DEVICE_LOW_RESOURCE : ON
|
||||
2026-02-02 11:07:18.215 [I] VolcEngineRTCLite.c:104 BOOKA_ENABLE_EVENT_REPORT : ON
|
||||
2026-02-02 11:07:18.216 [I] VolcEngineRTCLite.c:108 ENABLE_G722_CODEC : ON
|
||||
2026-02-02 11:07:18.216 [I] GlobalParams.c:232 pGlobalParams->configParams.rtc.access.concurrent_requests from 2 to 1
|
||||
2026-02-02 11:07:18.216 [I] GlobalParams.c:233 pGlobalParams->configParams.rtc.ice.concurrent_agents from 2 to 1
|
||||
2026-02-02 11:07:18.217 [I] GlobalParams.c:239 pGlobalParams->configParams.audio.codec.internal.enable from 0 to 1
|
||||
2026-02-02 11:07:18.217 [I] GlobalParams.c:244 pGlobalParams->configParams.debug.log_to_console from 0 to 1
|
||||
2026-02-02 11:07:18.217 [I] GlobalParams.c:247 pGlobalParams->configParams.rtc.root_path to .
|
||||
2026-02-02 11:07:18.219 [E] Cache.c:273 operation returned status code: 0x00000009
|
||||
2026-02-02 11:07:18.225 [E] SocketConnection-Lite.c:191 bind local ip failed
|
||||
2026-02-02 11:07:18.228 [I] LiteResolver.c:213 start resolve rtc-log-service.volcvideo.com by sep thread
|
||||
2026-02-02 11:07:18.231 [I] API byte_rtc_set_audio_codec engine 0x3c2eb4f0 audio_codec_type 4
|
||||
2026-02-02 11:07:18.232 [I] API byte_rtc_set_video_codec engine 0x3c2eb4f0 video_codec_type 0
|
||||
2026-02-02 11:07:18.233 [I] Common.c:82 rtcAudioCodec2SdkAudioCodec codec 5
|
||||
I (10841) VolcRtcProtocol: RTC实例已准备就绪;房间加入将在监听状态后执行
|
||||
I (10841) Application: 🌐 开始初始化WebSocket协议...
|
||||
I (10841) Application: 🔧 创建WebsocketProtocol实例
|
||||
I (10841) Application: 🚀 启动WebSocket协议
|
||||
I (10841) Application: ✅ WebSocket协议初始化完成
|
||||
I (10841) VolcRtcProtocol: VolcRtcProtocol初始化任务已创建
|
||||
I (10841) Application: 打印设置设备状态日志: idle
|
||||
I (10851) Application: Entering idle state, playing standby sound
|
||||
I (10851) WeatherApi: [AutoDetectAndSetLocation] 调用全局函数自动检测位置
|
||||
I (10851) WeatherApi: [AutoDetectLocation] ===== 开始自动检测位置 =====
|
||||
I (10851) WeatherApi: [AutoDetectLocation] 从NVS命中位置: '广州市',已更新默认城市
|
||||
I (10851) WeatherApi: [AutoDetectLocation] ===== 位置检测完成 =====
|
||||
I (10851) main_task: Returned from app_main()
|
||||
2026-02-02 11:07:18.266 [I] LiteResolver.c:213 start resolve access.rtc.volcvideo.com by sep thread
|
||||
2026-02-02 11:07:18.267 [I] LiteResolver.c:213 start resolve rtc-log-info.volcvideo.com by sep thread
|
||||
I (11181) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (11181) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
2026-02-02 11:07:18.901 [E] Cache.c:311 operation returned status code: 0x00000009
|
||||
I (11531) wifi:<ba-add>idx:1 (ifx:0, 70:2a:d7:85:bc:eb), tid:7, ssn:0, winSize:64
|
||||
2026-02-02 11:07:19.126 [I] IceAgent.c:2533 cur nominatedCandidatePair local 192.168.124.47:0 remote 183.2.197.178:50001 state ICE_CANDIDATE_PAIR_STATE_SUCCEEDED
|
||||
2026-02-02 11:07:25.306 [E] EventReportControl.c:399 not match curSeqId: 1, responseSeqId: 19
|
||||
I (20081) Airhub1: 🔋 进入低功耗模式:CPU降频、Light Sleep启用、功放关闭
|
||||
I (20091) I2S_IF: Pending out channel for in channel running
|
||||
I (20091) AudioCodec: Set output enable to false
|
||||
I (20091) Airhub1: 🔊 功放已关闭
|
||||
I (21181) Airhub1: ADC: 3149, 原始电压: 3.15V, 计算电池电压: 13.67V, 电量: 100%, 满电电压: 4.20V
|
||||
I (21181) WiFiMAC: Wi-Fi MAC Address: d0:cf:13:03:bb:f0
|
||||
@ -16,7 +16,7 @@ public:
|
||||
AudioCodec();
|
||||
virtual ~AudioCodec();
|
||||
|
||||
static constexpr int kDefaultOutputVolume = 30; // 默认输出音量 系统默认音量设置为100(最大音量),原来为70 产测固件使用
|
||||
static constexpr int kDefaultOutputVolume = 80; // 默认输出音量 系统默认音量设置为100(最大音量),原来为70 产测固件使用
|
||||
inline static int default_output_volume() { return kDefaultOutputVolume; }
|
||||
|
||||
virtual void SetOutputVolume(int volume);
|
||||
|
||||
@ -192,7 +192,7 @@ public:
|
||||
// 设置低功耗模式回调
|
||||
power_save_timer_->OnEnterSleepMode([this]() {
|
||||
ESP_LOGI(TAG, "🔋 进入低功耗模式:CPU降频、Light Sleep启用、功放关闭");
|
||||
|
||||
|
||||
// 关闭功放,进一步节省电量
|
||||
auto codec = GetAudioCodec();
|
||||
if (codec) {
|
||||
@ -203,7 +203,7 @@ public:
|
||||
|
||||
power_save_timer_->OnExitSleepMode([this]() {
|
||||
ESP_LOGI(TAG, "🔋 退出低功耗模式:CPU恢复正常、Light Sleep禁用、功放打开");
|
||||
|
||||
|
||||
// 打开功放,恢复正常音频输出
|
||||
auto codec = GetAudioCodec();
|
||||
if (codec) {
|
||||
@ -454,8 +454,8 @@ public:
|
||||
uint8_t target_addresses[] = {
|
||||
0x18, // ES8311音频编解码器地址
|
||||
0x6A, // QMI8658A姿态传感器地址
|
||||
0x6B, // QMI8658A姿态传感器备用地址
|
||||
0x40
|
||||
0x6B, // QMI8658A姿态传感器备用地址
|
||||
0x40 // ES7210音频编解码器地址
|
||||
};
|
||||
|
||||
size_t addr_count = sizeof(target_addresses) / sizeof(target_addresses[0]);
|
||||
@ -791,7 +791,7 @@ public:
|
||||
}
|
||||
|
||||
void InitializeBatteryMonitor() {
|
||||
ESP_LOGI(TAG, "Initializing battery monitor...");
|
||||
ESP_LOGI(TAG, "Initializing battery monitor...");// 初始化电池状态监控
|
||||
|
||||
// 初始化 ADC
|
||||
adc_oneshot_unit_init_cfg_t init_config = {
|
||||
@ -837,7 +837,7 @@ public:
|
||||
|
||||
auto& app = Application::GetInstance();// 获取当前应用状态
|
||||
auto current_state = app.GetDeviceState();// 获取当前设备状态
|
||||
|
||||
|
||||
// 在生产测试模式下或在对话状态下启用姿态传感器
|
||||
if (!production_test_mode_ && current_state != kDeviceStateDialog) {
|
||||
ESP_LOGI(TAG, "非生产测试模式且不在对话状态,姿态传感器业务已禁用以节约资源");
|
||||
@ -845,9 +845,9 @@ public:
|
||||
imu_sensor_ = nullptr;// 姿态传感器实例指针
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const char* log_tag = production_test_mode_ ? Pro_TAG : TAG;
|
||||
|
||||
|
||||
if (current_state == kDeviceStateDialog) {
|
||||
ESP_LOGI(log_tag, "对话状态下启用姿态传感器");
|
||||
} else {
|
||||
@ -869,7 +869,7 @@ public:
|
||||
ESP_LOGI(log_tag, "I2C总线已初始化,创建IMU传感器实例");// I2C总线已初始化,创建IMU传感器实例
|
||||
ESP_LOGI(log_tag, "使用I2C地址: 0x6A");// 使用I2C地址: 0x6A
|
||||
|
||||
|
||||
|
||||
vTaskDelay(pdMS_TO_TICKS(100));// 添加延迟,确保I2C总线完全稳定
|
||||
|
||||
// 创建IMU传感器实例 (使用I2C地址0x6A)
|
||||
@ -939,7 +939,7 @@ public:
|
||||
if (init_result == QMI8658A_OK) {
|
||||
imu_initialized_ = true;
|
||||
ESP_LOGI(log_tag, "QMI8658A传感器初始化成功");// QMI8658A传感器初始化成功
|
||||
|
||||
|
||||
if (config.auto_calibration) {
|
||||
qmi8658a_error_t calib_buf = imu_sensor_->StartBufferedReading(20);
|
||||
if (calib_buf == QMI8658A_OK) {
|
||||
@ -1010,7 +1010,7 @@ public:
|
||||
// 读取IMU数据的方法
|
||||
void ReadImuData() {
|
||||
// ESP_LOGI(Pro_TAG, "读取IMU数据,是否初始化 =%d, 传感器指针 =%p", imu_initialized_, imu_sensor_);// 读取IMU数据,是否初始化:%d,传感器指针:%p
|
||||
|
||||
|
||||
if (!imu_initialized_ || !imu_sensor_) {
|
||||
ESP_LOGI(Pro_TAG, "IMU未初始化,跳过数据读取");// IMU未初始化,跳过数据读取
|
||||
return;
|
||||
@ -1021,12 +1021,12 @@ public:
|
||||
const int kRetryDelayMs = 5; // 重试间隔5ms
|
||||
qmi8658a_error_t result = QMI8658A_ERROR_TIMEOUT;
|
||||
int retry_count = 0;
|
||||
|
||||
|
||||
do {
|
||||
// 读取传感器数据
|
||||
// ESP_LOGI(Pro_TAG, "尝试读取IMU传感器数据(第%d次尝试)", retry_count + 1);// 尝试读取IMU传感器数据
|
||||
result = imu_sensor_->ReadSensorData(&latest_imu_data_);
|
||||
|
||||
|
||||
if (result == QMI8658A_OK) {
|
||||
// ESP_LOGI(Pro_TAG, "成功读取IMU数据,正在处理...");// 成功读取IMU数据,正在处理...
|
||||
// 可以在这里添加数据处理逻辑
|
||||
@ -1044,7 +1044,7 @@ public:
|
||||
break;
|
||||
}
|
||||
} while (retry_count < kMaxRetries);
|
||||
|
||||
|
||||
// 如果执行到这里,说明所有尝试都失败了
|
||||
ESP_LOGI(Pro_TAG, "所有尝试都失败,放弃本次IMU数据读取");// 读取IMU数据失败,错误码 = %d
|
||||
}
|
||||
@ -2008,9 +2008,9 @@ void MovecallMojiESP32S3::EnterProductionTestMode() {
|
||||
esp_log_level_set("MovecallMojiESP32S3", ESP_LOG_INFO);
|
||||
esp_log_level_set("Airhub1", ESP_LOG_INFO);
|
||||
esp_log_level_set("AFE", ESP_LOG_ERROR);
|
||||
|
||||
|
||||
ESP_LOGI(Pro_TAG, "🔧 已进入生产测试模式,可以开始测试!");// 生产测试打印
|
||||
|
||||
|
||||
auto& app = Application::GetInstance();
|
||||
auto* codec = GetAudioCodec();
|
||||
if (codec) {
|
||||
@ -2025,7 +2025,7 @@ void MovecallMojiESP32S3::EnterProductionTestMode() {
|
||||
|
||||
// 检查IMU传感器初始化状态
|
||||
ESP_LOGI(Pro_TAG, "🔧 生产测试:IMU传感器初始化状态: %s", imu_initialized_ ? "成功" : "失败");
|
||||
|
||||
|
||||
if (imu_initialized_ && imu_sensor_) {
|
||||
ESP_LOGI(Pro_TAG, "🔧 姿态传感器已初始化成功! 可以开始测试运动检测功能");
|
||||
xTaskCreate(
|
||||
@ -2044,7 +2044,7 @@ void MovecallMojiESP32S3::EnterProductionTestMode() {
|
||||
);
|
||||
} else {
|
||||
ESP_LOGI(Pro_TAG, "姿态传感器初始化失败或未连接!");
|
||||
|
||||
|
||||
// 尝试再次检测连接
|
||||
if (codec_i2c_bus_) {
|
||||
uint8_t detected_address = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user