Light emitting circuit, wire branching terminal detection method, device and medium

By using a light-emitting circuit and a branch terminal detection method, and by automatically identifying the branch terminals using a controller and a sampling resistor, the problem of manually setting the position by the user is solved. This enables intelligent control of the lamps and position memory after power failure, improving user experience and system stability.

CN120825858BActive Publication Date: 2025-12-12SHENZHEN INTELLIROCKS TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511332272.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-18
Publication Date
2025-12-12
Estimated Expiration
2045-09-18

AI Technical Summary

Technical Problem

When using Y-type terminals in existing lighting products, users need to manually set the terminal positions, which is prone to errors and requires resetting after a power outage, affecting control effectiveness and convenience, and lacking automated detection capabilities.

Method used

By employing a light-emitting circuit and a branch terminal detection method, the controller and sampling resistor detect the current difference to automatically identify the branch terminal and the light-emitting unit, thereby achieving position acquisition and control without manual intervention.

Benefits of technology

It improves the intelligent control level and user experience of lighting products, reduces the user's operational burden, ensures that the lamps can still remember position information after power failure, and enhances the system's automated detection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120825858B_ABST
    Figure CN120825858B_ABST
Patent Text Reader

Abstract

The application provides a light-emitting circuit, a branch terminal detection method, equipment and a medium. The light-emitting circuit comprises a controller, a sampling resistor and a lamp group. The lamp group comprises a branch terminal and a plurality of light-emitting units. The branch terminal comprises an input port and a plurality of output ports. The input port of the branch terminal is directly or through one light-emitting unit or a plurality of series-connected light-emitting units in communication connection with the controller. The plurality of output ports of the branch terminal can be respectively in communication connection with a plurality of light-emitting units. The plurality of light-emitting units and the branch terminal are connected in parallel to a power supply, and the plurality of light-emitting units are all connected in series with the same sampling resistor. The branch terminal detection method can detect the branch terminal in the light-emitting circuit, so that when the layout of the light-emitting circuit changes, the branch terminal can still be automatically detected without manual participation, and the intelligence is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of lamps, and particularly relates to a light-emitting circuit, a branch terminal detection method, equipment and a medium. BACKGROUND

[0002] In the lighting field, with the continuous improvement of people's demand for life quality and individualization, lamp products not only bear the basic lighting function, but also pay more and more attention to the richness of lamp effects and intelligent control. At present, most of the lamp products on the market adopt a serial connection mode. This traditional connection mode has certain limitations in the diversity of lamp effects and control flexibility.

[0003] In order to enrich the lamp effects and improve the intelligent control level of lamp products, the industry usually uses Y-type terminals. The Y-type terminal supports Y-type distribution of data transmission, that is, realizes a one-in-two-out data distribution mode. In the branched lamp system, each lamp can still maintain the ability of individual control, greatly enhancing the diversity of lamp effects and control flexibility, and meeting the individualized demand for light effects in different scenes.

[0004] However, in the actual application process, the main controller cannot actively obtain the specific position information of the Y-type terminal. Therefore, the user needs to manually set the position of the Y-type terminal on the corresponding APP, and inform the main controller of these setting information through the APP.

[0005] This existing method has two obvious defects. On the one hand, the user needs to perform a tedious position setting operation on the APP, which not only increases the user's use burden, but also due to the relatively complex operation process, setting errors are easy to occur, affecting the normal use and control effect of the lamp. On the other hand, once the user modifies the position of the Y-type terminal, it is necessary to update the relevant information on the APP again, otherwise the main controller will not be able to accurately identify the connection state and control logic of the lamp, resulting in confusion in the control of the lamp.

[0006] In addition, the existing lamp products also have a more serious problem, that is, each time the lamp is powered off, the position information of each device in the lamp system will be forgotten. This means that after power-on again, the user needs to perform a tedious setting operation again to restore the normal control function of the lamp, which undoubtedly brings great inconvenience to the user and limits the convenience and stability of the lamp products in actual application.

[0007] In summary, the application scheme of the Y-type terminal in the existing lamp products has many deficiencies in position information acquisition, user interaction and power-off memory, and a new technical scheme is urgently needed to solve these problems to improve the intelligent control level and user experience of the lamp products. SUMMARY

[0008] The primary object of the present application is to solve at least one of the above problems and provide a light-emitting circuit, a branch terminal detection method, an apparatus and a medium.

[0009] To achieve the above objects, the present application adopts the following technical solutions:

[0010] To achieve one of the objects of the present application, a light-emitting circuit is provided, which comprises a controller, a sampling resistor and a lamp group. The lamp group comprises a branch terminal and a plurality of light-emitting units. The branch terminal comprises an input port and a plurality of output ports. The input port of the branch terminal is directly or through one light-emitting unit or a plurality of series-connected light-emitting units in communication with the controller. The plurality of output ports of the branch terminal can be respectively in communication with the plurality of light-emitting units. The plurality of light-emitting units and the branch terminal are connected in parallel to a power supply. The plurality of light-emitting units are all connected in series with the same sampling resistor.

[0011] In one embodiment, at least one output port of the branch terminal is in electrical connection with the input port of the next-level branch terminal.

[0012] In one embodiment, the light-emitting circuit further comprises a current detection unit, which is in electrical connection with the sampling resistor and the controller, respectively.

[0013] To achieve one of the objects of the present application, a branch terminal detection method is provided, which is based on the above-mentioned light-emitting circuit. The controller in the light-emitting circuit is responsible for executing the method. The method comprises the following steps:

[0014] When the lamp group is not driven to work, detecting and obtaining the static current on the sampling resistor;

[0015] Controlling each device in the light-emitting circuit to work individually in turn by the first control signal. When each device works, obtaining the first working current on the sampling resistor;

[0016] If the difference between the first working current and the static current is greater than a preset threshold value, determining that the current device is a light-emitting unit;

[0017] If the difference is less than the threshold value, sending the second control signal to the current device, and obtaining the second working current on the sampling resistor;

[0018] If the difference between the second working current and the static current is greater than the threshold value, determining that the current device is a branch terminal.

[0019] In one embodiment, the first control signal and the second control signal adopt different encoding formats. The branch terminal is configured to respond only to the signal encoded in the format corresponding to the second control signal.

[0020] When the branch terminal receives the second control signal, the port selection information in the second control signal is parsed and obtained;

[0021] The branch terminal controls the corresponding output port data to be turned on based on the port selection information, while keeping other output ports in an off state.

[0022] In one embodiment, the branch terminal has a plurality of output ports, each output port corresponding to a different address code, the port selection information includes the address code of the target output port, and the branch terminal turns on the corresponding output port based on the address code.

[0023] In one embodiment, after the step of determining that the current device is a branch terminal, the following steps are further included:

