Light-emitting module detection method and device, electronic equipment and storage medium

CN115884467BActive Publication Date: 2026-06-23SHENZHEN INTELLIROCKS TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN INTELLIROCKS TECH CO LTD
Filing Date
2021-08-05
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

In linear LED arrays that can be spliced ​​together, it is impossible to determine whether the number of LEDs is effectively connected to the circuit, making it difficult to obtain the actual number of connected LEDs, and equipping them with an MCU will increase costs.

Method used

By acquiring the reference current and the target detection current, and utilizing the current change of the detection resistor, it is possible to detect whether the light-emitting unit is connected to the light-emitting module circuit, thereby reducing detection costs.

Benefits of technology

It enables reliable detection of the number of light-emitting units, reduces detection costs, and allows for the design of different lighting effects based on the number of units, thereby improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115884467B_ABST
    Figure CN115884467B_ABST
Patent Text Reader

Abstract

The application discloses a detection method of a light-emitting module. The light-emitting module circuit comprises a detection resistor, a controller and an interface circuit in series. The interface circuit is adapted to be connected to the controller and a light source module. The interface circuit comprises a plurality of parallel interface branches. The light source module comprises a plurality of light-emitting units. The interface branches are adapted to be connected to the light-emitting units to supply power to the light-emitting units. The method comprises the following steps: S110, acquiring a reference current; S130, determining a target interface branch from the plurality of interface branches; S150, powering on the target interface branch and acquiring a target detection current; and S170, performing access detection on the target interface branch according to the reference current and the target detection current to obtain a detection result. The method can accurately acquire the specific conditions of the light-emitting units connected to the light-emitting module circuit, provides a reliable basis for acquiring the number of the light-emitting units in the light-emitting module circuit, and is thus beneficial to the user in freely designing a light display effect according to the number of the light-emitting units and enhancing interactive experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lighting control technology, and more specifically, to a method, apparatus, electronic device, and storage medium for detecting a light-emitting module. Background Technology

[0002] With the widespread use of lighting tools such as LED strips in people's lives, linear light groups are increasingly being used in lighting scenarios. These linear light groups typically consist of a fixed number of LEDs. Considering the needs of users in different scenarios, modular linear light groups have emerged. However, because the number of LEDs in a modular linear light group can change according to user requirements, it is difficult to determine whether newly added LEDs are effectively connected to the circuit, making it challenging to obtain the actual number of LEDs connected in the modular linear light group. Summary of the Invention

[0003] This application provides a method, apparatus, electronic device, and storage medium for detecting light-emitting modules.

[0004] In a first aspect, some embodiments of this application provide a detection method for a light-emitting module. The light-emitting module circuit includes a detection resistor, a controller, and an interface circuit connected in series. The interface circuit is adapted to connect the controller and the light source module. The interface circuit includes multiple interface branches connected in parallel. The light source module includes multiple light-emitting units. The interface branches are adapted to connect to the light-emitting units to supply power to the light-emitting units. The method includes: Step S110: Obtaining a reference current, which is used to characterize the static current through the detection resistor when the controller controls all interface branches to be in a de-energized state; Step S130: Determining a target interface branch among the multiple interface branches, which is the interface branch to be detected in the interface circuit; Step S150: Powering on the target interface branch and obtaining a target detection current, which is used to characterize the current of the detection resistor when the target interface branch is in a powered-on state and the other interface branches among the multiple interface branches are in a de-energized state; Step S170: Performing access detection on the target interface branch according to the reference current and the target detection current to obtain a detection result; wherein, the access detection is used to detect whether the target interface branch is connected to a light-emitting unit.

[0005] Secondly, some embodiments of this application also provide a detection device for a light-emitting module. The light-emitting module circuit includes a detection resistor, a controller, and an interface circuit connected in series. The interface circuit is adapted to connect the controller and the light source module. The interface circuit includes multiple interface branches connected in parallel. The light source module includes multiple light-emitting units. The interface branches are adapted to connect to the light-emitting units to supply power to the light-emitting units. The device includes: a first acquisition module for acquiring a reference current, which characterizes the static current through the detection resistor when the controller controls all interface branches to be in a de-energized state; a determination module for determining a target interface branch among the multiple interface branches, where the target interface branch is the interface branch to be detected in the interface circuit; a second acquisition module for powering on the target interface branch and acquiring a target detection current, which characterizes the current in the detection resistor when the target interface branch is in a powered-on state and the other interface branches among the multiple interface branches are in a de-energized state; and a detection module for performing access detection on the target interface branch based on the reference current and the target detection current to obtain a detection result; the access detection is used to detect whether the target interface branch is connected to a light-emitting unit.

[0006] Thirdly, some embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are invoked by the processor, the above-described detection method for the light-emitting module is executed.

[0007] Fourthly, embodiments of this application also provide a computer-readable storage medium storing program code, wherein the above-described detection method for the light-emitting module is executed when the program code is run by a processor.

