[go: up one dir, main page]

CN112963371B - Fan adjustment method, electronic equipment - Google Patents

Fan adjustment method, electronic equipment Download PDF

Info

Publication number
CN112963371B
CN112963371B CN202110242806.1A CN202110242806A CN112963371B CN 112963371 B CN112963371 B CN 112963371B CN 202110242806 A CN202110242806 A CN 202110242806A CN 112963371 B CN112963371 B CN 112963371B
Authority
CN
China
Prior art keywords
rotational speed
volume
speed
fan
application program
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
Application number
CN202110242806.1A
Other languages
Chinese (zh)
Other versions
CN112963371A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110242806.1A priority Critical patent/CN112963371B/en
Publication of CN112963371A publication Critical patent/CN112963371A/en
Application granted granted Critical
Publication of CN112963371B publication Critical patent/CN112963371B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/004Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by varying driving speed
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K7/00Constructional details common to different types of electric apparatus
    • H05K7/20Modifications to facilitate cooling, ventilating, or heating
    • H05K7/20009Modifications to facilitate cooling, ventilating, or heating using a gaseous coolant in electronic enclosures
    • H05K7/20136Forced ventilation, e.g. by fans
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K7/00Constructional details common to different types of electric apparatus
    • H05K7/20Modifications to facilitate cooling, ventilating, or heating
    • H05K7/20009Modifications to facilitate cooling, ventilating, or heating using a gaseous coolant in electronic enclosures
    • H05K7/20209Thermal management, e.g. fan control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • Thermal Sciences (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

本申请提供了风扇的调节方法、电子设备。其中,调节方法应用于电子设备,电子设备运行应用程序,电子设备包括风扇,调节方法包括确定与所述应用程序对应的第一转速,并控制所述风扇以所述第一转速转动。获取电子设备的环境参数,根据环境参数确定与应用程序对应的第二转速。根据第一转速与第二转速控制风扇以目标转速转动;其中,目标转速为第一转速或第二转速,或者目标转速位于第一转速与第二转速之间。本申请提供的调节方法,使在刚开始运行应用程序时便开始进行散热处理,提高了散热效果。并根据环境参数来实时调节风扇的转速,既降低了功耗,又提高了散热与噪声之间的平衡性。

Figure 202110242806

The application provides a fan adjustment method and electronic equipment. Wherein, the adjustment method is applied to an electronic device, the electronic device runs an application program, and the electronic device includes a fan, and the adjustment method includes determining a first rotation speed corresponding to the application program, and controlling the fan to rotate at the first rotation speed. The environmental parameters of the electronic device are acquired, and the second rotational speed corresponding to the application program is determined according to the environmental parameters. The fan is controlled to rotate at a target speed according to the first speed and the second speed; wherein, the target speed is the first speed or the second speed, or the target speed is between the first speed and the second speed. The adjustment method provided in the present application enables the heat dissipation process to be performed when the application program is just started to run, thereby improving the heat dissipation effect. And adjust the speed of the fan in real time according to the environmental parameters, which not only reduces the power consumption, but also improves the balance between heat dissipation and noise.

Figure 202110242806

Description

风扇的调节方法、电子设备Fan adjustment method, electronic equipment

技术领域technical field

本申请属于散热方法技术领域,具体涉及风扇的调节方法、电子设备。The application belongs to the technical field of heat dissipation methods, and in particular relates to a fan adjustment method and electronic equipment.

背景技术Background technique

随着科学技术的不断发展,电子设备的种类与数量越来越多,现已备受广大用户的喜爱。但同时用户对电子设备的期望值与要求也越来越高。例如,头戴式电子设备可提供给用户多样的功能以及良好的用户体验。但头戴式电子设备在使用时功耗大,容易发热,因此现采用风扇进行主动散热。但目前风扇的散热方法其散热效果并不理想。With the continuous development of science and technology, there are more and more types and quantities of electronic devices, which are now popular among users. But at the same time, users' expectations and requirements for electronic equipment are getting higher and higher. For example, head-mounted electronic devices can provide users with various functions and good user experience. However, head-mounted electronic devices consume a lot of power and are prone to heat during use, so fans are now used for active cooling. However, the heat dissipation effect of the current cooling method of the fan is not satisfactory.

发明内容Contents of the invention

鉴于此,本申请第一方面提供了一种风扇的调节方法,应用于电子设备,所述电子设备运行应用程序,所述电子设备包括风扇,所述调节方法包括:In view of this, the first aspect of the present application provides a method for adjusting a fan, which is applied to an electronic device, the electronic device runs an application program, the electronic device includes a fan, and the adjustment method includes:

确定与所述应用程序对应的第一转速,并控制所述风扇以所述第一转速转动;determining a first rotational speed corresponding to the application program, and controlling the fan to rotate at the first rotational speed;

获取所述电子设备的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速;以及Acquire environmental parameters of the electronic device, and determine a second rotational speed corresponding to the application program according to the environmental parameters; and

根据所述第一转速与所述第二转速控制所述风扇以目标转速转动;其中,所述目标转速为所述第一转速或所述第二转速,或者所述目标转速位于所述第一转速与所述第二转速之间。According to the first rotation speed and the second rotation speed, the fan is controlled to rotate at a target rotation speed; wherein, the target rotation speed is the first rotation speed or the second rotation speed, or the target rotation speed is located at the first between the speed and the second speed.

本申请第一方面提供的调节方法,首先使电子设备运行应用程序,随后确定与应用程序对应的第一转速,并控制风扇以第一转速转动,使其在刚开始运行应用程序时便进行散热处理,从而提高了电子设备的散热效果与使用寿命。In the adjustment method provided in the first aspect of the present application, firstly, the electronic device runs the application program, and then determines the first rotational speed corresponding to the application program, and controls the fan to rotate at the first rotational speed, so that it can dissipate heat when the application program just starts running treatment, thereby improving the heat dissipation effect and service life of electronic equipment.

其次,随后还可通过获取电子设备的环境参数确定与所述应用程序对应的第二转速,最后根据第一转速与第二转速再次控制风扇以目标速度转动。至于目标速度具体的大小,可根据第一转速与第二转速的大小进行综合考虑。例如,目标转速为第一转速或第二转速,或者目标转速位于第一转速与第二转速之间。这样在运行应用程序后来根据环境参数实时调节风扇转速的大小,在保证了散热性能的前提下,既降低了电子设备的综合功耗,还提高了散热与噪声之间的平衡性,提高了电子设备的综合性能。Secondly, the second rotation speed corresponding to the application program can be determined by acquiring the environmental parameters of the electronic device, and finally the fan is controlled to rotate at the target speed again according to the first rotation speed and the second rotation speed. As for the specific size of the target speed, it can be considered comprehensively according to the size of the first rotation speed and the second rotation speed. For example, the target rotation speed is the first rotation speed or the second rotation speed, or the target rotation speed is between the first rotation speed and the second rotation speed. In this way, after running the application program, the fan speed is adjusted in real time according to the environmental parameters. On the premise of ensuring the heat dissipation performance, it not only reduces the comprehensive power consumption of the electronic equipment, but also improves the balance between heat dissipation and noise, and improves the electronic performance. Comprehensive performance of the equipment.

综上,本申请提供的调节方法,使在刚开始运行应用程序时便开始进行散热处理,提高了散热效果。并根据环境参数来实时调节风扇的转速,既降低了功耗,又提高了散热与噪声之间的平衡性。To sum up, the adjustment method provided by the present application enables the heat dissipation process to be performed when the application program is just started to run, thereby improving the heat dissipation effect. And adjust the speed of the fan in real time according to the environmental parameters, which not only reduces the power consumption, but also improves the balance between heat dissipation and noise.

本申请第二方面提供了一种电子设备,所述电子设备包括壳体、风扇、以及处理器,所述壳体内具有收容空间,所述风扇设于所述收容空间内,所述壳体设有连通所述收容空间的进气孔与出气孔,所述处理器设于所述收容空间内且电连接所述风扇,所述处理器用于执行如本申请第一方面提供的调节方法。The second aspect of the present application provides an electronic device, the electronic device includes a casing, a fan, and a processor, the casing has a storage space, the fan is set in the storage space, and the casing There is an air inlet and an air outlet connected to the receiving space, the processor is arranged in the receiving space and electrically connected to the fan, and the processor is used to execute the adjustment method provided in the first aspect of the present application.

本申请第二方面提供的电子设备,通过采用本申请第一方面提供的调节方法,可提高散热效果,降低功耗,提高散热与噪声之间的平衡性。最终使外界的气体从进气孔进入,并将电子设备内的热量从出气孔排出,最终实现散热的目的。The electronic device provided in the second aspect of the present application can improve the heat dissipation effect, reduce power consumption, and improve the balance between heat dissipation and noise by adopting the adjustment method provided in the first aspect of the present application. Finally, the outside air enters through the air inlet, and the heat inside the electronic device is discharged through the air outlet, so as to finally achieve the purpose of heat dissipation.

附图说明Description of drawings

为了更清楚地说明本申请实施方式中的技术方案,下面将对本申请实施方式中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will describe the drawings that need to be used in the embodiments of the present application.

图1为本申请一实施方式中调节方法的流程示意图。FIG. 1 is a schematic flowchart of an adjustment method in an embodiment of the present application.

图2为本申请一实施方式中电子设备的立体结构示意图。FIG. 2 is a schematic diagram of a three-dimensional structure of an electronic device in an embodiment of the present application.

图3为图2中沿A-A方向的示意图。FIG. 3 is a schematic diagram along the direction A-A in FIG. 2 .

图4为本申请一实施方式中S400所包括的流程示意图。FIG. 4 is a schematic flowchart of S400 included in an embodiment of the present application.

图5为本申请另一实施方式中S400所包括的流程示意图。FIG. 5 is a schematic flow chart included in S400 in another implementation manner of the present application.

图6为本申请一实施方式中S300所包括的流程示意图。FIG. 6 is a schematic diagram of a flow included in S300 in an embodiment of the present application.

图7为本申请另一实施方式中S300所包括的流程示意图。FIG. 7 is a schematic flow chart included in S300 in another implementation manner of the present application.

图8为本申请一实施方式中S100所包括的流程示意图。FIG. 8 is a schematic diagram of a flow included in S100 in an embodiment of the present application.

图9为本申请一实施方式中在S100之前所包括的流程示意图。FIG. 9 is a schematic flow chart included before S100 in an embodiment of the present application.

图10为本申请一实施方式中S10所包括的流程示意图。FIG. 10 is a schematic flow chart included in S10 in an embodiment of the present application.

图11为本申请一实施方式中S11所包括的流程示意图。FIG. 11 is a schematic diagram of a flow included in S11 in an embodiment of the present application.

图12为本申请一实施方式中在S20之后所包括的流程示意图。Fig. 12 is a schematic flow diagram included after S20 in an embodiment of the present application.

图13为本申请一实施方式中调节装置的电子结构示意图。Fig. 13 is a schematic diagram of the electronic structure of the regulating device in an embodiment of the present application.

标号说明:Label description:

电子设备-1,调节装置-2,壳体-10,收容空间-11,进气孔-12,出气孔-13,风扇-20,处理器-30,得到单元-40,控制单元-50,获取得到单元-60。Electronic equipment-1, adjustment device-2, housing-10, storage space-11, air intake hole-12, air outlet hole-13, fan-20, processor-30, obtaining unit-40, control unit-50, Get Unit-60.

具体实施方式Detailed ways

以下是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本申请的保护范围。The following are preferred embodiments of the application. It should be pointed out that for those skilled in the art, without departing from the principle of the application, some improvements and modifications can also be made, and these improvements and modifications are also considered as the present invention. The scope of protection applied for.

在介绍本申请的技术方案之前,再详细介绍下相关技术中的技术问题。Before introducing the technical solution of the present application, the technical problems in the related art will be introduced in detail.

随着科学技术的不断发展,电子设备的种类与数量越来越多,现已备受广大用户的喜爱。例如,目前电子设备有移动式电子设备,例如手机、平板等。或者固定式电子设备,例如台式电脑。或者穿戴式电子设备,例如智能手表等。头戴式电子设备例如AR眼镜,VR眼镜等。头戴式电子设备可以实现虚拟现实或者现实增强等技术,给用户带来了多种多样的功能以及良好的用户体验。With the continuous development of science and technology, there are more and more types and quantities of electronic devices, which are now popular among users. For example, current electronic devices include mobile electronic devices, such as mobile phones and tablets. Or stationary electronic equipment such as desktop computers. Or wearable electronic devices, such as smart watches, etc. Head-mounted electronic devices such as AR glasses, VR glasses, etc. The head-mounted electronic device can implement technologies such as virtual reality or augmented reality, which brings various functions and good user experience to users.

但电子设备的功耗大,在工作时均不可避免地会产生大量地热量,使电子设备容易发热,影响电子设备的性能与使用寿命。因此目前通常在电子设备内增设风扇,利用风扇的转动来将电子设备内的热量排出以达到散热的目的。但目前的散热方法通常是控制风扇以固定的转速进行转动,这样的散热方法虽然可以起到散热的目的,但其散热效果并不理想。当风扇的转速太高时,会浪费大量的功耗,同时噪声增加,降低电子设备的续航时间与使用寿命。但若风扇的转速太低的话,又答不到所需的散热效果。因此,目前亟需寻求一种新的风扇的调节方法。However, the power consumption of electronic equipment is large, and it will inevitably generate a large amount of heat during operation, which makes the electronic equipment prone to heat and affects the performance and service life of the electronic equipment. Therefore, a fan is usually added in the electronic device at present, and the heat in the electronic device is discharged by using the rotation of the fan to achieve the purpose of heat dissipation. However, the current heat dissipation method is usually to control the fan to rotate at a fixed speed. Although such a heat dissipation method can achieve the purpose of heat dissipation, its heat dissipation effect is not ideal. When the speed of the fan is too high, a lot of power consumption will be wasted, and the noise will increase at the same time, which will reduce the battery life and service life of the electronic equipment. But if the speed of the fan is too low, the required cooling effect will not be achieved. Therefore, there is an urgent need to seek a new method for adjusting the fan.

鉴于此,为了解决上述问题,本申请提供了一种新的风扇的调节方法。请一并参考图1-图3,图1为本申请一实施方式中调节方法的流程示意图。图2为本申请一实施方式中电子设备的立体结构示意图。图3为图2中沿A-A方向的示意图。本实施方式提供了一种风扇20的调节方法,该调节方法应用于电子设备1,所述电子设备1包括风扇20。其中,所述调节方法包括S100,S200,S300。其中,S100,S200,S300的详细介绍如下。In view of this, in order to solve the above problems, the present application provides a new fan adjustment method. Please refer to FIG. 1-FIG. 3 together. FIG. 1 is a schematic flowchart of an adjustment method in an embodiment of the present application. FIG. 2 is a schematic diagram of a three-dimensional structure of an electronic device in an embodiment of the present application. FIG. 3 is a schematic diagram along the direction A-A in FIG. 2 . This embodiment provides an adjustment method of the fan 20 , the adjustment method is applied to the electronic device 1 , and the electronic device 1 includes the fan 20 . Wherein, the adjustment method includes S100, S200, S300. Among them, the detailed introduction of S100, S200 and S300 is as follows.

S100,确定与所述应用程序对应的第一转速,并控制所述风扇20以所述第一转速转动。S100. Determine a first rotational speed corresponding to the application program, and control the fan 20 to rotate at the first rotational speed.

本申请介绍的电子设备1包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、个人计算机(Personal Computer,PC)、个人数字助理(Personal Digital Assistant,PDA)、便携式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、头戴式设备、智能手环、计步器等移动终端,以及诸如数字TV、台式计算机等固定终端。可选地,头戴式电子设备1包括透视型(see-through type)和封闭型(see-closed type)。透视型提供增强现实(Augmented Reality,AR)的,而封闭型提供虚报现实(Virtual Reality,VR)。也可以理解为头戴式电子设备1包括AR眼镜或VR眼镜。进一步可选地,本申请后文以电子设备1为AR眼镜进行示意。至于电子设备1的具体结构,本申请会在后文进行详细介绍。The electronic equipment 1 that this application introduces includes but not limited to mobile phone, tablet computer, notebook computer, palmtop computer, personal computer (Personal Computer, PC), personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player) , PMP), navigation devices, wearable devices, head-mounted devices, smart bracelets, pedometers and other mobile terminals, as well as fixed terminals such as digital TVs and desktop computers. Optionally, the head-mounted electronic device 1 includes a see-through type and a see-closed type. The see-through type provides augmented reality (Augmented Reality, AR), while the closed type provides virtual reality (Virtual Reality, VR). It can also be understood that the head-mounted electronic device 1 includes AR glasses or VR glasses. Further optionally, in the following text of this application, the electronic device 1 is used as AR glasses for illustration. As for the specific structure of the electronic device 1 , this application will introduce in detail later.

