[go: up one dir, main page]

CN116737488B - Parameter monitoring method and electronic equipment - Google Patents

Parameter monitoring method and electronic equipment Download PDF

Info

Publication number
CN116737488B
CN116737488B CN202211326867.7A CN202211326867A CN116737488B CN 116737488 B CN116737488 B CN 116737488B CN 202211326867 A CN202211326867 A CN 202211326867A CN 116737488 B CN116737488 B CN 116737488B
Authority
CN
China
Prior art keywords
temperature
application
processor
graphics processor
temperature value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211326867.7A
Other languages
Chinese (zh)
Other versions
CN116737488A (en
Inventor
相超
李鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211326867.7A priority Critical patent/CN116737488B/en
Priority to CN202410592191.9A priority patent/CN118394601A/en
Publication of CN116737488A publication Critical patent/CN116737488A/en
Application granted granted Critical
Publication of CN116737488B publication Critical patent/CN116737488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)

Abstract

The application provides a parameter monitoring method and electronic equipment, which are applied to the electronic equipment, wherein the electronic equipment comprises a first graphic processor and a second graphic processor, and the electronic equipment is provided with a first application, and the method comprises the following steps: starting a first application at a first time point, wherein the first graphic processor is in a working state and the second graphic processor is in a sleep state at the first time point; after the first application is started, a first temperature value is obtained through the first application; displaying the first temperature value at a first interface of the first application at a second point in time, the first temperature value representing a temperature of the second graphics processor; wherein the second graphics processor is in a sleep state between the first point in time and a second point in time. According to the embodiment of the application, the temperature of the independent display card can be obtained when the independent display card sleeps, and the independent display card does not need to be awakened, so that the power consumption of the equipment is reduced.

Description

一种参数监控方法及电子设备Parameter monitoring method and electronic equipment

技术领域Technical Field

本申请涉及智能终端技术领域,尤其涉及一种参数监控方法及电子设备。The present application relates to the technical field of intelligent terminals, and in particular to a parameter monitoring method and electronic equipment.

背景技术Background technique

随着电子技术的不断发展,笔记本电脑等电子设备作为人们日常生活工作中的常用设备得到了广泛发展。目前市场上存在各种各样配置的笔记本电脑,例如许多笔记本电脑为了提供更高的性能都配置了独立显卡。独立显卡的增加一般意味着设备功耗的增加,而鉴于笔记本电脑的移动属性,续航一直都是用户关注焦点。对于配置独立显卡的笔记本,为了提高其续航,在笔记本电脑没有运行3D类程序(例如游戏)时会关闭独立显卡的电源,从而降低设备的功耗,提高续航。然而,即使采用这种策略,在用户实际使用过程中笔记本电脑的续航也与实验室测试续航有较大差距,影响了用户体验。With the continuous development of electronic technology, electronic devices such as laptops have been widely developed as common devices in people's daily life and work. There are various configurations of laptops on the market. For example, many laptops are equipped with independent graphics cards to provide higher performance. The increase of independent graphics cards generally means an increase in device power consumption, and given the mobile nature of laptops, battery life has always been the focus of users. For notebooks equipped with independent graphics cards, in order to improve their battery life, the power of the independent graphics card will be turned off when the laptop is not running 3D programs (such as games), thereby reducing the power consumption of the device and improving battery life. However, even with this strategy, the battery life of the laptop in actual use by users is also far from the battery life in laboratory tests, which affects the user experience.

发明内容Summary of the invention

为了解决上述技术问题,本申请提供一种参数监控方法及电子设备。在该参数监控方法中在第二图形处理器睡眠时,通过第一应用获取第二图形处理器的温度,无需唤醒第二图形处理器,因此可以降低设备功耗,避免因此频繁唤醒第二图形处理器而导致设备功耗增加。In order to solve the above technical problems, the present application provides a parameter monitoring method and an electronic device. In the parameter monitoring method, when the second graphics processor is asleep, the temperature of the second graphics processor is obtained through a first application without waking up the second graphics processor, thereby reducing the power consumption of the device and avoiding the increase of the power consumption of the device due to frequent waking up of the second graphics processor.

第一方面,本申请提供一种参数监控方法,应用于电子设备,所述电子设备包括第一图形处理器和第二图形处理器,所述电子设备安装有第一应用,所述方法包括:In a first aspect, the present application provides a parameter monitoring method, which is applied to an electronic device, wherein the electronic device includes a first graphics processor and a second graphics processor, and the electronic device is installed with a first application, and the method includes:

在第一时间点,启动第一应用,在所述第一时间点,所述第一图形处理器处于工作状态,所述第二图形处理器处于睡眠状态;At a first time point, starting a first application, at the first time point, the first graphics processor is in a working state, and the second graphics processor is in a sleeping state;

启动所述第一应用后,通过所述第一应用获取第一温度值,所述第一温度值为所述第二图形处理器外部的温度;After starting the first application, obtaining a first temperature value through the first application, where the first temperature value is a temperature outside the second graphics processor;

在第二时间点,在所述第一应用的第一界面显示所述第一温度值,所述第一温度值表示所述第二图形处理器的温度;At a second time point, displaying the first temperature value on a first interface of the first application, the first temperature value indicating the temperature of the second graphics processor;

其中,在所述第一时间点和第二时间点之间所述第二图形处理器处于睡眠状态。The second graphics processor is in a sleep state between the first time point and the second time point.

根据第一方面,本申请的参数监控方法,在第二图形处理器睡眠时,通过第一应用获取第二图形处理器的温度,无需唤醒第二图形处理器,因此可以降低设备功耗,避免因此频繁唤醒第二图形处理器而导致设备功耗增加。According to the first aspect, the parameter monitoring method of the present application obtains the temperature of the second graphics processor through the first application when the second graphics processor is asleep, without waking up the second graphics processor, thereby reducing the power consumption of the device and avoiding increased power consumption of the device due to frequent waking up of the second graphics processor.

根据第一方面,或者以上第一方面的任意一种实现方式,所述电子设备安装有第二应用,所述方法还包括:According to the first aspect, or any implementation of the first aspect above, the electronic device is installed with a second application, and the method further includes:

在第三时间点,启动第二应用,在所述第三时间点,所述第一图形处理器处于工作状态,所述第二图形处理器处于睡眠状态;At a third time point, starting a second application, at which the first graphics processor is in a working state and the second graphics processor is in a sleeping state;

启动所述第二应用后,通过所述第二应用获取第二温度值,所述第二温度值为所述第二图形处理器的内部温度或核心温度;After starting the second application, obtaining a second temperature value through the second application, where the second temperature value is an internal temperature or a core temperature of the second graphics processor;

在第四时间点,在所述第二应用的第二界面显示所述第二温度值,所述第二温度值表示所述第二图形处理器的温度;At a fourth time point, displaying the second temperature value on the second interface of the second application, where the second temperature value indicates the temperature of the second graphics processor;

其中,在所述第三时间点和第四时间点之间所述第二图形处理器被唤醒,所述第二图形处理器被唤醒表示所述第二图形处理器由睡眠状态切换为工作状态。第二应用获取第二图形处理器的内部温度,其会将第二图形处理唤醒。The second graphics processor is awakened between the third time point and the fourth time point, and the awakening of the second graphics processor indicates that the second graphics processor switches from a sleep state to a working state. The second application obtains the internal temperature of the second graphics processor, which will awaken the second graphics processor.

根据第一方面,或者以上第一方面的任意一种实现方式,在第五时间点,所述第二图形处理器的电压为第一电压值,所述第二图形处理器的电流为第一电流值,所述第五时间在所述第一时间点和第二时间之间;According to the first aspect, or any implementation of the first aspect above, at a fifth time point, the voltage of the second graphics processor is a first voltage value, the current of the second graphics processor is a first current value, and the fifth time is between the first time point and the second time;

在第六时间,所述第二图形处理器的电压为第二电压值,所述第二图形处理器的电流为第二电流值,所述第六时间点在所述第三时间点和第四时间点之间,所述第二电压值大于所述第一电压值,和/或所述第二电流值大于所述第一电流。即所述第二图形处理被唤醒后功耗大于睡眠时的功耗。因此,在第二图形处理器睡眠时,无需唤醒第二图形处理器便可获取第二图形处理器的温度可以降低设备功耗,避免因此频繁唤醒第二图形处理器而导致设备功耗增加。At the sixth time, the voltage of the second graphics processor is the second voltage value, the current of the second graphics processor is the second current value, and the sixth time point is between the third time point and the fourth time point, the second voltage value is greater than the first voltage value, and/or the second current value is greater than the first current. That is, the power consumption of the second graphics processor after being awakened is greater than the power consumption when it is asleep. Therefore, when the second graphics processor is asleep, the temperature of the second graphics processor can be obtained without waking up the second graphics processor, which can reduce the power consumption of the device and avoid the increase of the power consumption of the device due to frequent waking up of the second graphics processor.

根据第一方面,或者以上第一方面的任意一种实现方式,所述电子设备安装有第三应用,所述方法还包括:According to the first aspect, or any implementation of the first aspect above, the electronic device is installed with a third application, and the method further includes:

在第一时间点之前,启动第三应用,所述第二图形处理器处于工作状态,所述第二图形处理器的电压为第三电压值,所述第二图形处理器的电流为第三电流值;Before the first time point, a third application is started, the second graphics processor is in a working state, the voltage of the second graphics processor is a third voltage value, and the current of the second graphics processor is a third current value;

关闭所述第三应用,所述第二图形处理器切换至睡眠状态;Closing the third application, and switching the second graphics processor to a sleep state;

其中,所述第三电压值大于所述第一电压值,和/或所述第三电流值大于所述第一电流值。即,所述第二图形处理工作时的功耗大于睡眠时的功耗。因此,在第二图形处理器睡眠时,无需唤醒第二图形处理器便可获取第二图形处理器的温度可以降低设备功耗,避免因此频繁唤醒第二图形处理器而导致设备功耗增加。Among them, the third voltage value is greater than the first voltage value, and/or the third current value is greater than the first current value. That is, the power consumption of the second graphics processor when working is greater than the power consumption when sleeping. Therefore, when the second graphics processor is sleeping, the temperature of the second graphics processor can be obtained without waking up the second graphics processor, which can reduce the power consumption of the device and avoid frequent waking up of the second graphics processor to increase the power consumption of the device.

根据第一方面,或者以上第一方面的任意一种实现方式,所述电子设备包括第一内部存储器和SMBIOS表,所述通过所述第一应用获取第一温度值,包括:According to the first aspect, or any implementation of the first aspect above, the electronic device includes a first internal memory and an SMBIOS table, and the obtaining the first temperature value through the first application includes:

所述第一应用读取所述SMBIOS表,并从所述SMBIOS表中获取目标地址信息,所述目标地址信息表示所述第一内部存储器中预先分配的目标存储区的地址信息;The first application reads the SMBIOS table and obtains target address information from the SMBIOS table, wherein the target address information represents address information of a target storage area pre-allocated in the first internal memory;

所述第一应用根据所述目标地址信息,确定所述第一内部存储器中预先分配的所述目标存储区的位置,并从所述目标存储器区读取所述第一温度值。The first application determines the location of the target storage area pre-allocated in the first internal memory according to the target address information, and reads the first temperature value from the target storage area.

通过从预分配的内存中读取第一温度值可以保证温度读取过程中不会给设备其它部件带来安全风险。By reading the first temperature value from the pre-allocated memory, it can be ensured that the temperature reading process does not bring security risks to other components of the device.

根据第一方面,或者以上第一方面的任意一种实现方式,所述电子设备还包括控制器、第一温度传感器和BIOS,在从所述目标存储器区读取所述第一温度值之前,所述通过所述第一应用获取第一温度值还包括:According to the first aspect, or any implementation of the first aspect above, the electronic device further includes a controller, a first temperature sensor, and a BIOS, and before reading the first temperature value from the target memory area, obtaining the first temperature value through the first application further includes:

所述控制器通过所述第一温度传感器获取所述第一温度值,并将所述第一温度值传输至所述BIOS;The controller obtains the first temperature value through the first temperature sensor, and transmits the first temperature value to the BIOS;

所述BIOS将所述第一温度值写入所述第一内部存储器中预先分配的所述目标存储区。通过控制器和第一温度传感器获取第一温度值,并将第一温度值写入预分配的内存中供第一对应于读取,使得可以在第二图形处理器睡眠时,无需唤醒第二图形处理器便可获取第二图形处理器的温度可以降低设备功耗,避免因此频繁唤醒第二图形处理器而导致设备功耗增加。The BIOS writes the first temperature value into the pre-allocated target storage area in the first internal memory. The first temperature value is obtained through the controller and the first temperature sensor, and the first temperature value is written into the pre-allocated memory for the first corresponding device to read, so that when the second graphics processor is asleep, the temperature of the second graphics processor can be obtained without waking up the second graphics processor, which can reduce the power consumption of the device and avoid the increase of the power consumption of the device due to frequent waking up of the second graphics processor.

根据第一方面,或者以上第一方面的任意一种实现方式,所述电子设备还包括BIOS,在读取所述SMBIOS表之前,所述方法还包括:According to the first aspect, or any implementation of the first aspect above, the electronic device further includes a BIOS, and before reading the SMBIOS table, the method further includes:

启动所述BIOS,并且在所述BIOS启动过程中:The BIOS is started, and during the BIOS startup process:

在所述第一内部存储器中预先分配用于存储所述第一参数的所述目标存储区;pre-allocating the target storage area in the first internal memory for storing the first parameter;

创建所述SMBIOS表,并将所述目标存储区的所述目标地址信息写入所述SMBIOS表中。The SMBIOS table is created, and the target address information of the target storage area is written into the SMBIOS table.

通过预先分配内存来存储第一温度值,使得第一应用温度读取过程中不会给设备其它部件带来安全风险。By pre-allocating memory to store the first temperature value, the first application temperature reading process does not bring security risks to other components of the device.

根据第一方面,或者以上第一方面的任意一种实现方式,在所述BIOS启动过程中,所述方法还包括:According to the first aspect, or any implementation of the first aspect above, during the BIOS startup process, the method further includes:

将所述目标存储区的属性设置为ACPI_NVS。The attribute of the target storage area is set to ACPI_NVS.

将目标存储区属性设置为ACPI_NVS,可以保证目标存储区不会被操作系统占用,仅用于存储第一温度值。Setting the target storage area attribute to ACPI_NVS can ensure that the target storage area will not be occupied by the operating system and is only used to store the first temperature value.

根据第一方面,或者以上第一方面的任意一种实现方式,所述预先分配的用于存储所述器件参数的存储区的大小为2-10K。According to the first aspect, or any implementation of the first aspect, the size of the pre-allocated storage area for storing the device parameters is 2-10K.

第二方面,提供一种电子设备,包括:存储器和处理器,所述存储器和所述处理器耦合;所述存储器存储有程序指令,所述程序指令由所述处理器执行时,使得所述电子设备执行第一方面或第一方面的任意可能的实现方式中的参数监控方法。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。In a second aspect, an electronic device is provided, comprising: a memory and a processor, the memory and the processor being coupled; the memory storing program instructions, the program instructions when executed by the processor, causing the electronic device to execute the parameter monitoring method in the first aspect or any possible implementation of the first aspect. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

第三方面,本申请提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。In a third aspect, the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.

第四方面,本申请提供了一种计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。In a fourth aspect, the present application provides a computer program, comprising instructions for executing the method in the first aspect or any possible implementation of the first aspect.

第五方面,本申请提供了一种芯片,该芯片包括处理电路、收发管脚。其中,该收发管脚、和该处理电路通过内部连接通路互相通信,该处理电路执行第一方面或第一方面的任一种可能的实现方式中的方法,以控制接收管脚接收信号,以控制发送管脚发送信号。In a fifth aspect, the present application provides a chip, the chip comprising a processing circuit and a transceiver pin, wherein the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the first aspect or any possible implementation of the first aspect to control the receiving pin to receive a signal and control the sending pin to send a signal.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为示例性示出的目前一种温度监控方法的模块交互示意图;FIG1 is a schematic diagram showing an exemplary module interaction of a current temperature monitoring method;

图2为示例性示出的电子设备的硬件结构示意图;FIG2 is a schematic diagram showing a hardware structure of an electronic device;

图3为示例性示出的电子设备的温度传感器布置示意图;FIG3 is a schematic diagram showing an exemplary arrangement of temperature sensors of an electronic device;

图4为示例性示出的电子设备的软件结构示意图;FIG4 is a schematic diagram showing an exemplary software structure of an electronic device;

图5为示例性示出的用于执行参数监控方法的模块交互示意图之一;FIG5 is one of the schematic diagrams of module interactions for executing the parameter monitoring method;

图6为示例性示出的第一应用的第一界面的示意图;FIG6 is a schematic diagram of a first interface of a first application shown as an example;

图7为示例性示出的用于执行参数监控方法的模块交互示意图之一;FIG. 7 is one of the schematic diagrams of module interactions for executing the parameter monitoring method;

图8为示例性示出的第二应用的第二界面的示意图;FIG8 is a schematic diagram of a second interface of a second application shown as an example;

图9为示例性示出的用于预分配内存的流程图;FIG9 is an exemplary flowchart for pre-allocating memory;

图10示出了本申请实施例的一种装置的示意性框图。FIG. 10 shows a schematic block diagram of a device according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

为了下述各实施例的描述清楚简沽,首先给出相关概念或技术的简要介绍:In order to make the description of the following embodiments clear and concise, a brief introduction to related concepts or technologies is first given:

主板BIOS:Basic Input Output System,基本输入输出系统。主板BIOS是一组固化到计算机内主板上一个ROM芯片或上的程序,它保存着计算机最重要的基本输入输出的程序、系统设置信息、开机上电自检程序和系统启动自举程序。BIOS主要功能是为计算机提供最底层的、最直接的硬件设置和控制。主板BIOS提供给操作系统的接口包括BS(BootServices,启动服务)和RT(Runtime Services,运行时服务)。Mainboard BIOS: Basic Input Output System. Mainboard BIOS is a set of programs that are fixed to a ROM chip or on the motherboard of the computer. It stores the most important basic input and output programs of the computer, system setting information, power-on self-test program and system boot program. The main function of BIOS is to provide the lowest-level and most direct hardware settings and control for the computer. The interfaces provided by the mainboard BIOS to the operating system include BS (Boot Services) and RT (Runtime Services).

UEFI:Unified Extensible Firmware Interface,统一可扩展固件接口,是一种个人电脑系统规格,用来定义操作系统与系统固件之间的软件界面,作为BIOS的替代方案。可扩展固件接口负责加电自检(POST)、联系操作系统以及提供连接操作系统与硬件的接口。UEFI提供给操作系统的接口包括BS(Boot Services,启动服务)和RT(RuntimeServices,运行时服务)。UEFI驱动和服务以Protocol的形式通过BS提供给操作系统。启动服务是UEFI的核心数据结构,可以分为以下几类:UEFI事件服务、内存管理服务、Protocol管理服务、Protocol使用类服务、驱动管理服务、Image管理服务、ExitBootServices、其他服务。内存管理服务主要提供内存的分配与释放服务、管理系统内存映射。主要包括:AllocatePages、FreePages、AllocatePool、FreePool、GetMemoryMap。UEFI: Unified Extensible Firmware Interface, a personal computer system specification that defines the software interface between the operating system and the system firmware as an alternative to BIOS. The Extensible Firmware Interface is responsible for the power-on self-test (POST), contacting the operating system, and providing an interface between the operating system and the hardware. The interfaces provided by UEFI to the operating system include BS (Boot Services) and RT (Runtime Services). UEFI drivers and services are provided to the operating system through BS in the form of Protocol. Boot services are the core data structure of UEFI and can be divided into the following categories: UEFI event services, memory management services, Protocol management services, Protocol usage services, driver management services, Image management services, ExitBootServices, and other services. Memory management services mainly provide memory allocation and release services and manage system memory mapping. Mainly include: AllocatePages, FreePages, AllocatePool, FreePool, GetMemoryMap.

SMBIOS:SMBIOS(System Management BIOS)是由BIOS/UEFI在初始化系统的时候收集的关于系统信息的一组结构化的表,并且存放在内存中,提供给操作系统使用。如果是non-UEFI系统,可以通过在物理内存地址范围000F0000h到000FFFFFh搜索anchor-string(_SM_),找到SMBIOS的EPS(Entry Point structure),如果是UEFI-based系统可以直接搜寻GUID找到(SMBIOS_TABLE_GUID,{EB9D2D31-2D88-11D3-9A16-0090273FC14D})。SMBIOSTable是由很多个SMBIOS结构(子表)所组合而成的,每个SMBIOS结构都有一个格式化部分和一个可选的未格式化部分。每个结构的格式化部分都以一个4Byte的标头开始。格式化部分中的剩余数据由结构类型决定,格式化部分的总长度也是如此。不同类型的SMBIOS子表通过type数值来区分。例如BIOS信息(Type0)、系统信息(Type 1)、系统外围或底架(Type3)、处理器信息(Type 4)、高速缓存信息(Type 7)、系统插槽(Type 9)、物理存储阵列(Type16)、存储设备(Type 17),温度传感器(Type 28)。SMBIOS: SMBIOS (System Management BIOS) is a set of structured tables about system information collected by BIOS/UEFI when initializing the system, and stored in memory for use by the operating system. If it is a non-UEFI system, you can find the EPS (Entry Point structure) of SMBIOS by searching for the anchor-string (_SM_) in the physical memory address range 000F0000h to 000FFFFFh. If it is a UEFI-based system, you can directly search for the GUID to find it (SMBIOS_TABLE_GUID, {EB9D2D31-2D88-11D3-9A16-0090273FC14D}). SMBIOSTable is composed of many SMBIOS structures (subtables). Each SMBIOS structure has a formatted part and an optional unformatted part. The formatted part of each structure starts with a 4-byte header. The remaining data in the formatted part is determined by the structure type, as is the total length of the formatted part. Different types of SMBIOS subtables are distinguished by the type value. For example, BIOS information (Type 0), system information (Type 1), system periphery or chassis (Type 3), processor information (Type 4), cache information (Type 7), system slots (Type 9), physical storage arrays (Type 16), storage devices (Type 17), and temperature sensors (Type 28).

NVAPI:NVAPI为NVIDIA(英伟达/辉达)厂商提供的供第三方调用的接口,用于监控显卡的温度、性能参数等。NVAPI: NVAPI is an interface provided by NVIDIA for third-party calls to monitor the temperature, performance parameters, etc. of graphics cards.

ACPI:Advanced Configuration and Power Interface,高级配置与电源接口,其定义了计算机操作系统以及BIOS(basic input output system,基本输入输出系统)分别与计算机硬件之间的新型工作接口。在ACPI下定义了D0至D3四种设备供电状态,其中D0:设备正常工作;D1:可以减小部分功耗,由设备本身决定,有些设备没有D1状态;D2:设备关闭部分功能,节约更多功耗,由设备本身决定,有些设备没有D2状态;D3:设备电源被完全关闭,重新让设备工作需要给设备重新供电和初始化。ACPI: Advanced Configuration and Power Interface, which defines a new working interface between the computer operating system and BIOS (basic input output system) and computer hardware. ACPI defines four device power supply states from D0 to D3, where D0: the device is working normally; D1: some power consumption can be reduced, which is determined by the device itself, and some devices do not have the D1 state; D2: the device turns off some functions to save more power, which is determined by the device itself, and some devices do not have the D2 state; D3: the device power is completely turned off, and the device needs to be repowered and initialized to work again.