[0024] A circuit detection instruction is generated, the circuit detection instruction including a plurality of port control information, each port control information including port selection information and device driving information, the port selection information including the address code of the corresponding output port;

[0025] Based on the plurality of port control information, each output port of the branch terminal is alternately controlled to be individually data-conductive, and the corresponding device driving information is output to the conductive output port;

[0026] The second working current flowing through the sampling resistor is obtained, and the type of the device connected to the current output port is determined.

[0027] In one embodiment, in the step of obtaining the second working current of the sampling resistor and determining the type of the device connected to the current output port, the following specific steps are further included:

[0028] If the difference between the second working current and the static current is less than the threshold value, a second control signal is sent to the device connected to the current output port, and the second working current on the sampling resistor is obtained;

[0029] If the difference between the second working current and the static current is greater than the threshold value, it is determined that the device connected to the current output port is a branch terminal of the next level.

[0030] A computer device is provided to adapt to one of the purposes of the present application, including a central processing unit and a memory, the central processing unit being configured to invoke a computer program stored in the memory to execute the steps of the method according to any one of the preceding purposes.

[0031] To adapt to one of the purposes of the present application, a computer readable storage medium is provided, which stores a computer program implemented according to the method of any one of the preceding purposes in the form of computer readable instructions, and when the computer program is invoked and run by a computer, the steps included in the corresponding method are executed.

[0032] Compared with the prior art, the present application has many advantages, including but not limited to:

[0033] The branch terminal detection method of the present application realizes the automatic detection of the branch terminal. Without manual intervention, the method relies on the control of the controller on each device in the light-emitting circuit and the detection of the sampling resistance current, and can automatically judge whether the current detected device is a light-emitting unit or a branch terminal, thereby effectively solving the problem of relying on manual detection in the traditional detection method, filling the technical gap in the self-detection of the branch terminal, and greatly improving the automation degree of detection. BRIEF DESCRIPTION OF DRAWINGS

[0034] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description, taken in conjunction with the accompanying drawings, in which:

[0035] Figure 1 The circuit principle block diagram of the light-emitting circuit of one embodiment of the present application.

[0036] Figure 2 The flowchart of the branch terminal detection method of a typical embodiment of the present application.

[0037] Figure 3 The branch terminal control flowchart in the branch terminal detection method of one embodiment of the present application.

[0038] Figure 4 The flowchart after the step of determining that the current device is a branch terminal of one embodiment of the present application.

[0039] Figure 5 The flowchart of the step of obtaining the second working current of the sampling resistance and determining the type of the device connected to the current output port of one embodiment of the present application.

[0040] Figure 6 The structural diagram of the computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0041] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference signs represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are only used to explain the present application and cannot be interpreted as a limitation of the present application.

[0042] Those skilled in the art can understand that the singular forms "a," "an," and "the" used herein include plural referents unless otherwise stated. It should be further understood that the use of the term "include" in the specification of the application indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there can be an intermediate element. In addition, "connected" or "coupled" as used herein can include wireless connection or wireless coupling. The phrase "and / or" as used herein includes all or any one of the associated listed items and all combinations thereof.

[0043] Those skilled in the art can understand that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as that understood by a person of ordinary skill in the art to which the application belongs. It should also be understood that terms such as those defined in a general dictionary should be understood to have meanings consistent with those in the context of the prior art, and should not be interpreted with idealized or overly formal meanings unless specifically defined as such.

[0044] The present application provides a branch terminal detection method, which can detect the branch terminal in the light emitting circuit. By applying the branch terminal detection method, the controller can obtain the relevant information of the branch terminal in the light emitting circuit, and then the controller can control the electronic devices in the light emitting circuit through the branch terminal, effectively improving the intelligent level of the light emitting circuit.

[0045] The branch terminal detection method of the present application is based on the light emitting circuit. In order to clearly describe the branch terminal detection method, the circuit structure of the light emitting circuit will be described in detail first, so as to lay a foundation for the subsequent specific description of the branch terminal detection method.

[0046] In the typical embodiment of the present application, in combination with Figure 1 The light emitting circuit 10 includes a controller 100 and a lamp group, wherein the controller 100 and the lamp group realize signal interaction through electrical connection, and the controller 100 is configured to control the working state of the lamp group.

[0047] The lamp group is composed of a branch terminal 200 and a plurality of light emitting units 300. The branch terminal 200 is provided with an input port and a plurality of output ports. In the specific circuit connection structure of the embodiment, there are three feasible connection modes as follows: one is that the input port of the branch terminal 200 is directly electrically connected with the controller 100; the other is that the input port of the branch terminal 200 is indirectly electrically connected with the controller 100 through a light emitting unit 300; the third is that the input port of the branch terminal 200 is electrically connected with the controller 100 via a plurality of light emitting units 300 which are connected in series with each other.

[0048] In the embodiment, in order to clearly and accurately set forth the technical solution of the application, the case that the input port of the branch terminal 200 is electrically connected with the controller 100 via two light emitting units 300 which are connected in series with each other is taken as an example for description. It should be noted that the example is only used for assisting understanding of the application and does not constitute any limitation on the protection scope of the application.

[0049] Specifically, the above two light emitting units 300 which are connected in series with each other are respectively referred to as a first light emitting unit 310 and a second light emitting unit 320. The controller 100 sequentially connects the first light emitting unit 310, the second light emitting unit 320 and the branch terminal 200 in series with each other through a communication cable, so as to build a corresponding circuit connection structure.

[0050] In the application, the output ports of the branch terminal 200 have a plurality of electrical connection modes: one or more output ports of the branch terminal 200 can be electrically connected with one or more light emitting units 300, or electrically connected with the input ports of one or more next-level branch terminals 200. Specifically, there are the following connection modes: one is that the plurality of output ports of the branch terminal 200 are respectively and one-to-one electrically connected with the plurality of light emitting units 300; the second is that the output ports of the branch terminal 200 are respectively and correspondingly electrically connected with the input ports of the plurality of next-level branch terminals 200; the third is that one or more output ports of the branch terminal 200 are respectively and correspondingly electrically connected with one or more light emitting units 300, and the remaining one or more output ports of the branch terminal 200 are respectively and correspondingly electrically connected with the input ports of one or more next-level branch terminals 200.

[0051] In the typical embodiments of the present application, for the sake of clarity and accuracy in describing the technical solutions of the present application, the branch terminal 200 is provided with two output ports, and the two output ports are respectively electrically connected with two light emitting units 300. It should be emphasized that this example is only used to assist in understanding the present application and does not limit the protection scope of the present application. Specifically, the two output ports of the branch terminal 200 are respectively referred to as a first output port and a second output port; the light emitting unit 300 electrically connected with the first output port is referred to as a third light emitting unit 330, and the light emitting unit 300 electrically connected with the second output port is referred to as a fourth light emitting unit 340.

