Fault line determination method, electronic equipment and computer readable storage medium
Patent Information
- Application Number
- CN202411999008.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-25
AI Technical Summary
When the communication bus short circuit fails in the DALI system, the maintenance personnel need to check the short circuit points one by one, resulting in low maintenance efficiency and high labor costs.
By acquiring the multiple heartbeat signal intervals and short-circuit voltage differences, the control device can determine the first target voltage difference and the second target voltage difference, thereby determining the fault line and narrowing the detection range.
This method can narrow the detection range of fault lines, save manual inspection costs, and improve fault detection efficiency.
Smart Images

Figure CN119881531A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a method for determining a faulty line, an electronic device, and a computer-readable storage medium. Background Art
[0002] DALI (Digital Addressable Lighting Interface) is a data transmission protocol developed for lighting control systems. Lighting appliances (driving circuits of various lamps) and system equipment controllers (such as lighting controllers, sensors, etc.) can communicate digitally through the DALI communication protocol, which plays an important role in the field of intelligent lighting.
[0003] When a fault occurs in the communication bus of the DALI system, if the fault type is a short circuit fault, maintenance personnel need to check the short circuit points one by one along the communication bus, which has low maintenance efficiency and requires high labor costs. Summary of the invention
[0004] The embodiments of the present application provide a method, system, device, chip, electronic device and computer-readable storage medium for determining a faulty line, which can narrow the faulty line detection range, save manual detection costs and improve fault detection efficiency.
[0005] In the first aspect, the present application provides a method for determining a faulty line, which is applied to a control device, wherein the control device and a plurality of controlled devices are respectively in an electrically connected state, and the method comprises: obtaining a plurality of heartbeat signal intervals, wherein the plurality of heartbeat signal intervals correspond one to one with the plurality of controlled devices. When a heartbeat signal interval greater than a preset time interval is detected in the plurality of heartbeat signal intervals, the output terminal voltage difference between the positive output terminal and the negative output terminal of the control device is obtained. According to the output terminal voltage difference and a plurality of short-circuit voltage differences, a first target voltage difference and a second target voltage difference are determined, wherein the first target voltage difference is the largest short-circuit voltage difference among the short-circuit voltage differences less than the output terminal voltage difference, and the second target voltage difference is the smallest short-circuit voltage difference among the short-circuit voltage differences greater than or equal to the output terminal voltage difference, wherein the plurality of short-circuit voltage differences correspond one to one with the plurality of controlled devices, and the first short-circuit voltage difference is used to characterize the voltage difference between the positive output terminal and the negative output terminal detected by the control device when the first controlled device is in a short-circuit state, and the first short-circuit voltage difference is the voltage difference corresponding to the first controlled device among the plurality of short-circuit voltage differences. It is determined that a line between a second controlled device corresponding to the first target voltage difference and a third controlled device corresponding to the second target voltage difference is a faulty line, and the second controlled device and the third controlled device are different devices among the multiple controlled devices.
[0006] In some embodiments, the above method also includes: sending a first control instruction to the current limiting circuit, the first control instruction is used to control the current limiting circuit to change the intensity of the output current at the positive output terminal and the negative output terminal according to a preset amplitude coefficient, so that the multiple light-emitting modules on the multiple controlled devices are respectively in the target light-emitting state, and the multiple light-emitting modules correspond one-to-one to the multiple controlled devices.
[0007] In some implementations, if the fourth controlled device is any one of the multiple controlled devices located between the control device and the fault line, the target lighting state of the fourth controlled device is the first lighting state.
[0008] If the fourth controlled device is any device among the multiple controlled devices that is not located between the control device and the fault line, the target lighting state of the fourth controlled device is the second lighting state.
[0009] In some embodiments, before acquiring multiple heartbeat signal intervals, the method further includes: in response to the acquired power-on status information, sending multiple short-circuit signals to multiple controlled devices in sequence, the multiple short-circuit signals corresponding to the multiple controlled devices one by one, the first short-circuit signal is used to instruct the first controlled device to change the line state to a short-circuit state, and the first short-circuit signal is a short-circuit signal corresponding to the first controlled device among the multiple short-circuit signals. Acquire multiple short-circuit voltage differences.
[0010] In some embodiments, obtaining multiple short-circuit voltage differences includes: receiving a reply signal returned by the first controlled device, the reply signal is used to indicate that the first controlled device is in a short-circuit state. In response to the reply signal, determining the voltage difference between the positive output terminal and the negative output terminal as the first short-circuit voltage difference, so as to obtain multiple short-circuit voltage differences.
[0011] In some embodiments, after determining that the line between the second controlled device corresponding to the first target voltage difference and the third controlled device corresponding to the second target voltage difference is a fault line, the above method also includes: sending a fault signal to the server, and the fault signal is used to characterize that there is a fault in the fault line.
[0012] In a second aspect, the present application provides a fault line determination system, the system comprising: a control device and a plurality of controlled devices, the control device and the plurality of controlled devices are respectively in an electrically connected state, the control device is used to: obtain a plurality of heartbeat signal intervals, the plurality of heartbeat signal intervals correspond one to one with the plurality of controlled devices. When it is detected that there is a heartbeat signal interval greater than a preset time interval among the plurality of heartbeat signal intervals, the output terminal voltage difference between the positive output terminal and the negative output terminal of the control device is obtained. According to the output terminal voltage difference and the plurality of short-circuit voltage differences, a first target voltage difference and a second target voltage difference are determined, the first target voltage difference being the largest short-circuit voltage difference among the short-circuit voltage differences less than the output terminal voltage difference, the second target voltage difference being the smallest short-circuit voltage difference among the short-circuit voltage differences greater than or equal to the output terminal voltage difference, the plurality of short-circuit voltage differences correspond one to one with the plurality of controlled devices, the first short-circuit voltage difference is used to characterize the voltage difference between the positive output terminal and the negative output terminal detected by the control device when the first controlled device is in a short-circuit state, and the first short-circuit voltage difference is the voltage difference corresponding to the first controlled device among the plurality of short-circuit voltage differences. It is determined that a line between a second controlled device corresponding to the first target voltage difference and a third controlled device corresponding to the second target voltage difference is a faulty line, and the second controlled device and the third controlled device are different devices among the multiple controlled devices.
[0013] In some embodiments, the controlled device is used to: obtain a heartbeat reply signal interval, where the heartbeat reply signal interval is the time difference between the current moment and the moment when the heartbeat reply signal sent by the control device was last received. When it is detected that the heartbeat reply signal interval is greater than the preset reply time interval, the current moment is recorded as the first moment. Within a preset time period after the first moment, the voltage difference between the input end and the output end of the controlled device is obtained at multiple consecutive moments to obtain multiple voltage differences. If the first voltage difference among the multiple voltage differences is greater than the second voltage difference, the light-emitting module is controlled to be in the first light-emitting state, and the first voltage difference is the voltage difference obtained after the second voltage difference. If the first voltage difference is equal to the second voltage difference, the light-emitting module is controlled to be in the second light-emitting state. Among them, the first voltage difference and the second voltage difference are any two voltage differences adjacent to each other at the acquisition moment.
[0014] In a third aspect, the present application provides a fault line determination device, which may be a control device, the control device and a plurality of controlled devices are respectively in an electrically connected state, and the device includes:
[0015] The acquisition module is used to acquire multiple heartbeat signal intervals, and the multiple heartbeat signal intervals correspond to multiple controlled devices one by one.
[0016] A determination module is used to obtain the output terminal voltage difference between the positive output terminal and the negative output terminal of the control device when a heartbeat signal interval greater than a preset time interval is detected in multiple heartbeat signal intervals. According to the output terminal voltage difference and multiple short-circuit voltage differences, a first target voltage difference and a second target voltage difference are determined, the first target voltage difference being the largest short-circuit voltage difference among the short-circuit voltage differences less than the output terminal voltage difference, the second target voltage difference being the smallest short-circuit voltage difference among the short-circuit voltage differences greater than or equal to the output terminal voltage difference, the multiple short-circuit voltage differences corresponding to multiple controlled devices one by one, the first short-circuit voltage difference is used to characterize the voltage difference between the positive output terminal and the negative output terminal detected by the control device when the first controlled device is in a short-circuit state, and the first short-circuit voltage difference is the voltage difference corresponding to the first controlled device among the multiple short-circuit voltage differences. It is determined that the line between the second controlled device corresponding to the first target voltage difference and the third controlled device corresponding to the second target voltage difference is a fault line, and the second controlled device and the third controlled device are different devices among the multiple controlled devices.
[0017] In a fourth aspect, the present application provides a chip, which is used to execute any method in the first aspect above.
[0018] In a fifth aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement a method as in any one of the above-mentioned first aspects.
[0019] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method as described in any one of the above-mentioned first aspects.
[0020] In the technical solution provided by the embodiment of the present application, the control device can monitor multiple heartbeat signal intervals corresponding to multiple controlled devices in real time. When it is detected that there is a heartbeat signal interval greater than a preset time interval in the multiple heartbeat signal intervals, the output terminal voltage difference between the positive output terminal and the negative output terminal of the control device is obtained. According to the output terminal voltage difference and multiple short-circuit voltage differences, the first target voltage difference and the second target voltage difference are determined, the first target voltage difference is the largest short-circuit voltage difference among the short-circuit voltage differences less than the output terminal voltage difference, and the second target voltage difference is the smallest short-circuit voltage difference among the short-circuit voltage differences greater than or equal to the output terminal voltage difference, and the line between the second controlled device corresponding to the first target voltage difference and the third controlled device corresponding to the second target voltage difference is determined as a fault line. The fault line can be determined as a fault line between two controlled devices to narrow the fault line detection range, reduce the manual maintenance cost, and improve the fault detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 This is a schematic diagram of an application scenario of a method for determining a faulty line provided in an embodiment of the present application;
[0023] Figure 2 This is a flow chart of a method for determining a faulty line provided in an embodiment of the present application;
[0024] Figure 3 is another flow chart of a method for determining a faulty line provided in an embodiment of the present application;
[0025] Figure 4 It is a circuit diagram of a method for determining a faulty line provided in an embodiment of the present application;
[0026] Figure 5 is another circuit diagram of a method for determining a faulty line provided in an embodiment of the present application;
[0027] Figure 6 It is another circuit schematic diagram of a method for determining a faulty line provided in an embodiment of the present application;
[0028] Figure 7 It is another circuit schematic diagram of a method for determining a faulty line provided in an embodiment of the present application;
[0029] Figure 8 It is another circuit schematic diagram of a method for determining a faulty line provided in an embodiment of the present application;
[0030] Fig. 9 is a structural schematic diagram of a fault line determination device provided in an embodiment of the present application;
[0031] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0033] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0034] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0035] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0036] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0037] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0038] A DALI system can usually include a host (DALI controller) and multiple slaves (controlled devices in the DALI system). The host (hereinafter referred to as the control device) can send control instructions to multiple slaves (hereinafter referred to as controlled devices), and the controlled devices can perform corresponding operations according to the received control instructions to achieve functions such as fault detection, light brightness adjustment, scene setting and time planning. In the DALI system, each controlled device can be set with a unique address so that the control device can independently control each controlled device, thereby achieving fault detection for each controlled device.
[0039] When a DALI system fails, it is usually one of the following three types of failures:
[0040] The first one: abnormal equipment failure.
[0041] The second type: communication bus circuit break failure.
[0042] The third type: communication bus short circuit failure.
[0043] When the fault type is an abnormal equipment fault, the control device can check whether multiple controlled devices have faults one by one. For example, the control device can send control instructions to multiple controlled devices one by one, and determine whether each controlled device has a fault by whether each controlled device responds to the control instruction.
[0044] If the fault type is a communication bus circuit break fault, since the controlled device cannot respond to the control command sent by the control device when the circuit is broken, the control device can also determine whether each controlled device has a fault by whether each controlled device responds to the control command.
[0045] If the fault type is a communication bus short circuit fault, maintenance personnel are required to use a multimeter or other testing instruments to measure the resistance value between each section of the communication bus in turn. If the resistance value of a section is very small or close to zero, it means that there may be a short circuit fault in that section.
[0046] As can be seen from the above, when a communication bus short circuit fault occurs in the DALI system, a large amount of labor cost is required to measure the resistance value between each section of the communication bus to determine the line section where the short circuit point is located, and the efficiency of fault line identification is low.
[0047] In view of this, an embodiment of the present application provides a method for determining a faulty line, which can troubleshoot and locate the line segment where the fault point is located, narrow the detection range of the fault point, save labor costs, and improve fault detection efficiency.
[0048] The technical solution provided in the embodiment of the present application can be applied to intelligent lighting control devices that comply with the DALI international standard protocol, such as controllers, also known as control devices. The control device is used to drive the controlled devices in the DALI system.
[0049] For ease of description, the embodiment of the present application takes a control device as an example to exemplarily describe a specific method for the control device to determine the line segment where the fault point is located when a communication bus short circuit fault occurs in the DALI system.
[0050] Combine the following Figures 1 to 3 The examples in the description describe the technical solutions of the embodiments of the present application.
[0051] like Figure 1DALI system may include a control device (host) and multiple controlled devices (slave 1, slave 2, slave 3, ... slave N).
[0052] The control device may include a current limiting circuit and two output terminals DA+ and DA-. The current limiting circuit can be used to limit the current passing through the circuit, thereby preventing safety hazards caused by excessive current. DA+ is the positive output terminal of the control device, which is used to provide voltage and current to ensure the normal operation of the DALI system. DA- is the negative output terminal of the control device, which is used to form a loop with the positive output terminal DA+ to jointly complete the transmission of current and signals. The positive output terminal DA+ and the negative output terminal DA- are also used to transmit control instructions (digital signals) sent by the control device to each controlled device, and to transmit feedback signals sent by each controlled device to the control device, so as to realize two-way communication between the control device and multiple controlled devices in the DALI system.
[0053] Each controlled device (slave) can include a sampling module, a level conversion circuit and an MCU (Microcontroller Unit). The sampling module can be used to collect analog signals through sensors or other signal sources. Among them, the analog signal can be a physical quantity such as current, voltage, temperature, etc. And convert the analog signal into a digital signal. The sampling module can also be used to pre-process the signal (analog signal and / or digital signal). For example, the signal is filtered, amplified, reduced, etc. to eliminate noise in the signal. The sampling module includes an amplification unit, which can be used to amplify and / or enhance the collected digital signal. The level conversion circuit can be used to receive the level signal (control instruction) sent by the control device, and convert the level signal (control instruction) into a level signal that complies with the DALI standard, so that the controlled device can recognize the control instruction sent by the control device and respond to the control instruction. The MCU can be used to calculate, compare and judge the signals collected by the sampling module and the level conversion circuit.
[0054] For example, see Figure 1 When the control instruction sent by the control device (host) contains a brightness control instruction for the controlled device 1 (slave 1), the level conversion circuit in the controlled device 1 can forward the control instruction sent by the control device to the MCU. The MCU can calculate the corresponding PWM (Pulse Width Modulation) duty cycle according to the brightness value in the control instruction to control the brightness of the lamp corresponding to the controlled device 1.
[0055] In the technical solution provided in the embodiment of the present application, the control device can enter a self-calibration mode after being powered on to obtain multiple short-circuit voltage differences corresponding to multiple controlled devices.
[0056] like Figure 2 As shown, in the process in which the control device obtains multiple short-circuit voltage differences corresponding to multiple controlled devices, the interaction method with the controlled devices may include:
[0057] Step S201: the control device sends a first short-circuit signal to a first controlled device in response to the received power-on status information, where the first short-circuit signal is used to instruct the first controlled device to change the line status to a short-circuit state.
[0058] In the technical solution provided by the embodiment of the present application, the control device can send short-circuit signals to multiple controlled devices in sequence in response to the received power-on status information, so that the multiple controlled devices are in a short-circuit state at different times. That is, at most only one controlled device is in a short-circuit state at the same time.
[0059] The embodiment of the present application takes any one of the multiple controlled devices (the first controlled device) as an example to exemplarily describe the process of the control device acquiring multiple short-circuit voltage differences. It is understandable that the interaction process between other controlled devices and the control device has the same or similar interaction principle as the interaction process of the embodiment of the present application.
[0060] Step S202: the first controlled device sends a reply signal to the control device in response to the received first short-circuit signal.
[0061] In the technical solution provided in the embodiment of the present application, the first controlled device can continuously send a signal of 0 to the control device, so that the first controlled device is in a short-circuit state.
[0062] Step S203: the control device receives a reply signal returned by the first controlled device.
[0063] In the technical solution provided by the embodiment of the present application, when the control device receives a reply signal returned by the first controlled device, it can be determined that the first controlled device is currently in a short-circuit state.
[0064] Step S204: the control device obtains the voltage difference between the positive output terminal and the negative output terminal of the control device in response to the reply signal, and obtains a first short-circuit voltage difference corresponding to the first controlled device.
[0065] In the technical solution provided in the embodiment of the present application, the control device can obtain the voltage difference between the positive output terminal and the negative output terminal after receiving the reply signal sent by the controlled device, and obtain the voltage difference corresponding to the controlled device.
[0066] For example, see Figure 1, when the control device (host) receives the reply signal sent by the controlled device 1 (slave 1), the voltage difference between the positive output terminal and the negative output terminal is obtained, and the voltage difference corresponding to the controlled device 1 (slave 1) is obtained. When the control device (host) receives the reply signal sent by the controlled device 2 (slave 2), the voltage difference between the positive output terminal and the negative output terminal is obtained, and the voltage difference corresponding to the controlled device 2 (slave 2) is obtained... When the control device (host) receives the reply signal sent by the controlled device N (slave N), the voltage difference between the positive output terminal and the negative output terminal is obtained, and the voltage difference corresponding to the controlled device N (slave N) is obtained.
[0067] In the technical solution provided in the embodiment of the present application, when the control device and the multiple controlled devices in the DALI system are powered on, the control device and the multiple controlled devices are in a communication connection state. When the control device detects that there is a device that is not in a communication connection state among the multiple controlled devices, it indicates that the probability of a short circuit in the communication bus is high. The control device can then enter a short circuit detection mode. It is understandable that the controlled device can also monitor the communication status between the control device. When the controlled device detects that it is not in a communication connection state with the control device, the controlled device can also enter a short circuit detection mode.
[0068] For example, see Figure 1 Taking the control device as an example, the control device's judgment process of whether the controlled device 1 is in a communication connection state may include: sending a first heartbeat signal to the controlled device 1. When the first heartbeat reply signal replied by the controlled device 1 is received, the current time is recorded as the starting time of the heartbeat signal interval, and a second heartbeat signal is sent to the controlled device 1. When the control device does not receive the second heartbeat reply signal from the controlled device 1 in response to the second heartbeat signal within a preset time period, that is, when the heartbeat signal interval is greater than the preset time interval, the control device enters a short-circuit detection mode to detect the location of the faulty line. It can be understood that the control device can monitor the communication connection status with multiple controlled devices in real time, and when it is detected that there is a controlled device that is not in a communication connection state among multiple controlled devices, the control device can enter a short-circuit detection mode.
[0069] In some embodiments, see Figure 1 The process of the control device determining whether the controlled device 1 is in a communication connection state may also include: sending a first heartbeat signal to the controlled device 1, and recording the current time as the start time of the heartbeat signal interval. When the control device does not receive the first heartbeat reply signal from the controlled device 1 in response to the first heartbeat signal within a preset time period, that is, when the heartbeat signal interval is greater than the preset time interval, the control device enters the short circuit detection mode to detect the location of the faulty line.
[0070] like Figure 3 As shown, the method for the control device to detect a faulty line may include:
[0071] Step S301: Acquire multiple heartbeat signal intervals, where the multiple heartbeat signal intervals correspond one-to-one to multiple controlled devices.
[0072] The first heartbeat signal interval is used to represent the time difference between the moment when the control device last received the heartbeat signal sent by the first controlled device and the current moment. The first controlled device is any one of the multiple controlled devices, and the first heartbeat signal interval is the heartbeat signal interval corresponding to the first controlled device among the multiple heartbeat signal intervals.
[0073] In the technical solution provided in the embodiment of the present application, the control device can monitor the communication status between multiple controlled devices through multiple heartbeat signal intervals.
[0074] Step S302: when it is detected that there is a heartbeat signal interval greater than a preset time interval among the multiple heartbeat signal intervals, an output terminal voltage difference between the positive output terminal and the negative output terminal of the control device is obtained.
[0075] In the technical solution provided in the embodiment of the present application, the control device can collect the voltage difference between the positive output terminal and the negative output terminal through a preset sampling circuit as the output terminal voltage difference. For example, the preset sampling circuit can be an ADC (Analog to Digital Converter) sampling circuit.
[0076] Step S303: Determine a first target voltage difference and a second target voltage difference based on the output terminal voltage difference and multiple short-circuit voltage differences, wherein the first target voltage difference is the largest short-circuit voltage difference among the short-circuit voltage differences that are smaller than the output terminal voltage difference, and the second target voltage difference is the smallest short-circuit voltage difference among the short-circuit voltage differences that are greater than or equal to the output terminal voltage difference. The multiple short-circuit voltage differences correspond one-to-one to the multiple controlled devices, and the first short-circuit voltage difference is used to characterize the voltage difference between the positive output terminal and the negative output terminal detected by the control device when the first controlled device is in a short-circuit state. The first short-circuit voltage difference is the voltage difference corresponding to the first controlled device among the multiple short-circuit voltage differences.
[0077] In the technical solution provided in the embodiment of the present application, when a short circuit occurs in the DALI system, the current on the communication bus is a constant value. For example, the current I_limit on the communication bus can be 250mA. Since the magnitude of the voltage on the communication bus is only related to the resistance and current, that is, voltage = current × resistance, and the current on the communication bus is a constant value. It can be seen that when a short circuit occurs in the communication bus, the magnitude of the voltage on the communication bus is only related to the resistance. It can be understood that the farther the short circuit point is from the control device, the greater the resistance on the communication bus, and the greater the voltage difference at the output end. The closer the short circuit point is to the control device, the smaller the resistance on the communication bus, and the smaller the voltage difference at the output end.
[0078] Therefore, the control device can determine the position range of the short-circuit point through the output terminal voltage difference and multiple short-circuit voltage differences.
[0079] For example, see Figure 1 , if the short-circuit point is between controlled device 2 (slave 2) and controlled device 3 (slave 3), the output terminal voltage difference should be less than the voltage difference between the positive output terminal and the negative output terminal of the control device when controlled device 3 (slave 3) is short-circuited, and greater than the voltage difference between the positive output terminal and the negative output terminal of the control device when controlled device 2 (slave 2) is short-circuited.
[0080] Step S304: determine that a line between a second controlled device corresponding to the first target voltage difference and a third controlled device corresponding to the second target voltage difference is a faulty line, and the second controlled device and the third controlled device are different devices among the multiple controlled devices.
[0081] The control device can preliminarily determine that the fault point is on the communication bus between the second controlled device and the third controlled device through the output terminal voltage difference and multiple short-circuit voltage differences, and send a fault signal to the server. The fault signal is used to indicate the existence of a short-circuit fault on the communication bus between the second controlled device and the third controlled device.
[0082] In the technical solution provided by the embodiment of the present application, the control device can monitor multiple heartbeat signal intervals corresponding to multiple controlled devices in real time. When it is detected that there is a heartbeat signal interval greater than a preset time interval in the multiple heartbeat signal intervals, the output terminal voltage difference between the positive output terminal and the negative output terminal of the control device is obtained. According to the output terminal voltage difference and multiple short-circuit voltage differences, the first target voltage difference and the second target voltage difference are determined, the first target voltage difference is the largest short-circuit voltage difference among the short-circuit voltage differences less than the output terminal voltage difference, and the second target voltage difference is the smallest short-circuit voltage difference among the short-circuit voltage differences greater than or equal to the output terminal voltage difference, and the line between the second controlled device corresponding to the first target voltage difference and the third controlled device corresponding to the second target voltage difference is determined to be a fault line. The fault line can be determined as a fault line between two controlled devices to narrow the fault line detection range and improve the fault detection efficiency.
[0083] In some embodiments, in order to improve the accuracy of fault line detection, the control device entering the short circuit detection mode can also assist maintenance personnel in determining the fault line by increasing or decreasing the current on the communication bus.
[0084] A first control instruction is sent to the current limiting circuit, and the first control instruction is used to control the current limiting circuit to change the intensity of the output current of the positive output terminal and the negative output terminal according to a preset amplitude coefficient, so that multiple light-emitting modules on multiple controlled devices are respectively in a target light-emitting state, and the multiple light-emitting modules correspond to the multiple controlled devices one by one. For example, the control device can send a first control instruction to the current limiting circuit, instructing the control current limiting circuit to increase the intensity of the output current of the positive output terminal and the negative output terminal to I_max according to a preset amplitude coefficient. The light-emitting module can be an LED (Light Emitting Diode).
[0085] Continue to see Figure 1 The current limiting circuit may be a current limiting circuit controlled by a control device. When the control device detects that there is a heartbeat signal interval greater than a preset time interval among the multiple heartbeat signal intervals, a first control instruction may be sent to the current limiting circuit.
[0086] Since the light-emitting state of the light-emitting module of the controlled device is related to the magnitude of the current or voltage on the communication bus. Taking the current as an example, when the controlled device is in a normal state, the greater the current intensity on the communication bus, the brighter the light-emitting module of the controlled device. The smaller the current intensity on the communication bus, the darker the light-emitting module of the controlled device. When the controlled device is in a short-circuit state, since the communication bus is short-circuited, as the current intensity on the communication bus increases, the current intensity on the short-circuited line can only change slightly, or will not change. Therefore, the brightness of the light-emitting module of the controlled device will not change significantly.
[0087] It can be seen that since the line of the controlled device before the short-circuit point is in a normal state, when the current intensity on the communication bus increases, the light-emitting module of the controlled device before the short-circuit point can be in the first light-emitting state. Since the line of the controlled device after the short-circuit point is short-circuited, therefore, when the current intensity on the communication bus increases, the light-emitting module of the control device after the short-circuit point can be in the second light-emitting state.
[0088] The first light-emitting state and the second light-emitting state can be different flashing states, different light-emitting colors, or different light-emitting brightness, which is not limited in the embodiments of the present application.
[0089] For example, when the first light-emitting state and the second light-emitting state are different flickering states, the flickering frequency of the light-emitting module in the first light-emitting state may be higher than that of the light-emitting module in the second light-emitting state.
[0090] For another example, when the first light state and the second light state are different light colors, the light module in the first light state can be green, and the light module in the second light state can be red. It is understandable that the light modules in different light states can also be set to other easily distinguishable colors.
[0091] For another example, when the first light-emitting state and the second light-emitting state have different light-emitting brightness, the light-emitting brightness of the light-emitting module in the first light-emitting state may be higher than that of the light-emitting module in the second light-emitting state.
[0092] Maintenance personnel can determine the line range where the short-circuit point is located according to the different lighting states of the light-emitting modules on multiple controlled devices, thereby shortening the detection time and improving maintenance efficiency.
[0093] The controlled device can monitor the communication status between the controlled device and the control device in real time, including: obtaining the heartbeat reply signal interval, which is the time difference between the current moment and the moment when the heartbeat reply signal sent by the control device was last received. When it is detected that the heartbeat reply signal interval is greater than the preset reply time interval, the current moment is recorded as the first moment and the short circuit detection mode is entered.
[0094] After entering the short-circuit detection mode, the controlled device can collect the voltage difference between the input terminal and the output terminal of the controlled device according to the preset sampling frequency from the first moment to determine whether the target light-emitting state is the first light-emitting state or the second light-emitting state.
[0095] In a preset time period after the first moment, the voltage difference between the input terminal and the output terminal of the controlled device is obtained at multiple consecutive moments to obtain multiple voltage differences. If the second voltage difference among the multiple voltage differences is greater than the first voltage difference, the light-emitting module is controlled to be in the first light-emitting state, and the first voltage difference is the voltage difference obtained before the second voltage difference. If the first voltage difference is equal to the second voltage difference, the light-emitting module is controlled to be in the second light-emitting state. The first voltage difference and the second voltage difference are any two voltage differences adjacent to each other at the acquisition moment.
[0096] Exemplarily, if the controlled device detects that the multiple voltage differences increase sequentially according to the slope corresponding to the preset amplitude coefficient, the light-emitting module can be controlled to be in the first light-emitting state. If the controlled device detects that the multiple voltage differences do not change, or do not increase sequentially according to the slope corresponding to the preset amplitude coefficient, the light-emitting module is controlled to be in the second light-emitting state.
[0097] In the technical solution provided by the embodiment of the present application, the control device can increase or decrease the current on the communication bus after entering the short-circuit detection mode, so that the light-emitting module of the controlled device before the short-circuit point is in one light-emitting state, and the light-emitting module of the controlled device after the short-circuit point is in another light-emitting state. Further determining the short-circuit point enables maintenance personnel to clearly observe the line range where the short-circuit point is located.
[0098] Figure 4 A circuit diagram provided in an embodiment of the present application. In the technical solution provided in an embodiment of the present application, Figure 4 (a) in the figure is the host. Figure 4 (b) in the figure is a slave. When the control device (host) is in the idle state, the control device (host) and the controlled device (slave) are in the RX state, and their respective TXs do not send packets (heartbeat signals). At this time, Q9 of the host and Q6 of the slave are disconnected, and the bus remains in a high-level state. At this time, the voltage difference between the positive output terminal DA+ and the negative output terminal DA- is close to 16V. The communication bus current is mainly consumed by the optocouplers U1 and U4 of the control device (host) and the controlled device (slave). The I_idle level is mA level, and the voltage across the electronic variable resistor of the control device (host) is I_idle*R. The -IN voltage of U2 is less than the reference voltage of the +IN pin, and the OUT pin of U2 outputs a high level to keep Q1 turned on. The control device (host) U4 is turned on, Q8 controls an extremely high level, Q8 is turned on, and the control device (host) receives a low level. The controlled device (slave) U1 is turned on, Q4 controls an extremely high level, Q4 is turned on, and the controlled device (slave) receives a low level.
[0099] The current flow direction of the control device (host) is as follows Figure 5 As shown, the 16V power supply goes through TR1→ZD3→R27→U4→D1→Q2→electronic variable resistor→GND_DALI.
[0100] The current flow direction of the controlled device (slave) is as follows Figure 6 As shown, the 16V power supply goes through TR1→D3→R10→R1→ZD1→U1→D3→Q2→electronic variable resistor→GND_DALI.
[0101] When the control device (host) sends a packet (sends a heartbeat signal): When the control device (host) TX sends a low level, U5 is not turned on, and the bus remains in a high level state. When the control device (host) TX sends a high level, U5 is turned on, Q9 controls an extremely high level, Q9 is turned on, and DA+ and DA- are short-circuited. At this time, the voltage across the variable resistor increases rapidly, causing the -IN voltage of U2 to be greater than +IN, and the OUT of U2 outputs a high level, turning off Q2. After Q2 is turned off, the voltage of -IN drops, and the OUT of U2 outputs a low level, turning on Q2. After multiple closed-loop adjustments, Q2 finally works in the amplification area, and the bus current is controlled at I_limit=1.24 / R. And because the bus is short-circuited, the controlled device (slave) U1 is disconnected, and the controlled device (slave) receives a high level.
[0102] The current flow direction of the control device (host) is as follows Figure 7 shown.
[0103] There is no current at the controlled device (slave) end.
[0104] When the controlled device (slave) sends a packet (sends a heartbeat reply signal): When the TX of the controlled device (slave) sends a low level, U3 is not turned on, and the bus remains in a high level state. When the TX of the controlled device (slave) sends a high level, U3 is turned on, Q6 controls the extremely high level, Q6 is turned on, and DA+ and DA- are short-circuited. At this time, the voltage across the variable resistor increases rapidly, causing the -IN voltage of U2 to be greater than +IN, and the OUT of U2 outputs a high level, turning off Q2. After Q2 is turned off, the voltage of -IN drops, and the OUT of U2 outputs a low level, turning on Q2. After multiple closed-loop adjustments, Q2 finally works in the amplification area, and the bus current is controlled at I_limit=1.24 / R. And because the bus is short-circuited, the control device (host) U1 is disconnected, and the control device (host) receives a high level.
[0105] The current flow direction of the controlled device (slave) is as follows Figure 8As shown, the bus current I_limit is controlled by adjusting the conduction degree of Q2, and the conduction degree of Q2 is adjusted by the voltage of the negative feedback loop (electronic variable resistor) of U2. The current regulation process is as follows: When the bus current is less than I_limit, the voltage of the -IN pin of U1 is less than the reference voltage +IN pin, the OUT pin of U1 outputs a high level, and Q1 remains on. When the bus current is greater than I_limit, the voltage of the -IN pin of U1 is greater than the reference voltage +IN pin, the OUT pin of U1 outputs a low level, and Q1 is turned off. When Q1 is turned off, U1 outputs a high level to turn on Q1. After multiple closed-loop adjustments, the current is finally stabilized at I_limit.
[0106] It should be understood that, under the premise of no logical conflict, the above-mentioned various application embodiments can be implemented in combination with each other to meet actual application requirements. The specific embodiments or implementation plans obtained after these combinations still fall within the protection scope of this application.
[0107] Corresponding to the fault line determination method in the above embodiment, an embodiment of the present application further provides a fault line determination device, which can be implemented by software, hardware or a combination of both as part or all of a computer device, and is used to execute the steps in the fault line determination method in the above embodiment.
[0108] Fig. 9 The structure diagram of a fault line determination device 90 provided in an embodiment of the present application is shown. For the convenience of explanation, only the parts related to the embodiment of the present application are shown. The fault line determination device 90 can be a control device, and the control device is electrically connected to multiple controlled devices.
[0109] Reference Fig. 9 The device 90 includes an acquisition module 910 and a processing module 920.
[0110] Acquisition module 910 is used to acquire multiple heartbeat signal intervals, where the multiple heartbeat signal intervals correspond one-to-one to multiple controlled devices. The first heartbeat signal interval is used to characterize the time difference between the moment when the control device last received the heartbeat signal sent by the first controlled device and the current moment. The first heartbeat signal interval is any one of the multiple heartbeat signal intervals, and the first controlled device is the controlled device corresponding to the first heartbeat signal interval among the multiple controlled devices.
[0111] The processing module 920 is used to obtain the output terminal voltage difference between the positive output terminal and the negative output terminal of the control device when it is detected that there is a heartbeat signal interval greater than a preset time interval among multiple heartbeat signal intervals.
[0112] The processing module 920 is also used to determine a first target voltage difference and a second target voltage difference based on the output terminal voltage difference and multiple short-circuit voltage differences, the first target voltage difference being the largest short-circuit voltage difference among the short-circuit voltage differences that are smaller than the output terminal voltage difference, the second target voltage difference being the smallest short-circuit voltage difference among the short-circuit voltage differences that are greater than or equal to the output terminal voltage difference, the multiple short-circuit voltage differences correspond one-to-one to the multiple controlled devices, the first short-circuit voltage difference is used to characterize the voltage difference between the positive output terminal and the negative output terminal detected by the control device when the first controlled device is in a short-circuit state, and the first short-circuit voltage difference is the voltage difference corresponding to the first controlled device among the multiple short-circuit voltage differences.
[0113] The processing module 920 is further used to determine that a line between a second controlled device corresponding to the first target voltage difference and a third controlled device corresponding to the second target voltage difference is a faulty line, and the second controlled device and the third controlled device are different devices among the multiple controlled devices.
[0114] In some embodiments, the processing module 920 is also used to: send a first control instruction to the current limiting circuit, the first control instruction is used to control the current limiting circuit to change the intensity of the output current at the positive output terminal and the negative output terminal according to a preset amplitude coefficient, so that the multiple light-emitting modules on the multiple controlled devices are respectively in the target light-emitting state, and the multiple light-emitting modules correspond one-to-one to the multiple controlled devices.
[0115] In some implementations, the processing module 920 is specifically configured to: if the fourth controlled device is any one of the multiple controlled devices that is between the control device and the fault line, the target lighting state of the fourth controlled device is the first lighting state. If the fourth controlled device is any one of the multiple controlled devices that is not between the control device and the fault line, the target lighting state of the fourth controlled device is the second lighting state.
[0116] In some embodiments, the processing module 920 is further used to: in response to the acquired power-on status information, send multiple short-circuit signals to multiple controlled devices in sequence, the multiple short-circuit signals correspond to the multiple controlled devices one by one, the first short-circuit signal is used to instruct the first controlled device to change the line state to a short-circuit state, and the first short-circuit signal is a short-circuit signal corresponding to the first controlled device among the multiple short-circuit signals. Obtain multiple short-circuit voltage differences.
[0117] In some embodiments, the processing module 920 is specifically used to: receive a reply signal returned by the first controlled device, the reply signal is used to indicate that the first controlled device is in a short-circuit state. In response to the reply signal, determine the voltage difference between the positive output terminal and the negative output terminal as the first short-circuit voltage difference, so as to obtain multiple short-circuit voltage differences.
[0118] In some implementations, the processing module 920 is further used to: send a fault signal to the server, where the fault signal is used to indicate that a fault exists in the faulty line.
[0119] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0120] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0121] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0122] Fig.10 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.10 As shown, the electronic device 10 of this embodiment includes: at least one processor 1010 ( Fig.10 10), a memory 1020, and a communication module 1040. The memory 1020 stores a computer program 1030 that may be run on the processor 1010. When the processor 1010 executes the computer program 1030, the steps in the above-mentioned fault line determination method embodiment are implemented, such as Figure 3 301 to step 304 shown. When the processor 1010 executes the computer program 1030, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Fig. 9 The functions of modules 910 to 920 are shown, and the communication module 1040 can be a separate communication unit for communicating with an external server or terminal device.
[0123] The electronic device 10 may include, but is not limited to: a processor 1010 and a memory 1020. Those skilled in the art will appreciate that Fig.10 It is only an example of the electronic device 10 and does not constitute a limitation of the electronic device 10. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 10 may also include an input sending device, a network access device, a bus, etc.
[0124] The processor 1010 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0125] In some embodiments, the memory 1020 may be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 10. The memory 1020 may also be an external storage device of the electronic device 10, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 10. The memory 1020 may also include both an internal storage unit of the electronic device 10 and an external storage device. The memory 1020 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program 1030. The memory 1020 may also be used to temporarily store data that has been sent or is to be sent.
[0126] In addition, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0127] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on an electronic device, the electronic device executes the steps in the above-mentioned method embodiments.
[0128] An embodiment of the present application provides a chip, which includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, the steps in the above-mentioned method embodiments are implemented.
[0129] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the steps in the above-mentioned method embodiments.
[0130] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0131] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (Direct Rambus RAM, DR RAM).
[0132] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0133] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0134] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0135] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to a large-screen device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0139] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for determining a faulty line, characterized in that: Applied to a control device, the control device is electrically connected to a plurality of controlled devices respectively, and the method comprises: Acquire a plurality of heartbeat signal intervals, wherein the plurality of heartbeat signal intervals correspond one-to-one to the plurality of controlled devices; When it is detected that there is a heartbeat signal interval greater than a preset time interval among the multiple heartbeat signal intervals, obtaining an output terminal voltage difference between a positive output terminal and a negative output terminal of the control device; Determine a first target voltage difference and a second target voltage difference according to the output terminal voltage difference and a plurality of short-circuit voltage differences, wherein the first target voltage difference is the largest short-circuit voltage difference among the short-circuit voltage differences that are smaller than the output terminal voltage difference, and the second target voltage difference is the smallest short-circuit voltage difference among the short-circuit voltage differences that are greater than or equal to the output terminal voltage difference, wherein the plurality of short-circuit voltage differences correspond one-to-one to the plurality of controlled devices, wherein the first short-circuit voltage difference is used to characterize the voltage difference between the positive output terminal and the negative output terminal detected by the control device when the first controlled device is in a short-circuit state, and wherein the first short-circuit voltage difference is the voltage difference corresponding to the first controlled device among the plurality of short-circuit voltage differences; It is determined that a line between a second controlled device corresponding to the first target voltage difference and a third controlled device corresponding to the second target voltage difference is a faulty line, and the second controlled device and the third controlled device are different devices among the multiple controlled devices.
2. The method for determining a faulty line according to claim 1, characterized in that: After obtaining the output terminal voltage difference between the positive output terminal and the negative output terminal of the control device, the method further includes: A first control instruction is sent to the current limiting circuit, wherein the first control instruction is used to control the current limiting circuit to change the intensity of the output current of the positive output terminal and the negative output terminal according to a preset amplitude coefficient, so that the multiple light-emitting modules on the multiple controlled devices are respectively in a target light-emitting state, and the multiple light-emitting modules correspond to the multiple controlled devices one by one.
3. The method for determining a faulty line according to claim 2, characterized in that: If the fourth controlled device is any one of the plurality of controlled devices located between the control device and the fault line, the target lighting state of the fourth controlled device is the first lighting state; If the fourth controlled device is any device among the multiple controlled devices that is not located between the control device and the fault line, the target lighting state of the fourth controlled device is the second lighting state.
4. The method for determining a faulty line according to claim 1, characterized in that: Before acquiring a plurality of heartbeat signal intervals, the method further includes: In response to the acquired power-on status information, a plurality of short-circuit signals are sequentially sent to the plurality of controlled devices, the plurality of short-circuit signals corresponding to the plurality of controlled devices one by one, a first short-circuit signal is used to instruct the first controlled device to change the line state to a short-circuit state, and the first short-circuit signal is a short-circuit signal corresponding to the first controlled device among the plurality of short-circuit signals; The multiple short-circuit voltage differences are obtained.
5. The method for determining a faulty line according to claim 4, characterized in that: The obtaining of the multiple short-circuit voltage differences comprises: receiving a reply signal returned by the first controlled device, wherein the reply signal is used to indicate that the first controlled device is in a short-circuit state; In response to the reply signal, a voltage difference between the positive output terminal and the negative output terminal is determined as the first short-circuit voltage difference to obtain the multiple short-circuit voltage differences.
6. The method for determining a faulty line according to claim 1, characterized in that: After determining that a line between a second controlled device corresponding to the first target voltage difference and a third controlled device corresponding to the second target voltage difference is a faulty line, the method further includes: A fault signal is sent to the server, where the fault signal is used to indicate that a fault exists in the fault line.
7. A fault line determination system, characterized in that: The system comprises: a control device and a plurality of controlled devices, wherein the control device and the plurality of controlled devices are respectively in an electrically connected state, and the control device is used to: Acquire a plurality of heartbeat signal intervals, wherein the plurality of heartbeat signal intervals correspond one-to-one to the plurality of controlled devices; When it is detected that there is a heartbeat signal interval greater than a preset time interval among the multiple heartbeat signal intervals, obtaining an output terminal voltage difference between a positive output terminal and a negative output terminal of the control device; Determine a first target voltage difference and a second target voltage difference according to the output terminal voltage difference and a plurality of short-circuit voltage differences, wherein the first target voltage difference is the largest short-circuit voltage difference among the short-circuit voltage differences that are smaller than the output terminal voltage difference, and the second target voltage difference is the smallest short-circuit voltage difference among the short-circuit voltage differences that are greater than or equal to the output terminal voltage difference, wherein the plurality of short-circuit voltage differences correspond one-to-one to the plurality of controlled devices, wherein the first short-circuit voltage difference is used to characterize the voltage difference between the positive output terminal and the negative output terminal detected by the control device when the first controlled device is in a short-circuit state, and wherein the first short-circuit voltage difference is the voltage difference corresponding to the first controlled device among the plurality of short-circuit voltage differences; It is determined that a line between a second controlled device corresponding to the first target voltage difference and a third controlled device corresponding to the second target voltage difference is a faulty line, and the second controlled device and the third controlled device are different devices among the multiple controlled devices.
8. The fault line determination system according to claim 7, characterized in that: The controlled device is used for: Acquire a heartbeat reply signal interval, where the heartbeat reply signal interval is the time difference between the current moment and the moment when the heartbeat reply signal sent by the control device was last received; When it is detected that the heartbeat reply signal interval is greater than the preset reply time interval, the current moment is recorded as the first moment; Within a preset time period after the first moment, acquiring a voltage difference between an input terminal and an output terminal of the controlled device at a plurality of consecutive moments to obtain a plurality of voltage differences; If a first voltage difference among the multiple voltage differences is greater than a second voltage difference, the light emitting module is controlled to be in a first light emitting state, wherein the first voltage difference is a voltage difference obtained after the second voltage difference; If the first voltage difference is equal to the second voltage difference, controlling the light emitting module to be in a second light emitting state; The first voltage difference and the second voltage difference are any two voltage differences adjacent to each other at acquisition time.
9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the processor is used to execute a computer program stored in the memory to implement the method as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method as described in any one of claims 1 to 6 is implemented.