ACPI NVS:表示映射到用来存放ACPI数据的非易失性存储空间,操作系统不能使用。ACPI NVS: Indicates that it is mapped to the non-volatile storage space used to store ACPI data and cannot be used by the operating system.

SCI:System Control Interrupt,系统控制中断。专门用于ACPI电源管理的一个IRQ(中断请求),需要OS(操作系统)支持。SCI: System Control Interrupt, system control interrupt. An IRQ (interrupt request) specifically used for ACPI power management, which requires OS (operating system) support.

SMI:System Management Interrupt,系统管理中断,使用系统进入SMM(SystemManagement Mode,系统管理模式)的特殊中断。SMI: System Management Interrupt, a special interrupt used by the system to enter SMM (System Management Mode).

SMM:System Management Mode,系统管理模式,是一个对所有Intel处理器都统一的标准体系结构特性,系统管理模式(SMM)提供与传统IA-32架构中的系统管理中断(SMI)处理程序相同的执行环境。SMM: System Management Mode is a standard architecture feature that is unified for all Intel processors. System Management Mode (SMM) provides the same execution environment as the System Management Interrupt (SMI) handler in the traditional IA-32 architecture.

地址信息:用于表示预先申请的内存的位置信息,CPU/程序通过地址信息可以获知预先申请的内存的具体位置,将诸如GPU温度、CPU温度、主板温度、风扇转速等参数存储在所述内存中,地址信息的表示方法有多种,所述地址信息可以是内存的起始位置与长度,也可以是内存的起始位置和末位置,凡是可以用于表示内存的位置的地址信息均适用于本申请实施例。Address information: used to indicate the location information of the pre-applied memory. The CPU/program can obtain the specific location of the pre-applied memory through the address information, and store parameters such as GPU temperature, CPU temperature, motherboard temperature, fan speed, etc. in the memory. There are many ways to indicate the address information. The address information can be the starting position and length of the memory, or the starting position and end position of the memory. All address information that can be used to indicate the location of the memory is applicable to the embodiments of the present application.

睡眠状态:独立显卡/GPU供电电源关闭,显卡不工作,例如ACPI中的D3状态。Sleep state: The power supply of the independent graphics card/GPU is turned off and the graphics card is not working, such as the D3 state in ACPI.

唤醒状态/工作状态:独立显卡/GPU供电电源正常供电,显卡正常工作,例如ACPI中的D0状态。Wake-up state/working state: The independent graphics card/GPU power supply is normal, and the graphics card is working normally, such as the D0 state in ACPI.

第三方软件:非系统自带和备厂家的程序。Third-party software: programs that are not included with the system or provided by the manufacturer.

如前所述,对于配置独立显卡的笔记本,为了提高其续航,在笔记本电脑没有运行3D类程序(例如游戏)时会关闭独立显卡的电源,从而降低设备的功耗,提高续航。然而,在用户实际使用过程中往往出现用户的实际体验与实验室测试的续航数据存在偏差。经实际调查发现这是因为实验室环境与用户实际使用的环境存在偏差,在实际使用过程中用户往往会安装第三方软件(例如鲁大师或360)去监控系统的参数,例如CPU温度、显卡温度、风扇转速等。由于三方监控类软件需要每隔1S去采集显卡的温度,导致显卡频繁在ON/OFF状态(开启/关闭)间切换,导致即使不运行3D程序显卡也无法长时间处于低功耗的状态,这导致设备功耗恶化,经过实测这种原因可导致待配置独立显卡的机器整机功耗会恶化达到10W,大大影响了设备的续航。As mentioned above, for notebooks equipped with independent graphics cards, in order to improve their battery life, the power of the independent graphics card will be turned off when the laptop is not running 3D programs (such as games), thereby reducing the power consumption of the device and improving the battery life. However, in the actual use of users, there is often a deviation between the actual experience of users and the battery life data of laboratory tests. After actual investigation, it was found that this is because there is a deviation between the laboratory environment and the environment actually used by users. In actual use, users often install third-party software (such as Master Lu or 360) to monitor system parameters, such as CPU temperature, graphics card temperature, fan speed, etc. Since the third-party monitoring software needs to collect the temperature of the graphics card every 1S, the graphics card frequently switches between the ON/OFF state (on/off), resulting in the graphics card being unable to be in a low power state for a long time even if the 3D program is not running, which leads to the deterioration of the power consumption of the device. After actual measurement, this reason can cause the power consumption of the machine to be configured with an independent graphics card to deteriorate to 10W, which greatly affects the battery life of the device.

图1为示例性示出的目前一种温度监控方法的模块交互示意图。在图1所示示例中,以在无3D程序运行场景下独立显卡处于睡眠状态,三方软件获取NV(即NVIDIA)显卡温度为例说明三方软件监控显卡温度的流程。Figure 1 is a schematic diagram of module interaction of a current temperature monitoring method. In the example shown in Figure 1, the process of third-party software monitoring the temperature of a graphics card is explained by taking the independent graphics card in a sleep state without a 3D program running as an example, and the third-party software obtains the temperature of the NV (i.e. NVIDIA) graphics card.

如图1所示,目前三方软件温度监控的流程包括:S101,三方软件调用NVAPI获取显卡温度;S102,NVAPI调用NV驱动获取显卡温度;S103,NV驱动唤醒NV显卡以读取显卡温度;S104,NV显卡向NV驱动上报显卡温度,并在上报显卡温度后进入睡眠状态:S105,NV驱动将显卡温度返回至NVAPI;S106,NVAPI将显卡温度返回三方软件。As shown in Figure 1, the current temperature monitoring process of third-party software includes: S101, the third-party software calls NVAPI to obtain the graphics card temperature; S102, NVAPI calls NV driver to obtain the graphics card temperature; S103, NV driver wakes up the NV graphics card to read the graphics card temperature; S104, NV graphics card reports the graphics card temperature to NV driver, and enters sleep state after reporting the graphics card temperature: S105, NV driver returns the graphics card temperature to NVAPI; S106, NVAPI returns the graphics card temperature to the third-party software.

可见,在无3D程序运行场景下,三方软件每次获取独立显卡温度都要唤醒一次独立显卡,这使得三方软件在监控显卡温度时会频繁唤醒独立显卡,导致显卡频繁在ON/OFF状态(开启/关闭)间切换,导致即使不运行3D程序显卡也无法长时间处于低功耗的状态,这导致设备功耗恶化。表1示出了具备独立显卡的机器在网页浏览场景独立显卡启用/未启用的功耗对比。It can be seen that in the scenario where no 3D program is running, the third-party software must wake up the independent graphics card every time it obtains the temperature of the independent graphics card. This causes the third-party software to frequently wake up the independent graphics card when monitoring the graphics card temperature, causing the graphics card to frequently switch between the ON/OFF state (on/off). As a result, even if the 3D program is not running, the graphics card cannot be in a low-power state for a long time, which leads to worsening of device power consumption. Table 1 shows the power consumption comparison of machines with independent graphics cards in the web browsing scenario with independent graphics cards enabled/disabled.

表1机器1和机器2在后台运行具有显卡温度监控功能的三方软件时独立显卡启用/未启用功耗对比Table 1 Comparison of power consumption when independent graphics card is enabled/disabled between machine 1 and machine 2 when third-party software with graphics card temperature monitoring function is running in the background

由表1可知,在启动独立显卡后,由于三方软件的温度监控频繁唤醒独立显卡,因此使得整机功耗恶化。在不启用独立显卡时,由于三方软件无法唤醒独立显卡,因此整机功耗降低。As shown in Table 1, after the independent graphics card is enabled, the temperature monitoring of the third-party software frequently wakes up the independent graphics card, which makes the power consumption of the whole machine worse. When the independent graphics card is not enabled, the power consumption of the whole machine is reduced because the third-party software cannot wake up the independent graphics card.

需要说的是,在本文中独立显卡进入睡眠状态指的是显卡关闭自己的供电电源进入低功模式的状态。唤醒显卡指的是使独立显卡使从睡眠状态进入工作状态,此时启动显卡的供电电源为显卡供电。独立显卡启用指的是设备的独立显卡处于可以运行的状态。独立显卡停用指的是设备的独立显卡无法运行的状态。在独立显卡启用时三方软件可以唤醒独立显卡。在独立显卡未启用时,三方软件无法唤醒独立显卡。独立显卡可以通过自身的温度传感器获取显卡温度。It should be noted that in this article, the independent graphics card entering sleep mode refers to the state where the graphics card turns off its own power supply and enters low-power mode. Waking up the graphics card means that the independent graphics card enters the working state from the sleep state, and the power supply of the graphics card is started to power the graphics card. The independent graphics card is enabled when the independent graphics card of the device is in a state where it can run. The independent graphics card is disabled when the independent graphics card of the device cannot run. When the independent graphics card is enabled, third-party software can wake up the independent graphics card. When the independent graphics card is not enabled, third-party software cannot wake up the independent graphics card. The independent graphics card can obtain the graphics card temperature through its own temperature sensor.

基于上述原因,为了避免因三方软件在监控独立显卡温度时频繁唤醒独立显卡导致整机功耗恶化,本申请实施例提供了一种参数监控方法,其通过传感器读取诸如显卡温度的参数,并将诸如显卡温度的参数存储在内存中预先分配的存储位置中,三方软件直接从该存储位置读取参数来进行参数监控,这样就无需执行诸如频繁唤醒显卡的操作,可以在例如无3D程序运行场景下降低整机功耗,使用户实际使用功耗更接近实验室数据,提高用户体验。下面对本申请实施例提供的参数监控方法的进行详细说明。Based on the above reasons, in order to avoid the deterioration of the power consumption of the whole machine due to the frequent waking up of the independent graphics card by the third-party software when monitoring the temperature of the independent graphics card, the embodiment of the present application provides a parameter monitoring method, which reads parameters such as the temperature of the graphics card through a sensor, and stores the parameters such as the temperature of the graphics card in a pre-allocated storage location in the memory. The third-party software directly reads the parameters from the storage location to perform parameter monitoring, so that there is no need to perform operations such as frequently waking up the graphics card, and the power consumption of the whole machine can be reduced in a scenario where no 3D program is running, so that the actual power consumption of the user is closer to the laboratory data, and the user experience is improved. The parameter monitoring method provided by the embodiment of the present application is described in detail below.

图2为示例性示出的根据本申请实施例的电子设备的硬件结构示意图。应该理解的是,图2所示电子设备100仅是电子设备的一个范例,并且电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图2中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。FIG2 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. It should be understood that the electronic device 100 shown in FIG2 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in FIG2 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

电子设备100可以包括:处理器110,第一图形处理器111、第一内部存储器120,外部存储器121,嵌入式控制器(EC)130、第二内部存储器131、第二图形处理器140、第二温度传感器141、BIOS固件闪存150,天线1,无线通信模块160,显示屏170,风扇180,键盘181,第一温度传感器190等。The electronic device 100 may include: a processor 110, a first graphics processor 111, a first internal memory 120, an external memory 121, an embedded controller (EC) 130, a second internal memory 131, a second graphics processor 140, a second temperature sensor 141, a BIOS firmware flash memory 150, an antenna 1, a wireless communication module 160, a display screen 170, a fan 180, a keyboard 181, a first temperature sensor 190, etc.

处理器110例如为中央处理单元(central processing unit,CPU),其可以包括一个或多个处理核心。处理器110还可以包括:控制器,存储器控制器,第一图形处理器(graphics processing unit,GPU)111等。第一图形处理器(graphics processing unit,GPU)111与中央处理单元(central processing unit,CPU)集成设置,也称为集成显卡。The processor 110 is, for example, a central processing unit (CPU), which may include one or more processing cores. The processor 110 may also include: a controller, a memory controller, a first graphics processing unit (GPU) 111, etc. The first graphics processing unit (GPU) 111 is integrated with the central processing unit (CPU), also known as an integrated graphics card.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器或寄存器。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory or a register.

