Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加IOT代码,实现小智AI通过LEDC控制舵机的方案,后台提示Failed to parse IoT descriptors #366

Open
3 tasks done
AllenSu007 opened this issue Mar 18, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@AllenSu007
Copy link

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.

bread-compact-wifi-lcd

Operating System used.

Windows

How did you build your project?

Command line with CMake

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

None

Power Supply used.

USB

What is the expected behavior?

E (38154) Protocol: Failed to parse IoT descriptors: [{"name":"Speaker","description":"
扬声器","properties":{"volume":{"description":"当前音量值","type":"number"}},"methods":{"SetVolume":{"description":"设置音量","parameters":{"volume":{"description":"0到100之间
的整数","type":"number"}}}}},{"name":"Lamp","description":"一个测试用的灯","properties":{"power":{"description":"灯是否打开","type":"boolean"}},"methods":{"TurnOn":{"description":"打开灯","parameters":{}},"TurnOff":{"description":"关闭灯","parameters":{}}}},{"name":"Motion","description":"机器人身体控制","properties":{"nod_speed":{"description":"点头
速度(ms)",},"shake_range":{"description":"摇头幅度",},"is_moving":{"description":"是否运
动中","type":"boolean"}},"methods":{"emotion_ctrl":{"description":"情感控制","parameters":{"text":{"description":"语义文本","type":"string"},"intensity":{"description":"强度等
级1-5","type":"number"}}},"set_emotion":{"description":"设置情感状态","parameters":{"emotion":{"description":"情感名称","type":"string"},"intensity":{"description":"强度1-5","type":"number"}}},"calibrate":{"description":"舵机校准","parameters":{"angle":{"description":"校准角度0-180","type":"number"}}},"upload_sequence":{"description":"上传动作序列","parameters":{"actions":{"description":"JSON格式动作数组","type":"string"}}}}},{"name":"Backlight","description":"屏幕背光","properties":{"brightness":{"description":"当前亮度百
分比","type":"number"}},"methods":{"SetBrightness":{"description":"设置亮度","parameters":{"brightness":{"description":"0到100之间的整数","type":"number"}}}}}]

What is the actual behavior?

在小智代码内,通过IOT-PWM LEDC来控制舵机。

Steps to reproduce.

  1. Step
  2. Step
  3. Step
    ...

Debug Logs.


More Information.

No response

@AllenSu007 AllenSu007 added the bug Something isn't working label Mar 18, 2025
@AllenSu007 AllenSu007 changed the title 添加IOT代码,编译烧录都通过了,但是运行时,后台提示Failed to parse IoT descriptors 添加IOT代码,实现小智AI通过LEDC控制舵机的方案,后台提示Failed to parse IoT descriptors Mar 18, 2025
@78
Copy link
Owner

78 commented Mar 19, 2025

这不应该是设备报的错误吗?减少一些方法或者属性,看看是哪个影响了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants