# powermgr_thermal_manager **Repository Path**: wang-yi-peng/powermgr_thermal_manager ## Basic Information - **Project Name**: powermgr_thermal_manager - **Description**: Thermal Manager | 温控服务 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 155 - **Created**: 2022-02-15 - **Last Updated**: 2022-02-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 热管理服务 - [简介](#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应用 │ └── protector # Thermal Protector代码 ├── etc # init配置 ├── figures # 图片 ├── frameworks # napi接口 ├── hdi # Thermal HDI代码 │ ├── api # api接口 │ ├── client # 客户端代码 │ └── service # 服务代码 ├── interface # 接口 │ ├── innerkits # 内部接口 │ └── kits # 外部接口 ├── sa_profile # SA配置文件 ├── services # Thermal Service代码 │ ├── native # native层 │ ├── test # 单元测试代码 │ └── zidl # zidl层 ├── test # 测试代码 └── 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条件及对应的值 ``` **2)thermal_hdi_config.xml** 配置示例: ``` ``` 目录说明: ``` thermal # 根目录,version为版本号;product为产品名 ├── base # base目录,配置基本参数 │ └── item # item目录,tag为配置标签,value为配置值; └── polling # polling目录,配置温度上报信息 └── group # group目录,配置上报组,name为组名,interval为轮询上报周期,单位ms ├── thermal_zone # thermal_zone目录,配置thermal zone上报,type对应该驱动的type,replace(可选)为替换的type名 └── thermal_node # thermal_node目录,配置驱动节点上报,path为节点路径 ``` **3)thermal_protector_config.xml** 配置示例: ``` 1800 1500 5 ``` 目录说明: ``` thermal # 根目录,version为版本号;product为产品名 ├── base # base目录,配置基本参数 │ └── item # item目录,tag为配置标签,value为配置值; └── control # control,配置温度档位及动作 └── thermal_zone # thermal_zone目录,type为对应类型,interval为轮询上报周期,单位ms └── item # item目录,配置具体档位信息,level为等级,threshold为触发温度,xxx_clr为回退温度 └── # 标签值对应动作的动作值 ``` ## 相关仓 [电源管理子系统](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)