Flash lamp control method, system and equipment

By applying a film-type temperature sensor to the flash, obtaining its resistance value and controlling the working state of the flash, the problem of inaccurate tracking of the flash temperature rise rate in the prior art is solved, and accurate temperature regulation and service life are achieved.

CN119922795APending Publication Date: 2025-05-02GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510355471.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

In the prior art, the temperature sensor of the flash device is far away from the temperature sensor of the motherboard, which makes it impossible to accurately follow the temperature rise rate of the flash, causing a large deviation in the temperature control value of the generator and there is a risk of overtemperature.

Method used

A thin-film temperature sensor is used to apply it to the inner or outer surface of the flash lamp to obtain the collected resistance values, and control the working state of the flash lamp based on these resistance values.

Benefits of technology

By shortening the distance between the temperature sensor and the flash, the temperature of the flash can be accurately estimated, thereby accurately adjusting its working state, avoiding the risk of overtemperature, and extending the service life of the flash.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922795A_ABST
    Figure CN119922795A_ABST
Patent Text Reader

Abstract

The invention discloses a flash lamp control method, system and equipment. The method comprises the following steps: acquiring a resistance value acquired by a thin film type temperature sensor; wherein the film type temperature sensor is attached to the inner surface or the outer surface of the flash lamp; and controlling the working state of the flash lamp based on the resistance value. Therefore, the thin film type temperature sensor is attached to the inner surface or the outer surface of the flash lamp, so that the thin film type temperature sensor is close to the flash lamp, the temperature of the flash lamp can be accurately estimated based on the resistance value acquired by the thin film type temperature sensor, and the working state of the flash lamp can be accurately adjusted. Therefore, the purpose of temperature adjustment is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to control technology, and in particular to a flash control method, system and device. Background Art

[0002] Mobile phones, tablets and other electronic devices are equipped with flash devices. Flash devices are generally placed near the outer shell of electronic products. The temperature sensor on the motherboard is far away from the flash device, and the heat transfer resistance is large. Therefore, the temperature sensor on the motherboard cannot truly follow the temperature rise rate of the flash device, resulting in a large deviation in the device temperature control value and the risk of overheating. Summary of the invention

[0003] The present application provides a flash control method, system, device, and storage medium.

[0004] The technical solution of this application is implemented as follows:

[0005] In a first aspect, a method for controlling a flashlight is provided, the method comprising:

[0006] Obtaining a resistance value collected by a thin-film temperature sensor; wherein the thin-film temperature sensor is attached to the inner surface or the outer surface of the flash lamp;

[0007] Based on the resistance value, the working state of the flash lamp is controlled.

[0008] In a second aspect, a control system for a flashlight is provided, the system comprising:

[0009] A thin film temperature sensor, used to collect resistance values; wherein the thin film temperature sensor is attached to the inner surface or outer surface of the flash lamp;

[0010] A main control module, used for acquiring the resistance value collected by the thin film temperature sensor;

[0011] The main control module is further used to control the working state of the flash lamp based on the resistance value.

[0012] According to a third aspect, an electronic device is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor, wherein the processor is configured to execute the steps of the method of the first aspect when running the computer program.

[0013] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.

[0014] According to a fifth aspect, a computer program product is provided, comprising a computer program, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.

[0015] The present application provides a control method and system, device, and storage medium for a flash lamp, the method comprising: obtaining a resistance value collected by a thin film temperature sensor; wherein the thin film temperature sensor is attached to the inner surface or the outer surface of the flash lamp; and controlling the working state of the flash lamp based on the resistance value. In this way, the thin film temperature sensor is attached to the inner surface or the outer surface of the flash lamp, so that the thin film temperature sensor is very close to the flash lamp, so that the temperature of the flash lamp can be accurately estimated based on the resistance value collected by the thin film temperature sensor, thereby accurately adjusting the working state of the flash lamp to achieve the purpose of temperature regulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 The process diagram of the flash control method in the embodiment of the present application is as follows Figure 1 ;

[0017] Figure 2 The process diagram of the flash control method in the embodiment of the present application is as follows Figure 2 ;

[0018] Figure 3 The process diagram of the flash control method in the embodiment of the present application is as follows Figure 3 ;

[0019] Figure 4 A schematic diagram of the structure of the control device of the flashlight in the embodiment of the present application;

[0020] Figure 5 It is a schematic diagram of the structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this embodiment and are not intended to limit this application.

[0023] In the following description, references to “some embodiments,” “this embodiment,” “this embodiment,” and examples, etc., describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.

