Skip to content

UDP 音频接收单向中断,恢复网络后仍无法接收 #1967

@geech54sheeter2

Description

@geech54sheeter2

Answers checklist.

  • I have read the documentation XiaoZhi AI Programming Guide and the issue is not addressed there.
  • I have updated my firmware to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

XiaoZhi AI firmware version.

v2.2.5kevin_box2,maybe anyone

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Power Supply used.

Battery

What is the expected behavior?

弱网环境恢复后,设备应能继续正常接收服务端通过 UDP 发送的音频数据。

What is the actual behavior?

打印了接收udp的日志,在弱网环境下,设备mqtt消息能正常接收和发送,udp消息则不行,待网络正常后,mqtt消息正常发送和接收,udp正常发送,但是接收不到udp消息,只能等待会话重建或者重启设备。

Steps to reproduce.

1.正常使用
2.网络变差
3.网络恢复
4.无法正常对话

Debug Logs.


More Information.

I (75268) Application: >> Hello. Hello
I (75308) StateMachine: State: idle -> speaking
I (75868) Application: << 欸~
I (76018) MQTT: UDP received packet, size: 107
I (76018) MQTT: UDP received packet, size: 168
I (76018) MQTT: UDP received packet, size: 160
I (76018) MQTT: UDP received packet, size: 234
I (76078) MQTT: UDP received packet, size: 203
I (76078) MQTT: UDP received packet, size: 198
I (76138) MQTT: UDP received packet, size: 177
I (76198) MQTT: UDP received packet, size: 189
I (76258) MQTT: UDP received packet, size: 184
I (76318) MQTT: UDP received packet, size: 202
I (76378) MQTT: UDP received packet, size: 181
I (76438) MQTT: UDP received packet, size: 210
I (76498) MQTT: UDP received packet, size: 217
I (76608) MQTT: UDP received packet, size: 189
I (76618) MQTT: UDP received packet, size: 170
I (76678) MQTT: UDP received packet, size: 151
I (76738) MQTT: UDP received packet, size: 107
I (76798) MQTT: UDP received packet, size: 100
I (76858) MQTT: UDP received packet, size: 109
I (76918) MQTT: UDP received packet, size: 116
I (76978) MQTT: UDP received packet, size: 84
I (76978) Application: << 你这“Hello”是想召唤我吗?
I (77038) MQTT: UDP received packet, size: 88
I (77108) MQTT: UDP received packet, size: 150
I (77158) MQTT: UDP received packet, size: 155
I (77218) MQTT: UDP received packet, size: 214
I (77278) MQTT: UDP received packet, size: 201
I (77338) MQTT: UDP received packet, size: 210
I (77398) MQTT: UDP received packet, size: 185
I (77458) MQTT: UDP received packet, size: 220
I (77518) MQTT: UDP received packet, size: 212
I (77578) MQTT: UDP received packet, size: 203
I (77638) MQTT: UDP received packet, size: 184
I (77698) MQTT: UDP received packet, size: 211
I (79618) Application: << 还是在玩接龙呀?
I (81548) Application: << 笑死,我耳朵都快听出茧了啦!
I (84458) SystemInfo: free sram: 89979 minimal sram: 79951
I (85378) StateMachine: State: speaking -> idle
I (86258) KevinBoxBoard: Boot button pressed down, calling StartListening(), current state=3
I (86258) StateMachine: State: idle -> listening
I (86258) Protocol: >>> Sending start listening to server: {"session_id":"b415e88b-b3c2-42fa-9271-bba6b4b5cd5d","type":"listen","state":"start","mode":"manual"}
I (87678) KevinBoxBoard: Boot button released, calling StopListening(), current state=5
I (87678) Protocol: >>> Sending stop listening to server: {"session_id":"b415e88b-b3c2-42fa-9271-bba6b4b5cd5d","type":"listen","state":"stop"}
I (87688) StateMachine: State: listening -> idle

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions