Electronic equipment, control method thereof, computer equipment and storage medium

Through distance detection and movement trajectory analysis, the operating frequency and emission power of electronic equipment are adjusted to solve the problem of heating of electronic equipment under high load, improve user experience and control radiation effects.

CN118555643APending Publication Date: 2024-08-27FIBOCOM WIRELESS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410657788.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing electronic devices cannot effectively manage heat when working under high loads, causing discomfort to the human body and affecting user experience.

Method used

The distance detection unit detects the distance between the electronic device and the preset target, determines the movement trajectory, and sends adjustment instructions to the functional unit according to the trajectory to adjust the operating frequency and emission power to control heat and electromagnetic radiation.

Benefits of technology

It effectively prevents electronic equipment from getting hot, improves user experience, and takes into account the working performance and radiation effects of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555643A
    Figure CN118555643A
Patent Text Reader

Abstract

The invention provides an electronic device, a control method thereof, a computer device and a storage medium. The control method of the electronic equipment comprises the following steps: S1, acquiring at least two distance values between the electronic equipment and a preset detection target in a preset time period; s2, determining a moving track of the preset detection target based on the at least two distance values; s3, sending an adjusting instruction to a first functional unit and / or a second functional unit according to the moving track, so that the first functional unit adjusts the working frequency and / or the second functional unit adjusts the transmitting power; wherein the first functional unit generates heat during working, and the second functional unit is used for transmitting a radio frequency signal. The electronic equipment provided by the invention applies the control method, so that discomfort brought to a human body due to generation of a large amount of heat can be avoided, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic equipment, and in particular to an electronic equipment and a control method thereof, a computer device and a storage medium. Background Art

[0002] There are many usage scenarios for electronic devices such as mobile phones and computers that need to run at optimal performance when the user is not around, such as video compression, file downloading, image rendering, etc., and they need to provide users with a better user experience when they are operating, such as not getting hot or affecting health. However, existing electronic devices are unable to manage heat, which results in high heat being generated on the user's hands, legs, and other parts of the human body when the electronic devices are working at full capacity, greatly affecting the user experience. Summary of the invention

[0003] The present invention aims to solve at least one of the problems existing in the prior art. To this end, the present invention provides an electronic device and a control method thereof, a computer device and a storage medium. The electronic device applies the control method to avoid generating a large amount of heat and causing discomfort to the human body, thereby improving the user experience.

[0004] In order to achieve the above object, in a first aspect, the present invention provides a control method of an electronic device, the control method comprising:

[0005] S1. Acquire at least two distance values ​​between the electronic device and a preset detection target within a preset time period;

[0006] S2. Determine a moving trajectory of the preset detection target based on the at least two distance values;

[0007] S3. Sending an adjustment instruction to the first functional unit and / or the second functional unit according to the moving trajectory, so that the first functional unit adjusts the operating frequency and / or the second functional unit adjusts the transmission power; wherein the first functional unit generates heat when working, and the second functional unit is used to transmit radio frequency signals.

[0008] In one embodiment, the determining the moving trajectory of the preset detection target based on the at least two distance values ​​includes:

[0009] If the last distance value of the at least two distance values ​​is smaller than the first distance value, it is determined that the movement trajectory is that the preset detection target is approaching the electronic device;

[0010] If the last distance value of the at least two distance values ​​is greater than the first distance value, it is determined that the movement trajectory is that the preset detection target moves away from the electronic device.

[0011] In one embodiment, sending an adjustment instruction to the first functional unit and / or the second functional unit according to the movement trajectory includes:

[0012] If the movement trajectory is that the preset detection target approaches the electronic device, determining whether the last distance value of the at least two distance values ​​is within a first preset distance threshold range;

[0013] If the last distance value is within the first preset distance threshold range, an adjustment instruction for reducing the operating frequency is sent to the first functional unit and / or an adjustment instruction for reducing the transmission power is sent to the second functional unit.

[0014] In one embodiment, sending an adjustment instruction to the first functional unit and / or the second functional unit according to the movement trajectory includes:

[0015] If the movement trajectory is that the preset detection target moves away from the electronic device, determining whether the last distance value of the at least two distance values ​​is within a second preset distance threshold range;

[0016] If the last distance value is within the second preset distance threshold range, an adjustment instruction to increase the operating frequency is sent to the first functional unit and / or an adjustment instruction to increase the transmission power is sent to the second functional unit.