用户在使用电子设备1时,会通过运行存储在电子设备1中的各种应用程序来实现各种各样的功能。例如应用程序包括聊天类程序、游戏类程序、视频类程序、图片类程序、或者其他类应用程序。当电子设备1运行应用程序时,确定与应用程序对应的第一转速。这里的第一转速可以理解为满足应用程序在被运行时进行散热所需的风扇20的转速。当得到第一转速后,便可控制风扇20以第一转速进行转动散热。上述内容也可以理解为,只要当电子设备1一运行应用程序,便可开始控制风扇20转动从而进行散热处理,使散热提早介入,这样可提高电子设备1的散热效果,保护电子设备1内的各种结构件,提高电子设备1的使用寿命。When a user uses the electronic device 1 , various functions are realized by running various application programs stored in the electronic device 1 . For example, the application program includes a chat program, a game program, a video program, a picture program, or other application programs. When the electronic device 1 runs the application program, the first rotational speed corresponding to the application program is determined. The first rotational speed here can be understood as the rotational speed of the fan 20 required to dissipate heat when the application program is running. After obtaining the first rotational speed, the fan 20 can be controlled to rotate and dissipate heat at the first rotational speed. The above content can also be understood as, as soon as the electronic device 1 runs the application program, it can start to control the rotation of the fan 20 to perform heat dissipation treatment, so that the heat dissipation can be intervened earlier, so that the heat dissipation effect of the electronic device 1 can be improved, and the heat dissipation in the electronic device 1 can be protected. Various structural parts improve the service life of the electronic equipment 1 .

另外,在本实施方式中,可通过多种方式方法来确定与应用程序对应的第一转速。例如,可选地,可根据应用程序的参数确定与所述应用程序对应的第一转速。其中,所述应用程序的参数可包括应用程序的种类、应用程序的功耗、以及应用程序的数量中的一种情况或多种情况。例如当应用程序的参数为应用程序的种类时,可在电子设备1运行应用程序时从预先存储在存储模块中的信息调用即可。或者当运行应用程序时实时从网络上获取应用程序的种类,最终便可得到应用程序的种类。当应用程序的参数为应用程序的功耗时,可在电子设备1运行应用程序时获取应用程序的功耗。这里的功耗可以为初始功耗,也可以为实时功耗。当应用程序的参数为应用程序的数量时,例如,电子设备1运行了两个应用程序,其中一个为用户正在使用的应用程序,另一个在后台也在同步运行中,这时可获取正在运行的应用程序的总数量。另外,在获取到了应用程序的参数后,便可根据其参数来确定第一转速。In addition, in this implementation manner, the first rotational speed corresponding to the application program may be determined in various manners. For example, optionally, the first rotational speed corresponding to the application program may be determined according to parameters of the application program. Wherein, the parameters of the application program may include one or more of the type of the application program, the power consumption of the application program, and the number of the application program. For example, when the parameter of the application program is the type of the application program, it can be called from the information pre-stored in the storage module when the electronic device 1 runs the application program. Or when the application program is running, the type of the application program is obtained from the network in real time, and finally the type of the application program can be obtained. When the parameter of the application program is the power consumption of the application program, the power consumption of the application program may be obtained when the electronic device 1 runs the application program. The power consumption here may be initial power consumption or real-time power consumption. When the parameter of the application is the number of applications, for example, the electronic device 1 runs two applications, one of which is the application being used by the user, and the other is running synchronously in the background, at this time, the running The total number of applications. In addition, after the parameters of the application program are obtained, the first rotational speed can be determined according to the parameters.

例如当应用程序的种类为聊天软件时,可以确定第一转速可以为500r/min;当应用程序的种类为游戏软件时,可以确定第一转速可以为1000r/min。例如当应用程序的功耗为100w时,可以确定第一转速可以为500r/min;例如当应用程序的功耗为200w时,可以确定第一转速可以为1000r/min。例如当应用程序的数量为1个时,可以确定第一转速可以为500r/min。当应用程序的数量为2个时,可以确定第一转速可以为1000r/min。For example, when the type of the application program is chat software, it can be determined that the first rotation speed can be 500r/min; when the type of the application program is game software, it can be determined that the first rotation speed can be 1000r/min. For example, when the power consumption of the application program is 100w, it can be determined that the first rotation speed can be 500r/min; for example, when the power consumption of the application program is 200w, it can be determined that the first rotation speed can be 1000r/min. For example, when the number of application programs is 1, it may be determined that the first rotational speed may be 500 r/min. When the number of applications is 2, it can be determined that the first rotational speed can be 1000 r/min.

S200,获取所述电子设备1的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速。S200. Acquire environmental parameters of the electronic device 1, and determine a second rotational speed corresponding to the application program according to the environmental parameters.

当风扇20以第一转速转动从而为电子设备1进行散热后,虽然散热的目的达到了。但是风扇20在以第一转速转动时也会随之产生噪声,如若第一转速过大,则会浪费大量的功耗,降低电子设备1的续航时间。并且其产生的噪声也过大,也会影响用户体验。但若第一转速过小,又无法达到理想的散热效果。After the fan 20 rotates at the first rotational speed to dissipate heat for the electronic device 1 , although the purpose of dissipating heat is achieved. However, when the fan 20 rotates at the first rotational speed, noise will be generated accordingly. If the first rotational speed is too high, a large amount of power consumption will be wasted and the battery life of the electronic device 1 will be reduced. And the noise it generates is too large, which will also affect the user experience. However, if the first rotating speed is too small, the ideal cooling effect cannot be achieved.

因此本实施方式可先获取电子设备1的环境参数。其中,本实施方式这里指的环境参数包括电子设备1的内部环境参数、及外部环境参数中的至少一种。例如内部环境参数可以包括应用程序被运行时间接产生的音量。外部环境参数可以包括外界的噪声音量、及外界环境亮度中的至少一种。随后便可根据所述环境参数来确定与应用程序对应的第二转速。这里的第二转速并不意味着后续风扇20要以第二转速的大小来进行转动,第二转速的作用是用来与第一转速进行比较,随后根据比较后的结果再来控制风扇的转速大小。或者也可以理解为第二转速为风扇20的最大转速限制,风扇20的转速最大不能超过第二转速的大小,而不是风扇20的转速一定要为第二转速。Therefore, in this embodiment, the environmental parameters of the electronic device 1 can be obtained first. Wherein, the environmental parameters referred to in this embodiment include at least one of internal environmental parameters and external environmental parameters of the electronic device 1 . For example, the internal environment parameters may include the volume that is indirectly produced by the application when it is run. The external environment parameter may include at least one of external noise volume and external environment brightness. Then the second rotational speed corresponding to the application program can be determined according to the environmental parameters. The second rotational speed here does not mean that the follow-up fan 20 should rotate at the second rotational speed. The function of the second rotational speed is to compare with the first rotational speed, and then control the rotational speed of the fan according to the result of the comparison. . Or it can also be understood that the second rotational speed is the maximum rotational speed limit of the fan 20, and the maximum rotational speed of the fan 20 cannot exceed the second rotational speed, rather than that the rotational speed of the fan 20 must be the second rotational speed.

S300,根据所述第一转速与所述第二转速控制所述风扇20以目标转速转动;其中,所述目标转速为所述第一转速或所述第二转速,或者所述目标转速位于所述第一转速与所述第二转速之间。S300. Control the fan 20 to rotate at a target speed according to the first speed and the second speed; wherein, the target speed is the first speed or the second speed, or the target speed is at the between the first rotational speed and the second rotational speed.

在获得第二转速时,此时风扇20还是在以第一转速进行转动。随后便可根据第一转速与第二转速来控制风扇20以目标转速转动。这样在运行应用程序后壳根据环境参数来实时调节风扇20转速的大小在保证了散热性能的前提下,既降低了电子设备1的综合功耗,还提高了散热与噪声之间的平衡性,提高了电子设备1的综合性能。例如,当用户处于安静的环境下,可适当降低风扇20的转速,在散热的同时,从而降低噪声对用户的影响。当用户处于喧闹的环境下时,此时影响用户的主要是环境噪声,风扇20的噪声并不会影响用户,因此可适当提高风扇20的转速。When obtaining the second rotational speed, the fan 20 is still rotating at the first rotational speed. Then, the fan 20 can be controlled to rotate at the target speed according to the first speed and the second speed. In this way, after running the application program, the shell adjusts the speed of the fan 20 in real time according to the environmental parameters. On the premise of ensuring the heat dissipation performance, it not only reduces the comprehensive power consumption of the electronic device 1, but also improves the balance between heat dissipation and noise. The overall performance of the electronic device 1 is improved. For example, when the user is in a quiet environment, the rotation speed of the fan 20 can be appropriately reduced to reduce the impact of noise on the user while dissipating heat. When the user is in a noisy environment, the user is mainly affected by environmental noise, and the noise of the fan 20 will not affect the user, so the speed of the fan 20 can be appropriately increased.

至于目标速度具体的大小,目标转速到底是为第一转速还是第二转速,或者目标转速位于第一转速与第二转速之间可根据第一转速与第二转速的大小进行综合考虑。本申请在下文将进行详细介绍。As for the specific size of the target speed, whether the target speed is the first speed or the second speed, or whether the target speed is between the first speed and the second speed can be comprehensively considered according to the magnitude of the first speed and the second speed. This application will be described in detail below.

综上,本实施方式提供的调节方法,使在刚开始运行应用程序时便开始进行散热处理,提高了散热效果。并根据环境参数来实时调节风扇20的转速,既降低了功耗,又提高了散热与噪声之间的平衡性。To sum up, the adjustment method provided by this embodiment enables the heat dissipation process to be performed when the application program is just started to run, thereby improving the heat dissipation effect. And the speed of the fan 20 is adjusted in real time according to the environmental parameters, which not only reduces power consumption, but also improves the balance between heat dissipation and noise.

接下来本申请根据第一转速与第二转速的大小,提供了两种具体的“根据所述第一转速与所述第二转速控制所述风扇20以目标转速转动”的实现方式。详细内容如下:Next, the present application provides two specific implementations of "controlling the fan 20 to rotate at a target speed according to the first speed and the second speed" according to the magnitudes of the first speed and the second speed. The details are as follows:

请一并参考图4,图4为本申请一实施方式中S400所包括的流程示意图。本实施方式中,S300“根据所述第一转速与所述第二转速控制所述风扇20以目标转速转动”包括S310,S320。其中,S310,S320的详细介绍如下。Please refer to FIG. 4 together. FIG. 4 is a schematic flowchart of S400 in an embodiment of the present application. In this embodiment, S300 "control the fan 20 to rotate at a target speed according to the first speed and the second speed" includes S310 and S320. Among them, the details of S310 and S320 are as follows.

S310,判断所述第一转速与所述第二转速的大小。S310. Determine the magnitudes of the first rotational speed and the second rotational speed.

S320,若所述第一转速大于所述第二转速,控制所述目标转速为所述第二转速。S320. If the first rotational speed is greater than the second rotational speed, control the target rotational speed to be the second rotational speed.

在第一种实现方式中,当第一转速大于第二转速时,即根据环境参数得到的第二转速小于根据应用种类得到的第二转速。例如,第一转速为1000r/min,第二转速为500r/min。此时可控制目标转速为第二转速,即控制风扇20从1000r/min变为500r/min。但至于具体风扇20的转速如何从1000r/min变为500r/min,本申请不进行限定,例如可瞬时降低至500r/min,或者在一定时间内慢慢降低至500r/min。这样当用户在比较安静的环境中时可在保证风扇20散热的同时,来降低风扇20的噪声,达到最优的综合性能。In the first implementation manner, when the first rotational speed is greater than the second rotational speed, that is, the second rotational speed obtained according to the environmental parameter is smaller than the second rotational speed obtained according to the application type. For example, the first rotation speed is 1000r/min, and the second rotation speed is 500r/min. At this time, the target rotational speed can be controlled to be the second rotational speed, that is, the fan 20 can be controlled from 1000 r/min to 500 r/min. However, this application does not limit how the speed of the fan 20 changes from 1000r/min to 500r/min, for example, it can be reduced to 500r/min instantaneously, or slowly reduced to 500r/min within a certain period of time. In this way, when the user is in a relatively quiet environment, the noise of the fan 20 can be reduced while ensuring the heat dissipation of the fan 20 to achieve optimal overall performance.

请一并参考图5,图5为本申请另一实施方式中S400所包括的流程示意图。本实施方式中,S300“根据所述第一转速与所述第二转速控制所述风扇20以目标转速转动”包括S330,S340。其中,S330,S340的详细介绍如下。Please refer to FIG. 5 together. FIG. 5 is a schematic flowchart of S400 in another implementation manner of the present application. In this embodiment, S300 "control the fan 20 to rotate at a target speed according to the first speed and the second speed" includes S330 and S340. Among them, the details of S330 and S340 are as follows.

S330,判断所述第一转速与所述第二转速的大小。S330. Determine magnitudes of the first rotational speed and the second rotational speed.

S340,若所述第一转速小于所述第二转速,控制所述目标转速为所述第一转速;或者,控制所述目标转速大于所述第一转速且小于或等于所述第二转速。S340. If the first rotational speed is less than the second rotational speed, control the target rotational speed to be the first rotational speed; or control the target rotational speed to be greater than the first rotational speed and less than or equal to the second rotational speed.