[0008] This application provides a detection method, apparatus, electronic device, and storage medium for a light-emitting module. The method includes: acquiring a reference current, which characterizes the static current through a detection resistor when all interface branches are in a de-energized state controlled by a controller; identifying a target interface branch among multiple interface branches, which is the interface branch to be detected in the interface circuit; energizing the target interface branch and acquiring a target detection current, which characterizes the current through the detection resistor when the target interface branch is energized and the other interface branches among the multiple interface branches are in a de-energized state; further, based on the reference current and the target detection current, performing an access detection on the target interface branch to obtain a detection result. This access detection is used to detect whether the target interface branch is connected to a light-emitting unit. Therefore, by utilizing the current change through the detection resistor in the light-emitting module circuit, the access of a light-emitting unit to the light-emitting module circuit is detected, thus providing a reliable basis for obtaining the actual number of light-emitting units connected in the light-emitting module circuit, facilitating users to design different lighting effects based on the number of connected light-emitting units. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 This diagram illustrates the hardware environment of a detection method for a light-emitting module provided in an embodiment of this application.

[0011] Figure 2 A schematic diagram of the hardware environment for another detection method for a light-emitting module provided in an embodiment of this application is shown.

[0012] Figure 3 A schematic flowchart of a detection method for a light-emitting module provided in an embodiment of this application is shown.

[0013] Figure 4 A flowchart illustrating another detection method for a light-emitting module provided in an embodiment of this application is shown.

[0014] Figure 5 It shows Figure 4 A schematic diagram of a process for obtaining the target detection current in the detection method of the light-emitting module.

[0015] Figure 6 A block diagram of a detection device for a light-emitting module provided in an embodiment of this application is shown.

[0016] Figure 7 This is a module block diagram of an electronic device provided in an embodiment of this application.

[0017] Figure 8 This is a block diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation

[0018] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0019] To enable those skilled in the art to better understand the solutions of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0020] In splicable linear light-emitting modules, since the light-emitting units basically communicate in one direction, when a light-emitting unit sends a signal to the next light-emitting unit, it is impossible to determine whether the signal it sent to the next light-emitting unit is valid, and it is also impossible to determine whether the next light-emitting unit has been connected to the light-emitting module. This makes it difficult to detect the number of light-emitting units in the light-emitting module.

[0021] Currently, some light-emitting modules have light-emitting units equipped with microcontroller units (MCUs). This allows communication between MCUs to determine the presence of light-emitting units and thus detect their quantity. However, equipping each light-emitting unit with an MCU would significantly increase product costs, which is detrimental to production and sales.

[0022] To address the aforementioned issues, the inventors, after extensive research, proposed a detection method for the light-emitting module provided in the embodiments of this application. This method applies the detection of static current to the determination of the number of light-emitting units, which not only solves the difficulty in determining the number of light-emitting units but also reduces the detection cost.

[0023] The hardware environment of the detection method for the light-emitting module involved in this application will be introduced below.

[0024] like Figure 1 As shown, the detection method for the light-emitting module provided in this application embodiment can be applied to... Figure 1 The light-emitting module circuit 500 shown includes a detection resistor 501 and an interface circuit 503. The interface circuit 503 may include multiple parallel interface branches 5031, such as a first interface branch 502. Figure 2As shown, the light-emitting module circuit 500 may include a light source module 505, which includes multiple light-emitting units 5051, such as a first light-emitting unit 504. An interface branch 5031 is adapted to connect to the light-emitting units 5051 to supply power to them. The light-emitting module circuit 500 may also include a controller 507, which controls the power-on and power-off of each interface branch 5031. In one embodiment, the controller can be connected to multiple light-emitting units in the light source module via a serial signal line 506, and the controller can send on / off operation commands to the control chip of the light-emitting unit via the serial signal line 506.

[0025] For example, when the controller sends a lamp-off command to the control chips of all light-emitting units via the serial signal line, the control chips of all light-emitting units can power off all light-emitting units through the interface branch. It should be noted that after powering off all interface branches, since the control chips of all light-emitting units still have a base current, this base current can be taken as the quiescent current of the light source module. Knowing the resistance value of the sensing resistor, after measuring the voltage V across the sensing resistor, the current through the sensing resistor, i.e., the quiescent current of the light source module, can be calculated according to Ohm's law. This quiescent current can then be taken as the base current.

[0026] In some embodiments, the current I passing through the detection resistor 501 can be obtained, and the first interface branch 502 can be powered on while the other interface branches 5031 besides the first interface branch 502 can be powered off. At this time, the current I1 passing through the detection resistor 501 can be obtained. If the first interface branch 502 is connected to the light-emitting unit, that is, the first light-emitting unit 504, then I1>I. Thus, the difference in current of the detection resistor 501 before and after the interface branch is powered on / off can be used to determine whether the light-emitting unit is connected to the light-emitting module circuit.