[0017] In one embodiment, after acquiring at least two distance values ​​between the electronic device and a preset detection target within a preset time period, the control method further includes:

[0018] Determine a target distance value among the at least two distance values; wherein the target distance value is the last distance value detected within a preset time period;

[0019] An optimal operating frequency of the first functional unit and an optimal transmission power of the second functional unit are calculated according to the target distance value.

[0020] In one embodiment, sending the adjustment instruction to the first functional unit and / or the second functional unit according to the movement trajectory includes:

[0021] Acquire a current operating frequency of the first functional unit;

[0022] Determining whether the current operating frequency is consistent with the optimal operating frequency;

[0023] If they are inconsistent, the adjustment instruction is sent to the first functional unit, so that the first functional unit adjusts the operating frequency to the optimal operating frequency.

[0024] In one embodiment, sending an adjustment instruction to the first functional unit and / or the second functional unit according to the movement trajectory includes:

[0025] Acquire a current transmit power of the second functional unit;

[0026] Determining whether the current transmit power is consistent with the optimal transmit power;

[0027] If they are inconsistent, the adjustment instruction is sent to the second functional unit, so that the second functional unit adjusts the transmission power to the optimal transmission power.

[0028] In a second aspect, the present invention provides an electronic device, comprising:

[0029] A distance detection unit, used to detect the distance between the electronic device and a preset detection target;

[0030] A first functional unit can generate heat when working;

[0031] A second functional unit, configured to transmit a radio frequency signal; and

[0032] a control unit, connected to the distance detection unit, the first functional unit and the second functional unit respectively;

[0033] Among them, the control unit is used to obtain at least two distances between the electronic device and the preset detection target within a preset time period detected by the distance detection unit, and determine the moving trajectory of the preset detection target based on the at least two distance values, so as to send an adjustment instruction to the first functional unit and / or the second functional unit according to the moving trajectory, so that the first functional unit adjusts the operating frequency and / or the second functional unit adjusts the transmission power.

[0034] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the control method of the electronic device as described above when executing the computer program.

[0035] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the control method of the electronic device as described above.

[0036] In the electronic device and its control method, computer device and storage medium provided by the present invention, when the electronic device executes the control method, it can send adjustment instructions to the first functional unit and / or the second functional unit according to actual needs, so that the first functional unit adjusts the operating frequency and / or the second functional unit adjusts the transmission power, so as to adapt to different usage scenarios. Specifically, by sending an adjustment instruction to the first functional unit so that the first functional unit adjusts the operating frequency, the heat generated by the first functional unit when it is working can be effectively controlled, so as to avoid the electronic device getting hot and causing discomfort to the human body, which helps to improve the user experience of the electronic device; by sending an adjustment instruction to the second functional unit so that the second functional unit adjusts the transmission power, the working performance of the electronic device can be guaranteed, and at the same time, the electromagnetic radiation generated by the second functional unit can be effectively controlled, so as to avoid the radiation effect of the electronic device on the human body.

[0037] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 It is a structural block diagram of an electronic device provided by an embodiment of the present invention.

[0040] Figure 2 is a flow chart of a control method of an electronic device provided by an embodiment of the present invention.

[0041] Description of main reference numerals:

[0042] 100 - electronic device; 10 - distance detection unit; 20 - first functional unit; 30 - second functional unit; 40 - control unit. DETAILED DESCRIPTION

[0043] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0044] It should be noted that in the description of the present invention, the terms "first", "second", "third", etc. are used to distinguish different objects rather than to describe a specific order, and therefore cannot be understood as a limitation on the present application. In addition, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through other elements, or the internal connection of two elements; it can be a communication connection or an electrical connection, wherein both communication connection and electrical connection also include direct connection or indirect connection through other elements. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.

[0045] Please also read Figure 1 and Figure 2 , an embodiment of the present invention provides a control method of an electronic device, which is used to control an electronic device 100. The electronic device 100 may be a module with a communication function or a terminal device including the module, and the terminal device may be a mobile terminal or a smart terminal. Exemplarily, the module may be a wireless communication module, such as any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and a NB-IOT communication module; the mobile terminal may be at least one of a tablet computer, a mobile phone, and a laptop computer; the smart terminal may be a terminal including a wireless communication module, such as a smart watch and a smart cabinet.