在第二种实现方式中,当第一转速小于第二转速时,即根据环境参数得到的第二转速大于根据应用种类得到的第二转速。例如,第一转速为500r/min,第二转速为1000r/min。本实施方式提供了两种控制方法。第一种控制方法中,由于风扇20保持第一转速已经可以满足应用程序在被使用时进行散热的目的,因此可保持风扇20的转速不变,仍为第一转速,即控制所述目标转速为所述第一转速。第二种控制方法中,由于第一转速还未到最大转速的限制值(即第二转速),并且即使到第二转速也可以满足对环境参数的要求,因此可提高风扇20的转速,只要大于第一转速,且在最大转速的限制值(即第二转速)即可;即控制所述目标转速大于所述第一转速且小于或等于所述第二转速,这样便可在满足噪声不影响用户的前提下,尽可能地提高风扇20的转速,从而提高风扇20的散热性能。In the second implementation manner, when the first rotational speed is lower than the second rotational speed, that is, the second rotational speed obtained according to the environmental parameter is greater than the second rotational speed obtained according to the application type. For example, the first rotation speed is 500r/min, and the second rotation speed is 1000r/min. This embodiment provides two control methods. In the first control method, since the fan 20 maintains the first speed to meet the purpose of heat dissipation when the application program is in use, the speed of the fan 20 can be kept constant, which is still the first speed, that is, the target speed is controlled is the first rotational speed. In the second control method, since the first rotational speed has not yet reached the limit value of the maximum rotational speed (i.e. the second rotational speed), and even the second rotational speed can meet the requirements for environmental parameters, the rotational speed of the fan 20 can be increased, as long as greater than the first rotational speed, and at the limit value of the maximum rotational speed (i.e. the second rotational speed); that is, to control the target rotational speed to be greater than the first rotational speed and less than or equal to the second rotational speed, so that the noise can be satisfied Under the premise of affecting the user, the speed of the fan 20 is increased as much as possible, so as to improve the heat dissipation performance of the fan 20 .

至于具体将转速提高至多少,本申请在此不进行限定,可根据实际情况而定。As for how much to increase the rotation speed, the present application does not make a limitation here, and it can be determined according to actual conditions.

接下来本申请将继续介绍具体如何根据环境参数确定与所述应用程序对应的第二转速。本申请根据环境参数的种类提供了两种具体的实现方式。详细内容如下:Next, this application will continue to introduce how to determine the second rotational speed corresponding to the application according to the environmental parameters. The present application provides two specific implementation manners according to types of environment parameters. The details are as follows:

请一并参考图6,图6为本申请一实施方式中S300所包括的流程示意图。本实施方式中,S200“获取所述电子设备1的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速”包括S210,S220。其中,S210,S220的详细介绍如下。Please refer to FIG. 6 together. FIG. 6 is a schematic flowchart of S300 in an embodiment of the present application. In this embodiment, S200 "acquire the environmental parameters of the electronic device 1, and determine the second rotational speed corresponding to the application program according to the environmental parameters" includes S210 and S220. Among them, the details of S210 and S220 are as follows.

S210,获取所述电子设备1的环境参数;其中,所述环境参数包括所述应用程序被运行时的音量、及外界噪声音量中的至少一种。S210. Acquire environmental parameters of the electronic device 1; wherein the environmental parameters include at least one of a volume when the application program is running and a volume of external noise.

S220,当所述环境参数包括所述应用程序被运行时的音量,且所述应用程序被运行时的音量大于预设音量;或者,当所述环境参数包括所述应用程序被运行时的音量与所述外界噪声音量,且所述应用程序被运行时的音量大于所述外界噪声音量、及所述应用程序被运行时的音量大于预设音量时,根据所述应用程序被运行时的音量确定与所述应用程序对应的第二转速;其中,所述第二转速大于或等于所述第一转速。S220, when the environment parameter includes the volume when the application is running, and the volume when the application is running is greater than the preset volume; or, when the environment parameter includes the volume when the application is running and the volume of the external noise, and the volume when the application is running is greater than the volume of the external noise, and when the volume of the application is running is greater than the preset volume, according to the volume when the application is running Determine a second rotational speed corresponding to the application program; wherein, the second rotational speed is greater than or equal to the first rotational speed.

在第一种实现方式中,环境参数包括所述应用程序被运行时的音量、及外界噪声音量中的至少一种。从上述内容可知,应用程序被运行时的音量可以视为电子设备1内的环境参数。其中,应用程序被运行时的音量可以理解为,当应用程序被运行时,例如用户在看视频、听音乐或者玩游戏时,处理器30可接收应用程序发出的音频信号,随后根据音频信号控制电子设备1中的扬声器发声从而形成的音量。另外,处理器30可根据音频信号得到应用程序被运行时的音量的大小。In a first implementation manner, the environment parameter includes at least one of the volume of the application program running and the volume of external noise. It can be seen from the above content that the volume of the running application program can be regarded as an environmental parameter in the electronic device 1 . Wherein, the volume when the application program is running can be understood as, when the application program is running, for example, when the user is watching a video, listening to music or playing a game, the processor 30 can receive the audio signal sent by the application program, and then control the volume according to the audio signal. The volume formed by the speaker in the electronic device 1 producing sound. In addition, the processor 30 can obtain the volume of the running application program according to the audio signal.

外界噪声音量可以视为电子设备1外的环境参数。例如用户处于嘈杂的环境中时,外界环境会有各种各样的声音,这些声音会影响用户使用电子设备1时的体验,因此可统称为外界噪声音量。另外,可在电子设备1上增设声音传感器,例如MIC,从而检测外界噪声音量的大小。The external noise volume can be regarded as an environmental parameter outside the electronic device 1 . For example, when the user is in a noisy environment, there will be various sounds in the external environment, and these sounds will affect the user's experience when using the electronic device 1 , so they can be collectively referred to as external noise volume. In addition, a sound sensor, such as a MIC, can be added to the electronic device 1 to detect the volume of external noise.

当环境参数包括应用程序被运行时的音量,可以理解为用户处于一个相对安静的外部环境,并在使用电子设备1看视频、听音乐或者玩游戏。此时当应用程序被运行时的音量大于预设音量,即应用程序被运行时的音量足够大时,此时可视为风扇20产生的噪声并不会影响用户看视频或者玩游戏。所以此时不需要调整风扇20的转速,进而可使所述第二转速大于或等于所述第一转速。When the environmental parameters include the volume of the application program running, it can be understood that the user is in a relatively quiet external environment and is using the electronic device 1 to watch videos, listen to music or play games. At this time, when the volume of the application program is running is greater than the preset volume, that is, when the volume of the application program is running sufficiently, it can be considered that the noise generated by the fan 20 will not affect the user watching videos or playing games. Therefore, there is no need to adjust the rotation speed of the fan 20 at this time, so that the second rotation speed can be greater than or equal to the first rotation speed.

当环境参数包括所述应用程序被运行时的音量与所述外界噪声音量,即包括内部环境参数与外部环境参数,也可以理解为用户处于外界吵闹的环境中看视频、听音乐或玩游戏。但所述应用程序被运行时的音量大于所述外界噪声音量、及所述应用程序被运行时的音量大于预设音量时,即应用程序被运行时的音量足够大,不仅大于预设音量,还大于外界环境噪声,此时也同样可视为风扇20产生的噪声并不会影响用户看视频或者玩游戏。所以此时不需要调整风扇20的转速,进而可使所述第二转速大于或等于所述第一转速。When the environmental parameters include the volume when the application program is running and the volume of the external noise, that is, include internal environmental parameters and external environmental parameters, it can also be understood that the user is watching videos, listening to music or playing games in a noisy external environment. However, when the volume of the application program is running is greater than the volume of the external noise, and the volume of the application program is running is greater than the preset volume, that is, the volume of the application program is running is large enough, not only greater than the preset volume, It is also greater than the noise of the external environment. At this time, it can also be considered that the noise generated by the fan 20 will not affect the user watching videos or playing games. Therefore, there is no need to adjust the rotation speed of the fan 20 at this time, so that the second rotation speed can be greater than or equal to the first rotation speed.

综上,本实施方式中当应用程序被运行时的音量足够大时,可提高风扇20的转速,从而保证散热与噪声的平衡,达到最优的散热效果。至于外界噪声音量与预设音量的大小,本实施方式在此不进行限定。To sum up, in this embodiment, when the volume of the application program is running is high enough, the rotation speed of the fan 20 can be increased, so as to ensure the balance between heat dissipation and noise, and achieve an optimal heat dissipation effect. As for the volume of the external noise and the preset volume, this embodiment does not limit it here.

可选地,预设音量大于或等于100dB。Optionally, the preset volume is greater than or equal to 100dB.

请一并参考图7,图7为本申请另一实施方式中S300所包括的流程示意图。本实施方式中,S200“获取所述电子设备1的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速”包括S230,S240。其中,S230,S240的详细介绍如下。Please refer to FIG. 7 together. FIG. 7 is a schematic flowchart of S300 in another implementation manner of the present application. In this embodiment, S200 "acquire the environmental parameters of the electronic device 1, and determine the second rotational speed corresponding to the application program according to the environmental parameters" includes S230 and S240. Among them, the details of S230 and S240 are as follows.

S230,获取所述电子设备1的环境参数;其中,所述环境参数包括所述应用程序被运行时的音量、外界噪声音量、以及外界环境亮度中的至少一种。S230. Acquire environmental parameters of the electronic device 1; wherein the environmental parameters include at least one of volume when the application program is running, external noise volume, and external environment brightness.

S240,当所述环境参数包括所述应用程序被运行时的音量与所述外界噪声音量,且所述应用程序被运行时的音量小于所述外界噪声音量、及所述外界噪声音量小于预设音量时,根据所述外界噪声音量确定与所述应用程序对应的第二转速;其中,所述第二转速小于所述第一转速。S240, when the environmental parameters include the volume of the application program running and the volume of the external noise, and the volume of the application program running is less than the volume of the external noise, and the volume of the external noise is less than a preset When volume is used, a second rotational speed corresponding to the application program is determined according to the external noise volume; wherein, the second rotational speed is smaller than the first rotational speed.