[0027] It is worth noting that, in this embodiment, the power-off / power-on of the interface branch should be understood as: power-off / power-on of only one / specified interface branch in the interface circuit while the entire light-emitting module circuit is conducting. Furthermore, the interface of the interface circuit can be a physical plug-in interface, the two ends of which can be connected to the entire light-emitting module circuit via wires. Connecting the light-emitting module circuit to the light-emitting unit only requires electrically connecting the light-emitting unit to the interface, such as through the plug-in relationship between pins and sockets.

[0028] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0029] Please see Figure 3 , Figure 3An embodiment of this application illustrates a method for detecting a light-emitting module, which may include the following steps S110 to S170.

[0030] Step S110: Obtain the reference current. The reference current is used to characterize the static current of the detection resistor when all interface branches are in a de-energized state controlled by the controller.

[0031] During use, users can dynamically adjust the number of light-emitting units in the splicable linear light-emitting module according to the needs of the actual application scenario. In order to obtain the number of light-emitting units in real time, the change of current in the light-emitting module circuit can be used to determine whether the light-emitting unit is connected to the light-emitting module circuit, and thus obtain the number of light-emitting units.

[0032] The reference current should be understood as the static current measured by the detection resistor when all interface branches in the light-emitting module are in a de-energized state. When all interface branches in the light-emitting module are in a de-energized state, interface branch A in the interface circuit can be powered on. If interface branch A is connected to the light-emitting component, the current in the light-emitting module circuit will change.

[0033] As one implementation method, given the resistance value of the detection resistor, the voltage across the detection resistor can be obtained to calculate the current flowing through the detection resistor. When all interface branches are in a de-energized state, the voltage across the detection resistor can be obtained, and the static current flowing through the detection resistor can then be calculated.

[0034] For example, the controller in the light-emitting module can control the power-off of all interface branches. At this time, the controller can obtain the voltage U across the sensing resistor. Given the resistance value R of the sensing resistor, the static current of the sensing resistor can be calculated according to Ohm's law.

[0035] Step S130: Determine the target interface branch among multiple interface branches. The target interface branch is the interface branch to be tested in the interface circuit.

[0036] Among them, the target light-emitting interface branch refers to the interface branch that needs to be determined whether to connect to the light-emitting unit. The target interface branch can be randomly selected in the interface circuit or a specified interface branch. The current change of the light-emitting module circuit can be caused by controlling the power-on / power-off state of the target interface branch, thereby determining whether the target interface branch is connected to the light-emitting unit.

[0037] In one implementation, each interface branch can be sequentially identified as a target interface branch according to the order of the interface branches in the light-emitting module. In another implementation, a compromise can be made by sequentially identifying the interface branch located in the middle of the interface circuit as the target interface branch, thereby improving the efficiency of detecting whether the light-emitting unit is connected to the light-emitting module circuit.

[0038] Step S150: Power on the target interface branch and obtain the target detection current. The target detection current is used to characterize the current of the detection resistor when the target interface branch is powered on and the other interface branches among the multiple interface branches are powered off.

[0039] After powering off all interface circuits, in order to determine whether the target interface branch is connected to the light-emitting unit, only the target interface branch in the interface circuit can be powered on to obtain the current of the detection resistor, and then the current of the detection resistor can be compared with the reference current to determine whether the target interface branch is connected to the light-emitting unit.

[0040] As one implementation method, the target interface branch can be powered on, while the other interface branches in the interface circuit can be powered off. Furthermore, the current voltage across the detection resistor can be obtained, and then the current through the detection resistor under the current voltage, i.e., the target detection current, can be calculated.

[0041] Step S170: Based on the reference current and the target detection current, perform access detection on the target interface branch to obtain the detection result; wherein, the access detection is used to detect whether the target interface branch is connected to the light-emitting unit.

[0042] The access detection of the target interface branch refers to detecting whether the target interface branch is connected to the light-emitting unit. By performing access detection on all interface branches in the interface circuit, the detection results can include whether the target interface branch is connected to the light-emitting unit and whether the target interface branch is not connected to the light-emitting unit. Then, based on the access detection results of each interface branch, the number of light-emitting units connected in the light-emitting module can be obtained.

[0043] As one implementation method, the difference between the target detection current and the reference current can be used to determine whether the target interface branch is connected to the light-emitting unit. Optionally, when the target interface branch is detected to be connected to the light-emitting unit, the number of light-emitting units can be incremented by 1. For example, the controller creates a variable n to represent the number of light-emitting units. After initializing the variable n, if it is determined that the target interface branch is connected to the light-emitting unit, the variable n is incremented by 1, which can be recorded as n = n + 1. If it is determined that the target interface branch is not connected to the light-emitting unit, the variable n is not processed.

