# 热管理服务 - [简介](#section0056945901) - [目录](#section0056945902) - [配置说明](#section0056945903) - [相关仓](#section0056945904) ## 简介 热管理服务提供设备温度管理控制能力,保障整机热安全及热体验。 **图 1** 热管理服务架构图
![](figures/thermal_manager_architecture.png "热管理服务架构图") **热管理服务模块功能说明**: 1. 温控管理中心(Thermal Manager):提供对应用及其他子系统的温控查询及回调接口。 2. 温控核心服务(Thermal Service):提供温度检测、档位仲裁及动作下发等温控核心功能,附配置文件。 3. 内核连接模块(Thermal HDI):提供温度驱动信息上报及驱动指令下发等功能,附配置文件。 4. 非运行态温控模块(Thermal Protector):提供非运行态时的简化温控服务,附配置文件。 ## 目录 ``` /base/powermgr/thermal_manager ├── application # Native应用 │ ├── init # Init配置 │ └── protector # Thermal Protector代码 ├── figures # 架构图 ├── frameworks # Framework层 │ ├── napi # NAPI层 │ └── native # Native层 ├── interface # 接口层 │ └── inner_api # 内部接口 ├── sa_profile # SA配置文件 ├── services # Thermal Service代码 │ ├── native # Native层 │ └── zidl # Zidl层 ├── test # 测试代码 │ ├── fuzztest # Fuzz 测试 │ ├── unittest # 单元测试 │ ├── systemtest # 系统测试 │ └── utils # 测试工具 └── utils # 工具和通用层 ``` ## 配置说明 **thermal_service_config.xml** 配置示例: ``` 2800000 2400000 1500 3 2200000 1800000 1200 4 1600000 1200000 1000 5 1 ``` ``` thermal # 根目录,version为版本号;product为产品名 ├── base # base目录,配置基本参数 │ └── item # item目录,tag为配置标签,value为配置值 ├── level # level目录,配置温度档位信息 │ └── sensor_cluster # sensor_cluster目录,表示一个sensor集合,name为集合名,sensor为传感器名 │ └── item # item目录,配置具体档位信息,level为等级,threshold为触发温度,xxx_clr为回退温度 ├── state # state目录,配置状态机,name为状态机名称 ├── action # action目录,配置动作,name为加载动作名称,param为加载参数,strict为仲裁方案 └── policy # policy目录,配置档位对应的动作 └── config # config目录,配置对应档位的动作,name对应sensor_cluster的name,level对应其item中的level └── # 标签值对应动作的动作值,属性中可以配置state条件及对应的值 ``` ## 相关仓 [电源管理子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E7%94%B5%E6%BA%90%E7%AE%A1%E7%90%86%E5%AD%90%E7%B3%BB%E7%BB%9F.md) [powermgr_power_manager](https://gitee.com/openharmony/powermgr_power_manager) [powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager) [powermgr_battery_manager](https://gitee.com/openharmony/powermgr_battery_manager) **powermgr_thermal_manager** [powermgr_battery_statistics](https://gitee.com/openharmony/powermgr_battery_statistics) [powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite) [powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite)