-
Notifications
You must be signed in to change notification settings - Fork 39
Description
问题描述
使用最新版固件编译烧录 StackChan 后,设备连接 WiFi 成功,但 OTA 请求返回的是测试凭证(GID_test),没有返回 activation 字段,导致设备无法获取6位绑定码,也就无法在 xiaozhi.me 控制面板上绑定设备和自定义智能体。目前设备可以正常对话,但使用的是测试账号,默认说英文,无法切换到自己的小智账号。
复现步骤
按照 firmware/README.md 执行 fetch_repos.py,然后编译烧录2. 设备启动,连接 WiFi3. 设备发送 OTA 请求到 https://api.tenclass.net/xiaozhi/ota/4. 观察日志中的 OTA 返回
OTA 返回内容
{ "mqtt": { "endpoint": "mqtt.xiaozhi.me", "client_id": "GID_test@@@f4_12_fa_b9_3b_94@@@bad76396-...", "username": "...", "password": "...", "publish_topic": "device-server", "subscribe_topic": "null" }, "websocket": { "url": "wss://api.tenclass.net/xiaozhi/v1/", "token": "test-token" }, "server_time": { "timestamp": 1772084756816, "timezone_offset": 480 }, "firmware": { "version": "2.0.4", "url": "" }}
注意:返回中没有 activation 字段,client_id 包含 GID_test,token 为 test-token。
期望行为
OTA 返回中应包含 activation 字段(含6位绑定码),以便用户在 xiaozhi.me 上绑定设备到自己的账号,并自定义智能体(语言、大模型、人设等)。
环境信息
设备:M5Stack StackChan(基于 CoreS3)
固件:当前仓库最新版本
Board Type:m5stack-stack-chan(CMakeLists.txt 中定义)
User-Agent:m5stack-stack-chan/
OTA URL:https://api.tenclass.net/xiaozhi/ota/(默认值)
已尝试:erase-flash 清除 NVS 后重新烧录,问题依旧