[0024] If similar descriptions of "first / second" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the present embodiment described here can be implemented in an order other than that illustrated or described here.

[0025] In this embodiment, the term "and / or" is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, object A and / or object B may represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0026] The present application provides a method for controlling a flashlight. Figure 1 The process diagram of the flash control method in the embodiment of the present application is as follows Figure 1 , used in electronic devices, including but not limited to smartphones, tablets and cameras. Figure 1 As shown, the control method of the flash lamp includes the following steps:

[0027] S101: Obtaining a resistance value collected by a thin-film temperature sensor; wherein the thin-film temperature sensor is attached to an inner surface or an outer surface of a flash lamp.

[0028] In the embodiment of the present application, the thin film temperature sensor is a temperature sensor based on a thin film material. The thin film temperature sensor works by utilizing the property that the resistance of the thin film material changes with temperature. When the external temperature changes, the resistance value of the thin film material will change accordingly. Therefore, the thin film temperature sensor can directly measure and reflect the change in resistance value. At the same time, through specific calibration or conversion, the change in resistance value can also be converted into a temperature value.

[0029] In an embodiment of the present application, a thin film temperature sensor is attached to the inner surface or outer surface of the flash lamp, so that the thin film temperature sensor is very close to the flash lamp. In this way, the temperature of the flash lamp can be accurately estimated based on the resistance value collected by the thin film temperature sensor, thereby accurately adjusting the working state of the flash lamp to achieve the purpose of temperature regulation.

[0030] S102: Based on the resistance value, control the working state of the flash lamp.

[0031] In some embodiments of the present application, the thin film temperature sensor and the copper foil trace are formed into an integrated structure, and the copper foil trace is a copper foil trace of a flexible printed circuit board directly connected to the flash lamp.

[0032] In the embodiment of the present application, when the flash is connected to the device mainboard through a flexible printed circuit board (FPC), the thin film temperature sensor and the copper foil wiring of the flexible printed circuit board are made into an integrated structure, and the flexible printed circuit board is arranged in the internal space of the flash, or is attached to the inner / outer surface of the flash, so that the thin film temperature sensor is very close to the flash, so that the temperature of the flash can be accurately estimated based on the resistance value collected by the thin film temperature sensor, so as to accurately adjust the working state of the flash to achieve the purpose of temperature regulation and ensure that the flash will not be damaged. Among them, the device mainboard is used to power the flash through the flexible printed circuit board.

[0033] In some embodiments of the present application, the thin film temperature sensor and the copper foil wiring are formed into an integrated structure, and the copper foil wiring is a copper foil wiring of a device main board or a sub-board directly connected to the flash lamp.

[0034] In the embodiment of the present application, when the flashlight is directly connected to the device mainboard, the device mainboard is arranged outside the flashlight, and the thin-film temperature sensor can be formed into an integrated structure with the copper foil trace of the device mainboard directly below the flashlight, or other positions, as long as the distance from the flashlight is within the preset threshold range, the accuracy of the collected resistance value can be guaranteed within the preset threshold range, and then the temperature of the flashlight can be accurately estimated, so as to accurately adjust the working state of the flashlight, so as to achieve the purpose of temperature regulation and ensure that the flashlight will not be damaged. Among them, the device mainboard is used to directly power the flashlight.

[0035] In the embodiment of the present application, when the flashlight is directly connected to the device sub-board, the device sub-board is arranged inside the flashlight, and the thin film temperature sensor and the copper foil wiring of the device sub-board are formed into an integrated structure; when the device sub-board is arranged outside the flashlight, the thin film temperature sensor can be formed into an integrated structure with the copper foil wiring of the device sub-board directly below the flashlight, or other positions, as long as it is within the preset threshold range of the flashlight, the accuracy of the collected resistance value can be guaranteed within the preset threshold range, and then the temperature of the flashlight can be accurately estimated, so as to accurately adjust the working state of the flashlight, so as to achieve the purpose of temperature regulation and ensure that the flashlight will not be damaged. Among them, the device sub-board is used to directly power the flashlight. The device sub-board can be understood as a board smaller than the main board.

[0036] In some embodiments of the present application, controlling the working state of the flash lamp based on the resistance value includes the following steps:

[0037] S201: Based on the resistance value, the temperature of the flash lamp is obtained.

[0038] In some embodiments of the present application, obtaining the temperature of the flash lamp based on the resistance value includes: obtaining the temperature of the flash lamp corresponding to the resistance value based on a corresponding relationship between a preset resistance value and a preset temperature.