[0052] In the light emitting circuit 10 related to the present application, a sampling resistor R and a power supply are further included. From the circuit connection structure, all the light emitting units 300 in the light emitting circuit 10 are arranged in a parallel connection mode, that is, the light emitting units 300 are independent of each other and the first ends and the last ends are connected. On this basis, all the light emitting units 300 are also connected in series with the sampling resistor R, so that the current can uniformly pass through the sampling resistor R after flowing through the light emitting units 300; at the same time, all the light emitting units 300 are connected in series with the power supply, thereby forming a complete current loop to ensure that the light emitting units 300 can obtain stable power supply to normally emit light.

[0053] The light emitting circuit 10 further comprises a current detection unit 420. The current detection unit 420 is electrically connected with the sampling resistor R and the controller 100, respectively. The main function of the current detection unit 420 is to accurately detect the current flowing through the sampling resistor R, so as to obtain the current information at the sampling resistor R in real time and output the detected current data to the controller 100 in a specific signal form.

[0054] In a specific embodiment, the current detection unit 420 has multiple feasible implementation forms. One form is a current detection circuit, which is usually composed of multiple electronic elements according to a predetermined circuit topology structure, and can calculate the current flowing through the sampling resistor R by measuring the voltage difference between the two ends of the sampling resistor R and combining the resistance value of the sampling resistor R according to Ohm's law.

[0055] In an embodiment of the present application, the light emitting unit 300 preferably adopts the form of a light string or a light strip. The light string is usually formed by a plurality of small light emitting elements, such as light emitting diodes (LEDs), which are connected in series or in parallel through wires, and has the characteristics of flexible structure, bendability and easy arrangement, and can be easily wound around the surface of various objects or hung in a specific position according to actual needs. The light strip is formed by integrating a plurality of light emitting elements on a flexible circuit board, and is usually provided with a transparent or colored plastic shell for protection. The light strip not only has good flexibility, but also emits light uniformly, and can provide a relatively soft and continuous light effect.

[0056] In actual application, a plurality of the above-mentioned light emitting units 300 can be arranged in the light emitting circuit 10, and these light emitting units 300 work cooperatively. By precisely controlling the light emitting states, such as brightness, color, flicker frequency, etc., of each light emitting unit 300 through the controller 100, various and pre-set light effects can be formed. For example, the light emitting units 300 can be arranged to be lit and extinguished in a certain order to form the effect of a flowing water lamp; different colored light emitting units 300 can be arranged to flicker alternately to create a lively and cheerful atmosphere; and the brightness of the light emitting units 300 can be adjusted to simulate the light effect of natural scenes such as starlight flickering. These light effects can significantly improve the atmosphere of the surrounding environment, meet the diversified needs of light effects in different occasions, such as festivals, home decoration, commercial display, etc., and bring users a unique visual experience and emotional resonance.

[0057] In a typical embodiment of the present application, the branch terminal detection method is based on the above-mentioned light emitting circuit, and the controller is used to execute the branch terminal detection method, and the controller can detect the branch terminal in the light emitting circuit by executing the branch terminal detection method. In combination with Figure 1 and Figure 2 , the branch terminal detection method comprises the following steps:

[0058] Step S1100, detecting the static current on the sampling resistor when the light group is not driven;

[0059] In the present application, the controller has signal sending and control functions, and outputs a control signal to the light group to realize driving control of the working state of the light group, so that the light group can perform light emitting operation according to the preset requirements. Conversely, when the controller stops sending the control signal to the light group, the light group is in an inoperative state due to the lack of driving instructions, and the light emitting units in the light group will not emit light.

[0060] Further, when the controller does not implement driving work on the lamp group, i.e. the lamp group is in an inoperative state, the controller sends corresponding control instructions to the current detection unit to control the current detection unit to detect the current flowing through the sampling resistor. After receiving the instructions from the controller, the current detection unit performs current detection operation and outputs the detected current data to the controller in a specific signal form.

[0061] In the embodiment, for the convenience of description and understanding, the current flowing through the sampling resistor when the lamp group is in the inoperative state is defined as static current. The static current reflects the current consumed by the parts other than the lamp group in the light emitting circuit, such as the sampling resistor, the current detection unit, etc. under the condition that the lamp group does not emit light.

[0062] In step S1200, each device in the light emitting circuit is sequentially and alternately controlled to work individually by the first control signal, and the first working current on the sampling resistor is acquired when each device works.

[0063] In the present application, after the controller acquires the related data of the static current, the controller outputs the first control signal to the lamp group. The first control signal is transmitted in the form of serial signal.

[0064] Specifically, the first control signal contains a plurality of driving signals, and each driving signal contains driving information and driving time. The driving information is used to indicate what kind of light emitting operation is performed on the corresponding light emitting unit, such as color, brightness, etc. The driving time clearly specifies the time length of the driving signal, i.e. the light emitting time period of the corresponding light emitting unit.

[0065] Moreover, the driving time of each of the plurality of driving signals does not exist in the time dimension, i.e. the driving time of any two driving signals does not overlap. Based on this feature, when the plurality of light emitting units in the lamp group receives the first control signal, they do not perform light emitting operation at the same time. That is, the first control signal can realize sequential and alternate light emitting control on the plurality of light emitting units.

[0066] From the perspective of time axis, the driving time corresponding to the plurality of light emitting units is arranged in sequence according to the order of these light emitting units in the serial connection of the controller communication. Specifically, the controller and the plurality of light emitting units are serially connected in sequence through the communication line. When the first control signal is sent, each light emitting unit is allocated with corresponding driving time according to the serial connection order, and the plurality of driving times are ensured not to overlap.

[0067] In the present application, the controller performs a signal output operation to transmit the first control signal to a first light emitting unit in the light group in communication with the controller. The first light emitting unit, after successfully receiving the first control signal, extracts a driving signal corresponding thereto from the first control signal according to a preset signal analysis rule. For the sake of subsequent description, the driving signal is referred to as a first driving signal.

[0068] The first light emitting unit further analyzes the first driving signal to obtain corresponding driving information and a driving time, which is referred to as a first driving time. The first light emitting unit starts its light emitting driving mechanism according to the obtained driving information to drive itself to perform light emitting operation. Meanwhile, the first light emitting unit calculates and determines its starting light emitting time and ending light emitting time based on the first driving time, thereby realizing accurate control of its light emitting duration and ensuring that the light emitting process is strictly performed according to preset requirements.

[0069] After the first light emitting unit completes the operation of obtaining the first driving signal from the first control signal, the first light emitting unit forwards the first control signal to a second light emitting unit in communication connection therewith according to a preset communication protocol. The second light emitting unit, after receiving the first control signal, also extracts a driving signal matching thereto from the first control signal according to a preset signal analysis process, which is referred to as a second driving signal.

[0070] The second light emitting unit analyzes the second driving signal to obtain corresponding driving information and a driving time contained therein, which is referred to as a second driving time. The second light emitting unit drives itself to emit light according to the obtained driving information. Moreover, the second light emitting unit determines its starting light emitting time and ending light emitting time according to the second driving time, thereby realizing effective control of its light emitting duration.

[0071] In the present embodiment, the first driving time and the second driving time do not exist in the time dimension, that is, they do not occur at the same time. In terms of the order of time axis, the first driving time is prior to the second driving time. Based on such time arrangement, the first light emitting unit and the second light emitting unit do not emit light at the same time, thereby realizing the control effect of sequentially and alternately emitting light of the two light emitting units.

[0072] In the present application, the controller is provided with timing control and current detection judgment functions. Specifically, the controller issues control instructions to the current detection unit at each preset driving time node based on the driving time in each driving signal contained in the first control signal, and drives the current detection unit to detect the current flowing through the sampling resistor. For ease of description, the detected current is referred to as the first working current.

[0073] The controller accurately judges whether the device in the working state in the light emitting circuit in the current driving time is the light emitting unit by collecting the first working current and according to the preset judgment logic.

[0074] Further analysis of the connection structure of the light emitting circuit shows that all the light emitting units in the light emitting circuit are in series connection with the power supply and the sampling resistor, that is, the current flows through the power supply, the light emitting unit (one or more combinations, but only one works at the same time under the control logic) and the sampling resistor in turn; at the same time, all the light emitting units are connected in parallel in the current transmission path, which means that from the perspective of current transmission, each light emitting unit is independent and can be turned on or off individually. Moreover, the controller is connected in series with the plurality of light emitting units through the communication cable, and this series connection enables the controller to alternately drive and control the light emitting units through the first control signal.

[0075] Based on the above circuit connection structure and control method, in the process of alternately driving the light emitting units by the controller through the first control signal, for each specific driving time, only one light emitting unit is in the working state at the same time, and the remaining light emitting units are in the non-working state. Under such working mode, the controller can accurately judge whether the device in the working state in the light emitting circuit in the current driving time is the light emitting unit by obtaining the first working current and comparing it with the preset current range of the normal working light emitting unit, thereby realizing real-time monitoring and precise control of the working state of the light emitting circuit.

[0076] Step S1300, if the difference between the first working current and the static current is greater than the preset threshold, it is determined that the current device is a light emitting unit;

[0077] In the light-emitting circuit, the branch terminal does not have the ability to identify the first control signal. Specifically, when the branch terminal receives the first control signal, due to the limitation of its own hardware structure or control logic, it cannot analyze and process the signal, and thus will not trigger any working action. In view of the electrical connection relationship between the branch terminal and the light-emitting unit, the non-working state of the branch terminal directly leads to the fact that the light-emitting unit electrically connected thereto cannot obtain a driving signal, and thus the light-emitting unit will not enter a working state, i.e., will not emit light.

[0078] Based on the above characteristics, in the driving time interval corresponding to the branch terminal, since there is no light-emitting unit in the working state in the light-emitting circuit, at this time, the current in the light-emitting circuit is mainly generated by the static power consumption of other circuit elements (such as a sampling resistor, a current detection unit, etc.) other than the light-emitting unit. Therefore, the first working current collected by the controller in the current driving time is approximately equal to the static current of the light-emitting circuit. The static current refers to the current naturally consumed in the circuit when the light-emitting unit is in a non-working state, and the value thereof can be determined by pre-measurement and calibration.

[0079] The controller has a current difference judgment function, and at each driving time node, the controller calculates the difference between the first working current obtained and the static current determined in advance. For the sake of subsequent description, the difference is defined as a first difference. Subsequently, the controller compares and analyzes the first difference with a preset threshold. The preset threshold is set according to the current characteristics of the light-emitting unit in the normal working state and the allowable error range of the circuit, and is used to judge whether there is a light-emitting unit working in the light-emitting circuit. If the first difference is greater than the preset threshold, it indicates that the current change in the light-emitting circuit in the current driving time exceeds the normal fluctuation range of the static current, and thus it can be determined that the device in the working state in the light-emitting circuit is the light-emitting unit.

[0080] For example, in the first driving time interval, the first difference calculated by the first working current detected by the controller and the static current is less than the preset threshold. According to the above judgment logic, it can be determined that in the first driving time interval, the device in the working state in the light-emitting circuit is the first light-emitting unit corresponding to the driving time. Similarly, in the second driving time interval, if the first difference between the first working current detected by the controller and the static current is also less than the preset threshold, it can be determined that in the second driving time interval, the device in the working state in the light-emitting circuit is the second light-emitting unit. Through this judgment method based on the current difference, the controller can accurately identify the light-emitting unit actually working in the light-emitting circuit in different driving times, thereby realizing accurate control and state monitoring of the light-emitting circuit.

[0081] Step S1400, if the difference is less than a threshold, a second control signal is sent to the current device, and a second working current on the sampling resistor is obtained;

[0082] In the light-emitting circuit, the controller performs current collection and judgment operation in each preset driving time interval. Specifically, the controller collects the first working current and calculates the first difference between the first working current and the pre-determined static current. If the first difference is less than a pre-set threshold, the controller will make a preliminary judgment that the device currently in the working state (or suspected to be in the working state) is likely to be a branch terminal, or the device is an electronic device in a fault state.

[0083] Since the branch terminal does not have the ability to identify the first control signal in hardware design or control logic, the branch terminal cannot be driven into the working state by the first control signal. To achieve control and detection of the branch terminal, the controller uses a second control signal for driving operation. The first control signal and the second control signal differ in signal format, encoding method, transmission protocol and other key characteristics to ensure that the branch terminal can accurately identify the second control signal and respond accordingly.

[0084] When the controller detects that the first difference is less than the threshold, the second control signal is output to the light group. In a preset first predetermined time, the controller synchronously drives the current detection unit to detect the current flowing through the sampling resistor, and the detected current is called the second working current. The controller collects and analyzes the second working current to indirectly determine whether there is a branch terminal in the light-emitting circuit.

[0085] If the current device is indeed a branch terminal, when the branch terminal receives the second control signal, it will extract port control information from the second control signal according to its internal pre-set signal analysis rule. Then, the branch terminal forwards the port control information to one of the output ports. If the output port is electrically connected to a light-emitting unit, the light-emitting unit will receive the port control information and control its working state (such as light-emitting brightness, color, flicker frequency, etc.) according to the information. In this process, the controller continuously drives the current detection unit to detect the second working current flowing through the sampling resistor, and further confirms whether there is a branch terminal in the light-emitting circuit and whether the working state of the branch terminal is normal by analyzing the change of the second working current. Through the above method, the controller can effectively detect and control the branch terminal in the light-emitting circuit, and improve the reliability and stability of the entire light-emitting circuit.

