Electronic equipment control method and device, terminal and storage medium
By using a temperature sensor to control the blower and heating mechanism in a head-mounted device, the fogging problem is solved, improving the comfort of use and saving energy.
Patent Information
- Application Number
- CN202311873329.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-08
AI Technical Summary
The lenses of the head-mounted devices are prone to fog during the initial wear or when the environment changes, which affects the use, and the prior art has not effectively solved it.
The lens temperature is obtained through the temperature sensor, compared with the preset threshold, controlled the operation of the blower and heating mechanism, and adjusted the lens temperature to prevent fog.
Effectively prevent lenses from fogging, reduce energy consumption, extend standby time, and improve comfort.
Smart Images

Figure CN120276276A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information technology, and particularly to a control method and device for an electronic device, a terminal, and a storage medium. Background Art
[0002] Some current electronic devices (e.g., head-mounted devices, such as VR (virtual reality) glasses) often focus on providing a better immersive experience for users. After the user initially wears and wears the head-mounted device for a long time, the gradual change in the temperature difference between the temperature of the head-mounted device itself and the ambient temperature will cause the problem of water vapor condensation on the lens. For example, when the temperature of the lens barrel is low and the ambient temperature is high, in a humid environment, the lens will fog up and the product cannot be used; when the environment is humid or there are liquids such as residual sweat on the face foam from the previous use, after wearing the head-mounted device, the facial environment is airtight and the temperature rises, resulting in water vapor condensing on the lens. Therefore, further improvement in this regard is expected. Summary of the Invention
[0003] To solve the existing problems, the present disclosure provides a control method and device for an electronic device, a terminal, and a storage medium.
[0004] The present disclosure adopts the following technical solutions.
[0005] An embodiment of the present disclosure provides a control method for an electronic device. The control method for the electronic device includes: obtaining a first temperature of a lens of the electronic device; determining whether the first temperature is less than a first preset threshold; when it is determined that the first temperature is less than the first preset threshold, making a blower mechanism and a heating mechanism of the electronic device work to increase the temperature of the lens, wherein the blower mechanism blows air towards the area where the lens is located and brings the heat generated by the heating mechanism towards the lens.
[0006] Another embodiment of the present disclosure provides a control device for an electronic device. The control device for the electronic device includes: a temperature acquisition module configured to obtain a first temperature of a lens of the electronic device; a temperature comparison module configured to determine whether the first temperature is less than a first preset threshold; a control module configured to, when it is determined that the first temperature is less than the first preset threshold, make a blower mechanism and a heating mechanism of the electronic device work to increase the temperature of the lens, wherein the blower mechanism blows air towards the area where the lens is located and brings the heat generated by the heating mechanism towards the lens.
[0007] In some embodiments, the present disclosure provides a terminal, including: at least one memory and at least one processor; wherein, the memory is used for storing program code, and the processor is used for calling the program code stored in the memory to execute the above-mentioned control method for the electronic device.
[0008] In some embodiments, the present disclosure provides a storage medium for storing program code for executing the control method of the above-mentioned electronic device.
[0009] By comparing the first temperature of the lens with a first preset threshold value to determine whether to operate the air blowing mechanism and the heating mechanism of the electronic device, it is possible to intelligently operate the air blowing mechanism and the heating mechanism of the electronic device at an appropriate time, which can not only prevent the problem of lens fogging, but also reduce unnecessary energy consumption and extend the standby time. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the elements and elements are not necessarily drawn to scale.
[0011] Figure 1 is a schematic flowchart of the control method of the electronic device according to some embodiments of the present disclosure.
[0012] Figure 2 is a schematic flowchart of the control method of the electronic device according to some embodiments of the present disclosure.
[0013] Figure 3 is a partial module of the control device for the electronic device according to some embodiments of the present disclosure.
[0014] Figure 4 is a schematic structural diagram of the electronic device according to some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0015] The embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0016] It should be understood that the various steps recorded in the method embodiments of the present disclosure can be executed sequentially and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.
[0017] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the following description.
[0018] It should be noted that concepts such as "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.
[0019] It should be noted that the modification of "a" mentioned in this disclosure is illustrative rather than restrictive. Those skilled in the art should understand that, unless clearly stated otherwise in the context, it should be understood as "one or more".
[0020] The names of the messages or information exchanged between multiple devices in the embodiments of this disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0021] Current head-mounted devices (e.g., VR glasses) often use soft materials to closely fit the product to the user's face to provide sufficient immersion for the user. To avoid light leakage, a full-circle sealing solution is also adopted, which will cause poor air circulation in the sealed space, leading to various problems. For example, when just putting on the VR glasses, due to the low temperature of the lens barrel, and the environmental humidity or the remaining sweat from the previous wear on the face foam, moisture will condense on the lens, causing the lens to fog up, resulting in the head-mounted device being unusable and requiring repeated removal and wiping many times to wipe off the water vapor; in some extreme environments, users will also encounter the problem that the lens fogs up when wearing, the water mist disappears when trying to wipe it off after taking it off, and the water mist appears again when putting it on again.
[0022] The purpose of this disclosure is to provide a lens anti-fogging solution with low cost, high reliability, and improved comfort in using head-mounted devices to solve the problem of lens fogging in head-mounted devices in different environments.
[0023] Figure 1The flowchart of the control method of the electronic device according to the embodiments of the present disclosure is provided. The control method of the electronic device of the present disclosure may include step S101 of obtaining the first temperature of the lens of the electronic device. In some embodiments, the electronic device includes a head-mounted device. In some embodiments, the head-mounted device is a VR glasses, an augmented reality (AR) glasses, an extended reality (XR) glasses, etc. In some embodiments, the first temperature of the lens of the electronic device may be obtained by a temperature sensor disposed on the barrel of the electronic device, wherein the lens is disposed in the barrel and the lens may be used to display the image presented by the electronic device.
[0024] In some embodiments, the method of the present disclosure may further include step S102 of determining whether the first temperature is less than a first preset threshold. In some embodiments, generally, the fogging phenomenon occurs when the lens temperature is low and the external environment is high. Therefore, it can be determined whether the lens temperature is too low. In some embodiments, the first preset threshold may be a suitable value such as 15 °C, 10 °C, 5 °C, 0 °C, etc.
[0025] In some embodiments, the method of the present disclosure may further include step S103 of, when it is determined that the first temperature is less than the first preset threshold, operating the air blowing mechanism and the heating mechanism of the electronic device to increase the temperature of the lens. In some embodiments, the air blowing mechanism blows air towards the area where the lens is located and brings the heat generated by the heating mechanism to the lens. In some embodiments, the air blowing mechanism includes a fan. In some embodiments, the heating mechanism includes a metal wire, a resistance wire, etc. In some embodiments, the air blowing mechanism and the heating mechanism of the electronic device may be disposed near the barrel, so that the air blowing mechanism can easily blow air towards the lens and bring the heat generated by the heating mechanism to the lens. In some embodiments, when it is determined that the first temperature is less than the first preset threshold, it indicates that the first temperature of the lens is low at this time. By the air blowing mechanism and the heating mechanism, the temperature of the lens can be increased and the fogging phenomenon of the lens can be eliminated.
[0026] By comparing the first temperature of the lens with the first preset threshold to determine whether to operate the air blowing mechanism and the heating mechanism of the electronic device, it is possible to intelligently operate the air blowing mechanism and the heating mechanism of the electronic device at an appropriate time, which can not only prevent the problem of lens fogging, but also reduce unnecessary energy consumption and extend the standby time.
[0027] In some embodiments, as Figure 2 shown, the method of the present disclosure may further include step S201 of obtaining the second temperature of the external environment. In some embodiments, the second temperature of the external environment may be obtained by an ambient temperature sensor disposed on the housing of the electronic device.
[0028] In some embodiments, the method of the present disclosure may further include step S202 of determining whether the second temperature is greater than the first temperature when it is determined that the first temperature is greater than or equal to the first preset threshold. In some embodiments, even if the first temperature of the lens is not low, but when the temperature difference between the first temperature of the lens and the external environment is large, the phenomenon of lens fogging is likely to occur. Therefore, in order to eliminate the lens fogging phenomenon as much as possible, when it is determined that the first temperature is greater than or equal to the first preset threshold, it is determined whether the second temperature is greater than the first temperature. If the second temperature is less than or equal to the first temperature, it indicates that the temperature of the lens is higher than the external environment, and generally the lens will not fog at this time.
[0029] In some embodiments, the method of the present disclosure may further include step S203 of determining whether the temperature difference between the second temperature and the first temperature is greater than the second preset threshold when it is determined that the second temperature is greater than the first temperature. In some embodiments, when it is determined that the second temperature is greater than the first temperature, it indicates that the temperature of the lens is lower than the external environment temperature at this time. If the temperature difference is large enough, the phenomenon of lens fogging may occur at this time. Therefore, it is determined whether the temperature difference between the second temperature and the first temperature is greater than the second preset threshold. In some embodiments, the second preset threshold may include appropriate values such as 10°C, 5°C, 3°C, etc.
[0030] In some embodiments, the method of the present disclosure may further include step S204 of operating the blower mechanism and the heating mechanism of the electronic device to increase the temperature of the lens when it is determined that the temperature difference between the second temperature and the first temperature is greater than the second preset threshold. In some embodiments, when the second temperature is higher than the first temperature and the temperature difference between the second temperature and the first temperature is greater than the second preset threshold, the probability of the lens fogging phenomenon is relatively high. Therefore, the blower mechanism and the heating mechanism of the electronic device are operated to increase the temperature of the lens, thereby eliminating the lens fogging phenomenon of the electronic device.
[0031] In some embodiments, when it is determined that the first temperature is less than the first preset threshold, operating the blower mechanism and the heating mechanism of the electronic device includes: determining the first difference between the first temperature and the first preset threshold; and adjusting the power of the blower mechanism and the power of the heating mechanism according to the first difference. In this way, the greater the first difference between the first temperature and the first preset threshold, the greater the power of the blower mechanism and the power of the heating mechanism can be adjusted, so that the conditions for eliminating lens fogging can be more quickly eliminated. When the first difference between the first temperature and the first preset threshold is small, the power of the blower mechanism and the power of the heating mechanism can be adjusted to be small, thereby saving the power consumption of the electronic device while eliminating the conditions for lens fogging.
[0032] In some embodiments, the first difference is proportional to both the power of the air blowing mechanism and the power of the heating mechanism. That is, the larger the first difference, the correspondingly greater the power of the air blowing mechanism and the power of the heating mechanism. In some embodiments, the first difference can be divided into multiple different ranges, and each range corresponds to a corresponding power of the air blowing mechanism and a corresponding power of the heating mechanism. Thus, the corresponding relationship between the first difference and the power of the air blowing mechanism and the power of the heating mechanism is achieved.
[0033] In some embodiments, when it is determined that the temperature difference between the second temperature and the first temperature is greater than the second preset threshold, making the air blowing mechanism and the heating mechanism of the electronic device work includes: determining a second difference between the temperature difference and the second preset threshold; adjusting the power of the air blowing mechanism and the power of the heating mechanism according to the second difference. In this way, the larger the second difference between the temperature difference and the second preset threshold, the greater the power of the air blowing mechanism and the power of the heating mechanism can be adjusted, so that the conditions for the lens to fog up can be eliminated more quickly. When the second difference between the temperature difference and the second preset threshold is small, the power of the air blowing mechanism and the power of the heating mechanism can be adjusted to be small, so as to save the power consumption of the electronic device while eliminating the conditions for the lens to fog up.
[0034] In some embodiments, the second difference is proportional to both the power of the air blowing mechanism and the power of the heating mechanism. That is, the larger the second difference, the correspondingly greater the power of the air blowing mechanism and the power of the heating mechanism. In some embodiments, the second difference can be divided into multiple different ranges, and each range corresponds to a corresponding power of the air blowing mechanism and a corresponding power of the heating mechanism. Thus, the corresponding relationship between the second difference and the power of the air blowing mechanism and the power of the heating mechanism is achieved.
[0035] In some embodiments, the control method of the electronic device further includes: when it is determined that the second temperature is less than or equal to the first temperature, or when it is determined that the temperature difference between the second temperature and the first temperature is less than or equal to the second preset threshold, the air blowing mechanism and the heating mechanism of the electronic device do not work. In some embodiments, when it is determined that the second temperature is less than or equal to the first temperature, or when it is determined that the temperature difference between the second temperature and the first temperature is less than or equal to the second preset threshold, it indicates that the probability of the lens fogging up at this time is relatively low, and the air blowing mechanism and the heating mechanism of the electronic device can not work, so as to save the power consumption of the electronic device.
[0036] In some embodiments, the first temperature of the lens and the second temperature of the external environment can be obtained in real time to determine whether it is necessary to make the air blowing mechanism and the heating mechanism of the electronic device work. In some embodiments, switches for adjusting the air blowing mechanism and the heating mechanism of the electronic device and buttons for adjusting the power magnitude can also be provided on the electronic device. When the user expects to manually adjust the on / off and power magnitude of the air blowing mechanism and the heating mechanism of the electronic device, manual adjustment can be performed.
[0037] Embodiments of the present disclosure also provide a control device 400 for an electronic device. The control device 400 for an electronic device includes a temperature acquisition module 401, a temperature comparison module 402, and a control module 403. In some embodiments, the temperature acquisition module 401 is configured to acquire a first temperature of a lens of the electronic device. In some embodiments, the temperature comparison module 402 is configured to determine whether the first temperature is less than a first preset threshold. In some embodiments, the control module 403 is configured to, when it is determined that the first temperature is less than the first preset threshold, operate a blower mechanism and a heating mechanism of the electronic device to increase the temperature of the lens, wherein the blower mechanism blows air towards the area where the lens is located and conveys the heat generated by the heating mechanism to the lens.
[0038] It should be understood that the content described with respect to the control method of the electronic device also applies to the control device 400 for the electronic device herein, and for the sake of simplicity, it will not be described in detail here.
[0039] In some embodiments, the temperature acquisition module is further configured to acquire a second temperature of the external environment;
[0040] The temperature comparison module is further configured to, when it is determined that the first temperature is greater than or equal to the first preset threshold, determine whether the second temperature is greater than the first temperature; when it is determined that the second temperature is greater than the first temperature, determine whether the temperature difference between the second temperature and the first temperature is greater than a second preset threshold; the control module is further configured to, when it is determined that the temperature difference between the second temperature and the first temperature is greater than the second preset threshold, operate the blower mechanism and the heating mechanism of the electronic device to increase the temperature of the lens. In some embodiments, when it is determined that the first temperature is less than the first preset threshold, operating the blower mechanism and the heating mechanism of the electronic device includes: determining a first difference between the first temperature and the first preset threshold; adjusting the power of the blower mechanism and the power of the heating mechanism according to the first difference. In some embodiments, the first difference is proportional to both the power of the blower mechanism and the power of the heating mechanism. In some embodiments, when it is determined that the temperature difference between the second temperature and the first temperature is greater than the second preset threshold, operating the blower mechanism and the heating mechanism of the electronic device includes: determining a second difference between the temperature difference and the second preset threshold; adjusting the power of the blower mechanism and the power of the heating mechanism according to the second difference. In some embodiments, the second difference is proportional to both the power of the blower mechanism and the power of the heating mechanism. In some embodiments, the control module is further configured to: when it is determined that the second temperature is less than or equal to the first temperature, or when it is determined that the temperature difference between the second temperature and the first temperature is less than or equal to the second preset threshold, the blower mechanism and the heating mechanism of the electronic device do not operate.
[0041] In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; wherein, the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the control method of the above-mentioned electronic device.
[0042] In addition, the present disclosure also provides a computer storage medium, which stores program codes for executing the control method of the above-mentioned electronic device.
[0043] As mentioned above, the control method and device of the electronic device of the present disclosure are illustrated based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, and the following describes these terminal and storage medium.
[0044] Next, with reference to Figure 4 , which shows a schematic structural diagram of an electronic device (such as a terminal device or a server) 500 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.
[0045] As Figure 4 shown, the electronic device 500 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 501, which may perform various appropriate actions and processes according to the programs stored in the read-only memory (ROM) 502 or the programs loaded from the storage device 508 into the random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0046] Generally, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 4An electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.
[0047] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the methods of the embodiments of the present disclosure are performed.
[0048] It should be noted that the above computer-readable medium in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. And in the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program codes. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program codes contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0049] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0050] The above computer-readable medium can be included in the above electronic device; or can exist separately without being assembled into the electronic device.
[0051] The above computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is caused to execute the method of the present disclosure as described above.
[0052] Computer program code for performing the operations of the present disclosure can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the “C” language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).
[0053] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0054] The units involved in the embodiments described in the present disclosure can be implemented in software or in hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0055] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, exemplary hardware logic components that may be used include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0056] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0057] According to one or more embodiments of the present disclosure, a control method for an electronic device is provided. The control method for the electronic device includes: obtaining a first temperature of a lens of the electronic device; determining whether the first temperature is less than a first preset threshold; when it is determined that the first temperature is less than the first preset threshold, operating a blower mechanism and a heating mechanism of the electronic device to increase the temperature of the lens, wherein the blower mechanism blows air towards the area where the lens is located and brings the heat generated by the heating mechanism to the lens.
[0058] According to one or more embodiments of the present disclosure, the control method further includes: obtaining a second temperature of the external environment; when it is determined that the first temperature is greater than or equal to the first preset threshold, determining whether the second temperature is greater than the first temperature; when it is determined that the second temperature is greater than the first temperature, determining whether a temperature difference between the second temperature and the first temperature is greater than a second preset threshold; when it is determined that the temperature difference between the second temperature and the first temperature is greater than the second preset threshold, operating the blower mechanism and the heating mechanism of the electronic device to increase the temperature of the lens.
[0059] According to one or more embodiments of the present disclosure, when it is determined that the first temperature is less than the first preset threshold, operating the blower mechanism and the heating mechanism of the electronic device includes: determining a first difference between the first temperature and the first preset threshold; adjusting the power of the blower mechanism and the power of the heating mechanism according to the first difference.
[0060] According to one or more embodiments of the present disclosure, the first difference is directly proportional to both the power of the blower mechanism and the power of the heating mechanism.
[0061] According to one or more embodiments of the present disclosure, when it is determined that the temperature difference between the second temperature and the first temperature is greater than the second preset threshold, operating the blower mechanism and the heating mechanism of the electronic device includes: determining a second difference between the temperature difference and the second preset threshold; adjusting the power of the blower mechanism and the power of the heating mechanism according to the second difference.
[0062] According to one or more embodiments of the present disclosure, the second difference is directly proportional to both the power of the blower mechanism and the power of the heating mechanism.
[0063] According to one or more embodiments of the present disclosure, the control method further includes: when it is determined that the second temperature is less than or equal to the first temperature, or when it is determined that the temperature difference between the second temperature and the first temperature is less than or equal to the second preset threshold, the blower mechanism and the heating mechanism of the electronic device do not operate.
[0064] According to one or more embodiments of the present disclosure, a control device for an electronic device is further provided. The control device for the electronic device includes: a temperature acquisition module configured to acquire a first temperature of a lens of the electronic device; a temperature comparison module configured to determine whether the first temperature is less than a first preset threshold; and a control module configured to, when it is determined that the first temperature is less than the first preset threshold, cause a blowing mechanism and a heating mechanism of the electronic device to operate to increase the temperature of the lens, wherein the blowing mechanism blows air toward the area where the lens is located and brings the heat generated by the heating mechanism to the lens.
[0065] According to one or more embodiments of the present disclosure, a terminal is provided, including: at least one memory and at least one processor; wherein, the at least one memory is used for storing program codes, and the at least one processor is used for calling the program codes stored in the at least one memory to execute the method described in any one of the above.
[0066] According to one or more embodiments of the present disclosure, a storage medium is provided. The storage medium is used for storing program codes, and the program codes are used for executing the above method.
[0067] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0068] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented combinatorially in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0069] Although the subject matter has been described in language specific to structural features and / or methodological acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A control method for an electronic device, characterized in that, The control method includes: Obtaining a first temperature of a lens of the electronic device; Determining whether the first temperature is less than a first preset threshold; When it is determined that the first temperature is less than the first preset threshold, making a blower mechanism and a heating mechanism of the electronic device operate to increase the temperature of the lens, wherein the blower mechanism blows air towards the area where the lens is located and brings the heat generated by the heating mechanism to the lens.
2. The control method of the electronic device according to claim 1, characterized in that, The control method further includes: Obtaining a second temperature of the external environment; When it is determined that the first temperature is greater than or equal to the first preset threshold, determining whether the second temperature is greater than the first temperature; When it is determined that the second temperature is greater than the first temperature, determining whether a temperature difference between the second temperature and the first temperature is greater than a second preset threshold; When it is determined that the temperature difference between the second temperature and the first temperature is greater than the second preset threshold, making the blower mechanism and the heating mechanism of the electronic device operate to increase the temperature of the lens.
3. The control method of the electronic device according to claim 1, wherein When it is determined that the first temperature is less than the first preset threshold, making the blower mechanism and the heating mechanism of the electronic device operate includes: Determining a first difference between the first temperature and the first preset threshold; Adjusting the power of the blower mechanism and the power of the heating mechanism according to the first difference.
4. The control method of the electronic device according to claim 3, wherein, The first difference is directly proportional to both the power of the blower mechanism and the power of the heating mechanism.
5. The control method of the electronic device according to claim 2, wherein When it is determined that the temperature difference between the second temperature and the first temperature is greater than the second preset threshold, making the blower mechanism and the heating mechanism of the electronic device operate includes: Determining a second difference between the temperature difference and the second preset threshold; Adjusting the power of the blower mechanism and the power of the heating mechanism according to the second difference.
6. The control method of the electronic device according to claim 5, characterized in that, The second difference is directly proportional to both the power of the blower mechanism and the power of the heating mechanism.
7. The control method of the electronic device according to claim 2, wherein The control method further includes: When it is determined that the second temperature is less than or equal to the first temperature, or when it is determined that the temperature difference between the second temperature and the first temperature is less than or equal to the second preset threshold, the blower mechanism and the heating mechanism of the electronic device do not operate.
8. A control device for an electronic device, characterized in that, The control device of the electronic device includes: A temperature acquisition module configured to obtain a first temperature of a lens of the electronic device; A temperature comparison module configured to determine whether the first temperature is less than a first preset threshold; A control module configured to, when it is determined that the first temperature is less than the first preset threshold, make a blower mechanism and a heating mechanism of the electronic device operate to increase the temperature of the lens, wherein the blower mechanism blows air towards the area where the lens is located and brings the heat generated by the heating mechanism to the lens.
9. A terminal, including: At least one memory and at least one processor; Wherein, the at least one memory is used for storing program codes, and the at least one processor is used for calling the program codes stored in the at least one memory to execute the control method of the electronic device according to any one of claims 1 to 7.
10. A storage medium for storing program code for executing the control method of the electronic device according to any one of claims 1 to 7.