[0039] In an embodiment of the present application, a correspondence between a set of preset resistance values ​​and preset temperatures is established. This correspondence is usually obtained through experimental measurement. In the experiment, a series of known temperature points are selected, and then the resistance of a specific resistor in the flash lamp at these temperature points is measured. Through this set of data, a curve between the resistance value and the temperature can be drawn, or a mathematical model can be established to describe the relationship between them. Based on this, when the resistance value is collected, the resistance value can be substituted into the preset correspondence to solve the corresponding temperature value. Among them, the preset correspondence can be linear (that is, there is a linear relationship between the resistance value and the temperature), or non-linear (such as a quadratic curve, an exponential function, etc.).

[0040] S202: When the temperature of the flash lamp meets a preset condition, a first control signal is sent to the control module, so that the control module controls the flash lamp to be in an off state, or reduces the driving current of the flash lamp.

[0041] S203: When the temperature of the flash lamp does not meet the preset condition, a second control signal is sent to the control module, so that the control module controls the flash lamp to maintain the current working state, or increases the driving current of the flash lamp.

[0042] In the embodiment of the present application, the preset condition refers to a condition indicating that the temperature of the flash lamp is too high.

[0043] In the embodiment of the present application, the first control signal is used to indicate that the temperature of the flash lamp meets the preset condition. The second control signal is used to indicate that the temperature of the flash lamp does not meet the preset condition.

[0044] In some embodiments of the present application, the preset condition includes: the temperature of the flash lamp is greater than a preset temperature threshold.

[0045] The preset temperature threshold may be understood as the maximum temperature value that the flash lamp can withstand.

[0046] In the embodiment of the present application, when the temperature of the flash lamp meets the preset condition, it means that the temperature of the flash lamp is too high. If the temperature of the flash lamp continues to rise, the flash lamp will be damaged. Therefore, the drive current can be directly set to zero to control the flash lamp to be in an off state, or the current drive current of the flash lamp can be reduced to reduce the brightness of the flash lamp and gradually reduce the temperature of the flash lamp until the temperature of the flash lamp does not meet the preset condition, so that the flash lamp will not be damaged. It should be noted that the current drive current can be reduced step by step based on the preset drive current, or the current drive current can be directly reduced to the preset drive current.

[0047] Based on this, the current driving current is gradually reduced based on the preset driving current, which can avoid the sudden dimming of the light of the flash lamp due to a sudden decrease in the driving current, thereby avoiding the user's discomfort with the sudden dimming of the flash lamp.

[0048] In the embodiment of the present application, when the temperature of the flash lamp does not meet the preset condition, it means that the temperature of the flash lamp is within the safe temperature range, and therefore, the flash lamp can be controlled to maintain the current working state with the current driving current, or the current driving current can be increased to the first driving current to control the flash lamp to be in the on state and increase the brightness of the flash lamp. It should be noted that the current driving current can be increased step by step to the first driving current based on the preset driving current, or the current driving current can be directly jumped to the first driving current.

[0049] Based on this, by gradually increasing the current driving current based on the preset driving current, it is possible to avoid a sudden increase in the driving current causing the light of the flash to suddenly become brighter, thereby avoiding the user's discomfort with the sudden brightness of the flash.

[0050] In an embodiment of the present application, when the temperature of the flash does not meet the preset conditions, a second control signal is sent to the control module, so that when the control module detects that the working mode of the flash is the flashlight mode, the flash is controlled to be in a constant state; or, when the control module detects that the working mode of the flash is the fill light mode, the flash is controlled to be in a constant state; or, when the control module detects that the working mode of the flash is the flash mode, the flash is controlled to be in a flash state.

[0051] In some embodiments of the present application, different operating modes of the flash lamp correspond to different reduction operations or increase operations of the driving current of the flash lamp.

[0052] Exemplarily, when the temperature of the flashlight meets the preset conditions and the working mode of the flashlight is the flashlight mode, the driving current of the flashlight is reduced to the first driving current. When the temperature of the flashlight meets the preset conditions and the working mode of the flashlight is the fill light mode, the driving current of the flashlight is reduced to the second driving current. When the temperature of the flashlight meets the preset conditions and the working mode of the flashlight is the fill light mode, the driving current of the flashlight is reduced to the third driving current. The first driving current is greater than the second driving current, and the second driving current is greater than the third driving current.