[0086] Specifically, after successfully receiving the second control signal, the signal analysis module integrated in the branch terminal will parse the second control signal according to a preset signal analysis protocol, and extract port control information therefrom. The port control information contains specific control instructions for the output port of the branch terminal, such as the on-off state of the output port, the level of the output signal, and other key parameters.

[0087] Subsequently, the branch terminal will forward the parsed port control information to one of the output ports. In this process, the branch terminal will determine the target output port according to a preset port allocation rule or a dynamic selection strategy, to ensure the accuracy and effectiveness of signal transmission.

[0088] If the selected output port is electrically connected to a light-emitting unit, the light-emitting unit will receive the port control information through its own signal receiving interface. The control circuit inside the light-emitting unit will further process the received port control information, convert it into a specific driving signal, and accurately control the working state of the light-emitting unit according to the driving signal, such as adjusting the luminance, switching the color, controlling the flicker frequency, etc., thereby achieving flexible control of the light-emitting unit.

[0089] At the same time, the controller will issue a driving instruction to the current detection unit to drive the current detection unit to detect the current flowing through the sampling resistor in real time, according to the preset timing control logic during the period when the light-emitting unit works based on the port control information. For subsequent analysis and judgment, the detected current is defined as the second working current.

[0090] The controller collects and records the relevant data of the second working current, and analyzes and processes the second working current according to a preset judgment algorithm and standard. Since the branch terminal and the light-emitting unit connected thereto will change the current distribution in the light-emitting circuit when working, resulting in specific change characteristics of the second working current. Therefore, by monitoring the change of the second working current, the controller can indirectly and accurately judge whether there is a branch terminal in the light-emitting circuit and whether the working state of the branch terminal is normal, thereby achieving precise monitoring and effective control of the entire light-emitting circuit.

[0091] Step S1500, if the difference between the second working current and the static current is greater than the threshold value, it is determined that the current device is a branch terminal;

[0092] In the light-emitting circuit of the present application, the controller continuously drives the current detection unit to collect the current flowing through the sampling resistor within a specific time interval of a first predetermined time length, and obtains the second working current. Meanwhile, the controller retrieves the static current value previously determined and stored in the internal storage unit. Then, the controller performs a difference calculation operation, i.e., calculates the second difference between the second working current and the static current.

[0093] After the calculation of the second difference is completed, the controller strictly compares and analyzes the second difference with a preset threshold value. If the second difference obtained through multiple sampling and calculation within the first predetermined time length is greater than the preset threshold value, the controller makes a clear determination that the device currently under detection is a tap terminal based on the preset judgment logic. The determination is based on the following principle: when the tap terminal is normally working and forwards the port control information to the output port according to the foregoing process, and then drives the connected light-emitting unit to work, the current in the light-emitting circuit will change significantly due to the connection and work of the light-emitting unit, resulting in a significant increase in the second working current, so that the second difference exceeds the normal fluctuation range of the static current, i.e., is greater than the preset threshold value.

[0094] In one embodiment, in order to further ensure the accuracy and reliability of the determination result, the controller will perform a series of auxiliary verification operations after making the determination that the current device is a tap terminal. For example, the controller will send a specific test control signal to the tap terminal again, which has a unique encoding format and control instruction for triggering the tap terminal to perform a specific response action. At the same time, the controller continuously monitors the change of the second working current to observe whether it matches the expected current change characteristics corresponding to the response action of the tap terminal. If the change of the second working current matches the expected characteristics, it is further confirmed that the current device is a tap terminal; otherwise, if the change of the second working current does not match the expectation, the controller will restart the detection process to detect and judge the current device again to exclude the misjudgment caused by accidental factors and ensure the stability and accuracy of the entire light-emitting circuit control and detection system.

[0095] In any embodiment of the tap terminal detection method of the present application, in combination with Figure 3 , the first control signal and the second control signal use different encoding formats, and the tap terminal is configured to respond only to signals corresponding to the format encoding of the second control signal. Specifically:

[0096] Step S1410, when the tap terminal receives the second control signal, parses the port selection information and device driving information in the second control signal;

[0097] In the light-emitting circuit of the present application, the branch terminal has the ability to analyze and process the control signal. When the branch terminal successfully receives the second control signal, it analyzes the second control signal and extracts port control information therefrom. The port control information includes two pieces of information, namely, port selection information and device driving information. The port selection information is used to determine the target path of signal transmission, and the device driving information is used to control the working state of the device connected to the target port.

[0098] Specifically, the branch terminal is designed with multiple output ports to achieve independent control and signal distribution of different devices. To facilitate accurate identification and management of each output port, each output port is assigned a unique address code. The port selection information explicitly includes the address code of the target output port, which serves as the basis for the branch terminal to select the output port. After receiving the port selection information, the internal port selection control circuit of the branch terminal will perform a matching operation based on the address code to turn on the output port corresponding to the address code, while ensuring that the other unselected output ports are in an off state to avoid signal interference and mis-transmission.

[0099] To more clearly illustrate the above-mentioned port selection and turn-on mechanism, the following specific examples are provided. Assume that the branch terminal is provided with a first output port and a second output port, where the address code of the first output port is set to 01 and the address code of the second output port is set to 02. When the address code included in the port selection instruction is 01, the internal port selection control circuit of the branch terminal will quickly identify the address code and turn on the first output port and the input port through the corresponding electronic switching element (such as a transistor, a relay, etc.), allowing the second control signal to be transmitted smoothly to the first output port. At the same time, the second output port remains in an off state due to not receiving the matching address code, i.e., the second output port is in an off state, thereby ensuring that the signal is transmitted only to the specified first output port, achieving accurate selection and control of the output port. Through this address code-based port selection and turn-on mechanism, the branch terminal can efficiently and accurately distribute the control signal to the corresponding output port, providing a reliable guarantee for subsequent driving control of the connected device.

[0100] Step S1420, the branch terminal controls the corresponding port data to be turned on based on the port selection information, while keeping other output ports in an off state;

[0101] The branch terminal will execute accurate port control operation according to the port selection information after successfully resolving the port selection information from the second control signal. Specifically, the branch terminal will trigger the electronic switch element corresponding to the output port corresponding to the port selection information to be turned on according to the port control instruction, so as to realize the data conduction of the output port; at the same time, the electronic switch elements corresponding to the output ports not designated by the port selection information will remain in an off state, ensuring that these output ports are in a closed state, thereby avoiding cross interference and mis-transmission of signals, and ensuring the accuracy and reliability of signal transmission.