或者,当所述环境参数包括所述应用程序被运行时的音量、所述外界噪声音量、以及所述外界环境亮度,且所述应用程序被运行时的音量小于所述外界噪声音量、所述外界噪声音量小于预设音量、以及所述外界环境亮度小于预设亮度时,根据所述外界噪声音量、及所述外界环境亮度确定与所述应用程序对应的第二转速;其中,所述第二转速小于所述第一转速。Or, when the environment parameters include the volume of the application program running, the volume of the external noise, and the brightness of the external environment, and the volume of the application program running is smaller than the volume of the external noise, the When the volume of the external noise is less than the preset volume and the brightness of the external environment is lower than the preset brightness, the second rotational speed corresponding to the application program is determined according to the volume of the external noise and the brightness of the external environment; wherein, the second The second rotational speed is smaller than the first rotational speed.

在第二种实现方式中,环境参数包括应用程序被运行时的音量、外界噪声音量、以及外界环境亮度中的至少一种。换句话说,内部环境参数仍为应用程序被运行时的音量,外部环境参数除了外界噪声音量外,还可包括外界环境亮度。另外,处理器30可根据音频信号得到应用程序被运行时的音量的大小。还可在电子设备1上增设声音传感器,例如MIC,从而检测外界噪声音量的大小。还可在电子设备1上增设亮度传感器,例如光感,从而检测外界环境亮度。In a second implementation manner, the environment parameter includes at least one of volume when the application program is running, volume of external noise, and brightness of the external environment. In other words, the internal environment parameter is still the volume when the application program is running, and the external environment parameter may include the brightness of the external environment in addition to the external noise volume. In addition, the processor 30 can obtain the volume of the running application program according to the audio signal. A sound sensor, such as a MIC, can also be added to the electronic device 1 to detect the volume of external noise. A brightness sensor, such as a light sensor, may also be added to the electronic device 1 to detect the brightness of the external environment.

当环境参数包括应用程序被运行时的音量与外界噪声音量,即包括内部环境参数与外部环境参数,且所述应用程序被运行时的音量小于所述外界噪声音量、及所述外界噪声音量小于预设音量时。也可以理解为用户在运行应用程序时,其应用程序没有音量,例如用户看图片,或者静音看视频、听音乐或玩游戏。或者,其应用程序运行时的音量较小。或者外界噪声过大,使得应用程序被运行时的音量小于所述外界噪声音量,并且外界噪声音量小于预设音量。总的来说,用户处于一个较为安静的状态下,此时可以视为风扇20以第一转速转动时产生的噪声会被用户捕捉到从而影响用户体验,因此可使第二转速小于第一转速,并在后续控制目标转速为第二转速。When the environmental parameters include the volume of the application program being run and the volume of external noise, that is, including internal environmental parameters and external environmental parameters, and the volume of the application program is running is smaller than the volume of the external noise, and the volume of the external noise is less than When preset volume. It can also be understood that when the user is running the application, the application has no volume, for example, the user watches pictures, or watches videos, listens to music or plays games in mute. Or, its apps run at a lower volume. Or the external noise is too loud, so that the volume of the application program being run is smaller than the external noise volume, and the external noise volume is smaller than the preset volume. Generally speaking, the user is in a relatively quiet state. At this time, it can be considered that the noise generated when the fan 20 rotates at the first speed will be captured by the user and affect the user experience. Therefore, the second speed can be lower than the first speed. , and the subsequent control target speed is the second speed.

当所述环境参数包括所述应用程序被运行时的音量、所述外界噪声音量、以及所述外界环境亮度,即包括内部环境参数与外部环境参数。可以理解为用户在运行应用程序时,其应用程序没有音量,例如用户看图片,或者静音看视频、听音乐或玩游戏。或者,其应用程序运行时的音量较小。或者外界噪声过大,使得应用程序被运行时的音量小于所述外界噪声音量,且所述外界噪声音量小于预设音量、以及所述外界环境亮度小于预设亮度。总的来说,用户处于一个较为安静且黑暗的环境下,此时可以视为风扇20以第一转速转动时产生的噪声会被用户捕捉到从而影响用户体验,因此可使第二转速小于第一转速,并在后续控制目标转速为第二转速。When the environmental parameters include the volume when the application program is running, the volume of the external noise, and the brightness of the external environment, it includes internal environmental parameters and external environmental parameters. It can be understood that when the user is running the application, the application has no volume, for example, the user looks at pictures, or watches videos, listens to music or plays games in mute. Or, its apps run at a lower volume. Or the external noise is too loud, so that the volume of the application program is smaller than the external noise volume, and the external noise volume is smaller than the preset volume, and the external environment brightness is smaller than the preset brightness. Generally speaking, the user is in a relatively quiet and dark environment. At this time, it can be considered that the noise generated when the fan 20 rotates at the first speed will be captured by the user and affect the user experience. Therefore, the second speed can be lower than the first speed. The first rotational speed, and the subsequent control target rotational speed is the second rotational speed.

综上,本实施方式中应用程序被运行时的音量与外界噪声音量过小时,可降低第二转速的大小,从而降低风扇20的转速,在丧失部分散热性能的同时满足噪声不影响用户,保证了散热与噪声的平衡,达到最优的散热效果。当至于外界噪声音量与预设音量的大小,本实施方式在此不进行限定。To sum up, in this embodiment, when the volume of the application program is running and the volume of the external noise is too small, the size of the second rotational speed can be reduced, thereby reducing the rotational speed of the fan 20, and while losing part of the heat dissipation performance, the noise does not affect the user, ensuring The balance between heat dissipation and noise is achieved to achieve the best heat dissipation effect. As for the volume of the external noise and the preset volume, this embodiment does not limit it here.

可选地,在“获取所述电子设备1的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速”之前,还可包括:获取所述风扇20的工作状态;当所述风扇20停止工作时,获取所述电子设备1的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速。在一些特殊的情况下需要考虑风扇20在正常工作时因为某种原因突然停止了工作了。但由于之前风扇20是根据应用程序种类以第一转速转动,因此此时可不需要再重复一遍上述操作,可直接获取所述电子设备1的环境参数,并根据所述环境参数确定与所述应用程序对应的第二转速,使风扇20直接进行第二阶段的转动。Optionally, before "obtaining the environmental parameters of the electronic device 1, and determining the second rotational speed corresponding to the application program according to the environmental parameters", it may also include: obtaining the working state of the fan 20; when the When the fan 20 stops working, the environmental parameters of the electronic device 1 are obtained, and the second rotational speed corresponding to the application program is determined according to the environmental parameters. In some special cases, it needs to be considered that the fan 20 suddenly stops working for some reason when it is working normally. However, since the fan 20 rotated at the first rotational speed according to the type of the application program before, it is not necessary to repeat the above operation at this time, and the environmental parameters of the electronic device 1 can be obtained directly, and determined according to the environmental parameters. The second rotation speed corresponding to the program makes the fan 20 directly rotate in the second stage.

可选地,预设音量小于或等于40dB。可选地,预设亮度小于5lux。Optionally, the preset volume is less than or equal to 40dB. Optionally, the preset brightness is less than 5lux.

请一并参考图8,图8为本申请一实施方式中S100所包括的流程示意图。本实施方式中,S100“当所述电子设备1运行应用程序时,确定与所述应用程序对应的第一转速,并控制所述风扇20以所述第一转速转动”包括S110,S120,S130。其中,S110,S120,S130的详细介绍如下。Please refer to FIG. 8 together. FIG. 8 is a schematic flowchart of S100 in an embodiment of the present application. In this embodiment, S100 "when the electronic device 1 runs the application program, determine the first rotation speed corresponding to the application program, and control the fan 20 to rotate at the first rotation speed" includes S110, S120, S130 . Among them, the details of S110, S120 and S130 are as follows.

S110,当所述电子设备1运行应用程序时,根据所述应用程序的种类得到第一功耗。S110. When the electronic device 1 runs an application program, obtain the first power consumption according to the type of the application program.

当电子设备1在刚开始运行应用程序时,并不是一下子便可确定第一转速的。而是先根据应用程序的种类得到第一功耗。其中,应用程序的种类上述内容已详细介绍过了,本实施方式在此不再赘述。而第一功耗也可以理解为初步功耗,其中,每个应用程序的初步功耗可预先存储起来,随后当运行应用程序时从存储模块调用即可。或者当运行应用程序时实时从网络上获取应用程序的初步功耗。When the electronic device 1 starts to run the application program, the first rotation speed cannot be determined immediately. Instead, the first power consumption is obtained according to the type of the application program. Wherein, the types of application programs have been introduced in detail above, and will not be repeated here in this embodiment. The first power consumption can also be understood as preliminary power consumption, wherein the preliminary power consumption of each application program can be stored in advance, and then called from the storage module when the application program is running. Or obtain the preliminary power consumption of the application program from the network in real time when the application program is running.

可选地,可根据应用程序的种类得到屏幕默认亮度;再根据所述屏幕默认亮度得到第一功耗。Optionally, the default brightness of the screen may be obtained according to the type of the application program; and then the first power consumption may be obtained according to the default brightness of the screen.

S120,获取所述电子设备1中显示屏的亮度值,根据所述亮度值与所述第一功耗得到第二功耗。S120. Acquire a brightness value of the display screen in the electronic device 1, and obtain a second power consumption according to the brightness value and the first power consumption.

当应用程序在被运行的过程中,可再实时获取电子设备1中显示屏的亮度值,随后根据实时获取的亮度值与第一功耗来得到第二功耗。其中,第二功耗可以视为应用程序在被运行的过程中的准确功耗或者实时功耗。When the application program is running, the brightness value of the display screen in the electronic device 1 can be obtained in real time, and then the second power consumption can be obtained according to the brightness value obtained in real time and the first power consumption. Wherein, the second power consumption may be regarded as accurate power consumption or real-time power consumption of the application program during the running process.

至于具体如何根据亮度值与第一功耗得到第二功耗,本申请在此不进行限定。As for how to obtain the second power consumption according to the brightness value and the first power consumption, this application does not make a limitation here.