在一些实施例中,处理器110可以包括接口总线,其可以包括一个或多个接口。接口可以包括通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,系统管理总线(“SMBus”),低引脚数(LPC)总线,串行外设接口(“SPI”)、高清音频(“HDA”)总线、串行高级技术附件(“SATA”)总线、标准化互连(例如,PCIe)和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include an interface bus, which may include one or more interfaces. The interface may include a universal asynchronous receiver/transmitter (UART) interface, a system management bus ("SMBus"), a low pin count (LPC) bus, a serial peripheral interface ("SPI"), a high-definition audio ("HDA") bus, a serial advanced technology attachment ("SATA") bus, a standardized interconnect (e.g., PCIe) and/or a universal serial bus (USB) interface, etc.

可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

天线1用于发射和接收电磁波信号。无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wirelessfidelity,Wi-Fi)网络),蓝牙(bluetooth,BT)等无线通信的解决方案。在一些实施例中,电子设备100的天线1和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。The antenna 1 is used to transmit and receive electromagnetic wave signals. The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), etc. applied to the electronic device 100. In some embodiments, the antenna 1 of the electronic device 100 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.

电子设备100通过第一图形处理器111或第二图形处理器140,显示屏170以及处理器110等实现显示功能。图形处理器(GPU)用于执行数学和几何计算,用于图形渲染。电子设备100可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through the first graphics processor 111 or the second graphics processor 140, the display screen 170 and the processor 110. The graphics processing unit (GPU) is used to perform mathematical and geometric calculations for graphics rendering. The electronic device 100 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏170用于显示界面,图像,视频等。显示屏170包括显示面板。The display screen 170 is used to display interfaces, images, videos, etc. The display screen 170 includes a display panel.

第一内部存储器120可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在第一内部存储器120的指令,从而执行电子设备100的各种功能应用以及本申请实施例的参数监控方法。The first internal memory 120 may be used to store computer executable program codes, wherein the executable program codes include instructions. The processor 110 executes the instructions stored in the first internal memory 120 to execute various functional applications of the electronic device 100 and the parameter monitoring method of the embodiment of the present application.

第一内部存储器(或主存储器)120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,第一内部存储器120可以包括高速随机存取存储器(RAM),例如为DDR(DoubleData Rate)RAM,更具体可以为DDR4或DDR5 RAM。内部存储器(或主存储器)120可以通过内存总线与处理器110通信连接。The first internal memory (or main memory) 120 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the first internal memory 120 may include a high-speed random access memory (RAM), such as a DDR (Double Data Rate) RAM, more specifically a DDR4 or DDR5 RAM. The internal memory (or main memory) 120 may be connected to the processor 110 through a memory bus.

外部存储器121例如为固态磁盘、(“SSD”)或硬盘驱动器(“HDD”)或者闪存器件,通用闪存存储器(universal flash storage,UFS)等。外部存储器121可以通过串行高级技术附件(“SATA”)总线或标准化互连(例如,PCIe)与处理器110通信连接。The external memory 121 is, for example, a solid state disk (“SSD”) or a hard disk drive (“HDD”) or a flash memory device, a universal flash storage (UFS), etc. The external memory 121 can be communicatively connected to the processor 110 via a serial advanced technology attachment (“SATA”) bus or a standardized interconnect (e.g., PCIe).

嵌入式控制器(EC)130用于实现键盘控制,触摸板,电源管理,风扇控制等等的功能。控制器130可以通过第一温度传感器190采样CPU或GPU温度,然后根据CPU或GPU温度依据算法调控风扇转速。控制器130可以包含独立运行的软件,存放在自己的非易失性介质中。控制器130读取的第一温度传感器190的温度值存储在第二内部存储器131中。第二内部存储器131可以包括高速随机存取存储器(RAM),其集成在控制器130中。第二内部存储器131的容量小于第一内部存储器120。The embedded controller (EC) 130 is used to implement functions such as keyboard control, touch pad, power management, fan control, etc. The controller 130 can sample the CPU or GPU temperature through the first temperature sensor 190, and then adjust the fan speed according to the algorithm based on the CPU or GPU temperature. The controller 130 may include independently running software stored in its own non-volatile medium. The temperature value of the first temperature sensor 190 read by the controller 130 is stored in the second internal memory 131. The second internal memory 131 may include a high-speed random access memory (RAM) that is integrated in the controller 130. The capacity of the second internal memory 131 is smaller than the first internal memory 120.

在一些实施例中,控制器130可以包括一个或多个接口。接口可以包括通用输入输出接口(GPIO)、eSPI(Enhanced Serial Peripheral,增强型串行外围)接口、集成电路I2C接口等。控制器120可以通过例如eSPI或LPC总线与处理器110进行连接和通信。In some embodiments, the controller 130 may include one or more interfaces. The interface may include a general purpose input and output interface (GPIO), an eSPI (Enhanced Serial Peripheral) interface, an integrated circuit I2C interface, etc. The controller 120 may be connected and communicated with the processor 110 via, for example, an eSPI or LPC bus.

第二图形处理器140用于执行数学和几何计算,用于图形渲染。第二图形处理器140可以在无3D程序运行时进入低功耗睡眠状态。在运行3D程序时由显卡驱动(例如NV驱动)唤醒进而进行3D几何计算和图形渲染。第二图形处理器140还可以由用户停用或启用。当停用第二图形处理器140时,电子设备100的图形渲染工作由处理器110中的图形处理器(即集成显卡或集成GPU)完成。第二图形处理器140可以通过标准化互连(例如,PCIe)与处理器110通信连接。第二图形处理器也称为独立图形处理器或独立显卡。The second graphics processor 140 is used to perform mathematical and geometric calculations for graphics rendering. The second graphics processor 140 can enter a low-power sleep state when no 3D program is running. When running a 3D program, it is awakened by a graphics card driver (e.g., an NV driver) to perform 3D geometric calculations and graphics rendering. The second graphics processor 140 can also be disabled or enabled by the user. When the second graphics processor 140 is disabled, the graphics rendering work of the electronic device 100 is completed by the graphics processor (i.e., an integrated graphics card or an integrated GPU) in the processor 110. The second graphics processor 140 can be connected to the processor 110 through standardized interconnection (e.g., PCIe). The second graphics processor is also referred to as an independent graphics processor or an independent graphics card.

第二图形处理器140内部集成有第二温度传感器141,第二温度传感器141可以采集第二图形处理器140的工作温度或核心温度。第二图形图形处理器140可以根据工作温度或核心温度调节第二图形处理器140的性能/功耗/频率等。第二温度传感器141可以为电阻、电偶、热敏温度传感器等可以采集温度的传感器。The second graphics processor 140 is internally integrated with a second temperature sensor 141, which can collect the operating temperature or core temperature of the second graphics processor 140. The second graphics processor 140 can adjust the performance/power consumption/frequency of the second graphics processor 140 according to the operating temperature or core temperature. The second temperature sensor 141 can be a sensor that can collect temperature, such as a resistor, a thermocouple, or a thermistor temperature sensor.

BIOS固件闪存150用于存储BIOS固件,BIOS固件可以为传统BIOS固件,也可以为基于UEFI的BIOS固件。BISO固件闪存150可以采样ROM(只读存储器)或Flash memory(闪存)。The BIOS firmware flash memory 150 is used to store the BIOS firmware, which may be a traditional BIOS firmware or a UEFI-based BIOS firmware. The BIOS firmware flash memory 150 may be a ROM (read-only memory) or a Flash memory (flash memory).

风扇180用于为处理器110、第二图形处理器140等进行散热,以降低器件温度,保证设备运行。电子设备100可以包括一个或多个风扇180。示例性地,电子设备100可以在处理器110附近或处理器110上(即主板处理器110的上方)布置一个风扇,在第二图形处理器140附近或第二图形处理器140上布置一个风扇。The fan 180 is used to dissipate heat for the processor 110, the second graphics processor 140, etc., to reduce the temperature of the components and ensure the operation of the device. The electronic device 100 may include one or more fans 180. Exemplarily, the electronic device 100 may arrange a fan near or on the processor 110 (i.e., above the motherboard processor 110), and arrange a fan near or on the second graphics processor 140.

键盘181用于供电子设备100的用户进行输入。The keyboard 181 is used for input by a user of the electronic device 100 .

第一温度传感器190用于采集电子设备100的例如主板、处理器110、第一内部存储器120、第二图形处理器140等器件的温度。电子设备100可以包括一个或多个第一温度传感器190。示例性地,例如在处理器110附近布置一个或多个第一温度传感器190,在第一内部存储器120附近布置一个或多个第一温度传感器190,在第二图形处理器140附近布置一个或多个第一温度传感器190。第一温度传感器190可以为电阻、电偶、热敏温度传感器等可以采集温度的传感器。第一温度传感器190可以通过例如系统管理总线(“SMBus”)与处理器110和嵌入式控制器(EC)130通信连接,从而将采集的温度发送至处理器110和嵌入式控制器(EC)130。The first temperature sensor 190 is used to collect the temperature of components of the electronic device 100, such as the mainboard, the processor 110, the first internal memory 120, the second graphics processor 140, etc. The electronic device 100 may include one or more first temperature sensors 190. Exemplarily, for example, one or more first temperature sensors 190 are arranged near the processor 110, one or more first temperature sensors 190 are arranged near the first internal memory 120, and one or more first temperature sensors 190 are arranged near the second graphics processor 140. The first temperature sensor 190 may be a sensor that can collect temperature, such as a resistor, a thermocouple, or a thermistor temperature sensor. The first temperature sensor 190 may be connected to the processor 110 and the embedded controller (EC) 130 through, for example, a system management bus ("SMBus"), so as to send the collected temperature to the processor 110 and the embedded controller (EC) 130.

在本申请实施例中,嵌入式控制器(EC)130可以实时获取第二图形处理器140外部的第一度传感器190的温度值,该行为不会对第二图形处理器140处于低功耗的状态造成影响。In the embodiment of the present application, the embedded controller (EC) 130 can obtain the temperature value of the first temperature sensor 190 outside the second graphics processor 140 in real time, and this behavior will not affect the low power consumption state of the second graphics processor 140.

图3为示例性示出的电子设备的温度传感器布置示意图。如图3所示,电子设备100包括主板101,在主板101上设置有处理器110、第二图形处理器140和USB接口191,在处理器110、第二图形处理器140和USB接口191的外部邻近处理器110、第二图形处理器140和USB接口191的位置设置有第一温度传感器190。处理器110外部的第一温度传感器190用于采集处理器110的外围温度。第二图形处理器140外部的第一温度传感器190用于采集第二图形处理器140的外围温度。USB接口191外部的第一温度传感器190用于采集。USB接口191的外围温度。在本申请中器件的外围温度是相对器件内部的工作温度或核心温度而言,指的是器件外围或周边的温度。FIG3 is a schematic diagram of the arrangement of temperature sensors of an electronic device as shown in an exemplary embodiment. As shown in FIG3 , the electronic device 100 includes a mainboard 101, on which a processor 110, a second graphics processor 140 and a USB interface 191 are arranged, and a first temperature sensor 190 is arranged outside the processor 110, the second graphics processor 140 and the USB interface 191, adjacent to the processor 110, the second graphics processor 140 and the USB interface 191. The first temperature sensor 190 outside the processor 110 is used to collect the peripheral temperature of the processor 110. The first temperature sensor 190 outside the second graphics processor 140 is used to collect the peripheral temperature of the second graphics processor 140. The first temperature sensor 190 outside the USB interface 191 is used to collect the peripheral temperature of the USB interface 191. In the present application, the peripheral temperature of a device refers to the temperature of the periphery or periphery of the device relative to the operating temperature or core temperature inside the device.

电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Windows系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Windows system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

图4是本申请实施例的电子设备100的软件结构框图。FIG. 4 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

电子设备100的分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。The layered architecture of the electronic device 100 divides the software into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces.