[0102] When the output port successfully realizes data conduction, the branch terminal will output the device driving information contained in the port control information to the device in communication connection with the output port through the conduction output port.

[0103] If the device in communication connection with the conduction output port is a light-emitting unit, the light-emitting unit is internally provided with a signal receiving and processing module. When the light-emitting unit receives the device driving information, the signal receiving and processing module will analyze and convert the information to generate a control signal capable of directly driving the light-emitting element to work. After receiving the control signal, the light-emitting unit will adjust its working parameters according to the instructions of the signal, such as current size, voltage level, etc., so as to enter a working state and emit light externally.

[0104] Since the working state of the light-emitting unit changes, the current consumed by the light-emitting unit will also change accordingly. In the light-emitting circuit, a sampling resistor is connected in series in the circuit for real-time monitoring of the current change in the circuit. When the light-emitting unit works, the current flowing through the sampling resistor will increase, thereby causing the size of the second working current to change. The controller can indirectly obtain the working state information of the light-emitting unit by continuously collecting and analyzing the change of the second working current, thereby realizing accurate monitoring and control of the entire light-emitting circuit.

[0105] To more intuitively illustrate the above process, the following is described in conjunction with a specific example. Assume that the branch terminal is provided with a plurality of output ports, such as a first output port and a second output port, wherein the first output port is in communication connection with a third light emitting unit. When the port selection information specifies that the first output port is turned on, the branch terminal turns on the electronic switch element corresponding to the first output port, while ensuring that other output ports, such as the second output port, remain in an off state. Subsequently, the branch terminal outputs the device driving information to the third light emitting unit through the turned-on first output port. After receiving the device driving information, the signal receiving and processing module inside the third light emitting unit analyzes and processes the information, and drives the light emitting element to emit light of a specific color and brightness. At this time, since the third light emitting unit is working, the second working current flowing through the sampling resistor increases, and the controller can know that the third light emitting unit has entered the working state by detecting the change of the second working current.

[0106] On the basis of any embodiment of the branch terminal detection method of the present application, in combination with Figure 4 , the step of determining that the current device is a branch terminal further comprises the following steps:

[0107] In step S1600, a circuit detection instruction is generated, the circuit detection instruction comprising a plurality of port control information, each port control information comprising port selection information and device driving information, the port selection information comprising the address code of the corresponding output port;

[0108] The controller has the function of detecting the type of the device connected to the output port of the branch terminal. To realize this function, the controller generates a circuit detection instruction, the core purpose of which is to detect the specific type of the device in communication connection with each output port of the branch terminal, for example, to clearly determine whether the device connected to the output port is a light emitting unit or a next-level branch terminal, thereby providing a key basis for subsequent accurate control and effective management of the entire light emitting circuit.

[0109] The circuit detection instruction comprises a plurality of port control information. These port control information are not generated randomly, but are customized one by one for the plurality of output ports of the branch terminal, ensuring that each output port has corresponding port control information to realize independent and accurate detection of each output port.

[0110] Specifically, each port control information contains port selection information and device driving information. The port selection information is a key element for accurate selection of a specific output port. In order to accurately identify and select each output port, each output port of the distribution terminal is assigned a unique address code. The address code of the target output port is explicitly included in the port selection information, which serves as the identification basis for the distribution terminal. When the port control information is transmitted to the distribution terminal, the distribution terminal will parse the address code in the port selection information and compare it with the pre-stored address codes of each output port, thereby accurately identifying the target output port and turning on the corresponding output port based on the address code, ensuring that the signal can be accurately transmitted to the target port.

[0111] The device driving information is used to trigger a specific response from the device connected to the target output port, so that the controller can determine the type of the device based on the response of the device. Different types of devices (such as light-emitting units and next-level distribution terminals) have different response modes to the device driving information. By analyzing these differences, the controller can accurately determine the type of the device connected to the output port. For example, when the output port is connected to a light-emitting unit, the light-emitting unit will emit light after receiving the device driving information, causing the current flowing through the sampling resistor to change. The controller can determine that the port is connected to a light-emitting unit by detecting the change in current. When the output port is connected to a next-level distribution terminal, the response characteristics of the next-level distribution terminal to the device driving information are different from those of the light-emitting unit. Through this detection method based on port control information, the controller can efficiently and accurately obtain the type information of the devices connected to each output port of the distribution terminal.

[0112] In step S1700, the controller alternately controls the individual data conduction of each output port of the distribution terminal based on the plurality of port control information, and outputs corresponding device driving information to the conduction output port.

[0113] The controller uses a time-division multiplexing control strategy to output the port control information to the distribution terminal in different predetermined time periods. This time-division control method ensures that the detection and control processes of each output port of the distribution terminal do not interfere with each other, thereby ensuring the stability and accuracy of the entire circuit system.

[0114] Specifically, when the distribution terminal receives the port control information from the controller, it will perform in-depth analysis on the port control information. For the port selection information part, the distribution terminal will extract the address code of the target output port included therein. Based on the address code, the distribution terminal can quickly and accurately locate the output port corresponding to the received address code and generate the corresponding port conduction control instruction.

[0115] After successfully turning on the target output port, the branch terminal further outputs device driving information in the port control information to the device connected to the turned-on output port.

[0116] To more clearly illustrate the above process, the following will be described in detail in combination with specific examples. It is assumed that the branch terminal is provided with a plurality of output ports, such as a first output port, a second output port, etc., and each output port is assigned a unique address code, wherein the address code of the first output port is set as 01. When the address code 01 is contained in the port selection instruction output by the controller within a predetermined time period, the signal analysis and port control module of the branch terminal will recognize the address code, determine that the target output port is the first output port, and thus realize the turning on of the first output port. At the same time, the branch terminal will output the device driving information in the port control information to the device connected to the port through the turned-on first output port. If the first output port is connected to a light-emitting unit, the internal driving circuit of the light-emitting unit will adjust the working parameters according to the instructions of the driving information after receiving the driving information, so that the light-emitting unit emits light; if it is connected to a next-level branch terminal, the next-level branch terminal will analyze and execute the corresponding operation on the device driving information, such as further forwarding signals or controlling its own output port, etc.

[0117] In step S1800, the second working current flowing through the sampling resistor is obtained to determine the type of the device connected to the current output port.

[0118] Within a predetermined time period, the controller will send a detection instruction to the current detection unit to control the current detection unit to detect the current on the sampling resistor in real time and accurately, and thus obtain the second working current on the sampling resistor within the predetermined time period.

[0119] The second difference between the second working current and the static current is calculated by numerical operation. Then, the controller compares the calculated second difference with the pre-set threshold value in detail.