[0046] like Figure 1 As shown, in an embodiment of the present invention, the electronic device 100 includes a distance detection unit 10, a first functional unit 20, a second functional unit 30 and a control unit 40, and the control unit 40 is respectively connected to the distance detection unit 10, the first functional unit 20 and the second functional unit 30. Among them, the distance detection unit 10 is used to detect the distance between the electronic device 100 and a preset detection target, and the preset detection target can be any human body; the first functional unit 20 can generate heat when working; the second functional unit 30 is used to transmit a radio frequency signal; the control unit 40 is used to execute the control method of the electronic device provided in the embodiment of the present invention to control the electronic device 100.

[0047] Specifically, Figure 2As shown, in an embodiment of the present invention, the control method includes: step S1, obtaining at least two distance values ​​between the electronic device 100 and a preset detection target within a preset time period; step S2, determining a moving trajectory of the preset detection target based on the at least two distance values; step S3, sending an adjustment instruction to the first functional unit 20 and / or the second functional unit 30 according to the moving trajectory, so that the first functional unit 20 adjusts the operating frequency and / or the second functional unit 30 adjusts the transmission power.

[0048] In an embodiment of the present invention, when the electronic device 100 executes the control method of the electronic device under the control of the control unit 40, it can send an adjustment instruction to the first functional unit 20 and / or the second functional unit 30 according to actual needs, so that the first functional unit 20 adjusts the working frequency and / or the second functional unit 30 adjusts the transmission power, so as to adapt to different usage scenarios. Specifically, by sending an adjustment instruction to the first functional unit 20 so that the first functional unit 20 adjusts the working frequency, the heat generated by the first functional unit 20 when working can be effectively controlled, so as to avoid the electronic device 100 getting hot and causing discomfort to the human body, which helps to improve the user experience of the electronic device 100; by sending an adjustment instruction to the second functional unit 30 so that the second functional unit 30 adjusts the transmission power, the working performance of the electronic device 100 can be guaranteed, and at the same time, the electromagnetic radiation generated by the second functional unit 30 can be effectively controlled, so as to avoid the radiation effect of the electronic device 100 on the human body.

[0049] Among them, it is not difficult to understand that, in some embodiments of the present invention, the control unit 40 can simultaneously send adjustment instructions to the first functional unit 20 and the second functional unit 30, so that the first functional unit 20 adjusts the working frequency and the second functional unit 30 adjusts the transmission power, so that the electronic device 100 takes into account both working performance and user use; in other embodiments of the present invention, the control unit 40 can only send adjustment instructions to the first functional unit 20, so that the first functional unit 20 adjusts the working frequency, thereby avoiding the electronic device 100 from getting hot and improving the user experience brought by the electronic device 100 to the user; in some other embodiments of the present invention, the control unit 40 can only send adjustment instructions to the second functional unit 30, so that the second functional unit 30 adjusts the transmission power, thereby ensuring the working performance of the electronic device 100 and avoiding the radiation effect of the electronic device 100 on the human body.

[0050] It should be noted that, in the embodiment of the present invention, the distance detection unit 10 is not limited to using at least one of the electronic components that can detect the distance, such as a distance sensor, a camera, and a millimeter wave radar. The first functional unit 20 includes but is not limited to at least one of the electronic components that generate heat when working, such as a CPU (central processing unit), a graphics card, and an acceleration card. The second functional unit 30 includes but is not limited to at least one of the electronic components for transmitting radio frequency signals, such as an antenna, a radio frequency transceiver, and a functional amplifier. The control unit 40 is not limited to using existing control devices such as a single-chip microcomputer chip and a processor. Among them, the distance detection unit 10 can use existing technology to detect the distance value between the electronic device 100 and the preset detection target, and the control unit 40 can use existing technology to send different adjustment instructions to the first functional unit 20 and the second functional unit 30, so that the first functional unit 20 adjusts the operating frequency and / or the second functional unit 30 adjusts the transmission power, which will not be described in detail.

[0051] Optionally, in one embodiment of the present invention, the distance detection unit 10 can detect the distance value between the electronic device 100 and the preset detection target once within any reasonable preset time period such as 1S, 3S, 5S, 10S, and at any reasonable interval of 0.1S, 0.3S, 0.5S, and then send each detected distance value to the control unit 40, so that the control unit 40 obtains at least two distance values ​​between the electronic device 100 and the preset detection target within the preset time period. Of course, in other embodiments of the present invention, the distance detection unit 10 can also detect the distance value between the electronic device 100 and the preset detection target in real time, and send the detected at least two distance values ​​to the control unit 40, which is not limited to this.