[0044] In this embodiment, a reference current is obtained to determine the target interface branch among multiple interface branches, and a target detection current is obtained. Further, based on the reference current and the target detection current, an access detection is performed on the target interface branch to obtain a detection result. This access detection is used to detect whether the target interface branch is connected to a light-emitting unit. Thus, the presence of a light-emitting unit is detected by using the change in current in the light-emitting module, and the number of light-emitting units in the light-emitting module can be calculated based on the detection result.

[0045] like Figure 4 As shown, Figure 4 This illustration schematically shows another detection method for a light-emitting module provided in an embodiment of the present application. The detection method for the light-emitting module may include the following steps S210 to S270.

[0046] To detect the presence of a light-emitting unit by measuring the change in current within the light-emitting module, after acquiring a reference current, the target interface branch can be sequentially activated to acquire a target detection current. Then, the presence of the light-emitting unit can be determined based on the change in current within the light-emitting module circuit. In some embodiments, the reference current is used to characterize the static current of the detection resistor when all light-emitting units are in a de-energized state. Acquiring the reference current may include steps S210 to S230, as detailed below:

[0047] Step S210: Power off all interface branches.

[0048] Optionally, the controller has control pins for voltage control of the interface branches, thereby allowing the controller to power off all interface branches via the control pins.

[0049] Step S220: Obtain the first voltage of the detection resistor.

[0050] Step S230: Calculate the static current corresponding to the first voltage as the reference current based on the first voltage of the sensing resistor.

[0051] In one implementation, the controller can power off all interface branches. Furthermore, when all interface branches are in a power-off state, the controller can acquire the first voltage across the detection resistor and calculate the static current corresponding to the first voltage, thereby using the static current corresponding to the first voltage as the reference current.

[0052] Step S240: Determine the target interface branch among multiple interface branches. The target interface branch is any interface branch to be tested in the interface circuit.

[0053] In this embodiment, the specific implementation of step S240 can be referred to the description of step S130 provided in the above embodiment, and will not be repeated here.

[0054] Step S250: Power on the target interface branch and acquire the target detection current.

[0055] In some embodiments, when a target interface branch is identified, the target interface branch can be powered on, and further, the target detection current can be acquired. For details, please refer to [link to relevant documentation]. Figure 5 Step S250 may include steps S251 to S253.

[0056] Step S251: Power on the target interface branch and power off the other interface branches among the multiple interface branches.

[0057] Step S252: Obtain the second voltage of the detection resistor.

[0058] Step S253: Calculate the current corresponding to the second voltage of the detection resistor as the target detection current.

[0059] After powering off all interface branches and obtaining the reference current, in order to determine whether the target interface branch is connected to the light-emitting unit, only the target interface unit can be powered on to obtain the current of the detection resistor. Then, the current of the detection resistor is compared with the reference current to determine whether the target interface unit is connected to the light-emitting unit.

[0060] In one implementation, the controller can power on the target interface branch and de-power all other interface branches in the interface circuit except the target interface branch, thereby acquiring the voltage across the detection resistor, i.e., the second voltage. When the second voltage of the detection resistor is acquired, the current corresponding to the second voltage can be calculated as the target detection current.

[0061] In some embodiments, the target interface branch is accessed based on the reference current and the target detection current to obtain the detection result. Specifically, this may include steps S260 and S270.

[0062] Step S260: Obtain the current difference between the target detection current and the reference current.

[0063] In order to determine whether the target interface branch is connected to the light-emitting unit, after obtaining the reference current, when the control is only applied to the target interface branch, if the target interface branch is connected to the light-emitting unit, the current of the flow direction detection resistor in the light-emitting module will increase. Therefore, the increase in the current of the detection resistor can be used to determine whether the target interface branch is connected to the light-emitting unit.

[0064] As one implementation method, after obtaining the reference current and the target detection current, the difference between the reference current and the target detection current can be calculated to obtain the current difference value. For example, given the reference current... The difference between the current and the target detection current I is then calculated.

[0065] Step S270: Based on the relationship between the current difference and the preset difference, perform access detection on the target interface branch and obtain the detection result.

[0066] The preset difference refers to a difference predefined based on the configuration parameters of the light-emitting unit. Optionally, these configuration parameters may include at least the resistance value of the target light-emitting unit and the input / output current, which are not limited here. The corresponding preset difference can be determined based on these configuration parameters.

[0067] For example, based on the output current of the light-emitting unit, the current passing through the light-emitting module and the current passing through the detection resistor when the light-emitting module is connected to the light-emitting unit can be determined. Thus, a preset difference can be determined based on the current passing through the light-emitting module and the current passing through the detection resistor at this time. It is worth noting that the preset difference can be a numerical range.

[0068] In some embodiments, if the detection result shows that the current difference is greater than a preset difference, it can be determined that the light-emitting unit is connected to the light-emitting module. Optionally, when it is determined that the light-emitting unit is connected to the light-emitting module, that is, when the target interface branch is connected to the light-emitting unit, the number of light-emitting units can be incremented by 1. Further, other interface branches can be re-determined as new target interface branches, and the connection detection of the new target interface branches can be performed. Further, the determination of target interface branches and the connection detection of target interface branches can be repeated in sequence.