[0120] If the second difference obtained by multiple sampling and calculation within the predetermined time period is greater than the pre-set threshold value, it indicates that the current change in the current circuit exceeds the normal fluctuation range of the static current, and meets the current change characteristics caused by the normal working of the light-emitting unit. Based on this, the controller makes a clear determination according to the pre-set judgment logic: the device connected to the current output port is a light-emitting unit. This is because when the light-emitting unit is normally working and connected to the circuit, it will consume additional electric energy, thereby causing the current flowing through the sampling resistor to increase, so that the second difference between the second working current and the static current increases and exceeds the threshold value.

[0121] Conversely, if the second difference value obtained by multiple sampling and calculation is less than the preset threshold value within the predetermined time period, there are several possible situations. One possibility is that the device connected to the current output port is a branch terminal of the next stage, since the branch terminal mainly plays a role of signal forwarding and port expansion in operation, it consumes less power and has less impact on the current in the circuit, so it will not cause a large difference between the second working current and the static current. Another possibility is that the current output port is not connected to any device, at this time only the natural power consumption of the basic element exists in the circuit, the second working current and the static current are basically equal, and the second difference value is naturally less than the threshold value. Another possibility is that the device connected to the current output port is in a damaged state, the damaged device may not work normally, or even may form a short circuit or open circuit fault, resulting in that its impact on the current in the circuit does not conform to the characteristics of normal devices, and then the second difference value is less than the threshold value. Based on this, the controller determines that the device connected to the current output port is a branch terminal of the next stage, or the current output port is not connected to any device, or the device connected to the current output port is in a damaged state.

[0122] On the basis of any embodiment of the branch terminal detection method of the application, in combination with Figure 5 In the step of determining the type of the device connected to the current output port, the following specific steps are further included:

[0123] In step S1810, if the difference between the second working current and the static current is less than the threshold value, a second control signal is sent to the device connected to the current output port, and the second working current on the sampling resistor is obtained.

[0124] In the monitoring and determination process of the light-emitting circuit, when the second difference value between the second working current and the predetermined static current is less than the preset threshold value, according to the preset determination rule, the following three possible situations of the current output port can be determined: first, the current output port is electrically connected to the branch terminal of the next stage; second, the current output port is not connected to any device; and third, the device connected to the current output port is in a damaged state.

[0125] To further accurately determine whether the current output port is electrically connected with the branch terminal of the next stage, the controller performs the following operation: the controller outputs a second control signal to the device connected with the current output port through the current output port. If the current output port is indeed connected with the branch terminal of the next stage, the branch terminal of the next stage will perform deep analysis on the second control signal according to a preset signal analysis protocol after receiving the second control signal, and extract port control information from the second control signal. Subsequently, the branch terminal of the next stage forwards the port control information to one of the output ports according to the port allocation rule of the branch terminal of the next stage.

[0126] If the output port of the forwarded branch terminal of the next stage is electrically connected with the light-emitting unit, the internal drive control circuit of the light-emitting unit will perform analysis processing on the port control information after receiving the port control information, and generate corresponding control instructions based on the analysis result to control the working state of the light-emitting unit, such as adjusting the luminance, color and other parameters of the light-emitting unit.

[0127] At this time, the controller synchronously drives the current detection unit to detect the second working current flowing through the sampling resistor in real time. The controller continuously collects and analyzes the change of the second working current, and indirectly determines whether the device connected with the current output port is the branch terminal of the next stage according to the preset corresponding relationship between the current change and the type of the device. Through the above series of accurate operations and determination processes, the accuracy of determining the connection state of the device in the light-emitting circuit can be effectively improved.

[0128] Step S1820, if the difference between the second working current and the static current is greater than the threshold value, it is determined that the device connected with the current output port is the branch terminal of the next stage.

[0129] If the second difference between the second working current and the static current is greater than the threshold value, it is determined that the device connected with the current output port is the branch terminal of the next stage.

[0130] When the acquisition of the second working current and the pre-determined static current is completed, a second difference between the second working current and the static current is further calculated. Then, the second difference is strictly compared with a preset threshold. If the second difference is greater than the preset threshold after comparison, according to the determination logic set by the present application, it is determined that the device connected to the current output port is not a light-emitting unit, but a next-stage branch terminal. This determination logic is based on the different characteristics of the influence of different types of devices on the circuit current in the working state. The working of the light-emitting unit will cause a significant change in the current, so that the second difference exceeds the threshold range. The current change characteristics of the next-stage branch terminal in the normal working or specific connection state meet the determination condition that the second difference is greater than the threshold, so that the type of the device connected to the current output port is accurately determined.

[0131] On the basis of any embodiment of the branch terminal detection method of the present application, in order to further realize comprehensive and accurate management and visual presentation of the light-emitting circuit, the controller can generate a circuit recording instruction, the core purpose of which is to guide the system to comprehensively and accurately record the address information of each device in the light-emitting circuit. When the circuit recording instruction is generated, the controller will send the instruction to the branch terminal and other related control units in the light-emitting circuit through a preset communication interface (such as an I2C interface, an SPI interface, an Ethernet interface, etc., the specific type of interface is selected according to the actual architecture and communication requirements of the light-emitting circuit).

[0132] After receiving the circuit recording instruction, the control circuit inside the branch terminal will immediately start the address information acquisition and recording process. The branch terminal communicates with each device connected to the output port, acquires the unique address information of each device by using a specific communication protocol (such as an address coding-based query-response protocol). For example, for a light-emitting unit using a digital addressable lighting interface (DALI) protocol, the branch terminal will send a query command according to the specification of the DALI protocol, and the light-emitting unit will feed back its preset address information to the branch terminal after receiving the query command. For the next-stage branch terminal, its address information is also acquired through a similar communication mechanism. The branch terminal will organize and store the address information of each device, and the storage mode can be internal register storage, external storage (such as EEPROM, Flash memory, etc.), and the specific storage mode is selected according to the hardware resources and performance requirements of the branch terminal.

[0133] At the same time, other related control units (such as a special address acquisition module, an intelligent sensor, etc.) in the light-emitting circuit will also acquire the address information of the devices related to their respective functions after receiving the circuit recording instruction, and feed back the acquired address information to the controller through a preset communication path.

[0134] The controller integrates and processes the address information of each device from the distribution terminal and other related control units after collecting the address information. The integration processing includes operations such as checking the address information (e.g., using a checksum algorithm, a cyclic redundancy check (CRC) algorithm, etc. to check the address information to ensure its accuracy), deduplication (removing duplicate recorded address information), etc.

[0135] Based on the integrated address information of each device, the controller generates a circuit topology graph of the light-emitting circuit using a preset circuit topology graph generation algorithm. The circuit topology graph generation algorithm comprehensively considers the connection relationship, communication path, physical location, etc. between each device, and intuitively displays the distribution of each device in the light-emitting circuit and the connection relationship therebetween in a graphical manner.