另外,上述所提及的第一功耗与第二功耗指的是应用程序在被运行时电子设备1的第一功耗与第二功耗。可选地,第一功耗与第二功耗可以看做是电子设备1中CPU的温度或者,CPU的频率等。In addition, the first power consumption and the second power consumption mentioned above refer to the first power consumption and the second power consumption of the electronic device 1 when the application program is running. Optionally, the first power consumption and the second power consumption may be regarded as the temperature of the CPU in the electronic device 1 or the frequency of the CPU.

S130,根据所述第二功耗确定与所述应用程序对应的第一转速。S130. Determine a first rotational speed corresponding to the application program according to the second power consumption.

最终可根据得到的准确的第二功耗来确定与所述应用程序对应的第一转速,进而控制风扇20Finally, the first rotational speed corresponding to the application program can be determined according to the obtained accurate second power consumption, and then the fan 20 can be controlled

本实施方式中通过先得到初步功耗,再得到准确功耗,最终再得到第一转速的方法,可提高第一转速的准确性,保证风扇20以第一转速转动即可满足散热要求,提高了电子设备1的散热效果与续航时间。In this embodiment, by first obtaining the preliminary power consumption, then obtaining the accurate power consumption, and finally obtaining the first rotational speed, the accuracy of the first rotational speed can be improved, ensuring that the fan 20 rotates at the first rotational speed to meet heat dissipation requirements, and improve The heat dissipation effect and battery life of the electronic device 1 are improved.

请一并参考图9,图9为本申请一实施方式中在S100之前所包括的流程示意图。本实施方式中,在S100“确定与所述应用程序对应的第一转速,并控制所述风扇20以所述第一转速转动”之前,还包括S10,S20。其中,S10,S20的详细介绍如下。Please refer to FIG. 9 together. FIG. 9 is a schematic flow chart included before S100 in an embodiment of the present application. In this embodiment, S10 and S20 are further included before S100 "determine the first rotational speed corresponding to the application program, and control the fan 20 to rotate at the first rotational speed". Among them, the details of S10 and S20 are as follows.

S10,获取所述电子设备1的的开机信号。S10, acquiring a power-on signal of the electronic device 1 .

S20,根据所述开机信号控制所述风扇20以第一初始转速转动。S20. Control the fan 20 to rotate at a first initial speed according to the power-on signal.

在得到第一转速之前,还可先获取电子设备1的开机信号。即当电子设备1刚开机时,便获取电子设备1的开机信号。随后根据所述开机信号控制所述风扇20以第一初始转速转动。也可以理解为,在电子设备1刚开机到运行应用程序的这段时间内便可开始控制风扇20以第一初始转速进行转动,利用风扇20对电子设备1进行散热,从而进一步提高电子设备1的散热性能。至于如何根据所述开机信号控制所述风扇20以第一初始转速转动本申请将在下文进行详细介绍。Before obtaining the first rotation speed, the power-on signal of the electronic device 1 may also be obtained first. That is, when the electronic device 1 is just turned on, a power-on signal of the electronic device 1 is obtained. Subsequently, the fan 20 is controlled to rotate at a first initial rotational speed according to the power-on signal. It can also be understood that the fan 20 can be controlled to rotate at the first initial speed during the period from when the electronic device 1 is just turned on to when the application program is running, and the fan 20 can be used to dissipate heat from the electronic device 1, thereby further improving the performance of the electronic device 1. cooling performance. How to control the fan 20 to rotate at the first initial rotational speed according to the power-on signal will be described in detail below in this application.

请一并参考图10,图10为本申请一实施方式中S10所包括的流程示意图。本实施方式中,S10“根据所述开机信号控制所述风扇20以第一初始转速转动”包括S11,S12。其中,S11,S12的详细介绍如下。Please refer to FIG. 10 together. FIG. 10 is a schematic flowchart of S10 in an embodiment of the present application. In this embodiment, S10 "control the fan 20 to rotate at a first initial rotational speed according to the power-on signal" includes S11 and S12. Among them, the details of S11 and S12 are as follows.

S11,当检测到所述开机信号时,获取外界环境温度。S11. When the power-on signal is detected, acquire the temperature of the external environment.

S12,根据所述外界环境温度控制所述风扇20以第一初始转速转动。S12. Control the fan 20 to rotate at a first initial speed according to the external environment temperature.

在获取到开机信号之后,换句话说,当检测到开机信号时,先获取外界环境温度,随后可根据外界环境温度来控制风扇20以第一初始转速转动。这样通过外界环境温度来控制风扇20的转动速度,可根据不同的环境温度,调整风扇20的转速也是不同的,从而更精准地进行散热,可降低电子设备1的功耗。After the power-on signal is obtained, in other words, when the power-on signal is detected, the ambient temperature is obtained first, and then the fan 20 can be controlled to rotate at the first initial speed according to the ambient temperature. In this way, the rotation speed of the fan 20 is controlled by the ambient temperature, and the rotation speed of the fan 20 can be adjusted according to different ambient temperatures, so as to dissipate heat more accurately and reduce power consumption of the electronic device 1 .

可选地,外界环境温度的获得可通过在电子设备1上增设外界温度传感器来进行检测。或者通过其他的方式来获取外界环境温度。Optionally, the temperature of the external environment can be detected by adding an external temperature sensor on the electronic device 1 . Or obtain the external environment temperature by other means.

请一并参考图11,图11为本申请一实施方式中S11所包括的流程示意图。本实施方式中,S11“当检测到所述开机信号时,获取外界环境温度”包括S11a,S11b,S11c,S11d。其中,S11a,S11b,S11c,S11d的详细介绍如下。Please refer to FIG. 11 together. FIG. 11 is a schematic flowchart of S11 in an embodiment of the present application. In this embodiment, S11 "obtain the temperature of the external environment when the power-on signal is detected" includes S11a, S11b, S11c, and S11d. Among them, the details of S11a, S11b, S11c, and S11d are as follows.

S11a,当检测到所述开机信号时,获取所述电子设备1内的第一温度。S11a. Acquire a first temperature inside the electronic device 1 when the power-on signal is detected.

本实施方式介绍了另一种方式来获取外界环境温度。首先当检测到开机信号时,先获取电子设备1内的第一温度。其中,第一温度也可以视为电子设备1在刚开机时的内部初始温度。This embodiment introduces another way to obtain the external environment temperature. First, when a power-on signal is detected, the first temperature inside the electronic device 1 is acquired. Wherein, the first temperature can also be regarded as the internal initial temperature of the electronic device 1 when it is just turned on.

S11b,获取在预设时间内所述电子设备1内的多个第二温度。S11b. Obtain a plurality of second temperatures in the electronic device 1 within a preset time.

随后再获取预设时间段内电子设备1内的多个第二温度值。例如,当预设时间为5min时,可获取5min内不同时间的第二温度值,如每个半分钟获取一次第二温度值,从而获取10个第二温度。Subsequently, a plurality of second temperature values in the electronic device 1 within a preset period of time are acquired. For example, when the preset time is 5 minutes, the second temperature values at different times within 5 minutes may be obtained, for example, the second temperature values may be obtained once every half minute, thereby obtaining 10 second temperatures.

另外,上述所提及的第一温度与第二温度可采用设于电子设备1内的温度传感器来进行检测。In addition, the above-mentioned first temperature and second temperature can be detected by a temperature sensor disposed in the electronic device 1 .

S11c,根据所述第一温度、所述预设时间、以及所述多个第二温度得到温度变化模型。S11c. Obtain a temperature change model according to the first temperature, the preset time, and the plurality of second temperatures.

随后便可根据第一温度、所述预设时间、以及所述多个第二温度来得到温度变化模型,也可以理解为温度随时间变化的曲线图。Then, a temperature variation model can be obtained according to the first temperature, the preset time, and the plurality of second temperatures, which can also be understood as a graph of temperature variation with time.

S11d,根据所述温度变化模型得到外界环境温度。S11d. Obtain the external environment temperature according to the temperature change model.

最后便可根据得到的这个温度变化模型来计算或推算出外界环境温度。采用本实施方式提供的方法,可避免在电子设备1的外表面上设置外界温度传感器,从而提高电子设备1的外观性能。Finally, the external ambient temperature can be calculated or calculated according to the obtained temperature change model. By adopting the method provided in this embodiment, it is possible to avoid disposing an external temperature sensor on the outer surface of the electronic device 1 , thereby improving the appearance performance of the electronic device 1 .

请一并参考图12,图12为本申请一实施方式中在S20之后所包括的流程示意图。本实施方式中,在S20“根据所述开机信号控制所述风扇20以第一初始转速转动”之后,还包括S30,S40。其中,S30,S40的详细介绍如下。Please refer to FIG. 12 together. FIG. 12 is a schematic flowchart included after S20 in an embodiment of the present application. In this embodiment, after S20 "controlling the fan 20 to rotate at the first initial rotational speed according to the power-on signal", S30 and S40 are further included. Among them, the details of S30 and S40 are as follows.

S30,获取外界环境温度。S30, acquiring the external environment temperature.

S40,根据所述外界环境温度控制所述风扇20以第二初始转速转动。S40. Control the fan 20 to rotate at a second initial rotation speed according to the external environment temperature.

在本实施方式中,当电子设备1开机并控制风扇20以第一初始转动速度转动之后,可再获取外界环境温度,随后根据所述外界环境温度控制所述风扇20以第二初始转速转动。也可以理解为,本实施方式不是在检测到开机信号时便获取外界环境温度,而是先控制风扇20转动起来,随后再获取外界环境温度,并根据外界环境温度控制风扇20以第二初始转速转动。这样可保证在电子设备1开机到控制根据外界环境温度控制风扇20转动的这段时间内,风扇20也会转动从而对电子设备1进行散热,从而进一步提高电子设备1的散热性能。In this embodiment, after the electronic device 1 is turned on and the fan 20 is controlled to rotate at the first initial rotation speed, the ambient temperature can be obtained again, and then the fan 20 is controlled to rotate at the second initial rotation speed according to the ambient temperature. It can also be understood that in this embodiment, instead of obtaining the external environment temperature when the power-on signal is detected, the fan 20 is first controlled to rotate, and then the external environment temperature is obtained, and the fan 20 is controlled to rotate at the second initial speed according to the external environment temperature. turn. This can ensure that the fan 20 will also rotate to dissipate heat from the electronic device 1 during the period when the electronic device 1 is turned on and the fan 20 is controlled to rotate according to the external environment temperature, thereby further improving the heat dissipation performance of the electronic device 1 .

