xiaozhi-esp32 icon indicating copy to clipboard operation
xiaozhi-esp32 copied to clipboard

小智2.0自定义主题无法线上刷入

Open Kelvinyes5443 opened this issue 3 months ago • 16 comments

Answers checklist.

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

XiaoZhi AI firmware version.

2.0.1

Operating System used.

Windows

How did you build your project?

Other (please specify in More Information)

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

None

Power Supply used.

USB

What is the expected behavior?

在官网编辑主题后,点线上刷入,运行到设备重启的环节,设备重启之后首先说有新的资源,然后说下载失败,网页就一直在等待设备重启。我试过很多骗了都是这样,没有成功刷入过。我的设备「无名科技 星智cube 1.54tft wifi」

What is the actual behavior?

在官网编辑主题后,点线上刷入,运行到设备重启的环节,设备重启之后首先说有新的资源,然后说下载失败,网页就一直在等待设备重启。我试过很多骗了都是这样,没有成功刷入过。我的设备「无名科技 星智cube 1.54tft wifi」

Steps to reproduce.

在官网编辑主题后,点线上刷入,运行到设备重启的环节,设备重启之后首先说有新的资源,然后说下载失败,网页就一直在等待设备重启。我试过很多骗了都是这样,没有成功刷入过。我的设备「无名科技 星智cube 1.54tft wifi」

Debug Logs.


More Information.

我使用的是香港到网路环境,不知道有没有影响。我也试过用内地的VPN,也是失败。

Kelvinyes5443 avatar Sep 15 '25 08:09 Kelvinyes5443

应该是跟网络链路有关,多试几次看看,后面这个网页也会在香港部署节点

78 avatar Sep 15 '25 09:09 78

应该是跟网络链路有关,多试几次看看,后面这个网页也会在香港部署节点

谢谢回复,我今天已经试过很多遍了,都是显示下载资源失败,没有成功过,都是还没开始下载就显示失败了,VPN我也试过好几个也不行。想问一下assets.bin这个文件目前下载之后有没有办法不用开发环境下直接刷入?如果可以,刷入的位置也是用0x0?还是别的位置?

Kelvinyes5443 avatar Sep 15 '25 11:09 Kelvinyes5443

用烧录固件的工具 https://docs.espressif.com/projects/esp-test-tools/en/latest/esp32/production_stage/tools/flash_download_tool.html

烧录到 assets 分区,具体可以查看 partitions/v2/16m.csv,对于 16M flash,assets分区起始位置是 0x800000

78 avatar Sep 15 '25 13:09 78

用烧录固件的工具 https://docs.espressif.com/projects/esp-test-tools/en/latest/esp32/production_stage/tools/flash_download_tool.html

烧录到 assets 分区,具体可以查看 partitions/v2/16m.csv,对于 16M flash,assets分区起始位置是 0x800000

谢谢!成功烧录进去了!

Kelvinyes5443 avatar Sep 16 '25 00:09 Kelvinyes5443

Hello Please explain what will be the offset for 8Mb model with firmware v2.0.2_sp-esp32-s3-1.28-box ? Thanks!

tredntredn avatar Sep 19 '25 16:09 tredntredn

Hello Please explain what will be the offset for 8Mb model with firmware v2.0.2_sp-esp32-s3-1.28-box ? Thanks!

For 8MB Flash, the offset of assets partition is 6MB (2MB size). For 16MB Flash, the offset of assets partition is 8MB (8MB size).

78 avatar Sep 20 '25 09:09 78

Same problem here. The generated assets.bin on the online resource is not available.

simplest-circuits avatar Sep 22 '25 15:09 simplest-circuits

Same problem here. The generated assets.bin on the online resource is not available.

The online flashing tool is not stable yet. It will be better next version.

The alternative way is to download the assets.bin and flash it to the device with the official Espressif Flash Download Tool.

78 avatar Sep 22 '25 15:09 78

Same problem here. The generated assets.bin on the online resource is not available.

The online flashing tool is not stable yet. It will be better next version.

The alternative way is to download the assets.bin and flash it to the device with the official Espressif Flash Download Tool.

The question for manual update is to which offset do i have to set the flashing tool? Online flasher is telling me 8Mb flash size. I've used the precompiled V2.0.2.

simplest-circuits avatar Sep 22 '25 16:09 simplest-circuits

Same problem here. The generated assets.bin on the online resource is not available.

The online flashing tool is not stable yet. It will be better next version. The alternative way is to download the assets.bin and flash it to the device with the official Espressif Flash Download Tool.

The question for manual update is to which offset do i have to set the flashing tool? Online flasher is telling me 8Mb flash size. I've used the precompiled V2.0.2.

I think it is the size of the assets partition (not the size of flash). If you are using 16MB flash and firmware version 2.0.2, you should flash the downloaded assets.bin to the address 0x800000.

78 avatar Sep 24 '25 11:09 78

@78 我的智控台显示离线问题,但是我的设备已经开机了,显示   | zhengchen-1.54tft-wifi | 2.0.4 | 3c:dc:75:6b:27:fc | 2025-10-30 18:40:03 | 2025-10-31 08:11:50 | 离线 然后我用在线的assets进行烧录,可以下载但是不能在线烧录,下载之后,要怎么进行烧录?

xuyansu avatar Oct 31 '25 00:10 xuyansu

@78 我的智控台显示离线问题,但是我的设备已经开机了,显示   | zhengchen-1.54tft-wifi | 2.0.4 | 3c:dc:75:6b:27:fc | 2025-10-30 18:40:03 | 2025-10-31 08:11:50 | 离线 然后我用在线的assets进行烧录,可以下载但是不能在线烧录,下载之后,要怎么进行烧录?

在线烧录需要 2.0 以上的固件版本,并且以 MQTT 方式连接服务器。

78 avatar Oct 31 '25 12:10 78

虾哥,我用的服务端是本地部署的小智服务端模型,现在无法自定义表情,我在智控台了没有找到自定义模块,只有在官方的控制台才有主题配置,这种情况的话,我的本地部署的服务端要怎么去自定义表情呢? @78

xuyansu avatar Nov 04 '25 00:11 xuyansu

你可以自行本地部署:https://github.com/78/xiaozhi-assets-generator

78 avatar Nov 04 '25 07:11 78

@78 虾哥 全模块部署出现播放卡顿的问题,我从智控台里的聊天记录里去播放哪些语音条,一点都不卡顿,但是设备播放出来的语音就会有点卡顿,这是什么原因照成的呢?要如何去修改?

xuyansu avatar Nov 17 '25 11:11 xuyansu

@78 虾哥 全模块部署出现播放卡顿的问题,我从智控台里的聊天记录里去播放哪些语音条,一点都不卡顿,但是设备播放出来的语音就会有点卡顿,这是什么原因照成的呢?要如何去修改?

自己部署的服务器?你可以用 python 客户端连接测试一下,打印一下是否数据包延迟导致,比如60ms的音频帧,接收时间间隔超过了60ms

78 avatar Nov 17 '25 14:11 78