[0069] In other embodiments, if the detection result is that the current difference is not greater than a preset difference, it is determined that the light-emitting unit is connected to or not connected to the light-emitting module. Further, other interface branches can be re-determined as new target interface branches, and access detection is performed on the new target interface branches. Further, the determination of target interface branches and the access detection of target interface branches are repeated in sequence.

[0070] In this embodiment, by controlling the power off of all interface branches, a first voltage of the detection resistor is obtained. Based on the first voltage of the detection resistor, a reference current is obtained. Furthermore, the current difference between the target detection current and the reference current is obtained. Based on the magnitude of the current difference and a preset difference, the target interface branch is connected for detection to obtain the detection result. Thus, it is possible to determine the presence of a light-emitting unit based on the change in current in the light-emitting module circuit, which facilitates the determination of the number of light-emitting units in the light-emitting module.

[0071] During use, users may add or remove light-emitting units to create different splicing shapes depending on the usage scenario. Therefore, the number of light-emitting units in the light-emitting module will also change continuously. In order to facilitate users to design different lighting effects according to the number of light-emitting units, users need to know the number of light-emitting units in the light-emitting module in real time.

[0072] In some embodiments, the light-emitting module can repeatedly execute steps S110, S130, and S150 to sequentially perform access detection on multiple interface branches and obtain detection results. Further, based on the detection results, the number of accessed light-emitting units in the light-emitting module circuit is accumulated.

[0073] Specifically, after obtaining the reference current, the first interface branch in the interface circuit can be selected as the target interface branch, and the target interface branch can be powered on to obtain the target detection current. Based on the reference current and the target detection current, the target interface branch can be connected for detection. If it is determined that the target interface branch is connected to the light-emitting unit, that is, the first light-emitting unit is connected to the light source module, then the actual number of light-emitting units connected in the light source module is recorded as 1.

[0074] Furthermore, the first interface branch in the interface circuit is selected as the target interface branch, and the target interface branch is powered on to obtain the target detection current. Based on the reference current and the target detection current, the target interface branch is connected for detection. If it is determined that the target interface branch is connected to the light-emitting unit, that is, the first light-emitting unit is connected to the light source module, the actual number of light-emitting units connected in the light source module is recorded as 2. In this way, the interface branches in all interface circuits are connected for detection in sequence to obtain the detection results. Finally, the actual number of light-emitting units connected in the light source module is accumulated.

[0075] For example, there is a light-emitting module with three interface branches arranged sequentially in its interface circuit: a first interface branch, a second interface branch, and a third interface branch. The controller in the light-emitting module can de-energize these three interface branches to obtain a reference current. Further, the first interface branch is designated as the target interface branch. The controller only turns on the first interface branch and de-energizes the second and third interface branches. At this time, the target detection current is obtained, and the first interface branch is determined to be connected to the light-emitting unit based on the reference current and the target detection current. In this way, the second and third interface branches are designated as target interface branches in sequence, and the corresponding target detection currents are obtained to determine whether the second and third interface branches are connected to the light-emitting unit.

[0076] Furthermore, if it is determined that the first interface branch, the second interface branch, and the third interface branch are connected to the light-emitting unit in sequence, then it can be determined that the actual number of light-emitting units connected in the light-emitting module is 3.

[0077] Considering that there are many light-emitting units in splicable linear light-emitting modules in actual application scenarios, the scheme of determining the number of light-emitting units by sequentially detecting whether each interface branch is connected to a light-emitting unit has the problem of low execution efficiency. Therefore, a compromise detection scheme can be used to calculate the actual number of connected light-emitting units.

[0078] In other embodiments, the position numbers corresponding to multiple interface branches in the interface circuit can be obtained. Based on the position numbers, the interface branch with the last position number is identified as the target interface branch. Then, access detection is performed on the target interface branch. Optionally, the number of accessed light-emitting units in the light-emitting module circuit can be determined based on the detection results. The detection results may include: the target interface branch has access to light-emitting units, and the target interface branch has not had access to light-emitting units. It should be noted that the maximum value of the position number is the maximum number of accessed light-emitting units that the light-emitting module can support. Furthermore, access detection is performed on the last-ranked interface branch, thereby determining the number of accessed light-emitting units in the light source module based on the detection results.

[0079] Specifically, the interface circuit may include a first interface branch, a second interface branch, ..., an nth interface branch (n>1 and n∈N*). The nth interface branch is determined as the target interface branch. The last interface branch is checked for access. If the nth interface branch is connected to a light-emitting unit, the number of light-emitting units connected in the light source module is determined to be n. If the nth interface branch is not connected to a light-emitting unit, the process returns to steps S130, S150, and S170, and the number of light-emitting units connected in the light-emitting module circuit is determined according to the detection results, until the target interface branch to be detected is connected to a light-emitting unit. In this execution of step S130, the n / 2th interface branch can be determined as the target interface branch.