[0136] In the above manner, the application can accurately record the address information of each device in the light-emitting circuit and generate an intuitive and clear circuit topology graph, thereby providing strong support for subsequent operations such as fault diagnosis, performance optimization, remote control, etc. of the light-emitting circuit, and greatly improving the management efficiency and reliability of the light-emitting circuit.

[0137] On the basis of any embodiment of the present application, please refer to Figure 6 Another embodiment of the present application also provides a computer device which can be used by the controller in the light-emitting circuit, as shown in Figure 6 the internal structure diagram of the computer device. The computer device includes a processor, a computer readable storage medium, a memory and a network interface connected through a system bus. The computer readable storage medium of the computer device stores an operating system, a database and a computer program encapsulating computer readable instructions. The database can store control information sequences. The computer readable instructions, when executed by the processor, can enable the processor to implement a distribution terminal detection method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device can store computer readable instructions which, when executed by the processor, can enable the processor to execute the distribution terminal detection method of the present application. The network interface of the computer device is used to connect and communicate with the terminal. Those skilled in the art can understand that Figure 6 the structure shown in

[0138] In this embodiment, the processor is used to execute Figure 6The specific functions of each module and its sub-modules in the above embodiment, and the memory stores the program codes and various data required for executing the above modules or sub-modules. The network interface is used for data transmission between the user terminal or the server. The memory in the above embodiment stores the program codes and data required for executing all modules / sub-modules in the branch terminal detection device of the present application, and the server can call the program codes and data of the server to execute the functions of all sub-modules.

[0139] The present application also provides a storage medium storing computer readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the branch terminal detection method according to any one of the embodiments of the present application.

[0140] The present application also provides a computer program product, comprising computer programs / instructions, which, when executed by one or more processors, implement the steps of the branch terminal detection method according to any one of the embodiments of the present application.

[0141] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments of each method. The storage medium can be a computer readable storage medium such as a magnetic disc, an optical disc, a read-only memory (ROM), or a random access memory (RAM).

[0142] In summary, the branch terminal detection method can detect the branch terminal in the light-emitting circuit, so that when the layout of the light-emitting circuit changes, the branch terminal can still be automatically detected without human intervention, improving the intelligence.

[0143] The above description is only the preferred embodiment of the present application and the explanation of the applied technical principles. Those skilled in the art should understand that the scope of the present application is not limited to the technical solutions formed by the specific combinations of the above technical features, and also covers other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features can be replaced with technical features having similar functions in the present application (but not limited to) to form technical solutions.

[0144] Although the present subject matter has been described in terms of specific structural features and / or methodological acts, it can be appreciated that the subject matter defined in the appended claims is not restricted to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as illustrative forms of implementing the claims.

Claims

1. A method of detecting a branch terminal, characterized by, The light emitting circuit comprises a controller, a sampling resistor and a light group, the light group comprises a branch terminal and a plurality of light units, the branch terminal comprises an input port and a plurality of output ports, the input port of the branch terminal is connected with the controller directly or through a light unit or a plurality of serially connected light units, and the plurality of output ports of the branch terminal are respectively connected with the plurality of light units, the plurality of light units and the branch terminal are connected in parallel to a power supply, and the plurality of light units are connected in series with the same sampling resistor; The controller in the light emitting circuit is responsible for executing the method, and the method comprises the following steps: When the light group is not driven to work, detecting a static current on the sampling resistor; controlling each device in the light emitting circuit to work individually by a first control signal in turn and alternately, and obtaining a first working current on the sampling resistor when each device works; if the difference between the first working current and the static current is greater than a preset threshold, determining that the current device is a light unit; if the difference is less than the threshold, sending a second control signal to the current device and obtaining a second working current on the sampling resistor; if the difference between the second working current and the static current is greater than the threshold, determining that the current device is a branch terminal.

2. The branching terminal detection method according to claim 1, wherein The first control signal and the second control signal adopt different encoding formats, and the branch terminal is configured to respond only to a signal encoded in a format corresponding to the second control signal; When the branch terminal receives the second control signal, the port selection information in the second control signal is obtained; The branch terminal controls the corresponding output port to be turned on based on the port selection information, while keeping other output ports in an off state.

3. The branching terminal detection method according to claim 2, wherein The branch terminal has a plurality of output ports, each output port corresponds to different address encoding, and the port selection information comprises address encoding of a target output port, and the branch terminal turns on the corresponding output port based on the address encoding.

4. The method of claim 2, wherein the step of detecting the wire distribution terminal comprises the steps of: detecting the wire distribution terminal by using a sensor; and determining whether the wire distribution terminal is connected to the wire. After the step of determining that the current device is a branch terminal, the following steps are further included: generating a circuit detection instruction, the circuit detection instruction comprising a plurality of port control information, each port control information comprising port selection information and device driving information, and the port selection information comprising address encoding of a corresponding output port; controlling each output port of the branch terminal to be turned on individually based on the plurality of port control information, and outputting corresponding device driving information to the turned-on output port; obtaining a second working current flowing through the sampling resistor to determine the type of the device connected to the current output port.

5. The method of claim 4, wherein the step of detecting the wire distribution terminal comprises the steps of: detecting the wire distribution terminal by using the first and second detection signals. In the step of obtaining the second working current of the sampling resistor to determine the type of the device connected to the current output port, the following specific steps are further included: if the difference between the second working current and the static current is less than the threshold, sending a second control signal to the device connected to the current output port and obtaining a second working current on the sampling resistor; If the difference between the second operating current and the quiescent current is greater than the threshold value, it is determined that the device connected to the current output port is a next stage of a distribution terminal.

6. The method of claim 1, wherein the step of detecting the wire distribution terminal comprises the steps of: detecting a voltage of the wire distribution terminal; and determining whether the wire distribution terminal is connected to the power supply based on the detected voltage. At least one output port of the distribution terminal corresponds to an electrical connection with an input port of a next stage of a distribution terminal.

7. The method of claim 1, wherein the step of detecting the wire distribution terminal comprises the steps of: detecting a voltage of the wire distribution terminal; and determining whether the wire distribution terminal is connected to the power supply based on the detected voltage. The light emitting circuit further comprises a current detection unit, which is electrically connected with the sampling resistor and the controller respectively.

8. A computer device comprising a central processing unit and a memory, characterized in that The central processing unit is configured to invoke a computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that, The computer program is stored in the form of computer readable instructions and is implemented according to the method of any one of claims 1 to 5, and when the computer program is invoked and run by a computer, the steps included in the corresponding method are executed.

Citation Information

Patent Citations

  • Detection method and device of light-emitting module, electronic equipment and storage medium

    CN115884467A

  • Light emitting diode lamp string control method

    CN120201618A