在一些实施例中,将Windows系统分为用户态和内核态。其中,用户态包括应用层以及子系统动态链接库。内核态自下而上分为固件层、硬件抽象层(hardwareabstractionlayer,HAL)、内核和驱动层及执行体。In some embodiments, the Windows system is divided into user state and kernel state. The user state includes the application layer and the subsystem dynamic link library. The kernel state is divided from bottom to top into the firmware layer, the hardware abstraction layer (HAL), the kernel and the driver layer and the executive body.

如图4所示,应用层包括音乐、视频、游戏、办公、温度监控软件等应用程序。应用层还包括环境子系统、调度引擎、系统支持进程、服务进程等。其中,图中仅示出部分应用程序,应用层还可以包括其他应用程序,例如购物应用、浏览器等,本申请不做限定。As shown in Figure 4, the application layer includes applications such as music, video, games, office, and temperature monitoring software. The application layer also includes an environment subsystem, a scheduling engine, a system support process, a service process, etc. Among them, only some applications are shown in the figure, and the application layer can also include other applications, such as shopping applications, browsers, etc., which are not limited in this application.

环境子系统可以将基本的执行体系统服务的某些子集以特定的形态展示给应用程序,为应用程序提供执行环境。The environment subsystem can present certain subsets of the basic executive system services to the application in a specific form, providing an execution environment for the application.

调度引擎可以获取电子设备100的负载情况,并结合电子设备100的负载情况及上述基础调度策略确定符合电子设备100实际运行情况的实际调度策略。The scheduling engine can obtain the load condition of the electronic device 100, and determine the actual scheduling strategy that meets the actual operation condition of the electronic device 100 in combination with the load condition of the electronic device 100 and the above-mentioned basic scheduling strategy.

温度监控软件可以监控电子设备各硬件的温度,例如CPU温度、GPU温度等。温度监控软件可以为独立的应用程序,也可以为其它应用程序中集成的软件模块。Temperature monitoring software can monitor the temperature of various hardware of electronic devices, such as CPU temperature, GPU temperature, etc. Temperature monitoring software can be an independent application or a software module integrated in other applications.

子系统动态链接库包括API模块,该API模块包括Windows API,Windows原生API、NVAPI等。其中,Windows API,Windows原生API均可以为应用程序提供系统调用入口及内部函数支持,区别在于Windows原生API为Windows系统原生的API。例如,Windows API可包括user.dll、kernel.dll,Windows原生API可包括ntdll,dll。The subsystem dynamic link library includes an API module, which includes Windows API, Windows native API, NVAPI, etc. Among them, Windows API and Windows native API can provide system call entry and internal function support for applications. The difference is that Windows native API is an API native to the Windows system. For example, Windows API may include user.dll and kernel.dll, and Windows native API may include ntdll and dll.

执行体包括进程管理器、虚拟内存管理器、安全引用监视器、I/O管理器、Windows管理规范(Windows management instrumentation,WMI)、电源管理器、系统事件驱动(operating system event driver,OsEventDriver)节点、系统与芯片驱动(operatingsystem to System on Chip,OS2SOC)节点等。The executive body includes the process manager, virtual memory manager, security reference monitor, I/O manager, Windows management instrumentation (WMI), power manager, operating system event driver (OsEventDriver) node, operating system to System on Chip (OS2SOC) node, etc.

内核和驱动层包括内核以及设备驱动程序。The kernel and driver layer include the kernel and device drivers.

内核是对处理器体系结构的抽象,将执行体与处理器体系结构的差异相隔离,保证系统的可移植性。内核可以进行线程安排和调度、陷阱处理和异常调度、中断处理和调度等。The kernel is an abstraction of the processor architecture, isolating the executive body from the differences in the processor architecture to ensure the portability of the system. The kernel can perform thread scheduling and dispatching, trap handling and exception dispatching, interrupt handling and dispatching, etc.

设备驱动程序运行在内核模式下,为I/O系统和相关硬件之间的接口。设备驱动程序可包括显卡驱动、Intel DTT驱动、鼠标驱动、音视频驱动、摄像头驱动、键盘驱动等。例如,显卡驱动可以驱动GPU运行,Intel DTT驱动可以驱动CPU运行。Device drivers run in kernel mode and are interfaces between the I/O system and related hardware. Device drivers may include graphics card drivers, Intel DTT drivers, mouse drivers, audio and video drivers, camera drivers, keyboard drivers, etc. For example, a graphics card driver can drive the GPU to run, and an Intel DTT driver can drive the CPU to run.

HAL是一个核心态模块,可以隐藏各种与硬件有关的细节,例如I/O接口、中断控制器以及多处理器通信机制等,为运行Windows的不同硬件平台提供统一的服务接口,实现多种硬件平台上的可移植性。HAL is a kernel-state module that hides various hardware-related details, such as I/O interfaces, interrupt controllers, and multi-processor communication mechanisms, and provides a unified service interface for different hardware platforms running Windows, achieving portability on multiple hardware platforms.

固件层可以包括基本输入输出系统(basic input output system,bios),BIOS是一组固化到计算机主板上一个只读存储器(read only memory,ROM)芯片内的程序,它保存着计算机最重要的基本输入输出的程序、开机后自检程序和系统自启动程序,它可从互补金属氧化物半导体(complementary metal oxide semiconductor,CMOS)中读写系统设置的具体信息。其主要功能是为计算机提供最底层的、最直接的硬件设置和控制。The firmware layer can include the basic input output system (BIOS). The BIOS is a set of programs that are fixed to a read-only memory (ROM) chip on the computer motherboard. It stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program. It can read and write specific information of system settings from the complementary metal oxide semiconductor (CMOS). Its main function is to provide the lowest-level and most direct hardware settings and control for the computer.

Intel DTT驱动可以通过BIOS向CPU发送指令的。The Intel DTT driver can send instructions to the CPU through the BIOS.

需要说明的是,本申请实施例仅以Windows系统举例来说明,在其他操作系统中(例如安卓系统,IOS系统等),只要各个功能模块实现的功能和本申请的实施例类似也能实现本申请的方案。It should be noted that the embodiments of the present application are only illustrated using the Windows system as an example. In other operating systems (such as the Android system, the IOS system, etc.), as long as the functions implemented by each functional module are similar to those of the embodiments of the present application, the solutions of the present application can also be implemented.

可以理解的是,图4示出的软件结构中的层以及各层中包含的部件,并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的层,以及每个层中可以包括更多或更少的部件,本申请不做限定。It is understandable that the layers in the software structure shown in FIG4 and the components contained in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown in the figure, and each layer may include more or fewer components, which is not limited in the present application.

下面以获取第二图形处理器140的温度为例说明本申请实施例提供的参数监控方法。应当理解的是本申请实施例的参数监控方法中的参数不限于第二图形处理器140的温度,还可以是例如风扇转速,CPU温度、主板温度等其它参数。The parameter monitoring method provided by the embodiment of the present application is described below by taking the temperature of the second graphics processor 140 as an example. It should be understood that the parameters in the parameter monitoring method of the embodiment of the present application are not limited to the temperature of the second graphics processor 140, and may also be other parameters such as fan speed, CPU temperature, motherboard temperature, etc.

图5为示例性示出的根据本申请实施例的参数监控方法的模块交互示意图之一。FIG. 5 is one of the schematic diagrams of module interactions of the parameter monitoring method according to an embodiment of the present application.

参考图5,电子设备100执行本申请实施例提供的参数监控方法,涉及模块至少包括但不限于:第一内部存储器120、控制器(EC)130、第一温度传感器190、BIOS、第一应用。5 , the electronic device 100 executes the parameter monitoring method provided in the embodiment of the present application, and the modules involved at least include but are not limited to: a first internal memory 120 , a controller (EC) 130 , a first temperature sensor 190 , BIOS, and a first application.

如图5所示,本申请实施例提供的参数监控方法具体包括:As shown in FIG5 , the parameter monitoring method provided in the embodiment of the present application specifically includes:

步骤S501,响应于用户操作启动第一应用。Step S501: starting a first application in response to a user operation.

所述用户操作例如为用户对第一应用的点击操作。第一应用例如为设备管理或测试应用,其具备温度监控功能。第一应用例如为三方监控软件。The user operation is, for example, a click operation of the user on the first application. The first application is, for example, a device management or test application, which has a temperature monitoring function. The first application is, for example, a third-party monitoring software.

此时,第二图形处理器处于睡眠状态,第二图形处理器的具有第一工作电压和第一工作电流。At this time, the second graphics processor is in a sleep state, and the second graphics processor has a first operating voltage and a first operating current.

步骤S502,通过第一应用获取第一温度值。Step S502: obtaining a first temperature value through a first application.

示例性地,在本申请实施例中,步骤S502可以通过下述步骤实现:For example, in the embodiment of the present application, step S502 may be implemented by the following steps:

步骤S5021,第二图形处理器外部的第一温度传感器实时采集第二图形处理器的第一温度值。Step S5021: A first temperature sensor outside the second graphics processor collects a first temperature value of the second graphics processor in real time.

具体地,通过布置在第二图形处理器外部的第一温度传感器采集第二图形处理器温度的第一温度值。所述第一温度值表示第二图形处理器的外围温度。Specifically, a first temperature value of the second graphics processor is collected by a first temperature sensor arranged outside the second graphics processor. The first temperature value represents the peripheral temperature of the second graphics processor.

步骤S5022,,在第一时间点,控制器(EC)从第一温度传感器获取所述第一温度值。Step S5022, at a first time point, the controller (EC) obtains the first temperature value from a first temperature sensor.

控制器(EC)通过例如系统管理总线(“SMBus”)与第二图形处理器外部的第一温度传感器通信连接,并通过系统管理总线(“SMBus”)对第一温度传感器或其它设备进行轮询来从第二图形处理器外部的第一温度传感器读取所述第一温度值。The controller (EC) is connected to the first temperature sensor outside the second graphics processor through, for example, a system management bus ("SMBus"), and polls the first temperature sensor or other devices through the system management bus ("SMBus") to read the first temperature value from the first temperature sensor outside the second graphics processor.

进一步地,控制器(EC)包括第二内部存储器,例如RAM,当从第二图形处理器外部的第一温度传感器获取第一温度值后,将读取到第一温度值存储/写入至第二内部存储器。Further, the controller (EC) includes a second internal memory, such as a RAM, and after acquiring the first temperature value from the first temperature sensor outside the second graphics processor, the read first temperature value is stored/written into the second internal memory.

应当理解的是,步骤S503可以为控制器(EC)可以包括在控制器的温度监控流程中,当控制器启动温度监控流程后,可以重复执行步骤S503直到温度监控流程结束为止。控制器的温度监控流程用于监控诸如处理器、第二处理器图形处理器、主板等的温度,其与第一应用的温度监控功能不是同一个监控流程。It should be understood that step S503 may be included in the temperature monitoring process of the controller (EC). After the controller starts the temperature monitoring process, step S503 may be repeatedly executed until the temperature monitoring process ends. The temperature monitoring process of the controller is used to monitor the temperature of the processor, the second processor graphics processor, the motherboard, etc., and it is not the same monitoring process as the temperature monitoring function of the first application.

步骤S5023,BIOS从控制器(EC)读取所述第一温度值。Step S5023: BIOS reads the first temperature value from the controller (EC).

示例性地,控制器(EC)通过62/66IO端口传递数据。BIOS和控制器(EC)预先定义SMI(System Management Interrupt,系统管理中断)中断号,BIOS或者更具体地BIOS运行时服务通过62/66IO端口向控制器(EC)获取中断号。控制器(EC)在轮询读取到第二图形处理器外部的第一温度传感器的第一温度值后会产生SCI中断,BIOS运行时服务调用中断号对应的中断服务函数再次通过62/66IO端口读取所述第一温度值。Exemplarily, the controller (EC) transmits data through the 62/66IO port. The BIOS and the controller (EC) predefine the SMI (System Management Interrupt) interrupt number, and the BIOS or more specifically the BIOS runtime service obtains the interrupt number from the controller (EC) through the 62/66IO port. After polling and reading the first temperature value of the first temperature sensor outside the second graphics processor, the controller (EC) generates an SCI interrupt, and the BIOS runtime service calls the interrupt service function corresponding to the interrupt number to read the first temperature value again through the 62/66IO port.