[0052] Also optionally, in one embodiment of the present invention, the step S2 of determining the moving trajectory of the preset detection target based on the at least two distance values ​​includes: if the last distance value of the at least two distance values ​​is less than the first distance value, then the moving trajectory is determined to be the preset detection target approaching the electronic device 100; if the last distance value of the at least two distance values ​​is greater than the first distance value, then the moving trajectory is determined to be the preset detection target moving away from the electronic device 100. In other words, in this embodiment, the control unit 40 can determine the moving trajectory of the preset detection target based on the comparison result of the last distance value and the first distance value between the electronic device 100 and the preset detection target obtained. Of course, in other embodiments of the present invention, the control unit 40 can also determine the moving trajectory of the preset detection target based on the overall change trend of the at least two distance values ​​obtained, for example, if the at least two distance values ​​show a decreasing trend one by one, then the moving trajectory is determined to be the preset detection target approaching the electronic device 100, and if the at least two distance values ​​show a gradually increasing trend, then the moving trajectory is determined to be the preset detection target moving away from the electronic device 100, and this is not limited.

[0053] Further, in one embodiment of the present invention, after step S2, the step S3 described in sending an adjustment instruction to the first functional unit 20 and / or the second functional unit 30 according to the moving trajectory specifically includes: if the moving trajectory is the preset detection target approaching the electronic device 100, then determining whether the last distance value of the at least two distance values ​​is within a first preset distance threshold range; if the last distance value is within the first preset distance threshold range, then sending an adjustment instruction to reduce the operating frequency to the first functional unit 20 and / or sending an adjustment instruction to reduce the transmission power to the second functional unit 30. That is, in this embodiment, the control unit 40 can send an adjustment instruction to reduce the working parameters to the first functional unit 20 and / or the second functional unit 30 when it is determined that the moving trajectory of the preset detection target is close to the electronic device 100 and the last distance value between the electronic device 100 and the preset detection target is within the first preset distance threshold range, so as to reduce the heat generated by the first functional unit 20 when working and / or reduce the electromagnetic radiation generated by the second functional unit 30, so as to avoid the electronic device 100 from getting hot and causing discomfort to the human body and / or avoid the electronic device 100 from causing radiation effects on the human body. Preferably, in this embodiment, when it is determined that the preset detection target is close to the electronic device 100 and the last distance value between the electronic device 100 and the preset detection target is within the first preset distance threshold range, the control unit 40 simultaneously sends an adjustment instruction to reduce the working parameters to the first functional unit 20 and the second functional unit 30, so as to achieve the dual purpose of avoiding the electronic device 100 from getting hot and causing discomfort to the human body and causing radiation effects on the human body.

[0054] Among them, optionally, in some embodiments of the present invention, the first preset distance threshold range is set to the first distance threshold range corresponding to the preset detection target and the electronic device 100 when the preset detection target is only affected by the heat generated by the operation of the first functional unit 20; optionally, in other embodiments of the present invention, the first preset distance threshold range is set to the second distance threshold range corresponding to the preset detection target and the electronic device 100 when the preset detection target is only affected by the electromagnetic radiation generated by the second functional unit 30; also optionally, in some other embodiments of the present invention, the first preset distance threshold range is set to the third distance threshold range corresponding to the preset detection target and the electronic device 100 when the preset detection target is affected by both the heat generated by the operation of the first functional unit 20 and the electromagnetic radiation generated by the second functional unit 30. It can be understood that the extent to which the preset detection target is affected by the heat generated by the operation of the first functional unit 20 is inversely proportional to the distance between the preset detection target and the electronic device 100, that is, the smaller the distance between the preset detection target and the electronic device 100, the greater the influence of the heat generated by the operation of the first functional unit 20 on the preset detection target; and the extent to which the preset detection target is affected by the electromagnetic radiation generated by the second functional unit 30 is related to the distance between the preset detection target and the electronic device 100 and the signal wave frequency of the radio frequency signal emitted by the second functional unit 30. Generally, the greater the signal wave frequency of the radio frequency signal, the greater the influence of the electromagnetic radiation generated by the second functional unit 30 on the preset detection target is inversely proportional to the distance between the preset detection target and the electronic device 100, and vice versa, the smaller the signal wave frequency of the radio frequency signal, the greater the influence of the electromagnetic radiation generated by the second functional unit 30 on the preset detection target is inversely proportional to the distance between the preset detection target and the electronic device 100. Therefore, the aforementioned first distance threshold range, second distance threshold range, and third distance threshold range need to be set according to the signal wave frequency of the radio frequency signal emitted by the second functional unit 30, which will not be elaborated on.

