Files
xiaozhi-esp32/main/boards/esp-hi
Xiaoxia b7db68457c v2.1.0: Upgrade esp-wifi-connect to 3.0; New device state machine (#1528)
* Upgrade component version

* update fonts component version

* Handle OTA error code

* Update project version to 2.1.0 and add device state machine implementation

- Upgrade  esp-wifi-connect to 3.0.0, allowing reconfiguring wifi without rebooting
- Introduce device state machine with state change notification in new files
- Remove obsolete device state event files
- Update application logic to utilize new state machine
- Minor adjustments in various board implementations for state handling

* fix compile errors

* Refactor power saving mode implementation to use PowerSaveLevel enumeration

- Updated Application class to replace SetPowerSaveMode with SetPowerSaveLevel, allowing for LOW_POWER and PERFORMANCE settings.
- Modified various board implementations to align with the new power save level structure.
- Ensured consistent handling of power save levels across different board files, enhancing code maintainability and clarity.

* Refactor power save level checks across multiple board implementations

- Updated the condition for power save level checks in various board files to ensure that the power save timer only wakes up when the level is not set to LOW_POWER.
- Improved consistency in handling power save levels, enhancing code clarity and maintainability.

* Refactor EnterWifiConfigMode calls in board implementations

- Updated calls to EnterWifiConfigMode to use the appropriate instance reference (self or board) across multiple board files.
- Improved code consistency and clarity in handling device state during WiFi configuration mode entry.

* Add cellular modem event handling and improve network status updates

- Introduced new network events for cellular modem operations, including detecting, registration errors, and timeouts.
- Enhanced the Application class to handle different network states and update the display status accordingly.
- Refactored Ml307Board to implement a callback mechanism for network events, improving modularity and responsiveness.
- Updated dual_network_board and board headers to support new network event callbacks, ensuring consistent handling across board implementations.

* update esp-wifi-connect version

* Update WiFi configuration tool messages across multiple board implementations to clarify user actions
2025-12-09 09:24:56 +08:00
..
2025-10-02 03:29:16 +08:00

ESP-Hi

简介

ESP-Hi 是 ESP Friends 开源的一款基于 ESP32C3 的超低成本 AI 对话机器人。ESP-Hi 集成了一个0.96寸的彩屏,用于显示表情,机器狗已实现数十种动作。通过对 ESP32-C3 外设的充分挖掘,仅需最少的板级硬件即可实现拾音和发声,同步优化了软件,降低内存与 Flash 占用,在资源受限的情况下同时实现了唤醒词检测与多种外设驱动。硬件详情等可查看立创开源项目

WebUI

ESP-Hi x 小智内置了一个控制身体运动的 WebUI请将手机与 ESP-Hi 连接到同一个 Wi-Fi 下,手机访问 http://esp-hi.local/ 以使用。

如需禁用,请取消 ESP_HI_WEB_CONTROL_ENABLED,即取消勾选 Component configServo Dog ConfigurationWeb ControlEnable ESP-HI Web Control

配置、编译命令

由于 ESP-Hi 需要配置较多的 sdkconfig 选项,推荐使用编译脚本编译。

编译

python ./scripts/release.py esp-hi

如需手动编译,请参考 esp-hi/config.json 修改 menuconfig 对应选项。

烧录

idf.py flash

Tip

舵机控制会占用 ESP-Hi 的 USB Type-C 接口,导致无法连接电脑(无法烧录/查看运行日志)。如遇此情况,请按以下提示操作:

烧录

  1. 断开 ESP-Hi 的电源,只留头部,不要连接身体。
  2. 按住 ESP-Hi 的按钮并连接电脑。

此时ESP-Hi (ESP32C3) 应当处于烧录模式,可以使用电脑烧录程序。烧录完成后,可能需要重新插拔电源。

查看 log

请设置 CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y,即 Component configESP System SettingsChannel for console output 选择 USB Serial/JTAG Controller。这同时会禁用舵机控制功能。