[0080] Furthermore, the n / 2nd interface branch is identified as the target interface branch. Access detection is performed on this last interface branch. If the n / 2nd interface branch is connected to a light-emitting unit, the number of connected light-emitting units in the light source module is determined to be n / 2. If the n / 2nd interface branch is not connected to a light-emitting unit, the n / 4th light-emitting unit is identified as the target interface branch.

[0081] ...

[0082] Furthermore, if the second interface branch is connected to a light-emitting unit, the number of light-emitting units connected in the light source module is determined to be 2; if the second interface branch is not connected to a light-emitting unit, the number of light-emitting units connected in the light source module is determined to be 1.

[0083] For example, there is a splicable light-emitting module that can support a maximum number of light-emitting units of 63. In order to speed up the detection of the number of light-emitting units, the interface branch with position number 64 can be used as the target interface branch, and it can be determined whether the target interface branch is connected to a light-emitting unit. If it is not connected, the interface branch with position number 32 can be used as the target interface branch, and it can be determined whether the interface branch is connected to a light-emitting unit. If it is connected, it can be determined that the actual number of light-emitting units connected in the light source module is 32.

[0084] Optionally, if not connected, the interface branch with position number 16 can be used as the target interface branch, and it can be determined whether the target interface branch is connected to the light-emitting unit. If not connected, the interface branch with position number 8 can be used as the target interface branch, and it can be determined whether the target interface branch is connected to the light-emitting unit. In this way, each time the target interface branch is detected not connected to the light-emitting unit, the method of selecting the target interface branch is used to determine whether the target interface branch is connected to the light-emitting unit. Finally, the light-emitting module with 64 light-emitting units can be detected in a maximum of 6 times.

[0085] After obtaining the number of light-emitting units in the light-emitting module, the number of light-emitting units can be monitored in real time. When some light-emitting units malfunction and cannot work, they can be repaired / replaced in a timely manner, preventing the overall lighting effect of the light-emitting module from being poor due to the absence of light-emitting units. In addition, users can adaptively design different lighting effects according to the actual number of light-emitting units.

[0086] In some embodiments, when the actual number of light-emitting units is obtained, a light-emitting instruction can be obtained. This light-emitting instruction is used to characterize the user's instruction to control the light-emitting module to emit light. For example, the light-emitting module can obtain the light-emitting instruction from the client. This light-emitting instruction can be generated by the client controlling the light-emitting module according to the user's needs for the light display effect of the light-emitting module.

[0087] Furthermore, after obtaining the light emission command, the light emission module can control the light emission based on the actual number of light emission units and the light emission command. For example, the light emission module can display a lighting effect, in which half of the light emission units in the light emission module display red light and the other half display green light. For instance, when the actual number of detected light emission units is 10, the first five light emission units can be displayed in red and the last five light emission units can be displayed in green; when the number of detected light emission units is 20, the first 10 light emission units can be displayed in red and the last 10 light emission units can be displayed in green.

[0088] In this embodiment, the actual number of light-emitting units in the light-emitting module is obtained by detecting whether the light-emitting unit is connected to the interface branch. This avoids the overall lighting display effect of the light-emitting module being affected by the absence of light-emitting units, allowing users to adaptively design the lighting display of the light-emitting module according to the actual number of light-emitting units and their needs, greatly improving the user experience.

[0089] Please see Figure 6 This document illustrates a structural block diagram of a detection device 600 for a light-emitting module according to an embodiment of this application. The detection device 600 includes: a first acquisition module 610 for acquiring a reference current, which characterizes the static current through a detection resistor when all light-emitting units are in a power-off state controlled by a controller; a determination module 620 for determining a target light-emitting unit, which is a light-emitting unit in a light source module; a second acquisition module 630 for turning on the target light-emitting unit and acquiring a target detection current, which characterizes the current through the detection resistor when the target light-emitting unit is in a power-on state and the other light-emitting units are in a power-off state; and a detection module 640 for performing access detection on the target light-emitting unit based on the reference current and the target detection current to obtain a detection result.

[0090] In some embodiments, the first acquisition module 610 may be specifically used to: control all interface branches to be powered off; acquire the first voltage of the detection resistor; and calculate the static current corresponding to the first voltage as a reference current based on the first voltage of the detection resistor.

[0091] In some embodiments, the second acquisition module 630 may be specifically used to: control the target interface branch to be powered on and the other interface branches among the multiple interface branches to be powered off; calculate the current corresponding to the second voltage as the target detection current based on the second voltage of the detection resistor.

[0092] In some embodiments, the detection device 600 for the light-emitting module may further include: a second detection module: used to repeatedly execute steps S110, S130, and S150 to perform access detection on multiple interface branches respectively and obtain detection results; and an accumulation module: used to accumulate the number of accessed light-emitting units in the light-emitting module circuit according to the detection results.