[0053] Exemplarily, when the temperature of the flash does not meet the preset conditions and the working mode of the flash is the flashlight mode, the driving current of the flash is increased to the fourth driving current. When the temperature of the flash does not meet the preset conditions and the working mode of the flash is the fill light mode, the driving current of the flash is increased to the fifth driving current. When the temperature of the flash does not meet the preset conditions and the working mode of the flash is the fill light mode, the driving current of the flash is increased to the sixth driving current. Among them, the fourth driving current is greater than the fifth driving current, and the fifth driving current is greater than the sixth driving current.

[0054] In some embodiments of the present application, the method further includes:

[0055] When the temperature of the flash lamp meets a preset condition, a prompt message is output, where the prompt message is used to prompt a user that the current temperature of the flash lamp is too high.

[0056] Based on this, users can choose to turn off the flash on their own.

[0057] In some embodiments of the present application, obtaining the resistance value collected by the thin film temperature sensor includes: when it is detected that the flash is turned on, obtaining the resistance value collected by the thin film temperature sensor at a preset time interval.

[0058] In the embodiment of the present application, when the flashlight is turned on, the temperature of the flashlight will continue to rise as time goes by. If this situation continues for a long time, it is easy to cause certain damage to the flashlight. However, the present application can monitor the temperature of the flashlight using the resistance value collected by the thin film temperature sensor after detecting that the flashlight is turned on, that is, the temperature of the flashlight is obtained every preset time interval, so that when the temperature of the flashlight meets the preset conditions, the driving current of the flashlight can be reduced, thereby reducing the temperature of the flashlight and extending the service life of the flashlight.

[0059] In some embodiments of the present application, the resistance value collected by the thin film temperature sensor is obtained according to a preset time interval, including: obtaining the resistance values ​​collected by multiple thin film temperature sensors according to the preset time interval; and taking the average value of the multiple resistance values ​​as the resistance value corresponding to the flash.

[0060] In an embodiment of the present application, multiple thin-film temperature sensors are used to collect resistance values, and the average value of the resistance values ​​collected by each thin-film temperature sensor is calculated, so that the temperature of the flash lamp is determined based on the average value, so that the detected temperature change of the flash lamp will be more accurate, thereby achieving better temperature control of the flash lamp.

[0061] Based on the above embodiments, the present application specifically illustrates a method for controlling a flashlight. Figure 3 The process diagram of the flash control method in the embodiment of the present application is as follows Figure 3 The thin film temperature sensor may be a thin film thermistor, which is usually within 500 nm in thickness. The thin film thermistor is made into an FPC and directly attached to the inner or outer surface of the flash. The flash is connected to the device mainboard through the FPC, and the device mainboard is used to power the flash through the FPC.

[0062] like Figure 3 As shown, the control method of the flash lamp includes the following steps:

[0063] S301: Collect resistance values ​​in real time through thin film thermistors.

[0064] S302: Obtaining the resistance value collected by the thin film thermistor in real time through the main control module.

[0065] S303: Determine, by the main control module, the temperature of the flash lamp corresponding to the acquired resistance value based on the corresponding relationship between the preset resistance value and the preset temperature.

[0066] In an embodiment of the present application, a correspondence between a set of preset resistance values ​​and preset temperatures is established. This correspondence is usually obtained through experimental measurement. In the experiment, a series of known temperature points are selected, and then the resistance of a specific resistor in the flash lamp at these temperature points is measured. Through this set of data, a curve between the resistance value and the temperature can be drawn, or a mathematical model can be established to describe the relationship between them. Based on this, when the resistance value is collected, the resistance value can be substituted into the preset correspondence to solve the corresponding temperature value. Among them, the preset correspondence can be linear (that is, there is a linear relationship between the resistance value and the temperature), or non-linear (such as a quadratic curve, an exponential function, etc.).

[0067] S304: Determine, by the main control module, whether the temperature of the flash lamp exceeds a preset temperature threshold.

[0068] If it is determined that the temperature of the flash lamp exceeds the preset temperature threshold, S305 is executed; if it is determined that the temperature of the flash lamp does not exceed the preset temperature threshold, S307 is executed.

[0069] The preset temperature threshold may be understood as the maximum temperature value that the flash lamp can withstand.

[0070] In the embodiment of the present application, when the main control module determines that the temperature of the flash lamp exceeds the preset temperature threshold, it means that the temperature of the flash lamp is too high. If the temperature of the flash lamp continues to rise, the flash lamp will be damaged. Therefore, S305 to S306 are executed to achieve the purpose of reducing the temperature of the flash lamp. When the main control module determines that the temperature of the flash lamp does not exceed the preset temperature threshold, it means that the temperature of the flash lamp is within the safe temperature range. Therefore, S307 to S308 are executed to control the flash lamp to maintain the current working state, or the brightness of the flash lamp can be increased.