步骤S5024,BIOS将所述第一温度值写入第一内部存储器中预先分配的目标存储区。Step S5024: BIOS writes the first temperature value into a pre-allocated target storage area in the first internal memory.

BISO运行时服务从控制器(EC)读取所述第一温度值后,将该所述第一温度值写入(也即更新到)第一内部存储器中预先分配的目标存储区。After reading the first temperature value from the controller (EC), the BIOS runtime service writes (ie updates) the first temperature value to a pre-allocated target storage area in the first internal memory.

在第一内部存储器中为第二图形传感器的第一温度值分配存储位置的原理和过程将在后文进行描述,在此不再赘述。The principle and process of allocating a storage location for the first temperature value of the second graphic sensor in the first internal memory will be described later and will not be repeated here.

步骤S5025,第一应用读取SMBIOS表,并从所述SMBIOS表中解析出目标地址信息。所述目标地址信息表示第一内部存储器中预先分配的目标存储区的地址信息。Step S5025: the first application reads the SMBIOS table and parses the target address information from the SMBIOS table. The target address information indicates the address information of the target storage area pre-allocated in the first internal memory.

具体地,SMBIOS表存储在第一内部存储器中,对于non-UEFI系统,第一应用可以通过在物理内存地址范围000F0000h到000FFFFFh搜索anchor-string(_SM_),找到SMBIOS的EPS(Entry Point structure)。对于UEFI-based系统,第一应用可以直接搜寻GUID找到(SMBIOS_TABLE_GUID,{EB9D2D31-2D88-11D3-9A16-0090273FC14D})。Specifically, the SMBIOS table is stored in the first internal memory. For non-UEFI systems, the first application can find the EPS (Entry Point structure) of SMBIOS by searching for the anchor-string (_SM_) in the physical memory address range 000F0000h to 000FFFFFh. For UEFI-based systems, the first application can directly search for the GUID (SMBIOS_TABLE_GUID, {EB9D2D31-2D88-11D3-9A16-0090273FC14D}).

当第一应用在第一内部存储器中找到SMBIOS表后,通过SMBIOS子表的type值找到或确定温度子表。温度子表中存储有各温度探测点(也即各第一温度传感器)的温度存储位置的地址信息。根据温度子表可以获得第二图形处理器外部的第一温度传感器的温度存储位置的地址信息。After the first application finds the SMBIOS table in the first internal memory, the temperature subtable is found or determined by the type value of the SMBIOS subtable. The temperature subtable stores the address information of the temperature storage location of each temperature detection point (that is, each first temperature sensor). According to the temperature subtable, the address information of the temperature storage location of the first temperature sensor outside the second graphics processor can be obtained.

示例性地,在本申请实施例中,SMBIOS表中type028表示温度传感器子表。在温度传感器子表中通过预先定义的描述规范可以找到第二图形处理器的第一温度传感器的描述。For example, in the embodiment of the present application, type028 in the SMBIOS table represents a temperature sensor sub-table. In the temperature sensor sub-table, the description of the first temperature sensor of the second graphics processor can be found through a predefined description specification.

示例性地,温度传感器子表中的描述规范如下:格式:“HNABC”,其中,“HN”标识符,固定写入“HN”。“A”表示温度探测点类型,详细定义为:“1”表示靠近CPU的温度探测点“2”表示靠近GPU的温度探测点,“3”表示靠近硬盘的温度探测点,“4”表示靠近主板的温度探测点。“B”表示温度探测点编号,当A字段相同时,用B字段加以区分,从“1”开始编号,到“9”结束。“C”表示温度探测点访问的方式,“1”表示EC internal RAM访问方式,“2”表示物理内存地址访问方式,“3”表示EC RAM访问方式,“4”表示Index-Data访问方式。Exemplarily, the description specification in the temperature sensor subtable is as follows: Format: "HNABC", where "HN" is the identifier, which is fixedly written as "HN". "A" represents the temperature detection point type, and is defined in detail as follows: "1" represents the temperature detection point close to the CPU, "2" represents the temperature detection point close to the GPU, "3" represents the temperature detection point close to the hard disk, and "4" represents the temperature detection point close to the motherboard. "B" represents the temperature detection point number. When the A field is the same, the B field is used to distinguish them, starting from "1" and ending with "9". "C" represents the access method of the temperature detection point, "1" represents the EC internal RAM access method, "2" represents the physical memory address access method, "3" represents the EC RAM access method, and "4" represents the Index-Data access method.

第一应用读取SMBIOS表,从中解析出第二图形处理器的温度存储位置的具体过程例如为:第一应用在第一内部存储器中找到SMBIOS表,然后在SMBIOS表中找到type028子表,然后在type028子表找到HN212,该字段表示其为第二图形处理器外部的第一温度传感器的描述,访问方式为物理内存地址访问方式。然后从HN212字段的描述中找到第二图形处理器外部的第一温度传感器的温度存储位置的地址信息。第二图形处理器外部的第一温度传感器的温度存储位置为第一内部存储器中预先分配的目标存储区,第二图形处理器外部的第一温度传感器的温度存储位置的地址信息即为目标地址信息。The specific process of the first application reading the SMBIOS table and parsing the temperature storage location of the second graphics processor therefrom is, for example: the first application finds the SMBIOS table in the first internal memory, then finds the type028 subtable in the SMBIOS table, and then finds HN212 in the type028 subtable, which field indicates that it is a description of the first temperature sensor outside the second graphics processor, and the access method is the physical memory address access method. Then, the address information of the temperature storage location of the first temperature sensor outside the second graphics processor is found from the description of the HN212 field. The temperature storage location of the first temperature sensor outside the second graphics processor is a target storage area pre-allocated in the first internal memory, and the address information of the temperature storage location of the first temperature sensor outside the second graphics processor is the target address information.

应当理解的是,步骤S5025可以在步骤S501之后执行,或者说步骤S5025与步骤S5021至S5024可以同时执行,或者在S5021之前执行。It should be understood that step S5025 can be executed after step S501, or step S5025 and steps S5021 to S5024 can be executed simultaneously, or before step S5021.

步骤S5026,第一应用根据目标地址信息,确定第一内部存储器中预先分配的目标存储区,并从所述目标存储器区读取所述第一温度值。Step S5026: The first application determines a pre-allocated target storage area in the first internal memory according to the target address information, and reads the first temperature value from the target storage area.

此时,第二图形处理器处于睡眠状态,第二图形处理器的具有第一工作电压和第一工作电流。At this time, the second graphics processor is in a sleep state, and the second graphics processor has a first operating voltage and a first operating current.

具体地,第一应用根据目标地址信息找到第一内部存储器中预先分配的目标存储区的位置,然后从目标存储器中读取第一温度值。Specifically, the first application finds the location of a pre-allocated target storage area in the first internal memory according to the target address information, and then reads the first temperature value from the target memory.

步骤S508,在第二时间点,第一应用在第一界面显示第一温度值。Step S508: at a second time point, the first application displays the first temperature value on the first interface.

第一温度值为第二图形处理器的温度。The first temperature value is the temperature of the second graphics processor.

第一界面例如为温度监控界面或参数监控界面。第一界面可以位于第一应用的显示界面中,也可以为独立于第一应用的显示界面显示。The first interface is, for example, a temperature monitoring interface or a parameter monitoring interface. The first interface may be located in the display interface of the first application, or may be displayed as a display interface independent of the first application.

第一温度值例如为46℃。第一界面的示例参见图6,在图6所示的第一界面中显示了第二图形处理器(即显卡)的温度为46℃。The first temperature value is, for example, 46° C. For an example of the first interface, see FIG6 . In the first interface shown in FIG6 , it is shown that the temperature of the second graphics processor (ie, graphics card) is 46° C.

应当理解的是,在第一时间点和第二时间点之间第二图形处理器处于睡眠状态/低功耗状态,第二图形处理器的工作电压和工作电流为第一工作电压和第一工作电流,第二图形处理器具有第一功耗。示例性地,例如第一工作电压、第一工作电流和第一功耗均小于预设值。预设值与第二图形处理器处于睡眠状态时供电参数阈值。It should be understood that between the first time point and the second time point, the second graphics processor is in a sleep state/low power consumption state, the operating voltage and the operating current of the second graphics processor are the first operating voltage and the first operating current, and the second graphics processor has the first power consumption. Exemplarily, for example, the first operating voltage, the first operating current, and the first power consumption are all less than a preset value. The preset value is equal to the power supply parameter threshold when the second graphics processor is in a sleep state.

综上可知,本申请实施例提供的参数监控方法在获取第二图形处理的温度时,先通过控制器读取第一温度传感器采集的第一温度值,然后BIOS/BIOS运行时服务从控制器读取取第二图形处理的第一温度值,并写入预先分配的内存中。第一应用在监控第二图形处理的温度时,先从SMBIOS表中获取温度存储地址,在根据温度存储地址从内存中读取第一温度值。换言之,EC在运行过程中,会将数据发送给BIOS,BIOS负责实时更新温度。三方软件在读取SMBIOS Table后就可以找到温度数据存储的地址,进而获取到温度。在整个温度获取过程中,无需对第二图形处理器进行操作,也即当第二图形处理器处于低功耗睡眠状态时,无需唤醒第二图形处理器便可获取第二图形处理器的外围温度,这样可以避免因为频繁唤醒第二图形处理器而导致设备功耗增加。In summary, when obtaining the temperature of the second graphics processing, the parameter monitoring method provided in the embodiment of the present application first reads the first temperature value collected by the first temperature sensor through the controller, and then the BIOS/BIOS runtime service reads the first temperature value of the second graphics processing from the controller and writes it into the pre-allocated memory. When the first application monitors the temperature of the second graphics processing, it first obtains the temperature storage address from the SMBIOS table, and then reads the first temperature value from the memory according to the temperature storage address. In other words, during the operation of the EC, the data will be sent to the BIOS, and the BIOS is responsible for updating the temperature in real time. After reading the SMBIOS Table, the third-party software can find the address where the temperature data is stored, and then obtain the temperature. During the entire temperature acquisition process, there is no need to operate the second graphics processor, that is, when the second graphics processor is in a low-power sleep state, the peripheral temperature of the second graphics processor can be obtained without waking up the second graphics processor, which can avoid the increase in device power consumption due to frequent waking up of the second graphics processor.

为了更好地理解本发明,下面结合图7至图8以获取第二图形处理器的温度为例说明目前的参数监控方法的详细过程。In order to better understand the present invention, the detailed process of the current parameter monitoring method is described below by taking the temperature of the second graphics processor as an example in conjunction with FIG. 7 and FIG. 8 .

图7为示例性示出的用于执行参数监控方法的模块交互示意图之一。FIG. 7 is one of the schematic diagrams of module interactions for executing the parameter monitoring method.

如图7所示,目前的参数监控方法包括:As shown in FIG7 , current parameter monitoring methods include:

步骤S701,响应于用户的操作启动第二应用。Step S701: starting a second application in response to a user operation.

所述用户操作例如为用户对第二应用的点击操作。第二应用例如为设备管理或测试应用,其具备温度监控功能。第二应用例如为三方监控软件。第二应用与第一应用可以为相同的应用,也可以为不同的应用。The user operation is, for example, a click operation of the user on the second application. The second application is, for example, a device management or test application, which has a temperature monitoring function. The second application is, for example, a third-party monitoring software. The second application and the first application can be the same application or different applications.

此时,第二图形处理器处于睡眠状态,第二图形处理器的具有第一工作电压和第一工作电流。At this time, the second graphics processor is in a sleep state, and the second graphics processor has a first operating voltage and a first operating current.