[0093] In some embodiments, the determining module 620 may further include: a sequence number acquisition unit, used to acquire the position sequence number corresponding to multiple interface branches in the interface circuit; and a second determining unit, used to determine the interface branch with the last position sequence number as the target interface branch based on the position sequence number.

[0094] The determining module 620 can also be specifically used to determine the number of light-emitting units connected in the light-emitting module circuit based on the detection results, wherein the detection results include: the target interface branch is connected to a light-emitting unit, and the target interface branch is not connected to a light-emitting unit.

[0095] In some embodiments, the interface circuit includes a first interface branch, a second interface branch, ..., an nth interface branch (n>1 and n∈N*) in sequence. The second determining unit can be specifically used to determine the nth interface branch as the target interface branch. The determining module 620 can also be specifically used to determine the number of light-emitting units connected in the light source module as n if the nth interface branch is connected to a light-emitting unit; if the nth interface branch is not connected to a light-emitting unit, return to execute steps S130, S150, and S170 and determine the number of light-emitting units connected in the light-emitting module circuit according to the detection result, until the target interface branch to be detected is connected to a light-emitting unit. In this execution of step S130, the n / 2th interface branch is determined as the target interface branch.

[0096] In some embodiments, the detection module 640 may include: a difference acquisition unit for acquiring the current difference between the target detection current and the reference current; and a detection unit for performing access detection on the target interface branch based on the magnitude of the current difference and a preset difference, and obtaining the detection result.

[0097] The detection unit can be specifically used to: determine that the target interface branch is connected to the light-emitting unit if the current difference is greater than the preset difference; and determine that the target interface branch is not connected to the light-emitting unit if the current difference is not greater than the preset difference.

[0098] In some embodiments, the detection module 640 may further include: a parameter acquisition unit for acquiring configuration parameters of the target light-emitting unit; and a first determination unit for determining a corresponding preset difference based on the configuration parameters.

[0099] In some embodiments, the detection device 600 for the light-emitting module may further include: a third acquisition module for acquiring a light-emitting command, the light-emitting command being used to characterize a user's command to control the light-emitting module to emit light; and a control module for controlling the light-emitting module to emit light based on the access of the light-emitting unit in the light-emitting module circuit and the light-emitting command.

[0100] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0101] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0102] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0103] The solution provided in this application obtains a reference current, determines the target interface branch among multiple interface branches, and obtains the target detection current. Further, based on the reference current and the target detection current, it performs access detection on the target interface branch to obtain the detection result. This access detection is used to detect whether the target interface branch is connected to the light-emitting unit. Thus, the presence of the light-emitting unit is detected by using the change in current in the light-emitting module, and the number of light-emitting units in the light-emitting module is calculated based on the detection result.

[0104] like Figure 7 As shown, this application embodiment also provides an electronic device 700, which includes a processor 710 and a memory 720. The memory 720 stores computer program instructions, and when the computer program instructions are called by the processor 710, the above-described detection method of the light-emitting module is executed.

[0105] The processor 710 may include one or more processing cores. The processor 710 connects to various parts of the entire battery management system using various interfaces and lines, and performs various functions and processes data of the battery management system by running or executing instructions, programs, code sets, or instruction sets stored in the memory 720, and by calling data stored in the memory 720. Optionally, the processor 710 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 710 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 710 and may be implemented separately through a communication chip.

[0106] The memory 720 may include random access memory (RAM) or read-only memory (ROM). The memory 720 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 720 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created during the use of the electronic device.

[0107] like Figure 8 As shown, this application embodiment also provides a computer-readable storage medium 800, which stores computer program instructions 810, which can be called by a processor to execute the methods described in the above embodiments.

[0108] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media includes non-transitory computer-readable storage media. Computer-readable storage medium 800 has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.

[0109] The above are merely preferred embodiments of this application and are not intended to limit this application in any way. Although this application has disclosed preferred embodiments as above, it is not intended to limit this application. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the technical solution of this application. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of this application without departing from the scope of the technical solution of this application shall still fall within the scope of the technical solution of this application.

Claims

1. A method for detecting a light-emitting module, applied to a light-emitting module circuit, wherein the light-emitting module in the light-emitting module circuit is a splicable linear light-emitting module; The light-emitting module circuit includes a series-connected detection resistor, a controller, and an interface circuit. The interface circuit is adapted to connect the controller and the light source module. The interface circuit includes multiple parallel interface branches. The light source module includes multiple light-emitting units. The interface branches are adapted to connect to the light-emitting units to supply power to them. The method includes: Step S110: Obtain a reference current, which is used to characterize the static current through the detection resistor when the controller controls all the interface branches to be in a power-off state; Step S130: Determine the target interface branch among the multiple interface branches, wherein the target interface branch is the interface branch in the interface circuit that is to be detected whether it is connected to the light-emitting unit; Step S150: Power on the target interface branch and acquire the target detection current, which is used to characterize the current in the detection resistor when the target interface branch is powered on and the other interface branches among the multiple interface branches are powered off; and Step S170: Obtain the current difference between the target detection current and the reference current; and perform access detection on the target interface branch according to the relationship between the current difference and a preset difference to obtain a detection result, wherein if the current difference is greater than the preset difference, the detection result is determined to be that the target interface branch is connected to the light-emitting unit; if the current difference is not greater than the preset difference, the detection result is determined to be that the target interface branch is not connected to the light-emitting unit. Repeat steps S110, S130, and S150 to perform access detection on each of the multiple interface branches and obtain detection results; and Based on the detection results, the total number of light-emitting units connected in the light-emitting module circuit is calculated.