[0071] S305: Send a first control signal to the regulation module through the main control module.

[0072] The first control signal is used to indicate that the temperature of the flash lamp exceeds a preset temperature threshold.

[0073] The main control module is electrically connected to the thin film thermistor and the control module, and the control module is arranged outside the flash lamp.

[0074] S306: Control the flashlight to be in an off state or reduce the driving current of the flashlight through the control module.

[0075] In the embodiment of the present application, when it is determined that the temperature of the flash lamp exceeds the preset temperature threshold, it means that the temperature of the flash lamp is too high. If the temperature of the flash lamp continues to rise, the flash lamp will be damaged. Therefore, the main control module sends a first control signal to the control module to control the flash lamp to be in an off state, or reduce the driving current of the flash lamp so that the temperature of the flash lamp decreases, thereby ensuring that the flash lamp will not be damaged. It should be noted that the current driving current can be reduced step by step based on the preset driving current, or the current driving current can be directly reduced to the preset driving current.

[0076] S307: Send a second control signal to the regulation module through the main control module.

[0077] The second control signal is used to indicate that the temperature of the flash lamp does not exceed a preset temperature threshold.

[0078] S308: Control the flash lamp to maintain the current working state through the control module, or increase the driving current of the flash lamp.

[0079] In the embodiment of the present application, when it is determined that the temperature of the flash lamp does not exceed the preset temperature threshold, it means that the temperature of the flash lamp is within the safe temperature range. Therefore, by sending a second control signal to the control module through the main control module, the flash lamp can be controlled to maintain the current working state with the current drive current, or the current drive current can be increased to the first drive current to control the flash lamp to be in the on state and increase the brightness of the flash lamp. It should be noted that the current drive current can be increased step by step to the first drive current based on the preset drive current, or the current drive current can be directly jumped to the first drive current.

[0080] In an embodiment of the present application, when the temperature of the flash does not meet the preset conditions, a second control signal is sent to the control module, so that when the control module detects that the working mode of the flash is the flashlight mode, the flash is controlled to be in a constant state; or, when the control module detects that the working mode of the flash is the fill light mode, the flash is controlled to be in a constant state; or, when the control module detects that the working mode of the flash is the flash mode, the flash is controlled to be in a flash state.

[0081] In the embodiment of the present application, by integrating a thin film thermistor on the inner surface or outer surface of the flash, the heat transfer resistance between the thin film thermistor and the flash is greatly reduced, and the error between the temperature corresponding to the resistance value collected by the thin film thermistor and the actual working temperature of the flash is greatly reduced. The collected temperature data of the flash can be followed in real time to control the working state of the flash, and the working temperature of the flash can be ensured to be within an appropriate temperature range, thereby increasing the self-protection function of the electronic equipment, avoiding affecting the temperature rise performance of the electronic product, and improving the user's comfort experience.

[0082] In order to implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides a control system for a flashlight. Figure 4 FIG. 1 is a schematic diagram of the structure of the control system of the flashlight in the embodiment of the present application. Figure 4 As shown, the control system 40 of the flash lamp includes:

[0083] A thin film temperature sensor 401 is used to collect resistance values; wherein the thin film temperature sensor is attached to the inner surface or the outer surface of the flash lamp;

[0084] A main control module 402, used to obtain the resistance value collected by the thin film temperature sensor;

[0085] The main control module 402 is further configured to control the working state of the flash lamp based on the resistance value.

[0086] In an embodiment of the present application, a thin film temperature sensor is attached to the inner surface or outer surface of the flash lamp, so that the thin film temperature sensor is very close to the flash lamp. In this way, the temperature of the flash lamp can be accurately estimated based on the resistance value collected by the thin film temperature sensor, thereby accurately adjusting the working state of the flash lamp to achieve the purpose of temperature regulation.

[0087] In some embodiments of the present application, the thin film temperature sensor and the copper foil trace are formed into an integrated structure, and the copper foil trace is a copper foil trace of a flexible printed circuit board directly connected to the flash lamp.

[0088] In some embodiments of the present application, the thin film temperature sensor and the copper foil wiring are formed into an integrated structure, and the copper foil wiring is a copper foil wiring of a device main board or a sub-board directly connected to the flash lamp.

[0089] In some embodiments of the present application, a control module 403 is also included.