步骤S702,通过第二应用获取第二温度值Step S702: Obtain a second temperature value through a second application

示例性地,在本申请实施例中,步骤S702可以通过下述步骤实现:For example, in the embodiment of the present application, step S702 may be implemented by the following steps:

步骤S7021,第二应用启动温度监控程序,调用NVAPI发出第一指令。Step S7021: The second application starts the temperature monitoring program and calls NVAPI to issue a first instruction.

第一指令用于读取第二处理器图形的第二温度值。第二温度值表示第二处理器的核心温度或工作温度。在第二图形处理器运行时,第二图形处理器的第二温度值大于第二图形处理器的第一温度值。The first instruction is used to read a second temperature value of a second processor graphics. The second temperature value represents a core temperature or an operating temperature of the second processor. When the second graphics processor is running, the second temperature value of the second graphics processor is greater than the first temperature value of the second graphics processor.

第二处理器图形的第二温度值可以通过第二图形处理器的第二温度传感器获取。The second temperature value of the second processor graphics may be acquired by a second temperature sensor of the second graphics processor.

应当理解的是,在本申请实施例以第二图形处理器为NV显卡为例进行说明,因此第二应用调用的为NVAPI。如果第二图形处理器采用其它显卡,则可以调用对应的API发送第一指令。It should be understood that in the embodiment of the present application, the second graphics processor is an NV graphics card as an example for explanation, so the second application calls the NVAPI. If the second graphics processor uses other graphics cards, the corresponding API can be called to send the first instruction.

步骤S7022,NVAPI将第一指令发送至显卡驱动。Step S7022: NVAPI sends the first instruction to the graphics card driver.

步骤S7023,显卡驱将第一指令发送至显卡。Step S7023: the graphics card driver sends the first instruction to the graphics card.

在步骤S7023中,显卡驱动首先确定第二图形处理器的状态,如果第二图形处理器处于睡眠状态,则显卡驱动先将第二图形处理从睡眠状态唤醒。如果第二图形处理器处于工作状态,则显卡驱动直接将第一指令发送至显卡。In step S7023, the graphics card driver first determines the state of the second graphics processor, and if the second graphics processor is in a sleep state, the graphics card driver first wakes up the second graphics processor from the sleep state. If the second graphics processor is in a working state, the graphics card driver directly sends the first instruction to the graphics card.

步骤S7024,第二图形处理器根据第一指令获取第二温度传感器的第二温度值。Step S7024: The second graphics processor obtains a second temperature value of the second temperature sensor according to the first instruction.

第二图形处理器根据第一指令获取第二温度感器的第二温度值。第二温度传感器设置第二图形处理器内部。第二温度值表示第二处理器的核心温度或工作温度。The second graphics processor obtains a second temperature value of a second temperature sensor according to the first instruction. The second temperature sensor is disposed inside the second graphics processor. The second temperature value indicates a core temperature or an operating temperature of the second processor.

此时,第二图形处理器处于唤醒/工作状态,第二图形处理器的具有第二工作电压和第二工作电流。第一工作电流大于第一工作电流,第二工作电压大于第一工作电压。At this time, the second graphics processor is in a wake-up/working state, and the second graphics processor has a second working voltage and a second working current. The first working current is greater than the first working current, and the second working voltage is greater than the first working voltage.

步骤S7025,第二图形处理器将第二温度值上报至显卡驱动。Step S7025: The second graphics processor reports the second temperature value to the graphics card driver.

在步骤S7025中,第二图形处理器将第二温度值上报至显卡驱动后,如果没有接收新的任务或指令,则第二图层处理器进入睡眠状态。In step S7025, after the second graphics processor reports the second temperature value to the graphics card driver, if no new task or instruction is received, the second layer processor enters a sleep state.

步骤S7026,显卡驱动将第二温度值返回至NVAPI。Step S7026: The graphics card driver returns the second temperature value to NVAPI.

步骤S7027,NVAPI将第二温度值返回至第二应用。Step S7027: NVAPI returns the second temperature value to the second application.

步骤S703,在第四时间点,第二应用在第二界面显示第二温度值。Step S703: at a fourth time point, the second application displays a second temperature value on the second interface.

第二温度值为第二图形处理器的温度。The second temperature value is the temperature of the second graphics processor.

第二界面例如为温度监控界面或参数监控界面。第二界面可以位于第二应用的显示界面中,也可以为独立于第二应用的显示界面显示。The second interface is, for example, a temperature monitoring interface or a parameter monitoring interface. The second interface may be located in the display interface of the second application, or may be displayed as a display interface independent of the second application.

第二温度值例如为66℃。第二界面的示例参见图8,在图8所示的第二界面中显示了第二图形处理器(即显卡)的温度为66℃。The second temperature value is, for example, 66° C. For an example of the second interface, see FIG8 . The second interface shown in FIG8 shows that the temperature of the second graphics processor (ie, graphics card) is 66° C.

应当理解的是,在第三时间点和第四时间点之间第二图形处理器处于工作状态或者会被从唤醒状态唤醒的第五时间点,第二图形处理器的工作电压和工作电流为第二工作电压和第二工作电流,第二图形处理器具有第二功耗。示例性地,例如第二工作电压、第二工作电流和第二功耗均大于预设值。It should be understood that, at a fifth time point between the third time point and the fourth time point when the second graphics processor is in the working state or is to be awakened from the awake state, the working voltage and the working current of the second graphics processor are the second working voltage and the second working current, and the second graphics processor has the second power consumption. Exemplarily, for example, the second working voltage, the second working current, and the second power consumption are all greater than the preset value.

还应当理解的是,第二工作电压大于第一工作电压,第二工作电流大于第一工作电流,第二功耗大于第一功耗。It should also be understood that the second operating voltage is greater than the first operating voltage, the second operating current is greater than the first operating current, and the second power consumption is greater than the first power consumption.

还应当理解的是,在第二图形处理器处于工作状态时,第二图形处理器的工作电压和工作电流为第三工作电压和第三工作电流,第二图形处理器具有第三功耗,第三工作电压大于第一工作电压,第三工作电流大于第三工作电流,第三功耗大于第一功耗。第三电压大于等于第二工作电压,第三工作电流大于等于第二工作电流。It should also be understood that when the second graphics processor is in the working state, the working voltage and working current of the second graphics processor are the third working voltage and the third working current, the second graphics processor has a third power consumption, the third working voltage is greater than the first working voltage, the third working current is greater than the third working current, and the third power consumption is greater than the first power consumption. The third voltage is greater than or equal to the second working voltage, and the third working current is greater than or equal to the second working current.

图9为示例性示出的用于预分配内存的流程图。FIG. 9 is an exemplary flowchart for pre-allocating memory.

需要说明的是,在本申请实施例中,在电子设备100的启动过程中在第一内部存储器中预先分配目标存储区,用于存储第二图形处理器的第一温度值。电子设备100的启动过程包括BIOS启动和操作启动启动。目标存储区的分配在BIOS启动过程完成。It should be noted that in the embodiment of the present application, a target storage area is pre-allocated in the first internal memory during the startup process of the electronic device 100 for storing the first temperature value of the second graphics processor. The startup process of the electronic device 100 includes BIOS startup and operation startup. The allocation of the target storage area is completed during the BIOS startup process.

示例性地,在本申请中以基于UEFI的BIOS系统为例进行说明。Exemplarily, in this application, a UEFI-based BIOS system is taken as an example for description.

如图9所示,用于预分配内存方法包括:As shown in FIG9 , the method for pre-allocating memory includes:

步骤S901,开始。Step S901, start.

例如处理器110从BIOS固件闪存中读取并运行BIOS固件。For example, the processor 110 reads and runs the BIOS firmware from the BIOS firmware flash memory.

步骤S902,执行UEFI启动。Step S902, executing UEFI boot.

步骤S903,在第一内部存储器中预先分配目标存储区,用于存储第二图形处理器的第一温度值。Step S903: pre-allocate a target storage area in the first internal memory for storing the first temperature value of the second graphics processor.

具体地,调用UEFI提供的bootservice中的AllocatePages进行内存分配,从第一内部存储器中预留部分内存用于存储第二图形处理器的第一温度值。该预留的目标存储区的属性设置为ACPI_NVS类型。该ACPI_NVS类型表示预留的内存不会被操作系统使用,在操作系统进入待机状态后该预留的内存会被保存,在退出待机时,该预留的内存会被操作系统自动恢复。Specifically, AllocatePages in the bootservice provided by UEFI is called to allocate memory, and a portion of the memory is reserved from the first internal memory for storing the first temperature value of the second graphics processor. The attribute of the reserved target storage area is set to the ACPI_NVS type. The ACPI_NVS type indicates that the reserved memory will not be used by the operating system, and the reserved memory will be saved after the operating system enters the standby state. When exiting the standby state, the reserved memory will be automatically restored by the operating system.

示例性地,预留的目标存储区大小约为4K。Exemplarily, the size of the reserved target storage area is approximately 4K.

步骤S904,创建SMBIOS表。Step S904, creating an SMBIOS table.

根据步骤S903中预留的用于存储第二图形处理器的第一温度值的目标存储区创建SMBIOS表,在SMBIOS表中将该预留的目标存储区的地址信息写入对应的SMBIOS子表中。An SMBIOS table is created according to the target storage area reserved in step S903 for storing the first temperature value of the second graphics processor, and address information of the reserved target storage area is written into a corresponding SMBIOS sub-table in the SMBIOS table.

示例性地,在本申请实施例中,SMBIOS表中type028表示温度传感器子表。即当分配用于存储第二图形处理器的第一温度值的目标存储区后,将该目标存储区的地址信息写入温度传感器子表中用于描述第二图形处理器的第一温度传感器的字段中。For example, in the embodiment of the present application, type028 in the SMBIOS table represents a temperature sensor subtable. That is, after a target storage area for storing the first temperature value of the second graphics processor is allocated, the address information of the target storage area is written into the field of the temperature sensor subtable for describing the first temperature sensor of the second graphics processor.

示例性地,温度传感器子表中的描述规范如下:格式:“HNABC”,其中,“HN”标识符,固定写入“HN”。“A”表示温度探测点类型,详细定义为:“1”表示靠近CPU的温度探测点“2”表示靠近GPU的温度探测点,“3”表示靠近硬盘的温度探测点,“4”表示靠近主板的温度探测点。“B”表示温度探测点编号,当A字段相同时,用B字段加以区分,从“1”开始编号,到“9”结束。“C”表示温度探测点访问的方式,“1”表示EC internal RAM访问方式,“2”表示物理内存地址访问方式,“3”表示EC RAM访问方式,“4”表示Index-Data访问方式。Exemplarily, the description specification in the temperature sensor subtable is as follows: Format: "HNABC", where "HN" is the identifier, which is fixedly written as "HN". "A" represents the temperature detection point type, and is defined in detail as follows: "1" represents the temperature detection point close to the CPU, "2" represents the temperature detection point close to the GPU, "3" represents the temperature detection point close to the hard disk, and "4" represents the temperature detection point close to the motherboard. "B" represents the temperature detection point number. When the A field is the same, the B field is used to distinguish them, starting from "1" and ending with "9". "C" represents the access method of the temperature detection point, "1" represents the EC internal RAM access method, "2" represents the physical memory address access method, "3" represents the EC RAM access method, and "4" represents the Index-Data access method.

当分配用于存储第二图形处理器的第一温度值的目标存储区后,创建SMBIOS表,并在type028子表中创建HN212字段,该字段表示其为第二图形处理器的第一温度传感器的描述,访问方式为物理内存地址访问方式。然后从HN212字段的描述中写入分配好的用于存储第二图形处理器的第一温度值的目标存储区的物理内存地址信息。After the target storage area for storing the first temperature value of the second graphics processor is allocated, the SMBIOS table is created, and the HN212 field is created in the type028 subtable, which indicates that it is a description of the first temperature sensor of the second graphics processor, and the access method is the physical memory address access method. Then, the physical memory address information of the allocated target storage area for storing the first temperature value of the second graphics processor is written from the description of the HN212 field.