[0055] Preferably, in one embodiment of the present invention, after step S2, the sending of an adjustment instruction to the first functional unit 20 and / or the second functional unit 30 according to the moving trajectory in step S3 may also include: if the moving trajectory is that the preset detection target is away from the electronic device 100, determining whether the last distance value of the at least two distance values ​​is within a second preset distance threshold range; if the last distance value is within the second preset distance threshold range, sending an adjustment instruction to increase the operating frequency to the first functional unit 20 and / or sending an adjustment instruction to increase the transmission power to the second functional unit 30. That is, in this embodiment, when it is determined that the moving trajectory of the preset detection target is away from the electronic device 100 and the last distance value acquired between the electronic device 100 and the preset detection target is within the second preset distance threshold range, the control unit 40 can send an adjustment instruction to increase the working parameters to the first functional unit 20 and / or the second functional unit 30 to improve the working performance of the electronic device 100. At the same time, since the preset detection target is away from the electronic device 100, the heat and / or electromagnetic radiation generated by the electronic device 100 gradually reduces or even has no effect on the human body.

[0056] It is not difficult to understand that, similar to the aforementioned first preset distance threshold range, the second preset threshold range can be set as the distance threshold range corresponding to the preset detection target and the electronic device 100 when the preset detection target is only affected by the heat generated by the operation of the first functional unit 20 or the electromagnetic radiation generated by the second functional unit 30, or it can be set as the distance threshold range corresponding to the preset detection target and the electronic device 100 when the preset detection target is simultaneously affected by the heat generated by the operation of the first functional unit 20 and the electromagnetic radiation generated by the second functional unit 30, which will not be elaborated on.

[0057] Of course, in other embodiments of the present invention, the sending of adjustment instructions to the first functional unit 20 and / or the second functional unit 30 according to the moving trajectory may also only include sending an adjustment instruction to reduce the working parameters to the first functional unit 20 and / or the second functional unit 30 when it is determined that the preset detection target is close to the electronic device 100 and the last distance value is within the first preset distance threshold range, or only include sending an adjustment instruction to increase the working parameters to the first functional unit 20 and / or the second functional unit 30 when it is determined that the preset detection target is far away from the electronic device 100 and the last distance value is within the second preset distance threshold range, and there is no limitation on this.

[0058] Optionally, in another embodiment of the present invention, after obtaining at least two distance values ​​between the electronic device 100 and a preset detection target within a preset time period in step S1, the control method further includes the following steps:

[0059] Determine a target distance value among the at least two distance values, wherein the target distance value is the last distance value detected within a preset time period; and calculate an optimal operating frequency of the first functional unit 20 and an optimal transmission power of the second functional unit 30 according to the target distance value.

[0060] As mentioned above, when the distance between the electronic device 100 and the preset detection target is different, the heat impact and radiation impact generated by the electronic device 100 on the human body are different. Therefore, when the electronic device 100 and the preset detection target are at any distance value, the first functional unit 20 has a corresponding optimal operating frequency to take into account its own working performance and the heat impact on the human body. Similarly, the second functional unit 30 has a corresponding optimal transmission power to take into account its own working performance and the radiation impact on the human body.

[0061] Furthermore, in another embodiment of the present invention, based on the optimal operating frequency of the first functional unit 20 calculated in the above steps, the step S3 of sending an adjustment instruction to the first functional unit 20 and / or the second functional unit according to the moving trajectory includes the steps of: obtaining the current operating frequency of the first functional unit 20; determining whether the current operating frequency is consistent with the optimal operating frequency; if not, sending the adjustment instruction to the first functional unit 20 so that the first functional unit 20 adjusts the operating frequency to the optimal operating frequency.

