Recognition method, lighting device, and electronic device
By identifying the preset charging branch and identification unit in the circuit and measuring the charging time node, the problem of insufficient identification of lighting accessories in lighting equipment is solved, and high-precision accessory identification and matching is achieved, breaking through the limitations of the traditional voltage identification method.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- APUTURE IMAGING IND CO LTD
- Filing Date
- 2026-05-11
- Publication Date
- 2026-06-09
AI Technical Summary
Existing lighting equipment has a low number of accessories for identification, which is limited by the power supply range of the microcontroller, making it difficult to achieve high-precision identification.
By identifying the preset charging branch and identification unit in the identification circuit, and using the measurement of charging time nodes, the resistance value of the identification unit is accurately calculated. Combined with the preset reference table, the accessory model is determined, reducing the dependence on the accuracy of analog-to-digital conversion.
It achieves accurate identification and matching of lighting accessories, significantly increases the number of accessory types that can be identified, breaks through the bottleneck of traditional voltage identification methods, and can identify thousands to tens of thousands of accessories.
Smart Images

Figure CN122171920A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of lighting equipment technology, and particularly relates to identification methods, lighting equipment and electronic equipment. Background Technology
[0002] Currently, professional film and television lighting products can connect to lighting accessories via bayonet mounts. However, when identifying lighting accessories, manual identification or voltage sampling to determine resistance is typically used to identify the accessory model. But the power supply range of most general-purpose microcontrollers limits the number of accessories that can be identified; a single microcontroller / chip can only recognize a limited number of accessories. Summary of the Invention
[0003] The purpose of this application is to provide an identification method, lighting device, and electronic device, which aims to solve the problem of low number of accessories that can be identified in lighting devices.
[0004] A first aspect of this application provides an identification method applied to an identification circuit for connecting a docking device. The docking device includes an identification unit. The identification circuit includes a first power supply, a second power supply, a preset charging branch, and a charging capacitor. The preset charging branch is connected in series between the first power supply and a first terminal of the charging capacitor. When the identification circuit is connected to the docking device, the identification unit is connected in series between the second power supply and the first terminal of the charging capacitor. The identification method includes: setting the voltage across the charging capacitor to a first initial voltage; the first power supply charging the charging capacitor through the preset charging branch; and determining the... The charging capacitor is charged for a first time until the voltage across it reaches a preset threshold from the first initial voltage; the voltage across it is set as a second initial voltage; the second power supply charges the charging capacitor through the identification unit, and a second charging time is determined for the voltage across it to reach the preset threshold from the second initial voltage; the resistance value of the identification unit is determined based on the first initial voltage, the second initial voltage, the voltage of the first power supply, the voltage of the second power supply, the preset threshold, the first charging time, the second charging time, and the resistance value of the preset charging branch; the model of the docking device is determined based on the resistance value of the identification unit and a preset lookup table.
[0005] In one embodiment, the first initial voltage is equal to the second initial voltage.
[0006] In one embodiment, the voltage of the first power supply is equal to the voltage of the second power supply.
[0007] In one embodiment, the identification circuit further includes a third power supply connected to the second terminal of the charging capacitor; setting the voltage across the charging capacitor to a first initial voltage includes setting the voltage across the charging capacitor to the first initial voltage using the first power supply and the third power supply; setting the voltage across the charging capacitor to a second initial voltage includes setting the voltage across the charging capacitor to the second initial voltage using the first power supply and the third power supply.
[0008] In one embodiment, the preset charging branch includes a first resistor, a first end of which is connected to the first power source, and a second end of which is connected to the first end of the charging capacitor.
[0009] In one embodiment, the identification circuit further includes a detection unit and a second resistor; the first end of the second resistor is connected to the first end of the charging capacitor, and the second end of the second resistor is connected to the detection unit.
[0010] In one embodiment, the identification circuit includes a microcontroller, which includes a first power supply, a second power supply, a third power supply, and a detection unit.
[0011] In one embodiment, determining the resistance value of the identification unit based on the first initial voltage, the second initial voltage, the voltage of the first power supply, the voltage of the second power supply, the preset threshold, the first charging time, the second charging time, and the resistance value of the preset charging branch includes: when the first initial voltage is equal to the second initial voltage and the voltage of the first power supply is equal to the voltage of the second power supply, determining the resistance value of the identification unit based on the first charging time, the second charging time, the resistance value of the preset charging branch, and a preset formula; the preset formula is: In the formula, R1 is the resistance value of the preset charging branch, R2 is the resistance value of the identification unit, t1 is the first charging time, and t2 is the second charging time.
[0012] A second aspect of this application provides a lighting device, including: an identification circuit, the identification circuit being used to implement the identification method as described above.
[0013] A third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the identification method described above.
[0014] The beneficial effects of this application embodiment compared with the prior art are: when the charging capacitor is charged by using a preset charging branch and an identification unit respectively, the resistance value of the identification unit can be accurately calculated by obtaining the charging start time node and the charging end time node (i.e., obtaining the first charging time and the second charging time).
[0015] Compared to voltage detection methods, conventional control devices (such as microcontrollers / chips) offer higher resolution for time-based measurement and recording, circumventing the limitations of analog-to-digital conversion sampling accuracy and increasing the number of categories that can be identified. When this identification method is applied to lighting equipment, it enables accurate identification and matching of lighting accessories, significantly increasing the number of lighting accessory categories that can be identified without relying on the resolution of the analog-to-digital conversion of the control device. Attached Figure Description
[0016] Figure 1 A flowchart illustrating an embodiment of the identification method provided in this application; Figure 2 A schematic diagram of an identification circuit provided in an embodiment of this application; Figure 3 A circuit diagram of an identification circuit provided in an embodiment of this application; Figure 4 Another circuit diagram of the identification circuit provided in one embodiment of this application.
[0017] The above figures show: 10, identification circuit; 20, docking device; 100, first power supply; 200, second power supply; 300, preset charging branch; 400, identification unit; 500, third power supply; 600, detection unit. Detailed Implementation
[0018] To make the technical problems, technical solutions, and beneficial effects to be solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this application.
[0019] It should be noted that when a component is referred to as being "fixed to" or "set on" another component, it can be directly on or indirectly on that other component. When a component is referred to as being "connected to" another component, it can be directly connected to or indirectly connected to that other component.
[0020] It should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0021] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0022] Figure 1 A flowchart of an identification method provided in an embodiment of this application is shown. For ease of explanation, only the parts relevant to this embodiment are shown, and are described in detail below: The identification method is applied to the identification circuit 10, which is used to connect to the docking device 20. The docking device 20 includes an identification unit 400. The identification circuit 10 includes a first power supply 100, a second power supply 200, a preset charging branch 300, and a charging capacitor C1. The preset charging branch 300 is connected in series between the first power supply 100 and the first terminal of the charging capacitor C1. When the identification circuit 10 is connected to the docking device 20, the identification unit 400 is connected in series between the second power supply 200 and the first terminal of the charging capacitor C1. The second terminal of the charging capacitor C1 can be connected to a fixed reference voltage Vf. For example, the second terminal of the charging capacitor C1 can be grounded or connected to a stable reference voltage source to ensure the consistency of the reference potential during the charging process. This embodiment does not limit this, and the specific implementation method can be flexibly selected according to the actual circuit design.
[0023] The identification method includes steps S100 to S600.
[0024] Step S100: Set the voltage across the charging capacitor C1 to the first initial voltage.
[0025] Specifically, by setting the charging capacitor C1 as the first initial voltage, it is possible to ensure that the subsequent identification process has a unified benchmark and avoid misjudgment due to the residual voltage difference of the charging capacitor C1.
[0026] In some embodiments, the first initial voltage is 0V, that is, the charging capacitor C1 is completely discharged to eliminate historical voltage interference; in other embodiments, the first initial voltage can be set to a preset non-zero value and precisely injected through a controllable constant voltage source or voltage divider circuit to reduce the subsequent voltage rise time, improve the recognition response speed, and adapt to different response sensitivity requirements.
[0027] Step S200: The first power supply 100 charges the charging capacitor C1 through the preset charging branch 300, and determines the first charging time from the first initial voltage to the first charging time when the voltage across the charging capacitor C1 reaches the preset threshold.
[0028] It is understandable that, since the charging capacitor C1 is charged through the preset charging branch 300 in step S200, the first charging time reflects the equivalent impedance characteristics of the preset charging branch 300, so as to serve as one of the key parameters for identification.
[0029] Step S300: Set the voltage across the charging capacitor C1 to the second initial voltage.
[0030] By resetting the voltage across the charging capacitor C1 to the second initial voltage, an independent and controllable starting condition can be established for the subsequent charging process of the identification unit 400.
[0031] Step S400: The second power supply 200 charges the charging capacitor C1 through the identification unit 400 and determines the second charging time from the second initial voltage to the second charging time when the voltage across the charging capacitor C1 reaches the preset threshold.
[0032] It is understandable that, since the charging capacitor C1 is charged by the identification unit 400 in step S400, the second charging time directly characterizes the equivalent impedance characteristics of the identification unit 400.
[0033] Step S500: Determine the resistance value of the identification unit 400 based on the first initial voltage, the second initial voltage, the voltage of the first power supply 100, the voltage of the second power supply 200, the preset threshold, the first charging time, the second charging time, and the resistance value of the preset charging branch 300.
[0034] It is understandable that, since the first charging time and the second charging time correspond to the equivalent impedance characteristics of the preset charging branch 300 and the equivalent impedance characteristics of the identification unit 400, respectively, and the circuit parameters of the preset charging branch 300, the first initial voltage, the second initial voltage, the preset threshold, the first power supply 100 and the second power supply 200 are all known quantities, the resistance value of the identification unit 400 can be accurately calculated through the proportional relationship between the first charging time and the second charging time.
[0035] Step S600: Determine the model of the docking device 20 based on the resistance value of the identification unit 400 and a preset lookup table. The preset lookup table includes a unique resistance value or a unique resistance value range corresponding to each model of docking device 20.
[0036] By having different identification units 400 with different resistance values for different docking devices 20, the specific model of the docking device 20 can be quickly identified by accurately matching the detected resistance value of the identification unit 400 with a preset reference table.
[0037] Since the resistance value of the identification unit 400 is calculated based on the first charging time and the second charging time, compared with the traditional voltage identification method, the identification method of this embodiment can reduce the dependence on the accuracy of analog-to-digital conversion and avoid errors caused by analog-to-digital conversion quantization.
[0038] Specifically, traditional voltage identification methods typically require dividing the detection voltage into a limited number of levels. This is limited by the accuracy of analog-to-digital conversion and the voltage recognition range. Furthermore, to improve accuracy, traditional voltage identification methods can only identify a limited number of accessories. For example, for a 3.3V power supply system, if a 0.4V tolerance is required between each level to handle temperature drift and noise, only 8 levels can actually be defined, allowing for the identification of a maximum of 8 types of docking devices. This embodiment, however, uses high-precision time-domain measurement of charging time, improving the time resolution to the microsecond level. Combined with a high-precision timer and optimized algorithms, the theoretical identification accuracy can reach the nanosecond level, thereby expanding the types of docking devices that can be identified to thousands or even tens of thousands, significantly overcoming the physical limitations of traditional voltage identification methods. Taking a 240MHz microcontroller as an example, the theoretical number of resistors that can be identified is approximately 4.29 × 10^9. In engineering tests, it can stably identify more than 100,000 types of docking devices 20 in the range of 1kΩ to 100kΩ. In the low resistance range (100Ω to 10kΩ) and the high resistance range (10kΩ to 1MΩ), it can accurately identify approximately 1,000 and 100,000 types of docking devices 20 respectively, fully meeting the stringent requirements of film and television lighting equipment for compatibility with multiple accessory models.
[0039] In one embodiment, the first initial voltage is equal to the second initial voltage.
[0040] By unifying the initial voltage, the first initial voltage and the second initial voltage can be initialized using the same reference voltage source.
[0041] In one embodiment, the voltage of the first power supply 100 is equal to the voltage of the second power supply 200.
[0042] When the voltage of the first power supply 100 is equal to the voltage of the second power supply 200, the first power supply 100 and the second power supply 200 can be the same power supply. This simplifies circuit design, reduces hardware costs and board layout complexity; at the same time, it ensures consistent charging conditions, avoids system errors introduced by power supply differences, and further improves identification stability.
[0043] In one embodiment, the identification circuit 10 further includes a third power supply 500, which is connected to the second end of the charging capacitor C1.
[0044] Step S100 specifically includes: The voltage across the charging capacitor C1 is set to the first initial voltage using the first power supply 100 and the third power supply 500.
[0045] Step S300 specifically includes: The voltage across the charging capacitor C1 is set to the second initial voltage using the first power supply 100 and the third power supply 500.
[0046] The third power supply 500 can be used to provide a stable reference voltage Vf, which can be a ground reference voltage. In steps S100 and S300, the voltage of the first power supply 100 can be the same as the voltage of the third power supply 500, so that the voltage across the capacitor is precisely clamped to the same reference value, thereby realizing the release of charge.
[0047] In one embodiment, the preset charging branch 300 includes a first resistor R1, the first end of the first resistor R1 is connected to the first power supply 100, and the second end of the first resistor R1 is connected to the first end of the charging capacitor C1.
[0048] In step S200, the first power supply 100 charges the charging capacitor C1 through the first resistor R1. Since the first resistor R1 can limit the charging current, the first charging time can reflect the actual resistance value of the first resistor R1.
[0049] In one embodiment, the identification circuit 10 further includes a detection unit 600 and a second resistor R3.
[0050] The first end of the second resistor R3 is connected to the first end of the charging capacitor C1, and the second end of the second resistor R3 is connected to the detection unit 600. The detection unit 600 is used to monitor the voltage at the first end of the charging capacitor C1 in real time.
[0051] Understandably, the detection unit 600 only needs to check whether the voltage at the first end of the charging capacitor C1 reaches the preset threshold, without the need for high-precision analog-to-digital conversion sampling, thereby significantly reducing the performance requirements of the related circuits.
[0052] In some embodiments, the detection unit 600 may be implemented using the built-in comparator function of the microcontroller's I / O port.
[0053] In one embodiment, the identification unit 400 includes a third resistor R2. When the docking device 20 is connected to the identification circuit 10, the first end of the third resistor R2 is connected to the second power supply 200, and the second end of the third resistor R2 is connected to the first end of the charging capacitor C1. The third resistor R2 serves as a characteristic resistor of the docking device 20, and its resistance value uniquely corresponds to the model of the docking device 20. Therefore, when different models of docking devices 20 are connected to the identification circuit 10, the model of the docking device 20 can be uniquely determined by measuring the resistance value of the third resistor R2, thereby achieving accurate, fast, and unambiguous device identification.
[0054] In one embodiment, the identification circuit 10 includes a microcontroller U1, which includes a first power supply 100, a second power supply 200, a third power supply 500, and a detection unit 600.
[0055] The microcontroller U1 may have multiple independent pins corresponding to the input or output terminals of the first power supply 100, the second power supply 200, the third power supply 500, and the detection unit 600, respectively. For example, the microcontroller U1 may have a Part pin, a Cal pin, a CAP pin, and an INT pin, where the Part pin is the output terminal of the second power supply 200, the Cal pin is the output terminal of the first power supply 100, the CAP pin is the output terminal of the third power supply 500, and the INT pin is the input terminal of the detection unit 600.
[0056] Understandably, the microcontroller U1 can accurately capture the first and second charging times using its built-in timer and calculate the resistance value of the identification unit 400 in real time using its built-in algorithm.
[0057] Specifically, in step S100, the Cal pin outputs a low level, the CAP pin outputs a low level, and both the Part pin and the INT pin are set to a high impedance state. At this time, the charging capacitor C1 discharges to zero voltage through the Cal pin and the CAP pin. In step S200, the Cal pin outputs a high level, and the charging capacitor C1 is charged through the first resistor R1. The INT pin monitors the voltage rise process in real time. When the voltage reaches a preset threshold, an interrupt is triggered and the first charging time is recorded. The first charging time has a strictly linear relationship with the resistance value of the first resistor R1. In step S300, the Cal pin outputs a low level, the CAP pin outputs a low level, and both the Part pin and the INT pin are set to a high impedance state, completing the complete discharge of the charging capacitor C1 again. In step S400, the Part pin outputs a high level, and the charging capacitor C1 is charged through the third resistor R2. The INT pin synchronously monitors the voltage rise process. When the preset threshold is reached, an interrupt is triggered and the second charging time is recorded. The preset threshold can be the voltage value that triggers the INT pin level to flip, that is, when the INT pin level changes from low to high, an interrupt can be triggered immediately and the corresponding charging time can be recorded. The first charging time is the time from when the Cal pin starts outputting a high level to when the INT pin level toggles (detects a high level). The second charging time is the time from when the Part pin starts outputting a high level to when the INT pin level toggles (detects a high level).
[0058] In one embodiment, step S500 specifically includes: When the first initial voltage is equal to the second initial voltage and the voltage of the first power supply 100 is equal to the voltage of the second power supply 200, the resistance value of the identification unit 400 is determined based on the first charging time, the second charging time, the resistance value of the preset charging branch 300, and the preset formula.
[0059] The default formula is: In the formula, R1 is the resistance value of the preset charging branch 300, R2 is the resistance value of the identification unit 400, t1 is the first charging time, and t2 is the second charging time.
[0060] It should be noted that the formula for calculating the charging time t is: t=R×C×ln(Vs / (Vs-Vn(t))), where R is the resistance value of the resistor involved in charging, C is the capacitance value of the charging capacitor C1, Vs is the voltage of the power supply involved in charging, and Vn(t) is the voltage across the charging capacitor C1 at time t (which is the preset threshold in this embodiment). It can be understood that when the charging voltage of the first power supply 100 is equal to the charging voltage of the second power supply 200, and the charging capacitor C1 is the same and the preset threshold is consistent, the charging time is strictly linearly proportional to the resistance value of the resistor involved in charging. Thus, by eliminating identical variables, the preset formula can be obtained, and the resistance value of the identification unit 400 can be accurately deduced.
[0061] Meanwhile, the identification method obtains the first charging time and the second charging time by conducting two independent charging tests under the same conditions (i.e., the same ambient temperature and humidity). This effectively avoids the disturbance of environmental variables on a single measurement, making the identification results more stable and reliable, and significantly improving the identification stability and repeatability.
[0062] This application also provides a lighting device, including: an identification circuit 10, which is used to implement the identification method as described in any of the above embodiments.
[0063] The docking device 20 can specifically be a light-emitting diode (LED) lamp with an electronic bayonet. The docking device 20 can enable the lighting device to complete the accessory type identification instantly upon physical connection by pre-setting an identification unit 400 on the electronic bayonet, without manual intervention or additional configuration, thus significantly reducing the device response delay.
[0064] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the identification method as described in any of the above embodiments.
[0065] This application also provides a readable storage medium storing a computer program, wherein the computer program is configured to execute the identification method as described in any of the above embodiments when it runs.
[0066] Readable storage media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc. The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0067] This application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the identification method as described in any of the above embodiments.
[0068] From the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0069] It should be understood that the apparatuses and methods disclosed in the several embodiments provided in this application can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components being combined or integrated into another device. In addition, some features may be omitted or not performed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0070] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units. That is, it can be located in one place or distributed in multiple different locations. Depending on the actual needs, some or all of the units can be selected to achieve the purpose of this solution.
[0071] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit; they can also exist physically separately; or some units can be integrated into one unit while others exist physically separately. The integrated units described above can be implemented in hardware or as software functional units.
[0072] It should be noted that all or part of the above embodiments provided in this application (e.g., part or all of any feature) can be arbitrarily combined or combined with each other.
[0073] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A recognition method, characterized in that, The identification method is applied to an identification circuit, which is used to connect to a docking device. The docking device includes an identification unit. The identification circuit includes a first power supply, a second power supply, a preset charging branch, and a charging capacitor. The preset charging branch is connected in series between the first power supply and the first end of the charging capacitor. When the identification circuit is connected to the docking device, the identification unit is connected in series between the second power supply and the first end of the charging capacitor. The identification method includes: Set the voltage across the charging capacitor as the first initial voltage; The first power source charges the charging capacitor through the preset charging branch and determines the first charging time from the first initial voltage to the first preset threshold. Set the voltage across the charging capacitor as the second initial voltage; The second power source charges the charging capacitor through the identification unit and determines the second charging time from the second initial voltage to the preset threshold. The resistance value of the identification unit is determined based on the first initial voltage, the second initial voltage, the voltage of the first power supply, the voltage of the second power supply, the preset threshold, the first charging time, the second charging time, and the resistance value of the preset charging branch. The model of the docking device is determined based on the resistance value of the identification unit and a preset lookup table.
2. The identification method as described in claim 1, characterized in that, The first initial voltage is equal to the second initial voltage.
3. The identification method as described in claim 1, characterized in that, The voltage of the first power source is equal to the voltage of the second power source.
4. The identification method according to any one of claims 1 to 3, characterized in that, The identification circuit also includes a third power supply, which is connected to the second terminal of the charging capacitor. Setting the voltage across the charging capacitor to a first initial voltage includes: The voltage across the charging capacitor is set to the first initial voltage using the first power source and the third power source. Setting the voltage across the charging capacitor to the second initial voltage includes: The voltage across the charging capacitor is set to the second initial voltage using the first power source and the third power source.
5. The identification method as described in claim 4, characterized in that, The preset charging branch includes a first resistor, a first end of which is connected to the first power source, and a second end of which is connected to the first end of the charging capacitor.
6. The identification method as described in claim 5, characterized in that, The identification circuit also includes a detection unit and a second resistor; The first end of the second resistor is connected to the first end of the charging capacitor, and the second end of the second resistor is connected to the detection unit.
7. The identification method as described in claim 6, characterized in that, The identification circuit includes a microcontroller, which includes a first power supply, a second power supply, a third power supply, and a detection unit.
8. The identification method according to any one of claims 1 to 3, characterized in that, The step of determining the resistance value of the identification unit based on the first initial voltage, the second initial voltage, the voltage of the first power supply, the voltage of the second power supply, the preset threshold, the first charging time, the second charging time, and the resistance value of the preset charging branch includes: When the first initial voltage is equal to the second initial voltage and the voltage of the first power supply is equal to the voltage of the second power supply, the resistance value of the identification unit is determined according to the first charging time, the second charging time, the resistance value of the preset charging branch, and the preset formula. The preset formula is: In the formula, R1 is the resistance value of the preset charging branch, R2 is the resistance value of the identification unit, t1 is the first charging time, and t2 is the second charging time.
9. A lighting device, characterized in that, include: An identification circuit, the identification circuit being used to implement the identification method as described in any one of claims 1 to 8.
10. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the identification method as described in any one of claims 1 to 8.