步骤S905,继续UEFI启动流程。Step S905, continue the UEFI boot process.

UEFI的后续启动流程同本领域常用的流程的类似,可以参见公开的相关描述,在此不再赘述。The subsequent boot process of UEFI is similar to the commonly used process in the art, and reference may be made to the relevant public description, which will not be repeated here.

需要说明的是,在本申请一些实施例中,在电子设备每次进行BIOS启动时,都会执行内存分配,为第二图形处理器的温度预留内存进行存储。It should be noted that, in some embodiments of the present application, each time the electronic device performs BIOS startup, memory allocation is performed to reserve memory for storing the temperature of the second graphics processor.

可以理解的是,虽然在本申请上述实施例中以监控第二图形处理器的温度为例说明本申请的参数监控方法,但是本申请的参数监控方法不限于监控第二图形处理器的温度,其同样可以用于监控例如CPU温度、风扇转速、主板温度等参数。It can be understood that, although in the above embodiments of the present application, the parameter monitoring method of the present application is illustrated by taking monitoring the temperature of the second graphics processor as an example, the parameter monitoring method of the present application is not limited to monitoring the temperature of the second graphics processor, and it can also be used to monitor parameters such as CPU temperature, fan speed, and motherboard temperature.

可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It is understandable that, in order to realize the above functions, the electronic device includes hardware and/or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

一个示例中,图10示出了本申请实施例的一种装置300的示意性框图。装置300可包括:处理器301和收发器/收发管脚302,可选地,还包括存储器303。In one example, FIG10 shows a schematic block diagram of an apparatus 300 according to an embodiment of the present application. The apparatus 300 may include: a processor 301 and a transceiver/transceiver pin 302 , and optionally, a memory 303 .

装置300的各个组件通过总线304耦合在一起,其中总线304除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图中将各种总线都称为总线304。The components of the device 300 are coupled together via a bus 304, wherein the bus 304 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, all buses are referred to as bus 304 in the figure.

可选地,存储器303可以用于前述方法实施例中的指令。该处理器301可用于执行存储器303中的指令,并控制接收管脚接收信号,以及控制发送管脚发送信号。Optionally, the memory 303 may be used for the instructions in the aforementioned method embodiment. The processor 301 may be used to execute the instructions in the memory 303, and control the receiving pin to receive a signal, and control the sending pin to send a signal.

装置300可以是上述方法实施例中的电子设备或电子设备的芯片。The apparatus 300 may be the electronic device or a chip of the electronic device in the above method embodiment.

其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

上述本申请实施例提供的一种参数监控方法所执行的步骤,也可以由电子设备100中包括的一种芯片系统来执行,其中,该芯片系统可以包括处理器和EC。该芯片系统可以与存储器耦合,使得该芯片系统运行时调用该存储器中存储的计算机程序,实现上述电子设备100执行的步骤。其中,该芯片系统中的处理器可以是应用处理器也可以是非应用处理器的处理器。The steps performed by the parameter monitoring method provided in the above embodiment of the present application may also be performed by a chip system included in the electronic device 100, wherein the chip system may include a processor and an EC. The chip system may be coupled to a memory so that when the chip system is running, the computer program stored in the memory is called to implement the steps performed by the above electronic device 100. The processor in the chip system may be an application processor or a processor other than an application processor.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for monitoring parameters, the method being applied to an electronic device, the electronic device including a first graphics processor and a second graphics processor, the electronic device having a first application installed therein, the method comprising:
starting a first application at a first time point, wherein the first graphic processor is in a working state and the second graphic processor is in a sleep state at the first time point;
After the first application is started, a first temperature value is obtained through the first application;
Displaying the first temperature value at a first interface of the first application at a second point in time, the first temperature value representing a temperature of the second graphics processor;
Wherein the second graphics processor is in a sleep state between the first point in time and a second point in time,
Starting a second application at a third time point, wherein the first graphic processor is in a working state and the second graphic processor is in a sleep state at the third time point;
after the second application is started, a second temperature value is obtained through the second application;
at a fourth point in time, displaying the second temperature value at a second interface of the second application, the second temperature value representing a temperature of the second graphics processor;
Wherein the second graphics processor wakes up between the third point in time and a fourth point in time.
2. The method for monitoring parameters according to claim 1, wherein,
At a fifth time point, the voltage of the second graphic processor is a first voltage value, the current of the second graphic processor is a first current value, and the fifth time is between the first time point and a second time;
At a sixth time, the voltage of the second graphics processor is a second voltage value, the current of the second graphics processor is a second current value, the sixth time point is between the third time point and a fourth time point, the second voltage value is greater than the first voltage value, and/or the second current value is greater than the first current.
3. The parameter monitoring method of claim 2, wherein the electronic device is installed with a third application, the method further comprising:
before a first time point, starting a third application, wherein the second graphic processor is in a working state, the voltage of the second graphic processor is a third voltage value, and the current of the second graphic processor is a third current value;
Closing the third application, and switching the second graphic processor to a sleep state;
Wherein the third voltage value is greater than the first voltage value and/or the third current value is greater than the first current value.
4. A method of monitoring parameters according to any of claims 1-3, wherein the electronic device comprises a first internal memory and an SMBIOS table, the obtaining, by the first application, a first temperature value comprising:
The first application reads the SMBIOS table and acquires target address information from the SMBIOS table, wherein the target address information represents address information of a target storage area which is pre-allocated in the first internal memory;
And the first application determines the position of the target storage area pre-allocated in the first internal memory according to the target address information, and reads the first temperature value from the target storage area.
5. The method of claim 4, wherein the electronic device further comprises a controller, a first temperature sensor, and a BIOS, wherein prior to reading the first temperature value from the target storage area, the obtaining, by the first application, the first temperature value further comprises:
The controller obtains the first temperature value through the first temperature sensor and transmits the first temperature value to the BIOS;
the BIOS writes the first temperature value into the target storage area pre-allocated in the first internal memory.
6. The method of claim 4, wherein the electronic device further comprises a BIOS, the method further comprising, prior to reading the SMBIOS table:
The BIOS is started, and during the BIOS start-up:
Pre-allocating the target storage area for storing the first temperature value in the first internal memory;
and creating the SMBIOS table, and writing the target address information of the target storage area into the SMBIOS table.
7. The method of claim 6, wherein during the BIOS boot process, the method further comprises:
and setting the attribute of the target storage area to be ACPI_NVS.
8. The parameter monitoring method of claim 6, wherein the size of the pre-allocated memory area for storing the first temperature value is 2-10K.
9. An electronic device, comprising: a memory and a processor, the memory and the processor coupled; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the parameter monitoring method of any one of claims 1-8.
10. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the parameter monitoring method according to any one of claims 1-8.
CN202211326867.7A 2022-10-26 2022-10-26 Parameter monitoring method and electronic equipment Active CN116737488B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211326867.7A CN116737488B (en) 2022-10-26 2022-10-26 Parameter monitoring method and electronic equipment
CN202410592191.9A CN118394601A (en) 2022-10-26 2022-10-26 Parameter monitoring method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211326867.7A CN116737488B (en) 2022-10-26 2022-10-26 Parameter monitoring method and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410592191.9A Division CN118394601A (en) 2022-10-26 2022-10-26 Parameter monitoring method and electronic equipment

Publications (2)

Publication Number Publication Date
CN116737488A CN116737488A (en) 2023-09-12
CN116737488B true CN116737488B (en) 2024-05-17

Family

ID=87899968

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202410592191.9A Pending CN118394601A (en) 2022-10-26 2022-10-26 Parameter monitoring method and electronic equipment
CN202211326867.7A Active CN116737488B (en) 2022-10-26 2022-10-26 Parameter monitoring method and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202410592191.9A Pending CN118394601A (en) 2022-10-26 2022-10-26 Parameter monitoring method and electronic equipment

Country Status (1)

Country Link
CN (2) CN118394601A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324526A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Method for calling sensor
CN106776209A (en) * 2016-12-05 2017-05-31 合肥联宝信息技术有限公司 The temperature monitoring method and system of a kind of smart machine
CN108710558A (en) * 2018-05-11 2018-10-26 北京小米移动软件有限公司 Progress control method and device for computer
WO2020015203A1 (en) * 2018-07-20 2020-01-23 华为技术有限公司 System recovery method and device
CN113703709A (en) * 2021-09-06 2021-11-26 维沃移动通信有限公司 Control method, circuit and device of independent display chip and electronic equipment
CN115061735A (en) * 2022-05-17 2022-09-16 联想(北京)有限公司 Processing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200746983A (en) * 2006-06-09 2007-12-16 Giga Byte Tech Co Ltd Temperature control method of electronic component, and the system thereof component
US9405575B2 (en) * 2013-09-09 2016-08-02 Apple Inc. Use of multi-thread hardware for efficient sampling
US10073753B2 (en) * 2016-02-14 2018-09-11 Dell Products, Lp System and method to assess information handling system health and resource utilization
US11181969B2 (en) * 2019-04-02 2021-11-23 Dell Products, Lp Method and system for graphics processor unit busy state detection
CN113009999B (en) * 2019-12-20 2024-11-29 华为技术有限公司 Power adjustment method and device for processor
US11829216B2 (en) * 2021-03-22 2023-11-28 Dell Products L.P. System and method of enhancing performances of information handling systems by utilizing graphics processing units

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324526A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Method for calling sensor
CN106776209A (en) * 2016-12-05 2017-05-31 合肥联宝信息技术有限公司 The temperature monitoring method and system of a kind of smart machine
CN108710558A (en) * 2018-05-11 2018-10-26 北京小米移动软件有限公司 Progress control method and device for computer
WO2020015203A1 (en) * 2018-07-20 2020-01-23 华为技术有限公司 System recovery method and device
CN113703709A (en) * 2021-09-06 2021-11-26 维沃移动通信有限公司 Control method, circuit and device of independent display chip and electronic equipment
CN115061735A (en) * 2022-05-17 2022-09-16 联想(北京)有限公司 Processing method and device

Also Published As

Publication number Publication date
CN116737488A (en) 2023-09-12
CN118394601A (en) 2024-07-26

Similar Documents

Publication Publication Date Title
US10514931B2 (en) Computing platform interface with memory management
EP3210093B1 (en) Configurable volatile memory data save triggers
JP6866975B2 (en) Application of CPLD cache in multi-master topology system
US9395919B1 (en) Memory configuration operations for a computing device
US9229729B2 (en) Initializing processor cores in a multiprocessor system
TWI840849B (en) Computing system, computer-implemented method, and computer-program product
CN111512266A (en) System, apparatus, and method for handshake protocol for low power state transitions
CN113703799A (en) Computing device and BIOS updating method and medium thereof
CN116339836A (en) Resource access method, device, readable storage medium and BMC chip
US10996876B2 (en) Systems and methods for dynamically modifying memory namespace allocation based on memory attributes and application requirements
US11940948B2 (en) Electronic device having multiple processing units and multiple memory units, and processing method thereof
TWI823253B (en) A computing system, a computer-implemented method and a computer-program product
CN116737488B (en) Parameter monitoring method and electronic equipment
CN113010303A (en) Data interaction method and device between processors and server
CN117075981A (en) A control method and electronic device
CN117075711A (en) Memory temperature control method, system, device and readable storage medium
US10340916B1 (en) Using islands to control operating parameters for functional blocks in an electronic device
JP6105038B1 (en) System suspension method, system restart method, and computer system using these methods
CN117950935B (en) Performance control method and electronic equipment
CN107025094A (en) A kind of reading and writing data management method and system
WO2025124464A1 (en) Device wake-up method and related apparatus
CN120234151A (en) Memory allocation method, device, electronic device and storage medium
CN113190346A (en) Memory management method and device and electronic equipment
CN117435212A (en) Bare metal server management methods and related devices
CN115348566A (en) Near field communication method, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address