[0090] The main control module 402 is further used to obtain the temperature of the flash lamp based on the resistance value; when the temperature of the flash lamp meets a preset condition, send a first control signal to the control module;

[0091] The control module 403 is used to control the flash lamp to be in an off state based on a first control signal, or control the driving current of the flash lamp to be a first driving current.

[0092] In some embodiments of the present application, the main control module 402 is further configured to send a second control signal to the control module when the temperature of the flash lamp does not meet the preset condition;

[0093] The control module 403 is further used to control the flash to be in an on state, or to control the driving current of the flash to be a second driving current; wherein the second driving current is greater than the first driving current.

[0094] In some embodiments of the present application, the main control module 402 is further configured to obtain the temperature of the flash lamp corresponding to the resistance value based on a corresponding relationship between a preset resistance value and a preset temperature.

[0095] The present application also provides another electronic device, Figure 5 Schematic diagram of the structure of the electronic device in the embodiment of the present application. Figure 5 As shown, the electronic device 50 includes: a processor 501 and a memory 502 configured to store a computer program that can be run on the processor;

[0096] The processor 501 is configured to execute the method steps in the aforementioned embodiment when running a computer program.

[0097] Of course, in practical applications, Figure 5 As shown, the components in the electronic device 50 are coupled together via a bus system 503. It is understood that the bus system 503 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 503 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as bus system 503.

[0098] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.

[0099] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.

[0100] In an exemplary embodiment, the present application also provides a computer-readable storage medium for storing a computer program.

[0101] Optionally, the computer-readable storage medium can be applied to any one of the methods in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the processor in each method in the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0102] Illustratively, an embodiment of the present application further provides a computer program product, including a computer program, which can be executed by a processor of an electronic device to complete the steps of any of the aforementioned methods.

[0103] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0104] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0105] In addition, all functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art may understand that all or part of the steps of implementing the above method embodiments may be completed by hardware related to program instructions, and the above program may be stored in a computer-readable storage medium, which, when executed, executes the steps of the above method embodiments; and the above storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0106] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0107] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0108] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0109] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for controlling a flashlight, characterized in that: The method comprises: Obtaining a resistance value collected by a thin-film temperature sensor; wherein the thin-film temperature sensor is attached to the inner surface or the outer surface of the flash lamp; Based on the resistance value, the working state of the flash lamp is controlled.

2. The method according to claim 1, characterized in that The thin-film temperature sensor and the copper foil wiring are formed into an integrated structure, and the copper foil wiring is a copper foil wiring of a flexible printed circuit board directly connected to the flash lamp.

3. The method according to claim 1, characterized in that The thin-film temperature sensor and the copper foil wiring are formed into an integrated structure, and the copper foil wiring is a copper foil wiring of a device main board or a sub-board directly connected to the flash lamp.

4. The method according to any one of claims 1 to 3, characterized in that: The step of controlling the working state of the flash lamp based on the resistance value includes: Based on the resistance value, obtaining the temperature of the flash lamp; When the temperature of the flash lamp meets a preset condition, a first control signal is sent to the control module, so that the control module controls the flash lamp to be in an off state or reduces the driving current of the flash lamp.

5. The method according to claim 4, characterized in that The method further comprises: When the temperature of the flash lamp does not meet the preset condition, a second control signal is sent to the control module, so that the control module controls the flash lamp to maintain a current working state, or increases the driving current of the flash lamp.

6. The method according to claim 4, characterized in that The step of obtaining the temperature of the flash lamp based on the resistance value includes: Based on the corresponding relationship between the preset resistance value and the preset temperature, the temperature of the flash lamp corresponding to the resistance value is obtained.

7. A flashlight control system, characterized in that: The system comprises: A thin film temperature sensor, used to collect resistance values; wherein the thin film temperature sensor is attached to the inner surface or outer surface of the flash lamp; A main control module, used for acquiring the resistance value collected by the thin film temperature sensor; The main control module is further used to control the working state of the flash lamp based on the resistance value.

8. The system according to claim 7, characterized in that The thin-film temperature sensor and the copper foil wiring are formed into an integrated structure, and the copper foil wiring is a copper foil wiring of a flexible printed circuit board directly connected to the flash lamp.

9. The system according to claim 7, characterized in that The thin-film temperature sensor and the copper foil wiring are formed into an integrated structure, and the copper foil wiring is a copper foil wiring of a device main board or a sub-board directly connected to the flash lamp.

10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory configured to store a computer program capable of running on the processor, Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 6 when running the computer program.