[0062] Preferably, in another embodiment of the present invention, based on the optimal transmission power of the second functional unit 30 calculated in the above steps, the step S3 of sending an adjustment instruction to the first functional unit 20 and / or the second functional unit according to the moving trajectory also includes the steps of: obtaining the current transmission power of the second functional unit 30; determining whether the current transmission power is consistent with the optimal transmission power; if not, sending the adjustment instruction to the second functional unit 30 so that the second functional unit 30 adjusts the transmission power to the optimal transmission power.

[0063] In another embodiment of the present invention, by completing the above steps, the control unit 40 can calculate the optimal operating frequency corresponding to the first functional unit 20 and the optimal transmission power corresponding to the second functional unit 30 based on the last distance value between the electronic device 100 and the preset detection target detected by the distance detection unit 10, and then compare them with the current operating frequency of the first functional unit 20 and the current transmission power of the second functional unit 30 respectively, so that it can be determined whether the operating frequency of the first functional unit 20 and the transmission power of the second functional unit 30 need to be updated based on the comparison results, which can ensure that the electronic device 100 is always in the best working performance while avoiding heat and radiation effects on the human body.

[0064] Of course, in other embodiments of the present invention, the control unit 40 may also calculate only the optimal operating frequency of the first functional unit 20 according to the last distance value, and then compare it with the current operating frequency of the first functional unit 20, so as to determine whether it is necessary to update the operating frequency of the first functional unit 20 according to the comparison result; or, the control unit 40 may also calculate only the optimal transmission power of the second functional unit 30 according to the last distance value, and then compare it with the current transmission power of the second functional unit 30, so as to determine whether it is necessary to update the transmission power of the second functional unit 30 according to the comparison result, and there is no limitation on this.

[0065] It should be noted that the control unit 40 may use an existing algorithm to calculate the optimal operating frequency of the first functional unit 20 and the optimal transmission power of the second functional unit 30, which will not be elaborated herein.

[0066] It should also be noted that in any of the above embodiments, it can be understood by those skilled in the art that, in order to ensure the normal operation of the first functional unit 20 and the second functional unit 30, the adjusted operating frequency of the first functional unit 20 and the transmission power of the second functional unit 30 are still the normal operating frequency of the first functional unit 20 and the normal transmission power of the second functional unit 30. It can also be understood by those skilled in the art that for different heatable devices such as a central processing unit, a graphics card, an accelerator card, and different types of the same heatable device (such as different types of central processing units), the value range of their normal operating frequency is different, that is, the operating frequency of the first functional unit 20 will be different according to the actual application; similarly, for different RF devices such as an antenna, a RF transceiver, and different types of the same RF device (such as different types of antennas), the value range of their normal transmission power is different, that is, the transmission power of the second functional unit 30 will also be different according to the actual application.

[0067] For further information, please refer again to Figure 1 The embodiment of the present invention provides an electronic device 100, the electronic device 100 comprises a distance detection unit 10, a first functional unit 20, a second functional unit 30 and a control unit 40, the control unit 40 is connected to the distance detection unit 10, the first functional unit 20 and the second functional unit 30 respectively. The distance detection unit 10 is used to detect the distance between the electronic device 100 and a preset detection target (for example, a user); the first functional unit 20 can generate heat when working; the second functional unit 30 is used to transmit a radio frequency signal; the control unit 40 is used to obtain at least two distance values ​​between the electronic device 100 and the preset detection target detected by the distance detection unit 10 within a preset time period, and determine the moving trajectory of the preset detection target based on the at least two distance values, so as to send an adjustment instruction to the first functional unit 20 and / or the second functional unit 30 according to the moving trajectory, so that the first functional unit 20 adjusts the working frequency and / or the second functional unit 30 adjusts the transmission power, that is, the control unit 40 can be used as an execution subject to execute the control method of the electronic device provided by the embodiment of the present invention, thereby controlling the electronic device 100. For more details about the control method of the electronic device, please refer to the aforementioned related content, which will not be repeated here.

[0068] It should be noted that, similar to existing electronic devices, the electronic device 100 provided in the embodiment of the present invention may also include other components such as a housing and a memory, which will not be described in detail.

[0069] Furthermore, an embodiment of the present invention provides a computer device, including a memory and a processor, and the memory stores a computer program. When the processor executes the computer program, the corresponding steps of the control method of the electronic device described in any of the above embodiments are implemented. For more details, please refer to the aforementioned related content, which will not be repeated here.

[0070] Furthermore, an embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the corresponding steps of the control method of the electronic device described in any of the above embodiments are implemented. For more details, please refer to the aforementioned related content and will not be repeated here.