至于具体如何获取外界温度,可参考上述方法,具体地:获取所述电子设备1内的第一温度。获取在预设时间内所述电子设备1内的多个第二温度。根据所述第一温度、所述预设时间、以及所述多个第二温度得到温度变化模型。根据所述温度变化模型得到外界环境温度。As for how to obtain the external temperature, reference may be made to the above method, specifically: obtaining the first temperature inside the electronic device 1 . A plurality of second temperatures inside the electronic device 1 are acquired within a preset time. A temperature change model is obtained according to the first temperature, the preset time, and the plurality of second temperatures. The external ambient temperature is obtained according to the temperature change model.

以上是对本申请风扇20的调节方法的详细描述,根据本申请的实施方式,还提供了一种风扇20的调节装置2及电子设备1。该方法可以用于控制上述的装置及电子设备1。当然该装置及电子设备1也可以使用其他的方法进行控制,本申请对此没有限制。本申请实施例提供的装置及电子设备1以及音频控制方法,可以配合使用,也可以单独使用,这不影响本申请的本质。The above is a detailed description of the adjustment method of the fan 20 of the present application. According to the embodiment of the application, an adjustment device 2 of the fan 20 and an electronic device 1 are also provided. This method can be used to control the above-mentioned apparatus and electronic equipment 1 . Of course, the device and the electronic device 1 can also be controlled by other methods, which is not limited in this application. The device, the electronic device 1 and the audio control method provided in the embodiment of the present application can be used together or alone, which does not affect the essence of the present application.

请参考图13,图13为本申请一实施方式中调节装置2的电子结构示意图。本实施方式提供了一种风扇20的调节装置2,应用于电子设备1,所述电子设备1运行应用程序,所述电子设备1包括风扇20,所述调节装置2包括确定控制单元40、获取确定单元50、以及控制单元60。其中,确定控制单元40用于确定与所述应用程序对应的第一转速,并控制所述风扇20以所述第一转速转动。获取确定单元50用于获取所述电子设备1的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速。所述控制单元60还用于根据所述第一转速与所述第二转速控制所述风扇20以目标转速转动;其中,所述目标转速为所述第一转速或所述第二转速,或者所述目标转速位于所述第一转速与所述第二转速之间。Please refer to FIG. 13 , which is a schematic diagram of the electronic structure of the regulating device 2 in an embodiment of the present application. This embodiment provides an adjustment device 2 for a fan 20, which is applied to an electronic device 1, the electronic device 1 runs an application program, the electronic device 1 includes a fan 20, and the adjustment device 2 includes a determination control unit 40, an acquisition A determination unit 50, and a control unit 60. Wherein, the determination control unit 40 is configured to determine a first rotational speed corresponding to the application program, and control the fan 20 to rotate at the first rotational speed. The acquiring and determining unit 50 is configured to acquire environmental parameters of the electronic device 1, and determine the second rotational speed corresponding to the application program according to the environmental parameters. The control unit 60 is further configured to control the fan 20 to rotate at a target speed according to the first speed and the second speed; wherein the target speed is the first speed or the second speed, or The target rotational speed is between the first rotational speed and the second rotational speed.

本实施方式提供的调节装置2,通过上述各个单元的相互配合可提高散热效果,降低功耗,提高散热与噪声之间的平衡性。The adjustment device 2 provided in this embodiment can improve the heat dissipation effect, reduce power consumption, and improve the balance between heat dissipation and noise through the mutual cooperation of the above-mentioned units.

请再次参考图2-图3,本实施方式提供了一种电子设备1,所述电子设备1包括壳体10、风扇20、以及处理器30,所述壳体10内具有收容空间11,所述风扇20设于所述收容空间11内,所述壳体10设有连通所述收容空间11的进气孔12与出气孔13,所述处理器30设于所述收容空间11内且电连接所述风扇20,所述处理器30用于执行如本申请上述实施方式提供的调节方法。Please refer to FIG. 2-FIG. 3 again. This embodiment provides an electronic device 1, the electronic device 1 includes a housing 10, a fan 20, and a processor 30, the housing 10 has a housing space 11, the The fan 20 is arranged in the receiving space 11, the casing 10 is provided with an air inlet 12 and an air outlet 13 communicating with the receiving space 11, the processor 30 is arranged in the receiving space 11 and is electrically connected to the housing 10. The fan 20 is connected, and the processor 30 is configured to execute the adjustment method provided in the above-mentioned embodiments of the present application.

本实施方式提供的电子设备1,通过采用本申请上述实施方式提供的调节方法,可提高散热效果,降低功耗,提高散热与噪声之间的平衡性。最终使外界的气体从进气孔12进入,并将电子设备1内的热量从出气孔13排出,最终实现散热的目的。The electronic device 1 provided in this embodiment can improve the heat dissipation effect, reduce power consumption, and improve the balance between heat dissipation and noise by adopting the adjustment method provided in the above embodiments of the present application. Finally, the outside air enters through the air inlet 12, and the heat in the electronic device 1 is discharged through the air outlet 13, finally achieving the purpose of heat dissipation.

本实施方式还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器30执行时使所述处理器30执行如本申请上述实施方式提供的调节方法。This embodiment also provides a computer storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by the processor 30, the processor 30 performs the following steps: Apply the adjustment method provided in the above-mentioned embodiment.

本实施方式提供的计算机存储介质,通过采用本申请上述实施方式提供的调节方法,可提高散热效果,降低功耗,提高散热与噪声之间的平衡性。The computer storage medium provided in this embodiment can improve the heat dissipation effect, reduce power consumption, and improve the balance between heat dissipation and noise by adopting the adjustment method provided in the above-mentioned embodiment of the present application.

本领域普通技术人员可以理解实现上述实施方式中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。本申请可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器30实现本申请的各个方面的计算机可读程序指令。Those of ordinary skill in the art can understand that realizing all or part of the processes in the above embodiments can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. The present application may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing processor 30 to implement various aspects of the present application.