2. The method according to claim 1, characterized in that, The acquisition of the reference current includes: Power off all the aforementioned interface branches; Obtain the first voltage of the detection resistor; and Based on the first voltage, the quiescent current corresponding to the first voltage is calculated as the reference current.

3. The method according to claim 1, characterized in that, The step of powering on the target interface branch and acquiring the target detection current includes: Power on the target interface branch and power off the other interface branches among the plurality of interface branches; Obtain the second voltage of the detection resistor; and Based on the second voltage, the current corresponding to the second voltage is calculated as the target detection current.

4. The method according to claim 1, characterized in that, Determining the target interface branch among the plurality of interface branches includes: Obtain the position numbers corresponding to multiple interface branches in the interface circuit; and Based on the position number, the interface branch with the last position number is determined as the target interface branch; The method further includes step S190: determining the number of light-emitting units connected in the light-emitting module circuit based on the detection results, wherein the detection results include: the target interface branch is connected to a light-emitting unit, and the target interface branch is not connected to a light-emitting unit.

5. The method according to claim 4, characterized in that, The interface circuit includes a first interface branch, a second interface branch, ..., and a third interface branch. n Interface branch ( n >1 and n ∈ N* The step of determining the interface branch with the last position number as the target interface branch according to the position number includes: determining the first... n The interface branch is determined as the target interface branch; The step of determining the number of light-emitting units connected in the light-emitting module circuit based on the detection results includes: If the first n If an interface branch is connected to a light-emitting unit, then the number of light-emitting units connected in the light source module is determined to be... n ;as well as If the first n If the interface branch is not connected to the light-emitting unit, return to steps S130, S150, S170, and S190 until it is determined that the target interface branch to be detected is connected to the light-emitting unit. During the execution of step S130, the first... n / 2. The interface branch is determined as the target interface branch.

6. The method according to claim 1, characterized in that, Before performing access detection on the target interface branch based on the relationship between the current difference and a preset difference to obtain the detection result, the method further includes: Obtain the configuration parameters of the light-emitting unit; and Based on the configuration parameters, determine the corresponding preset difference.

7. The method according to any one of claims 4 to 5, characterized in that, The method further includes: Obtain a light emission command, wherein the light emission command is used to characterize a user command to control the light emission module to emit light; and The light-emitting module is controlled to emit light based on the number of light-emitting units connected in the light-emitting module circuit and the light-emitting command.

8. A detection device for a light-emitting module, applied to a light-emitting module circuit, wherein the light-emitting module circuit is used to implement the detection method for the light-emitting module as described in any one of claims 1 to 7, wherein the light-emitting module in the light-emitting module circuit is a splicable linear light-emitting module; the light-emitting module circuit includes a detection resistor, a controller, and an interface circuit connected in series, the interface circuit being adapted to connect the controller and a light source module, the interface circuit including multiple interface branches connected in parallel, the light source module including multiple light-emitting units; the interface branches being adapted to connect to the light-emitting units to supply power to the light-emitting units; The device includes: The first acquisition module is used to acquire a reference current, which is used to characterize the static current through the detection resistor when the controller controls all the interface branches to be in a power-off state. The determining module is used to determine a target interface branch among multiple interface branches, wherein the target interface branch is the interface branch in the interface circuit that is to be detected whether it is connected to the light-emitting unit; The second acquisition module is used to power on the target interface branch and acquire the target detection current, which is used to characterize the current in the detection resistor when the target interface branch is powered on and the other interface branches among the multiple interface branches are powered off; and A detection module is used to acquire the current difference between the target detection current and the reference current; and to perform access detection on the target interface branch according to the relationship between the current difference and a preset difference, and obtain a detection result, wherein if the current difference is greater than the preset difference, the detection result is determined to be that the target interface branch is connected to the light-emitting unit; if the current difference is not greater than the preset difference, the detection result is determined to be that the target interface branch is not connected to the light-emitting unit. The second detection module is used to repeatedly execute steps S110, S130, and S150 to perform access detection on multiple interface branches and obtain detection results. Accumulation module: used to accumulate the number of light-emitting units connected in the light-emitting module circuit based on the detection results.

9. An electronic device, characterized in that, include: Memory; One or more processors are coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1 to 7.