[0071] It will be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through the computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.

[0072] It should be noted that any reference to memory, storage, database or other media used in the embodiments of the present invention includes non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory, and random access memory (RAM) is available in various forms, including but not limited to static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0073] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0074] In the description of this specification, the description with reference to the terms "embodiment", "specific embodiment", "example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0075] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A control method for an electronic device, characterized in that: The control method comprises: S1. Acquire at least two distance values ​​between the electronic device and a preset detection target within a preset time period; S2. Determine a moving trajectory of the preset detection target based on the at least two distance values; S3. Sending an adjustment instruction to the first functional unit and / or the second functional unit according to the moving trajectory, so that the first functional unit adjusts the operating frequency and / or the second functional unit adjusts the transmission power; wherein the first functional unit generates heat when working, and the second functional unit is used to transmit radio frequency signals.

2. The control method of an electronic device according to claim 1, characterized in that: The determining the moving trajectory of the preset detection target based on the at least two distance values ​​includes: If the last distance value of the at least two distance values ​​is smaller than the first distance value, it is determined that the movement trajectory is that the preset detection target is approaching the electronic device; If the last distance value of the at least two distance values ​​is greater than the first distance value, it is determined that the movement trajectory is that the preset detection target moves away from the electronic device.

3. The control method of the electronic device according to claim 2, characterized in that: The sending of the adjustment instruction to the first functional unit and / or the second functional unit according to the movement trajectory includes: If the movement trajectory is that the preset detection target approaches the electronic device, determining whether the last distance value of the at least two distance values ​​is within a first preset distance threshold range; If the last distance value is within the first preset distance threshold range, an adjustment instruction for reducing the operating frequency is sent to the first functional unit and / or an adjustment instruction for reducing the transmission power is sent to the second functional unit.

4. The control method of an electronic device according to claim 2 or 3, characterized in that: The sending of the adjustment instruction to the first functional unit and / or the second functional unit according to the movement trajectory includes: If the movement trajectory is that the preset detection target moves away from the electronic device, determining whether the last distance value of the at least two distance values ​​is within a second preset distance threshold range; If the last distance value is within the second preset distance threshold range, an adjustment instruction to increase the operating frequency is sent to the first functional unit and / or an adjustment instruction to increase the transmission power is sent to the second functional unit.

5. The control method of an electronic device according to claim 1, characterized in that: After acquiring at least two distance values ​​between the electronic device and a preset detection target within a preset time period, the control method further includes: Determine a target distance value among the at least two distance values; wherein the target distance value is the last distance value detected within a preset time period; An optimal operating frequency of the first functional unit and an optimal transmission power of the second functional unit are calculated according to the target distance value.

6. The control method of the electronic device according to claim 5, characterized in that: The sending of the adjustment instruction to the first functional unit and / or the second functional unit according to the movement trajectory includes: Acquire a current operating frequency of the first functional unit; Determining whether the current operating frequency is consistent with the optimal operating frequency; If they are inconsistent, the adjustment instruction is sent to the first functional unit, so that the first functional unit adjusts the operating frequency to the optimal operating frequency.

7. The control method of an electronic device according to claim 5 or 6, characterized in that: The sending of the adjustment instruction to the first functional unit and / or the second functional unit according to the movement trajectory includes: Acquire a current transmit power of the second functional unit; Determining whether the current transmit power is consistent with the optimal transmit power; If they are inconsistent, sending the adjustment instruction to the second functional unit so that the second functional unit adjusts the transmission power to the optimal transmission power.

8. An electronic device, characterized in that: include: A distance detection unit, used to detect the distance between the electronic device and a preset detection target; A first functional unit can generate heat when working; A second functional unit, configured to transmit a radio frequency signal; as well as a control unit, connected to the distance detection unit, the first functional unit and the second functional unit respectively; Among them, the control unit is used to obtain at least two distances between the electronic device and the preset detection target within a preset time period detected by the distance detection unit, and determine the moving trajectory of the preset detection target based on the at least two distance values, so as to send an adjustment instruction to the first functional unit and / or the second functional unit according to the moving trajectory, so that the first functional unit adjusts the operating frequency and / or the second functional unit adjusts the transmission power.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the control method of the electronic device according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the control method of the electronic device according to any one of claims 1 to 7 is implemented.