计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。可选地,计算机可读存储介质包括但不限于电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。进一步可选地,计算机可读存储介质(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. Optionally, the computer-readable storage medium includes, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. Further optionally, computer-readable storage media (a non-exhaustive list) include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理装置,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理装置中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理装置中的计算机可读存储介质中。The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, local area network, wide area network, and/or wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本申请操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本申请的各个方面。Computer program instructions for performing the operations of the present application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the present application are implemented by executing computer readable program instructions.

这里参照根据本申请实施方式中的方法、装置和计算机程序产品的流程图和/或框图描述了本申请的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatuses, and computer program products according to embodiments of the application. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器30,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器30执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions can be provided to the processor 30 of a general purpose computer, special purpose computer, or other programmable data processing device, thereby producing a machine such that these instructions are processed by the processor 30 of the computer or other programmable data processing device. When executed, means for implementing the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams are produced. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本申请的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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 application. In this regard, each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

以上对本申请实施方式所提供的内容进行了详细介绍,本文对本申请的原理及实施方式进行了阐述与说明,以上说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The content provided by the implementation of the application has been introduced in detail above, and the principle and implementation of the application have been described and explained in this paper. The above description is only used to help understand the method and core idea of the application; at the same time, for those in the field Ordinary technicians, based on the idea of this application, will have changes in specific implementation methods and application ranges. In summary, the content of this specification should not be construed as limiting this application.

Claims (9)

1.一种风扇的调节方法,应用于电子设备,所述电子设备运行应用程序,所述电子设备包括风扇,其特征在于,所述调节方法包括:1. A method for adjusting a fan, which is applied to an electronic device, the electronic device runs an application program, and the electronic device includes a fan, wherein the adjustment method includes: 根据所述应用程序的参数确定与所述应用程序对应的第一转速,并控制所述风扇以所述第一转速转动;其中,所述应用程序的参数包括所述应用程序的种类、所述应用程序的功耗、以及所述应用程序的数量中的一种情况或多种情况;Determine the first rotational speed corresponding to the application program according to the parameters of the application program, and control the fan to rotate at the first rotational speed; wherein, the parameters of the application program include the type of the application program, the one or more of the power consumption of the applications, and the number of said applications; 获取所述电子设备的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速;其中,所述环境参数包括所述应用程序被运行时的音量、及外界噪声音量中的至少一种;Acquire environmental parameters of the electronic device, and determine a second rotation speed corresponding to the application program according to the environmental parameters; wherein the environmental parameters include at least one of the volume of the application program when it is running and the volume of external noise A sort of; 当所述环境参数包括所述应用程序被运行时的音量,且所述应用程序被运行时的音量大于预设音量时,根据所述应用程序被运行时的音量确定与所述应用程序对应的第二转速;其中,所述第二转速大于或等于所述第一转速;或者,当所述环境参数包括所述应用程序被运行时的音量与所述外界噪声音量,且所述应用程序被运行时的音量大于所述外界噪声音量、及所述应用程序被运行时的音量大于预设音量时,根据所述应用程序被运行时的音量确定与所述应用程序对应的第二转速;其中,所述第二转速大于或等于所述第一转速;以及When the environmental parameters include the volume when the application is running, and the volume when the application is running is greater than the preset volume, determine the volume corresponding to the application according to the volume when the application is running second rotation speed; wherein, the second rotation speed is greater than or equal to the first rotation speed; or, when the environmental parameters include the volume of the application program running and the volume of the external noise, and the application program is activated When the running volume is greater than the external noise volume and the running volume of the application is greater than a preset volume, the second rotational speed corresponding to the application is determined according to the running volume of the application; wherein , the second rotational speed is greater than or equal to the first rotational speed; and 根据所述第一转速与所述第二转速控制所述风扇以目标转速转动;其中,所述目标转速为所述第一转速或所述第二转速,或者所述目标转速位于所述第一转速与所述第二转速之间。According to the first rotation speed and the second rotation speed, the fan is controlled to rotate at a target rotation speed; wherein, the target rotation speed is the first rotation speed or the second rotation speed, or the target rotation speed is located at the first between the speed and the second speed. 2.如权利要求1所述的调节方法,其特征在于,“根据所述第一转速与所述第二转速控制所述风扇以目标转速转动”包括:2. The adjustment method according to claim 1, wherein, "controlling the fan to rotate at a target speed according to the first speed and the second speed" comprises: 判断所述第一转速与所述第二转速的大小;judging the magnitude of the first rotational speed and the second rotational speed; 若所述第一转速大于所述第二转速,控制所述目标转速为所述第二转速。If the first rotational speed is greater than the second rotational speed, the target rotational speed is controlled to be the second rotational speed. 3.如权利要求1所述的调节方法,其特征在于,“根据所述第一转速与所述第二转速控制所述风扇以目标转速转动”包括:3. The adjustment method according to claim 1, wherein "controlling the fan to rotate at a target speed according to the first speed and the second speed" comprises: 判断所述第一转速与所述第二转速的大小;judging the magnitude of the first rotational speed and the second rotational speed; 若所述第一转速小于所述第二转速,控制所述目标转速为所述第一转速;或者,控制所述目标转速大于所述第一转速且小于或等于所述第二转速。If the first rotational speed is less than the second rotational speed, control the target rotational speed to be the first rotational speed; or control the target rotational speed to be greater than the first rotational speed and less than or equal to the second rotational speed. 4.如权利要求1所述的调节方法,其特征在于,“获取所述电子设备的环境参数,根据所述环境参数确定与所述应用程序对应的第二转速”包括:4. The adjustment method according to claim 1, characterized in that, "obtaining the environmental parameters of the electronic device, and determining the second rotational speed corresponding to the application program according to the environmental parameters" comprises: 获取所述电子设备的环境参数;其中,所述环境参数包括所述应用程序被运行时的音量、外界噪声音量、以及外界环境亮度中的至少一种;Acquiring environmental parameters of the electronic device; wherein the environmental parameters include at least one of the volume of the application when it is running, the volume of external noise, and the brightness of the external environment; 当所述环境参数包括所述应用程序被运行时的音量与所述外界噪声音量,且所述应用程序被运行时的音量小于所述外界噪声音量、及所述外界噪声音量小于预设音量时,根据所述外界噪声音量确定与所述应用程序对应的第二转速;其中,所述第二转速小于所述第一转速;When the environmental parameters include the volume of the application program running and the volume of the external noise, and the volume of the application program running is less than the volume of the external noise and the volume of the external noise is less than a preset volume , determining a second rotational speed corresponding to the application program according to the external noise volume; wherein, the second rotational speed is smaller than the first rotational speed; 或者,当所述环境参数包括所述应用程序被运行时的音量、所述外界噪声音量、以及所述外界环境亮度,且所述应用程序被运行时的音量小于所述外界噪声音量、所述外界噪声音量小于预设音量、以及所述外界环境亮度小于预设亮度时,根据所述外界噪声音量、及所述外界环境亮度确定与所述应用程序对应的第二转速;其中,所述第二转速小于所述第一转速。Or, when the environment parameters include the volume of the application program running, the volume of the external noise, and the brightness of the external environment, and the volume of the application program running is smaller than the volume of the external noise, the When the volume of the external noise is less than the preset volume and the brightness of the external environment is lower than the preset brightness, the second rotational speed corresponding to the application program is determined according to the volume of the external noise and the brightness of the external environment; wherein, the second The second rotational speed is smaller than the first rotational speed. 5.如权利要求1所述的调节方法,其特征在于,在“确定与所述应用程序对应的第一转速,并控制所述风扇以所述第一转速转动”之前,还包括:5. The adjustment method according to claim 1, further comprising: before "determining the first rotational speed corresponding to the application program and controlling the fan to rotate at the first rotational speed" 获取所述电子设备的开机信号;Obtaining a power-on signal of the electronic device; 根据所述开机信号控制所述风扇以第一初始转速转动。The fan is controlled to rotate at a first initial rotational speed according to the power-on signal. 6.如权利要求5所述的调节方法,其特征在于,“根据所述开机信号控制所述风扇以第一初始转速转动”包括:6. The adjustment method according to claim 5, wherein "controlling the fan to rotate at a first initial speed according to the power-on signal" comprises: 当检测到所述开机信号时,获取外界环境温度;When the power-on signal is detected, the external environment temperature is acquired; 根据所述外界环境温度控制所述风扇以第一初始转速转动。The fan is controlled to rotate at a first initial rotational speed according to the ambient temperature. 7.如权利要求6所述的调节方法,其特征在于,“当检测到所述开机信号时,获取外界环境温度”包括:7. The adjustment method according to claim 6, characterized in that, "obtaining the ambient temperature when the power-on signal is detected" comprises: 当检测到所述开机信号时,获取所述电子设备内的第一温度;acquiring a first temperature inside the electronic device when the power-on signal is detected; 获取在预设时间内所述电子设备内的多个第二温度;acquiring a plurality of second temperatures within the electronic device within a preset time; 根据所述第一温度、所述预设时间、以及所述多个第二温度得到温度变化模型;以及Obtaining a temperature change model according to the first temperature, the preset time, and the plurality of second temperatures; and 根据所述温度变化模型得到外界环境温度。The external ambient temperature is obtained according to the temperature change model. 8.如权利要求7所述的调节方法,其特征在于,在“根据所述开机信号控制所述风扇以第一初始转速转动”之后,还包括:8. The adjustment method according to claim 7, further comprising: after "controlling the fan to rotate at the first initial speed according to the start signal": 获取外界环境温度;Get the ambient temperature; 根据所述外界环境温度控制所述风扇以第二初始转速转动。The fan is controlled to rotate at a second initial rotational speed according to the ambient temperature. 9.一种电子设备,其特征在于,所述电子设备包括壳体、风扇、以及处理器,所述壳体内具有收容空间,所述风扇设于所述收容空间内,所述壳体设有连通所述收容空间的进气孔与出气孔,所述处理器设于所述收容空间内且电连接所述风扇,所述处理器用于执行如权利要求1-8任意一项所述的调节方法。9. An electronic device, characterized in that the electronic device comprises a housing, a fan, and a processor, the housing has a housing space, the fan is arranged in the housing space, and the housing is provided with The air inlet and the air outlet of the storage space are connected, the processor is arranged in the storage space and electrically connected to the fan, and the processor is used to perform the adjustment according to any one of claims 1-8 method.
CN202110242806.1A 2021-03-03 2021-03-03 Fan adjustment method, electronic equipment Expired - Fee Related CN112963371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110242806.1A CN112963371B (en) 2021-03-03 2021-03-03 Fan adjustment method, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110242806.1A CN112963371B (en) 2021-03-03 2021-03-03 Fan adjustment method, electronic equipment

Publications (2)

Publication Number Publication Date
CN112963371A CN112963371A (en) 2021-06-15
CN112963371B true CN112963371B (en) 2022-11-18

Family

ID=76276954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110242806.1A Expired - Fee Related CN112963371B (en) 2021-03-03 2021-03-03 Fan adjustment method, electronic equipment

Country Status (1)

Country Link
CN (1) CN112963371B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020121B (en) * 2021-11-02 2023-11-07 北京百度网讯科技有限公司 Method, device and equipment for controlling temperature of cloud mobile phone server
CN116360519A (en) * 2023-03-22 2023-06-30 苏州浪潮智能科技有限公司 A temperature control method, device, equipment and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464827A (en) * 2007-12-18 2009-06-24 英业达股份有限公司 Method and system for controlling rotating speed of fan
TWI392443B (en) * 2009-10-30 2013-04-01 Giga Byte Tech Co Ltd Control system and control method utilizing the same
GB2518659A (en) * 2013-09-27 2015-04-01 Alifabs Cabinets & Ancillaries Ltd Fan Controller
TWI536150B (en) * 2014-11-03 2016-06-01 緯創資通股份有限公司 Electronic apparatus and temperature control method thereof
CN110848164B (en) * 2019-09-29 2021-03-09 深圳市火乐科技发展有限公司 Rotating speed adjusting method and related product thereof

Also Published As

Publication number Publication date
CN112963371A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
RU2689203C2 (en) Flexible circuit for adjusting language model
US9076020B2 (en) Protected mode for mobile communication and other devices
CN112963371B (en) Fan adjustment method, electronic equipment
US20110239143A1 (en) Modifying avatar attributes
CN108566634B (en) Method, device and bluetooth speaker for reducing continuous wake-up delay of bluetooth speaker
CN112383817B (en) Volume adjustment method and device
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
US10783884B2 (en) Electronic device-awakening method and apparatus, device and computer-readable storage medium
WO2017215652A1 (en) Sound effect parameter adjustment method, and mobile terminal
CN110750734B (en) Weather display method, weather display device, computer equipment and computer readable storage medium
WO2018201746A1 (en) Video pre-loading method, device, video player and electronic device
WO2023071425A1 (en) Volume control method and apparatus, and electronic device and storage medium
US20130031477A1 (en) Mode notifications
CN109582274B (en) Volume adjusting method and device, electronic equipment and computer readable storage medium
CN112291672B (en) Speaker control method, control device and electronic device
CN112637422B (en) Vibration adjustment method, device, storage medium and electronic equipment
WO2023097768A1 (en) Electronic device control method and apparatus, and electronic device and readable storage medium
CN110603753A (en) Post-interaction metadata generation
CN107508983A (en) Volume adjustment method, device, storage medium and terminal equipment
US8843840B2 (en) Custom user interface presentation
JP2022095689A (en) Voice data noise reduction method, device, equipment, storage medium, and program
CN111383634B (en) Method and system for disabling a display of a smart display device according to a sound-based mechanism
WO2019061323A1 (en) Noise canceling method and terminal
CN112328351A (en) Animation display method, animation display device and terminal device
CN108513012B (en) Data processing method, data processing device and mobile terminal

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: 20221118