CN111324196B - Memory operation frequency adjusting method and device, storage medium and electronic equipment - Google Patents
Memory operation frequency adjusting method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN111324196B CN111324196B CN202010078499.3A CN202010078499A CN111324196B CN 111324196 B CN111324196 B CN 111324196B CN 202010078499 A CN202010078499 A CN 202010078499A CN 111324196 B CN111324196 B CN 111324196B
- Authority
- CN
- China
- Prior art keywords
- memory
- frequency
- working state
- operating frequency
- temperature
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000012544 monitoring process Methods 0.000 claims abstract description 17
- 238000013507 mapping Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 8
- 230000003993 interaction Effects 0.000 description 7
- 230000005236 sound signal Effects 0.000 description 7
- 230000001133 acceleration Effects 0.000 description 3
- 230000003542 behavioural effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 210000000988 bone and bone Anatomy 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/324—Power saving characterised by the action undertaken by lowering clock frequency
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
本公开提供了一种内存运行频率调整方法、内存运行频率调整装置、存储介质和电子设备,涉及终端控制技术领域。该内存运行频率调整方法包括:监测电子设备的工作状态;如果工作状态为待调整内存运行频率的工作状态,则确定工作状态对应的内存运行频率;结合工作状态对应的内存运行频率确定电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为内存调整频率。本公开可以优化电子设备的性能和功耗。
The present disclosure provides a method for adjusting the operating frequency of a memory, a device for adjusting the operating frequency of a memory, a storage medium and an electronic device, and relates to the technical field of terminal control. The method for adjusting the operating frequency of the memory includes: monitoring the working state of the electronic device; if the working state is the working state of the operating frequency of the memory to be adjusted, determining the operating frequency of the memory corresponding to the working state; The memory adjustment frequency, and adjust the current memory operation frequency of the electronic device to the memory adjustment frequency. The present disclosure can optimize the performance and power consumption of electronic devices.
Description
技术领域technical field
本公开涉及终端控制技术领域,具体而言,涉及一种内存运行频率调整方法、内存运行频率调整装置、计算机可读存储介质和电子设备。The present disclosure relates to the technical field of terminal control, and in particular, to a method for adjusting the operating frequency of a memory, a device for adjusting the operating frequency of a memory, a computer-readable storage medium, and an electronic device.
背景技术Background technique
目前,为了满足用户不断提高的使用需求及良好的交互体验,对电子设备的性能要求越来越高。在不断开发高性能硬件的同时,还可以通过软件策略来提升电子设备的整体性能。At present, in order to meet the ever-increasing demands of users and a good interactive experience, the performance requirements of electronic devices are getting higher and higher. While continuously developing high-performance hardware, software strategies can also be used to improve the overall performance of electronic devices.
通常主要通过提高电子设备处理器的频率来提高电子设备的整体性能。然而,在应用程序的复杂度越来越高的情况下,单纯提高处理器的频率已无法满足应用程序对设备综合性能的要求。The overall performance of an electronic device is usually improved primarily by increasing the frequency of the electronic device's processor. However, with the increasing complexity of applications, simply increasing the frequency of the processor can no longer meet the requirements of the application on the overall performance of the device.
发明内容SUMMARY OF THE INVENTION
本公开提供一种内存运行频率调整方法、内存运行频率调整装置、计算机可读存储介质和电子设备,进而至少在一定程度上克服电子设备性能不佳的问题。The present disclosure provides a method for adjusting the operating frequency of a memory, a device for adjusting the operating frequency of a memory, a computer-readable storage medium and an electronic device, so as to overcome the problem of poor performance of the electronic device at least to a certain extent.
根据本公开的第一方面,提供了一种内存运行频率调整方法,包括:监测电子设备的工作状态;如果工作状态为待调整内存运行频率的工作状态,则确定工作状态对应的内存运行频率;结合工作状态对应的内存运行频率确定电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为内存调整频率。According to a first aspect of the present disclosure, a method for adjusting a memory operating frequency is provided, including: monitoring a working state of an electronic device; if the working state is a working state in which the memory operating frequency is to be adjusted, determining a memory operating frequency corresponding to the working state; The memory adjustment frequency of the electronic device is determined in combination with the memory operation frequency corresponding to the working state, and the current memory operation frequency of the electronic device is adjusted as the memory adjustment frequency.
根据本公开的第二方面,提供了一种内存运行频率调整装置,包括:状态监测模块,用于监测电子设备的工作状态;频率确定模块,用于如果工作状态为待调整内存运行频率的工作状态,则确定工作状态对应的内存运行频率;频率调整模块,用于结合工作状态对应的内存运行频率确定电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为内存调整频率。According to a second aspect of the present disclosure, there is provided an apparatus for adjusting the operating frequency of a memory, including: a state monitoring module for monitoring the operating state of an electronic device; a frequency determining module for adjusting the operating frequency of the memory if the operating state is to be adjusted The frequency adjustment module is used to determine the memory adjustment frequency of the electronic device in combination with the memory operation frequency corresponding to the working state, and adjust the current memory operation frequency of the electronic device to the memory adjustment frequency.
根据本公开的第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的内存运行频率调整方法。According to a third aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the above-mentioned method for adjusting the operating frequency of a memory.
根据本公开的第四方面,提供了一种电子设备,包括处理器;存储器,用于存储一个或多个程序,当一个或多个程序被处理器执行时,使得所述处理器实现上述的内存运行频率调整方法。According to a fourth aspect of the present disclosure, there is provided an electronic device, comprising a processor; a memory for storing one or more programs, and when the one or more programs are executed by the processor, enables the processor to implement the above-mentioned Memory operating frequency adjustment method.
在本公开的一些实施例所提供的技术方案中,监测电子设备的工作状态,如果监测出的工作状态为待调整内存运行频率的工作状态,则确定出与该工作状态对应的内存运行频率,并结合该工作状态对应的内存运行频率确定电子设备的内存调整频率,利用该内存调整频率对电子设备当前的内存运行频率进行调整。本公开对内存运行频率进行调整,一方面,可以确保高性能的应用匹配高内存运行频率,以提高处理效率;另一方面,可以确保低性能的应用匹配低内存运行频率,以减少不必要的功耗。也就是说,利用本公开的方案可以优化电子设备的性能和功耗。In the technical solutions provided by some embodiments of the present disclosure, the working state of the electronic device is monitored, and if the monitored working state is the working state of the memory operating frequency to be adjusted, the memory operating frequency corresponding to the working state is determined, The memory adjustment frequency of the electronic device is determined in combination with the memory operation frequency corresponding to the working state, and the current memory operation frequency of the electronic device is adjusted by using the memory adjustment frequency. The present disclosure adjusts the operating frequency of the memory. On the one hand, it can ensure that the high-performance application matches the high-memory operating frequency to improve processing efficiency; on the other hand, it can ensure that the low-performance application matches the low-memory operating frequency to reduce unnecessary power consumption. That is, the performance and power consumption of the electronic device can be optimized using the solution of the present disclosure.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort. In the attached image:
图1示出了对本公开实施例的内存运行频率调整方法或内存运行频率调整装置进行说明的应用场景示意图;FIG. 1 shows a schematic diagram of an application scenario for explaining a method for adjusting a memory operating frequency or an apparatus for adjusting a memory operating frequency according to an embodiment of the present disclosure;
图2示出了适于用来实现本公开实施例的电子设备的结构示意图;FIG. 2 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure;
图3示意性示出了根据本公开的示例性实施方式的内存运行频率调整方法的流程图;FIG. 3 schematically shows a flowchart of a method for adjusting a memory operating frequency according to an exemplary embodiment of the present disclosure;
图4示意性示出了根据本公开一些实施例的调整内存运行频率的整个过程的流程图;FIG. 4 schematically shows a flow chart of the entire process of adjusting the operating frequency of the memory according to some embodiments of the present disclosure;
图5示意性示出了根据本公开的示例性实施方式的内存运行频率调整装置的方框图;FIG. 5 schematically shows a block diagram of an apparatus for adjusting a memory operating frequency according to an exemplary embodiment of the present disclosure;
图6示意性示出了根据本公开的另一示例性实施方式的内存运行频率调整装置的方框图。FIG. 6 schematically shows a block diagram of an apparatus for adjusting the operating frequency of a memory according to another exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
附图中所示的流程图仅是示例性说明,不是必须包括所有的步骤。例如,有的步骤还可以分解,而有的步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。另外,下面所有的术语“第一”、“第二”仅是为了区分的目的,不应作为本公开内容的限制。The flow charts shown in the figures are merely illustrative and do not necessarily include all steps. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation. In addition, all the following terms "first" and "second" are only for the purpose of distinction and should not be used as a limitation of the present disclosure.
图1示出了对本公开实施例的内存运行频率调整方法或内存运行频率调整装置进行说明的应用场景示意图。FIG. 1 shows a schematic diagram of an application scenario for explaining a method for adjusting a memory operating frequency or an apparatus for adjusting a memory operating frequency according to an embodiment of the present disclosure.
如图1所示,电子设备10可以监测自身的工作状态,工作状态可以包括电子设备10后台进程的运行类型,具体的,工作状态可以包括游戏场景、开机场景、注册网络、I/O操作等。应当理解的是,本公开所述的工作状态不仅涉及应用软件对应工作状态,还可以涉及系统软件的对应的工作状态,本公开对此不做限制。As shown in FIG. 1 , the
在电子设备10确定出当前的工作状态后,可以确定该工作状态是否为待调整内存运行频率的工作状态,如果是,则可以利用映射关系表101确定出与该工作状态对应的内存运行频率。其中,该映射关系表101存储有工作状态与内存运行频率的映射关系,并且映射关系表101通常存储于电子设备10的存储器中,以实现在断网的情况下也可以调整内存运行频率。After the
接下来,电子设备10可以结合与当前工作状态对应的内存运行频率确定电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为该内存调整频率。Next, the
本公开的内存运行频率调整方法可以由电子设备实现,也就是说,电子设备执行本公开示例性实施方式的内存运行频率调整方法的各个步骤,在这种情况下,本公开的内存运行频率调整装置可以配置于该电子设备中。The memory operating frequency adjustment method of the present disclosure may be implemented by an electronic device, that is, the electronic device executes each step of the memory operating frequency adjustment method of the exemplary embodiment of the present disclosure. In this case, the memory operating frequency adjustment of the present disclosure The apparatus may be configured in the electronic device.
本领域技术人员容易理解的是,本公开对电子设备的类型不做限制,本公开所述的电子设备可以包括但不限于手机、平板电脑、个人计算机、智能可穿戴设备等。Those skilled in the art can easily understand that the present disclosure does not limit the types of electronic devices, and the electronic devices described in the present disclosure may include but are not limited to mobile phones, tablet computers, personal computers, smart wearable devices, and the like.
图2示出了适于用来实现本公开示例性实施方式的一种电子设备的示意图。需要说明的是,图2示出的电子设备仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 2 shows a schematic diagram of an electronic device suitable for implementing exemplary embodiments of the present disclosure. It should be noted that the electronic device shown in FIG. 2 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
本公开的电子设备至少包括处理器和存储器,存储器用于存储一个或多个程序,当一个或多个程序被处理器执行时,使得处理器可以实现本公开示例性实施方式的内存运行频率调整方法。The electronic device of the present disclosure includes at least a processor and a memory, and the memory is used for storing one or more programs. When the one or more programs are executed by the processor, the processor can realize the memory operating frequency adjustment of the exemplary embodiment of the present disclosure. method.
具体的,如图2所示,电子设备200可以包括:处理器210、内部存储器221、外部存储器接口222、通用串行总线(Universal Serial Bus,USB)接口230、充电管理模块240、电源管理模块241、电池242、天线1、天线2、移动通信模块250、无线通信模块260、音频模块270、扬声器271、受话器272、麦克风273、耳机接口274、传感器模块280、显示屏290、摄像模组291、指示器292、马达293、按键294以及用户标识模块(Subscriber IdentificationModule,SIM)卡接口295等。其中传感器模块280可以包括深度传感器2801、压力传感器2802、陀螺仪传感器2803、气压传感器2804、磁传感器2805、加速度传感器2806、距离传感器2807、接近光传感器2808、指纹传感器2809、温度传感器2810、触摸传感器2811、环境光传感器2812及骨传导传感器2813等。Specifically, as shown in FIG. 2 , the electronic device 200 may include: a processor 210 , an internal memory 221 , an external memory interface 222 , a Universal Serial Bus (USB) interface 230 , a charging management module 240 , and a power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260,
可以理解的是,本申请实施例示意的结构并不构成对电子设备200的具体限定。在本申请另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件、软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 200 . In other embodiments of the present application, the electronic device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(Application Processor,AP)、调制解调处理器、图形处理器(Graphics ProcessingUnit,GPU)、图像信号处理器(Image Signal Processor,ISP)、控制器、视频编解码器、数字信号处理器(Digital Signal Processor,DSP)、基带处理器和/或神经网络处理器(Neural-etwork Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。另外,处理器210中还可以设置存储器,用于存储指令和数据。The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor ( Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor and/or neural network processor (Neural-network Processing Unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. In addition, a memory may also be provided in the processor 210 for storing instructions and data.
USB接口230是符合USB标准规范的接口,具体可以是MiniUSB接口,MicroUSB接口,USBTypeC接口等。USB接口230可以用于连接充电器为电子设备200充电,也可以用于电子设备200与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 230 is an interface conforming to the USB standard specification, and may specifically be a MiniUSB interface, a MicroUSB interface, a USBTypeC interface, and the like. The USB interface 230 can be used to connect a charger to charge the electronic device 200, and can also be used to transmit data between the electronic device 200 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块241用于连接电池242、充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210、内部存储器221、显示屏290、摄像模组291和无线通信模块260等供电。The charging management module 240 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. The power management module 241 is used for connecting the battery 242 , the charging management module 240 and the processor 210 . The power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 290, the camera module 291, the wireless communication module 260, and the like.
电子设备200的无线通信功能可以通过天线1、天线2、移动通信模块250、无线通信模块260、调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modulation and demodulation processor, the baseband processor, and the like.
移动通信模块250可以提供应用在电子设备200上的包括2G/3G/4G/5G等无线通信的解决方案。The mobile communication module 250 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the electronic device 200 .
无线通信模块260可以提供应用在电子设备200上的包括无线局域网(WirelessLocal Area Networks,WLAN)(如无线保真(Wireless Fidelity,Wi-Fi)网络)、蓝牙(Bluetooth,BT)、全球导航卫星系统(Global Navigation Satellite System,GNSS)、调频(Frequency Modulation,FM)、近距离无线通信技术(Near Field Communication,NFC)、红外技术(Infrared,IR)等无线通信的解决方案。The wireless communication module 260 can provide wireless local area networks (Wireless Local Area Networks, WLAN) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (Bluetooth, BT), and global navigation satellite systems applied on the electronic device 200. (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field communication technology (Near Field Communication, NFC), infrared technology (Infrared, IR) and other wireless communication solutions.
电子设备200通过GPU、显示屏290及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏290和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 200 implements a display function through a GPU, a display screen 290, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 290 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
电子设备200可以通过ISP、摄像模组291、视频编解码器、GPU、显示屏290及应用处理器等实现拍摄功能。在一些实施例中,电子设备200可以包括1个或N个摄像模组291,N为大于1的正整数,若电子设备200包括N个摄像头,N个摄像头中有一个是主摄像头。The electronic device 200 can realize the shooting function through the ISP, the camera module 291, the video codec, the GPU, the display screen 290, the application processor, and the like. In some embodiments, the electronic device 200 may include one or N camera modules 291 , where N is a positive integer greater than 1. If the electronic device 200 includes N cameras, one of the N cameras is the main camera.
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器221可以包括存储程序区和存储数据区。外部存储器接口222可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备200的存储能力。Internal memory 221 may be used to store computer executable program code, which includes instructions. The internal memory 221 may include a storage program area and a storage data area. The external memory interface 222 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200 .
电子设备200可以通过音频模块270、扬声器271、受话器272、麦克风273、耳机接口274及应用处理器等实现音频功能。例如音乐播放、录音等。The electronic device 200 may implement audio functions through an
音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器210中。The
扬声器271,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备200可以通过扬声器271收听音乐,或收听免提通话。受话器272,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备200接听电话或语音信息时,可以通过将受话器272靠近人耳接听语音。麦克风273,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风273发声,将声音信号输入到麦克风273。电子设备200可以设置至少一个麦克风273。耳机接口274用于连接有线耳机。The speaker 271, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 200 can listen to music through the speaker 271, or listen to a hands-free call. The receiver 272, also referred to as an "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 200 answers a call or a voice message, the voice can be answered by placing the receiver 272 close to the human ear. The microphone 273, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 273 through a human mouth, and input the sound signal into the microphone 273 . The electronic device 200 may be provided with at least one microphone 273 . The earphone jack 274 is used to connect wired earphones.
针对电子设备200包括的传感器,深度传感器2801用于获取景物的深度信息。压力传感器2802用于感受压力信号,可以将压力信号转换成电信号。陀螺仪传感器2803可以用于确定电子设备200的运动姿态。气压传感器2804用于测量气压。磁传感器2805包括霍尔传感器。电子设备200可以利用磁传感器2805检测翻盖皮套的开合。加速度传感器2806可检测电子设备200在各个方向上(一般为三轴)加速度的大小。距离传感器2807用于测量距离。接近光传感器2808可以包括例如发光二极管(LED)和光检测器,例如光电二极管。指纹传感器2809用于采集指纹。温度传感器2810用于检测温度。触摸传感器2811可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏290提供与触摸操作相关的视觉输出。环境光传感器2812用于感知环境光亮度。骨传导传感器2813可以获取振动信号。For the sensors included in the electronic device 200, the depth sensor 2801 is used to acquire depth information of the scene. The pressure sensor 2802 is used to sense pressure signals, and can convert the pressure signals into electrical signals. The gyro sensor 2803 can be used to determine the motion attitude of the electronic device 200 . Air pressure sensor 2804 is used to measure air pressure. The magnetic sensor 2805 includes a Hall sensor. The electronic device 200 can use the magnetic sensor 2805 to detect the opening and closing of the flip holster. The acceleration sensor 2806 can detect the magnitude of the acceleration of the electronic device 200 in various directions (generally three axes). A distance sensor 2807 is used to measure distance. Proximity light sensor 2808 may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The fingerprint sensor 2809 is used to collect fingerprints. The temperature sensor 2810 is used to detect the temperature. The touch sensor 2811 can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through display screen 290 . The ambient light sensor 2812 is used to sense ambient light brightness. The bone conduction sensor 2813 can acquire vibration signals.
按键294包括开机键,音量键等。按键294可以是机械按键。也可以是触摸式按键。马达293可以产生振动提示。马达293可以用于来电振动提示,也可以用于触摸振动反馈。指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口295用于连接SIM卡。电子设备200通过SIM卡和网络交互,实现通话以及数据通信等功能。The keys 294 include a power-on key, a volume key, and the like. Keys 294 may be mechanical keys. It can also be a touch key. Motor 293 can generate vibrating cues. The motor 293 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. The indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like. The SIM card interface 295 is used to connect a SIM card. The electronic device 200 interacts with the network through the SIM card to realize functions such as call and data communication.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The present application also provides a computer-readable storage medium. The computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments, or it may exist alone without being assembled into the electronic device.
计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读存储介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。The computer-readable storage medium can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如下述实施例中所述的方法。The computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to implement the methods described in the following embodiments.
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present disclosure may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
图3示意性示出了本公开的示例性实施方式的内存运行频率调整方法的流程图。参考图3,所述内存运行频率调整方法可以包括以下步骤:FIG. 3 schematically shows a flowchart of a method for adjusting a memory operating frequency according to an exemplary embodiment of the present disclosure. Referring to FIG. 3 , the memory operating frequency adjustment method may include the following steps:
S32.监测电子设备的工作状态。S32. Monitor the working state of the electronic equipment.
在本公开的示例性实施方式中,可以将电子设备的工作状态划分为场景类工作状态和行为类工作状态,其中,场景类工作状态可以包括例如开机场景、电池中高性能场景、游戏场景、桌面场景、熄屏场景等不存在外部交互或存在较少外部交互的工作状态,这里所说的外部交互可以包括但不限于该电子设备与用户之间的交互、该电子设备与其他设备或服务器的交互等。行为类工作状态可以包括例如应用启动、注册网络、I/O操作等存在外部交互的工作状态。In the exemplary embodiment of the present disclosure, the working state of the electronic device can be divided into a scene-type working state and a behavior-type working state, wherein the scene-type working state can include, for example, a power-on scene, a high-performance scene in a battery, a game scene, a desktop Scenarios, screen-off scenarios, etc. have no external interaction or a working state with less external interaction. The external interaction mentioned here may include, but is not limited to, the interaction between the electronic device and the user, the interaction between the electronic device and other devices or servers. interaction, etc. The behavioral work state may include, for example, application startup, network registration, I/O operation, and other work states in which there is external interaction.
根据本公开的一些实施例,电子设备可以实时监测其工作状态,例如,可以通过其后台运行的进程确定工作状态。According to some embodiments of the present disclosure, the electronic device can monitor its working status in real time, for example, the working status can be determined through a process running in the background thereof.
根据本公开的另一些实施例,电子设备可以每隔一段固定时间执行一次监测任务,该监测任务可以持续另一段固定时间,例如,每隔半个小时执行10分钟的监测任务。本示例性实施方式中对此不做特殊限定。According to other embodiments of the present disclosure, the electronic device may perform a monitoring task at a fixed period of time, and the monitoring task may continue for another fixed period of time, for example, perform a monitoring task for 10 minutes every half an hour. This is not particularly limited in this exemplary embodiment.
根据本公开的又一些实施例,电子设备可以在工作状态变化的时刻,开始监测电子设备的工作状态。According to still other embodiments of the present disclosure, the electronic device may start monitoring the working state of the electronic device when the working state changes.
需要说明的是,本公开对电子设备监测其工作状态的时机不做限制。It should be noted that the present disclosure does not limit the timing of monitoring the working state of the electronic device.
在监测电子设备的工作状态的情况下,如果电子设备在预设时间段内持续处于一工作状态,则确定该工作状态是否为待调整内存运行频率的工作状态。其中,该预设时间段可以预先设定,例如可以设置为5秒、10秒等。由此,避免了在工作状态的短时间切换期间实施本方案而造成的资源浪费。In the case of monitoring the working state of the electronic device, if the electronic device continues to be in a working state within a preset time period, it is determined whether the working state is the working state in which the operating frequency of the memory is to be adjusted. The preset time period may be preset, for example, may be set to 5 seconds, 10 seconds, or the like. As a result, resource waste caused by implementing this solution during short-time switching of working states is avoided.
在本公开的示例性实施方式中,待调整内存运行频率的工作状态可以是预先设定的工作状态。在一个实施例中,可以是电子设备出厂前由开发人员设定的工作状态。In an exemplary embodiment of the present disclosure, the working state in which the operating frequency of the memory to be adjusted may be a preset working state. In one embodiment, it may be the working state set by the developer before the electronic device leaves the factory.
在另一个实施例中,待调整内存运行频率的工作状态可以是用户在开机引导过程中选择出的工作状态。也就是说,在电子设备的开机引导对应的确定调整内存运行频率的界面中,提供有各个工作状态,以供用户进行选择,并将用户选择出的工作状态确定为本公开所述的待调整内存运行频率的工作状态。In another embodiment, the working state of the operating frequency of the memory to be adjusted may be the working state selected by the user during the booting process. That is to say, in the interface for determining and adjusting the operating frequency of the memory corresponding to the boot-up guidance of the electronic device, various working states are provided for the user to select, and the working state selected by the user is determined to be adjusted according to the present disclosure. The working state of the memory operating frequency.
S34.如果工作状态为待调整内存运行频率的工作状态,则确定工作状态对应的内存运行频率。S34. If the working state is the working state of the memory operating frequency to be adjusted, determine the memory operating frequency corresponding to the working state.
在确定出步骤S32监测出的工作状态不是待调整内存运行频率的工作状态的情况下,可以应用默认的内存运行频率。If it is determined that the working state monitored in step S32 is not the working state of the memory operating frequency to be adjusted, the default memory operating frequency may be applied.
在确定出监测出的工作状态是待调整内容运行频率的工作状态的情况下,可以确定该工作状态对应的内存运行频率。When it is determined that the monitored working state is the working state of the running frequency of the content to be adjusted, the memory running frequency corresponding to the working state can be determined.
根据本公开的一些实施例,可以预先构建待调整内存运行频率的工作状态与内存运行频率的映射关系表,并将该映射关系表存储于电子设备中。在监测出的工作状态是待调整内容运行频率的工作状态的情况下,可以根据该映射关系表确定出对应的内存运行频率。According to some embodiments of the present disclosure, a mapping relationship table between the working state of the memory operating frequency to be adjusted and the memory operating frequency may be pre-built, and the mapping relationship table may be stored in the electronic device. When the monitored working state is the working state of the content running frequency to be adjusted, the corresponding memory running frequency can be determined according to the mapping relationship table.
另外,构建映射关系表的过程还可以在服务器上进行,构建完成后,由服务器发送给电子设备。其中,开发人员可以根据工作状态的需求和产生的影响构建出映射关系。In addition, the process of constructing the mapping relationship table can also be performed on the server, and after the construction is completed, the server sends the information to the electronic device. Among them, developers can build a mapping relationship according to the needs of the work status and the impact.
表1示意性示出了构建出的场景类工作状态与内存运行频率的映射关系。Table 1 schematically shows the mapping relationship between the constructed scene class working state and the memory operating frequency.
表1Table 1
表2示意性示出了构建出的行为类工作状态与内存运行频率的映射关系。Table 2 schematically shows the mapping relationship between the constructed behavioral working state and the memory operating frequency.
表2Table 2
应当理解的是,表1和表2仅是示例性示出了一些工作状态和对应的预设内存运行频率,然而,本领域技术人员容易理解的是,工作状态不限于此,还可以包括照相状态、视频播放状态等,对应的预设内存运行频率也可以被设定为其他值或范围,本公开对此不做限制。It should be understood that, Table 1 and Table 2 are only examples showing some working states and corresponding preset memory operating frequencies, however, those skilled in the art will easily understand that the working states are not limited to this, and may also include photographing state, video playback state, etc., the corresponding preset memory operating frequency can also be set to other values or ranges, which are not limited in the present disclosure.
此外,服务器或电子设备可以根据不同工作状态的内存读写需求自行确定出对应的内存运行频率,并构建例如上述的映射关系,本公开对此不做限制。In addition, the server or electronic device can automatically determine the corresponding memory operating frequency according to the memory read and write requirements in different working states, and construct the above-mentioned mapping relationship, which is not limited in the present disclosure.
S36.结合工作状态对应的内存运行频率确定电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为内存调整频率。S36. Determine the memory adjustment frequency of the electronic device in combination with the memory operation frequency corresponding to the working state, and adjust the current memory operation frequency of the electronic device to the memory adjustment frequency.
根据本公开的一些实施例,将步骤S34确定出的与该工作状态对应的内存运行频率确定为电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为该内存调整频率。According to some embodiments of the present disclosure, the memory operation frequency corresponding to the working state determined in step S34 is determined as the memory adjustment frequency of the electronic device, and the current memory operation frequency of the electronic device is adjusted as the memory adjustment frequency.
参考图4对这些实施例的调整内存运行频率的整个过程进行说明。The entire process of adjusting the operating frequency of the memory in these embodiments will be described with reference to FIG. 4 .
在步骤S402中,电子设备监测当前工作状态;在步骤S404中,电子设备判断监测出的工作状态是否为待调整内存运行频率的工作状态,如果是,则执行步骤S408,如果不是,则执行步骤S406。In step S402, the electronic device monitors the current working state; in step S404, the electronic device determines whether the monitored working state is the working state of the memory operating frequency to be adjusted, if so, execute step S408, if not, execute step S408 S406.
在步骤S406中,电子设备使用默认的内存运行频率,也就是说,维持现有技术不变。In step S406, the electronic device uses the default memory operating frequency, that is, the existing technology remains unchanged.
在步骤S408中,电子设备利用预配置的映射关系表确定出与该工作状态对应的内存运行频率。在步骤S410中,利用该对应的内存运行频率调整当前的内存运行频率。In step S408, the electronic device uses the preconfigured mapping table to determine the memory operating frequency corresponding to the working state. In step S410, the current memory operating frequency is adjusted by using the corresponding memory operating frequency.
根据本公开的另一些实施例,在步骤S34确定出工作状态对应的内存运行频率后,首先,可以将该工作状态对应的内存运行频率与一频率阈值进行比较,其中,该频率阈值可以人为设定,本公开对其具体取值不做限制。如果该工作状态对应的内存运行频率大于该频率阈值,则检测电子设备的设备温度,具体可以利用电子设备内置的温度传感器检测设备温度;如果该工作状态对应的内存运行频率小于等于该频率阈值,则将工作状态对应的内存运行频率确定为电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为该内存调整频率。According to other embodiments of the present disclosure, after the memory operating frequency corresponding to the working state is determined in step S34, first, the memory operating frequency corresponding to the working state can be compared with a frequency threshold, wherein the frequency threshold can be manually set Certainly, the present disclosure does not limit its specific value. If the operating frequency of the memory corresponding to the working state is greater than the frequency threshold, the device temperature of the electronic device is detected. Specifically, the temperature sensor built in the electronic device can be used to detect the device temperature; if the operating frequency of the memory corresponding to the working state is less than or equal to the frequency threshold, Then, the memory operation frequency corresponding to the working state is determined as the memory adjustment frequency of the electronic device, and the current memory operation frequency of the electronic device is adjusted as the memory adjustment frequency.
接下来,可以根据检测的设备温度对步骤S34中确定出的工作状态对应的内存运行频率进行调整,以得到电子设备的内存调整频率。Next, the memory operating frequency corresponding to the working state determined in step S34 may be adjusted according to the detected device temperature, so as to obtain the memory adjustment frequency of the electronic device.
具体的,可以计算该设备温度与第一温度阈值的差值,并根据设备温度与第一温度阈值的差值,对工作状态对应的内存运行频率进行调整。其中,第一温度阈值可以是电子设备正常工作温度范围中偏高或最高的温度,被例如设定为30摄氏度,然而,应当理解的是,电子设备类型的不同,第一温度阈值也可能被设置不同的值,本公开对此具体数值不做限制。Specifically, the difference between the device temperature and the first temperature threshold may be calculated, and the memory operating frequency corresponding to the working state may be adjusted according to the difference between the device temperature and the first temperature threshold. Wherein, the first temperature threshold may be the higher or highest temperature in the normal operating temperature range of the electronic device, and is set to, for example, 30 degrees Celsius. However, it should be understood that, depending on the type of electronic device, the first temperature threshold may also be set by Different values are set, and the present disclosure does not limit this specific value.
在一个实施例中,如果设备温度与第一温度阈值的差值小于等于0,也就是说,检测出的设备温度小于第一温度阈值,则将工作状态对应的内存运行频率确定为电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为该内存调整频率。In one embodiment, if the difference between the device temperature and the first temperature threshold is less than or equal to 0, that is, the detected device temperature is less than the first temperature threshold, the memory operating frequency corresponding to the working state is determined as the electronic device's operating frequency. The memory adjustment frequency, and adjust the current memory operation frequency of the electronic device to the memory adjustment frequency.
在另一个实施例中,如果设备温度与第一温度阈值的差值大于0,则获取第二温度阈值。其中,第二温度阈值大于第一温度阈值,表征会影响到设备正常使用或设备性能开始急剧下降的温度,也就是说,第二温度阈值可以是电子设备通过实验检测出的极限温度,例如,第二温度阈值为40摄氏度。In another embodiment, if the difference between the device temperature and the first temperature threshold is greater than 0, a second temperature threshold is obtained. Wherein, the second temperature threshold is greater than the first temperature threshold, which represents the temperature that will affect the normal use of the device or the performance of the device begins to drop sharply, that is, the second temperature threshold may be the limit temperature detected by the electronic device through experiments, for example, The second temperature threshold is 40 degrees Celsius.
如果检测出的设备温度处于第一温度阈值与第二温度阈值之间,则可以将设备温度与第一温度阈值的差值确定为第一差值,将第二温度阈值与第一温度阈值的差值确定为第二差值,并计算第一差值与第二差值的商,利用第一差值与第二差值的商确定出频率调整系数。If the detected device temperature is between the first temperature threshold and the second temperature threshold, the difference between the device temperature and the first temperature threshold may be determined as the first difference, and the difference between the second temperature threshold and the first temperature threshold may be determined as the first difference. The difference is determined as the second difference, the quotient of the first difference and the second difference is calculated, and the frequency adjustment coefficient is determined by using the quotient of the first difference and the second difference.
接下来,可以利用该频率调整系数对步骤S34确定出的工作状态对应的内存运行频率进行调整,将调整后的频率作为内存调整频率。Next, the frequency adjustment coefficient may be used to adjust the memory operating frequency corresponding to the working state determined in step S34, and the adjusted frequency may be used as the memory adjustment frequency.
例如,将步骤S34确定出的工作状态对应的内存运行频率记为f0,设备温度记为t0,第一温度阈值记为t1,第二温度阈值记为t2,将内存调整频率记为f,则f可以表示为下式:For example, denote the operating frequency of the memory corresponding to the working state determined in step S34 as f0, the device temperature as t0, the first temperature threshold as t1, the second temperature threshold as t2, and the memory adjustment frequency as f, then f can be expressed as:
其中,表示频率调整参数,容易理解的是,还可以将频率调整参数表示为 in, Represents the frequency adjustment parameter. It is easy to understand that the frequency adjustment parameter can also be expressed as
此外,如果检测出的设备温度大于等于第二温度阈值,则将电子设备当前的内存运行频率调整为内存的最小运行频率,以尽可能减少设备功耗。In addition, if the detected temperature of the device is greater than or equal to the second temperature threshold, the current operating frequency of the memory of the electronic device is adjusted to the minimum operating frequency of the memory, so as to reduce the power consumption of the device as much as possible.
需要说明的是,上述利用频率调整系数进一步确定内存调整频率的方案仅是示例性描述,结合设备温度确定内存运行频率的方案,均属于本发明的构思。It should be noted that the above solution of using the frequency adjustment coefficient to further determine the memory adjustment frequency is only an exemplary description, and the solution of determining the memory operating frequency in combination with the device temperature belongs to the concept of the present invention.
综上所述,基于本公开示例性实施方式的内存运行频率调整方法,一方面,可以确保高性能的应用匹配高内存运行频率,以提高处理效率;另一方面,可以确保低性能的应用匹配低内存运行频率,以减少不必要的功耗。也就是说,利用本公开的方案可以优化电子设备的性能和功耗。In summary, based on the method for adjusting the memory operating frequency according to the exemplary embodiment of the present disclosure, on the one hand, it can ensure that high-performance applications match the high memory operating frequency to improve processing efficiency; on the other hand, it can ensure that low-performance applications match Low memory operating frequency to reduce unnecessary power consumption. That is, the performance and power consumption of the electronic device can be optimized using the solution of the present disclosure.
应当注意,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。It should be noted that although the various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps must be performed to achieve the desired the result of. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.
进一步的,本示例实施方式中还提供了一种应用于电子设备的内存运行频率调整装置。Further, the present exemplary embodiment also provides an apparatus for adjusting the operating frequency of a memory applied to an electronic device.
图5示意性示出了本公开的示例性实施方式的内存运行频率调整装置的方框图。参考图5,根据本公开的示例性实施方式的内存运行频率调整装置5可以包括状态监测模块51、频率确定模块53和频率调整模块55。FIG. 5 schematically shows a block diagram of an apparatus for adjusting the operating frequency of a memory according to an exemplary embodiment of the present disclosure. Referring to FIG. 5 , the memory operating
具体的,状态监测模块51可以用于监测电子设备的工作状态;频率确定模块53可以用于如果工作状态为待调整内存运行频率的工作状态,则确定工作状态对应的内存运行频率;频率调整模块55可以用于结合工作状态对应的内存运行频率确定电子设备的内存调整频率,并将电子设备当前的内存运行频率调整为内存调整频率。Specifically, the
基于本公开示例性实施方式的内存运行频率调整装置,一方面,可以确保高性能的应用匹配高内存运行频率,以提高处理效率;另一方面,可以确保低性能的应用匹配低内存运行频率,以减少不必要的功耗。也就是说,利用本公开的方案可以优化电子设备的性能和功耗。Based on the device for adjusting the memory operating frequency according to the exemplary embodiment of the present disclosure, on the one hand, it can ensure that a high-performance application matches a high memory operating frequency to improve processing efficiency; on the other hand, it can ensure that a low-performance application matches a low memory operating frequency, to reduce unnecessary power consumption. That is, the performance and power consumption of the electronic device can be optimized using the solution of the present disclosure.
根据本公开的示例性实施例,频率调整模块55可以被配置为执行:将工作状态对应的内存运行频率与一频率阈值进行比较;如果该工作状态对应的内存运行频率大于频率阈值,则检测电子设备的设备温度;根据设备温度对该工作状态对应的内存运行频率进行调整,以得到电子设备的内存调整频率。According to an exemplary embodiment of the present disclosure, the
根据本公开的示例性实施例,频率调整模块55执行根据设备温度对该工作状态对应的内存运行频率进行调整的过程可以被配置为执行:计算设备温度与第一温度阈值的差值;根据设备温度与第一温度阈值的差值,对工作状态对应的内存运行频率进行调整。According to an exemplary embodiment of the present disclosure, the process that the
根据本公开的示例性实施例,频率调整模块55执行根据设备温度与第一温度阈值的差值对工作状态对应的内存运行频率进行调整的过程可以被配置为执行:如果设备温度与第一温度阈值的差值为大于0,则获取第二温度阈值;其中,第二温度阈值大于第一温度阈值;在设备温度处于第一温度阈值与第二温度阈值之间的情况下,将设备温度与第一温度阈值的差值确定为第一差值,将第二温度阈值与第一温度阈值的差值确定为第二差值,并计算第一差值与第二差值的商,利用第一差值与第二差值的商确定频率调整系数;利用频率调整系数对工作状态对应的内存运行频率进行调整。According to an exemplary embodiment of the present disclosure, the process of the
根据本公开的示例性实施例,频率调整模块55还可以被配置为执行:如果设备温度大于等于第二温度阈值,则将电子设备当前的内存运行频率调整为内存的最小运行频率。According to an exemplary embodiment of the present disclosure, the
根据本公开的示例性实施例,状态监测模块51还可以被配置为执行:在监测电子设备的工作状态的情况下,如果电子设备在预设时间段内持续处于一工作状态,则确定工作状态是否为待调整内存运行频率的工作状态。According to an exemplary embodiment of the present disclosure, the
根据本公开的示例性实施例,参考图6,相比于内存运行频率调整装置5,内存运行频率调整装置6还可以包括映射关系确定模块61。According to an exemplary embodiment of the present disclosure, referring to FIG. 6 , compared with the memory operating
具体的,映射关系确定模块61可以被配置为执行:预先构建待调整内存运行频率的工作状态与内存运行频率的映射关系表,并存储于所述电子设备中。在这种情况下,频率确定模块53可以根据映射关系表确定待调整内存运行频率的工作状态对应的内存运行频率。Specifically, the mapping
由于本公开实施方式的内存运行频率调整装置的各个功能模块与上述方法实施方式中相同,因此在此不再赘述。Since each functional module of the apparatus for adjusting the memory operating frequency in the embodiment of the present disclosure is the same as that in the above-mentioned method embodiment, it will not be repeated here.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。Furthermore, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously in multiple modules, for example.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
本领域技术人员在考虑说明书及实践这里公开的内容后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of what is disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010078499.3A CN111324196B (en) | 2020-02-03 | 2020-02-03 | Memory operation frequency adjusting method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010078499.3A CN111324196B (en) | 2020-02-03 | 2020-02-03 | Memory operation frequency adjusting method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111324196A CN111324196A (en) | 2020-06-23 |
CN111324196B true CN111324196B (en) | 2021-09-28 |
Family
ID=71168807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010078499.3A Expired - Fee Related CN111324196B (en) | 2020-02-03 | 2020-02-03 | Memory operation frequency adjusting method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111324196B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113076141A (en) * | 2021-03-30 | 2021-07-06 | 山东英信计算机技术有限公司 | Acceleration card power-on initialization method and device and acceleration card |
CN117806811A (en) * | 2022-09-30 | 2024-04-02 | 广东美的制冷设备有限公司 | Memory dynamic reduction method of air conditioner, air conditioner and storage medium |
CN117215783B (en) * | 2023-09-11 | 2024-07-09 | 上海合芯数字科技有限公司 | Memory bank frequency adjustment method and device based on real-time temperature |
CN117573381B (en) * | 2024-01-16 | 2024-03-29 | 苏州元脑智能科技有限公司 | Method, system, equipment and storage medium for expanding memory frequency modulation |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1687867A (en) * | 2005-05-25 | 2005-10-26 | 威盛电子股份有限公司 | How to adjust memory frequency |
WO2006120507A1 (en) * | 2005-05-11 | 2006-11-16 | Freescale Semiconductor, Inc. | Method for power reduction and a device having power reduction capabilities |
CN102402454A (en) * | 2010-09-10 | 2012-04-04 | 联想(北京)有限公司 | Method for adjusting memory operation frequency and electronic equipment |
CN103677966A (en) * | 2012-08-31 | 2014-03-26 | 研祥智能科技股份有限公司 | Method and system for managing memory |
CN109062715A (en) * | 2018-07-05 | 2018-12-21 | Oppo(重庆)智能科技有限公司 | The determination method, apparatus and terminal of memory clock frequency |
-
2020
- 2020-02-03 CN CN202010078499.3A patent/CN111324196B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006120507A1 (en) * | 2005-05-11 | 2006-11-16 | Freescale Semiconductor, Inc. | Method for power reduction and a device having power reduction capabilities |
CN1687867A (en) * | 2005-05-25 | 2005-10-26 | 威盛电子股份有限公司 | How to adjust memory frequency |
CN102402454A (en) * | 2010-09-10 | 2012-04-04 | 联想(北京)有限公司 | Method for adjusting memory operation frequency and electronic equipment |
CN103677966A (en) * | 2012-08-31 | 2014-03-26 | 研祥智能科技股份有限公司 | Method and system for managing memory |
CN109062715A (en) * | 2018-07-05 | 2018-12-21 | Oppo(重庆)智能科技有限公司 | The determination method, apparatus and terminal of memory clock frequency |
Also Published As
Publication number | Publication date |
---|---|
CN111324196A (en) | 2020-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111324196B (en) | Memory operation frequency adjusting method and device, storage medium and electronic equipment | |
CN106293597B (en) | Wireless audio output device | |
CN111641828B (en) | Video processing method and device, storage medium and electronic device | |
US10149067B2 (en) | Method for controlling function based on battery information and electronic device therefor | |
KR20180062270A (en) | Method for detecting earphone position, storage medium and electronic device therefor | |
WO2017181365A1 (en) | Earphone channel control method, related apparatus, and system | |
CN111132234A (en) | Data transmission method and corresponding terminal | |
CN107171412B (en) | Method and device for dynamically adjusting charging current, mobile terminal and storage medium | |
CN111694605A (en) | Voice information processing method and device, storage medium and electronic equipment | |
CN112289279B (en) | Screen brightness adjusting method and device, storage medium and electronic equipment | |
KR102160473B1 (en) | Electronic device and method for controling volume | |
CN111613213B (en) | Audio classification method, device, equipment and storage medium | |
CN108966080A (en) | Volume adjusting method and device, storage medium and terminal equipment | |
CN111212412A (en) | Near field communication method and device, computer readable storage medium and electronic equipment | |
KR102216881B1 (en) | Automatic gain control method and apparatus based on sensitivity of microphone in a electronic device | |
CN111971977A (en) | Electronic device and method for processing stereo audio signal | |
CN113489844B (en) | Method and electronic device for adjusting volume level | |
CN112599144B (en) | Audio data processing method, audio data processing device, medium and electronic equipment | |
CN114822525A (en) | Voice control method and electronic equipment | |
CN112039150A (en) | Charging control method and apparatus, computer readable storage medium and electronic device | |
CN111464690A (en) | Application preloading method and electronic equipment | |
CN113365274B (en) | Network access method and electronic equipment | |
CN113542984B (en) | Stereo realization system, method, electronic device and storage medium | |
CN114390406B (en) | Method and device for controlling displacement of loudspeaker diaphragm | |
CN114120987B (en) | Voice wake-up method, electronic equipment and chip system |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210928 |