Commit Graph

41 Commits

Author SHA1 Message Date
f7284a57df Enhance memory management in asset download and OTA processes by repl… (#1716)
* Enhance memory management in asset download and OTA processes by replacing static buffer allocations with dynamic memory allocation using heap capabilities. Update SPIRAM configuration values for improved memory usage. Add logging for error handling in buffer allocation failures. Introduce a new parameter in CloseAudioChannel to control goodbye message sending in MQTT and WebSocket protocols.

* Update component versions in idf_component.yml and refactor GIF decoder functions for improved performance. Bump versions for audio effects, audio codec, LED strip, and other dependencies. Change GIF read and seek functions to inline for optimization.

* Update language files to include new phrases for flight mode and connection status across multiple locales. Added translations for "FLIGHT_MODE_ON", "FLIGHT_MODE_OFF", "CONNECTION_SUCCESSFUL", and "MODEM_INIT_ERROR" in various languages, enhancing user experience and localization support.

* fix wechat display
2026-01-31 22:58:08 +08:00
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
511349a7bd Change LCD display layout from grids to layers (#1438)
* Upgrade component version

* update fonts component version

* change lcd display layout from grids to layers

* Update English README as default

* Handle OTA error code
2025-11-17 22:38:31 +08:00
b413e3ec03 regenerate jpeg encoder (#1198)
* regenerate jpeg encoder

* add README to gif/jpeg

* 开机启动显示开发板信息,提前启动event loop
2025-09-16 05:00:02 +08:00
f79506d58b feat: add manual upgrade firmware 2025-09-12 08:45:29 +08:00
83f6f8c703 Switch to 2.0 branch (#1152)
* Adapt boards to v2 partition tables

* fix esp log error

* fix display style

* reset emotion after download assets

* fix compiling

* update assets default url

* Add user only tools

* Add image cache

* smaller cache and buffer, more heap

* use MAIN_EVENT_CLOCK_TICK to avoid audio glitches

* bump to 2.0.0

* fix compiling errors

---------

Co-authored-by: Xiaoxia <terrence.huang@tenclass.com>
2025-09-04 15:41:28 +08:00
ddbb24942d v1.8.9: Upgrade component versions (#1118) 2025-08-23 07:12:14 +08:00
d1c047d060 Update to esp-ml307@3.1.1 2025-07-21 05:46:05 +08:00
3c71558a5f v1.8.0: Audio 代码重构与低功耗优化 (#943)
* Reconstruct Audio Code

* Remove old IoT implementation

* Add MQTT-UDP documentation

* OTA升级失败时,可以继续使用
2025-07-19 22:45:22 +08:00
6bb95073a4 v1.7.7: 支持 EC801E 模组,增加 xmini-c3-v3, xmini-c3-4g (#930) 2025-07-17 20:18:21 +08:00
f29c1a11d9 ml307: Add sleep mode (#826) 2025-06-16 19:05:31 +08:00
f41210577b v1.6.8: Move partition CSV files into a folder 2025-06-04 12:11:55 +08:00
16ec95f6d5 Update documentation (An MCP-based Chatbot) 2025-06-04 04:17:49 +08:00
e52703df24 feat: Add Serial-Number to OTA header 2025-06-03 14:15:13 +08:00
0c57df1cd8 v1.6.5: Improve performance and memory usage 2025-05-26 14:30:44 +08:00
f890220ce3 remove unused ota class members 2025-05-26 06:11:47 +08:00
249d12ac25 feat: Add camera functions (lichuang-dev) 2025-05-25 17:07:07 +08:00
5da66773d5 Add MCP server 2025-05-22 19:19:48 +08:00
f142c5469c Adjust mqtt variables 2025-05-22 19:19:48 +08:00
696786ad4c Upgrade component versions 2025-05-07 15:26:53 +08:00
4be2464fbc Remove warnings 2025-05-07 04:40:17 +08:00
8e638e3884 OTA checkversion增加了一些log, 便于三方开发调试自己的OTA接口 (#568)
* feat(ota): add logging for missing sections in Ota::CheckVersion

Add detailed logging to inform when specific sections (activation, mqtt, websocket, server_time, firmware) are not found during the OTA version check. This improves debugging and visibility into the OTA process.

* 恢复提示词

---------

Co-authored-by: loadingxv <loadingvx@gmail.com>
2025-05-04 19:25:50 +09:00
4caffd31ed Remove No serial message 2025-04-29 20:42:31 +08:00
5f8389c135 Add binary protocol v2 & v3 to websocket 2025-04-28 16:29:33 +08:00
3404180a77 更新Wi-Fi组件版本,从OTA接口读取Websocket服务器 2025-04-21 15:13:11 +08:00
68a3f7d2f7 Allow force OTA upgrade to a previous version 2025-04-14 22:05:29 +08:00
d5d8b34b2b Add activation version 2 2025-04-14 15:44:06 +08:00
78d7b40914 将项目版本更新至1.5.9,优化内存使用,增加主任务栈大小至8192,优化固件升级流程,重构主循环为MainEventLoop,添加新版本检查功能,更新音频编解码器的DMA配置常量。 2025-04-13 11:47:15 +08:00
a5dfe67504 move ota headers to ota.cc 2025-04-10 18:56:17 +08:00
a23a88cc5d Bump to 1.3.0 2025-02-24 14:41:34 +08:00
3a71c1e895 Enhance device activation and OTA update process
- Add support for device activation with audio feedback
- Refactor OTA update flow to include activation code handling
- Update asset management for localized sound resources
- Improve error handling and device state management
- Reorganize binary asset includes and CMake configuration
2025-02-16 06:59:19 +08:00
ac93e88d17 add uuid to board 2025-02-11 16:56:23 +08:00
1928a662de static buffer 2025-01-13 05:32:24 +08:00
58c1cd81c6 reduce memory usage of ota 2025-01-13 05:00:14 +08:00
436ff2b906 fit the memory usage for esp32c3 2024-11-29 11:06:05 +08:00
6bfe2719a8 加入中文UI 2024-11-18 06:17:39 +08:00
15891f5840 set power safe mode 2024-11-15 23:07:20 +08:00
58de3852c5 add settings 2024-11-15 04:44:53 +08:00
ec918748f1 bump to 0.8.0 2024-11-14 23:15:43 +08:00
35cd80feb7 fixbug: internal memory not enough 2024-11-06 22:48:21 +08:00
458ac2c999 rename files 2024-11-05 20:15:00 +08:00