A bidirectional data communication method and device, electronic equipment and storage medium

By implementing bidirectional data communication on the lighting power supply link, the controller and the controlled device can exchange information by changing the electrical characteristics of the power supply link. This solves the problem of not being able to obtain the status and fault information of the lower-level devices in the existing technology, and improves the maintainability and fault diagnosis efficiency of the system.

CN123185056APending Publication Date: 2026-11-27SHENZHEN AISHEJU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611403415.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The existing LED lighting and pixel lamp control system adopts a one-way communication architecture, which cannot obtain the working status and fault information of the lower-level devices, making it difficult to locate abnormal nodes. Furthermore, it cannot achieve bidirectional data interaction on the existing power supply cables, and adding additional backhaul lines will increase costs and complicate wiring.

Method used

By implementing bidirectional data communication on the lighting power supply link, the controller sends downlink control information to the controlled device through the lighting power supply link, and the controlled device sends uplink feedback information by changing the electrical characteristics of the power supply link. The controller decodes the feedback data by detecting changes in the electrical parameters of the power supply link, and the downlink and uplink information are transmitted on the same physical power supply link.

Benefits of technology

This technology enables the controller to acquire real-time operating status and fault information of downstream devices without increasing backhaul lines and wiring costs, significantly improving system maintainability and fault diagnosis efficiency. It is particularly suitable for large-scale intelligent lighting scenarios with long distances, multi-level cascading, and multi-node distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185056A_ABST
    Figure CN123185056A_ABST
Patent Text Reader

Abstract

The application relates to a bidirectional data communication method and device, electronic equipment and storage medium, and relates to the technical field of intelligent lighting communication control. The bidirectional data communication method is applied to a lighting power supply system containing a controller and at least one controlled device, and comprises the following steps: the controller sends downlink control information to the controlled device through a lighting power supply link; the controlled device sends uplink feedback information to the controller by changing the electrical characteristics of the access power supply link; the controller decodes the uplink feedback information by detecting the electrical parameter change of the power supply link; the downlink control information and the uplink feedback information are transmitted on the same physical power supply link, so that the controller can receive the uplink feedback information sent by the controlled device while sending the downlink control information to the controlled device through the lighting power supply link, and the working state and topology information of the subordinate device are acquired, and the problems that the existing lamp control system cannot acquire the device state and is difficult to locate abnormal nodes are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent lighting communication control technology, and in particular to a two-way data communication method, device, electronic device and storage medium. Background Technology

[0002] Intelligent lighting and LED displays have been widely applied in commercial lighting, landscape lighting, stage displays, and architectural decoration. As system scale continues to expand, long-distance, multi-level cascading, and multi-node distributed control has become the mainstream approach. To ensure lighting display effects and stable system operation, it is necessary to control downstream devices such as lamps, splitters, and drive nodes in real time and acquire data such as their operating status, fault information, and topology. Lighting control and data communication are gradually becoming integrated and bidirectional, and achieving low-cost and reliable communication based on existing power supply links has become an important development direction for the industry.

[0003] Existing LED lighting and pixel lamp control systems generally adopt a unidirectional communication architecture. The main controller sends display data and control commands downwards through a single signal line or power supply link. Lower-level LEDs or sub-devices are only responsible for receiving and executing the commands, and do not have the ability to transmit data back. The communication method is mainly based on unidirectional drive protocols such as zero-code, which only defines the downlink data format from the controller to the lamp and does not design an uplink feedback channel. Information such as device status, faults, and topology cannot be actively uploaded, and the system relies on preset parameters to operate.

[0004] This one-way communication mode has obvious drawbacks: it cannot obtain the working status and fault information of the lower-level devices, making it difficult to locate abnormal nodes; it cannot achieve bidirectional data interaction on existing power cables, and adding additional backhaul lines will increase costs and complicate wiring. Summary of the Invention

[0005] In view of this, it is necessary to provide a two-way data communication method, device, electronic device and storage medium to solve the problems in the prior art where the lighting control system cannot obtain the working status and fault information of the lower-level equipment, making it difficult to locate abnormal nodes; it is also impossible to realize two-way data interaction on the existing power supply cable, and adding an extra return line will increase costs and complicate the wiring.

[0006] To achieve the above-mentioned technical objectives, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a bidirectional data communication method applied to a lighting power supply system comprising a controller and at least one controlled device, the bidirectional data communication method comprising the following steps:

[0008] The controller sends downlink control information to the controlled device via the lighting power supply link;

[0009] The controlled device sends uplink feedback information to the controller by changing the electrical characteristics of the access power supply link;

[0010] The controller decodes the uplink feedback information by detecting changes in the electrical parameters of the power supply link;

[0011] The downlink control information and uplink feedback information are transmitted on the same physical power supply link.

[0012] Furthermore, the electrical characteristics include at least one of the following: current variation, voltage variation, impedance variation, power variation, conduction state variation, and pulse load variation.

[0013] Furthermore, the controller decodes the uplink feedback information by detecting changes in the electrical parameters of the power supply link using at least one of the following detection methods: current sampling, voltage sampling, shunt detection, Hall effect detection, power detection, and high-frequency ripple detection.

[0014] Furthermore, the controlled device achieves uplink feedback by changing the electrical characteristics of the access power supply link by adjusting the load through a controllable switching device; the controllable switching device is at least one of the following: MOSFET, IGBT, bipolar transistor, relay, solid-state relay, constant current drive adjustment module, and return-to-zero code chip.

[0015] Furthermore, the uplink feedback information sent by the controlled device to the controller adopts any of the following encoding methods: Manchester encoding, PWM encoding, pulse width encoding, pulse position encoding, NRZ encoding, differential encoding, and custom timing encoding.

[0016] Furthermore, the downlink control information sent by the controller to the controlled device through the lighting power supply link is carried by the abnormal time parameters in the standard drive timing. The abnormal time parameters include at least one of the following: high level duration, low level duration, cycle length, interval length, and reset time.

[0017] Furthermore, the downlink control information is transmitted by extending the low-level width of the return-to-zero code.

[0018] Secondly, the present invention also provides a bidirectional data communication system, comprising:

[0019] The downlink transmission module is used by the controller to send downlink control information to the controlled device through the lighting power supply link;

[0020] An uplink feedback module is used by the controlled device to send uplink feedback information to the controller by changing the electrical characteristics of the access power supply link;

[0021] The parameter detection module is used by the controller to decode the uplink feedback information by detecting changes in the electrical parameters of the power supply link;

[0022] The transmission control module is used to enable the downlink control information and the uplink feedback information to be transmitted on the same physical power supply link.

[0023] Thirdly, the present invention also provides an electronic device, including a memory and a processor, wherein,

[0024] The memory is used to store programs;

[0025] The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the bidirectional data communication method described above.

[0026] Fourthly, the present invention also provides a computer-readable storage medium, characterized in that it is used to store a computer-readable program or instruction, which, when executed by a processor, is capable of implementing the steps in the above-described bidirectional data communication method.

[0027] The beneficial effects of the above embodiments are as follows: By reusing physical lines on existing lighting power supply links, the present invention enables the controller to send downlink control information to the controlled device through the lighting power supply link, while the controlled device can actively change the electrical characteristics of the access power supply link to send uplink feedback information to the controller. The controller can decode and obtain the feedback data by detecting changes in the electrical parameters of the power supply link. Thus, without adding extra backhaul lines or increasing wiring costs, bidirectional data communication on the same physical power supply link is achieved. This allows the controller to obtain the working status and fault information of the lower-level devices in real time, effectively solving the problem of being unable to locate abnormal nodes in the existing one-way communication mode. It significantly improves the maintainability and fault diagnosis efficiency of the system, and is particularly suitable for large-scale intelligent lighting scenarios with long distances, multi-level cascading, and multi-node distribution. Attached Figure Description

[0028] Figure 1 A flowchart illustrating an embodiment of the bidirectional data communication method provided by the present invention;

[0029] Figure 2 A schematic diagram of an embodiment of the bidirectional data communication device provided by the present invention;

[0030] Figure 3 Network structure diagram of the hierarchical lighting power supply communication network topology provided by the present invention;

[0031] Figure 4 This is a structural block diagram of the intelligent lighting two-way communication system provided by the present invention;

[0032] Figure 5A schematic diagram of the operating environment of an embodiment of the electronic device provided by the present invention. Detailed Implementation

[0033] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not intended to limit the scope of the present invention.

[0034] In the description of this application, "multiple" means two or more, unless otherwise expressly and specifically defined.

[0035] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0036] To facilitate understanding, we will first explain some of the technical terms used in this article:

[0037] Lighting power supply link: refers to the physical line connecting the controller and the controlled device, consisting of three wires: power line, ground line, and zero-code data line. The zero-code data line serves both to provide display drive data to the controlled device and as the communication medium for downlink control information transmission; uplink feedback information is transmitted by changing the electrical characteristics of the power supply link (such as current changes), and is not transmitted through the zero-code data line.

[0038] Downlink control information / uplink feedback information: defined by the direction of information flow, "downlink" refers to the control commands and data sent from the controller to the controlled device; "uplink" refers to the status information, fault information and response data returned from the controlled device to the controller.

[0039] Return-to-Zero Code (RZ): A digital baseband coding method characterized by the fact that the signal level must return to zero after representing a data bit within each symbol period, forming a periodic alternation of high and low levels, which facilitates clock recovery and symbol boundary identification at the receiving end.

[0040] Electrical parameter changes: refers to the numerical fluctuations or state changes of the aforementioned electrical physical quantities measured by the controller at the power supply link detection end, which is the external manifestation of the uplink feedback information on the power supply link.

[0041] This invention provides a bidirectional data communication method, apparatus, device, and storage medium, which are described below.

[0042] A specific embodiment of the present invention discloses a bidirectional data communication method; please refer to [link / reference]. Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of a bidirectional data communication method provided by the present invention.

[0043] like Figure 1 As shown, the bidirectional data communication method provided in this embodiment is applied to a lighting power supply system that includes a controller and at least one controlled device. The bidirectional data communication method includes the following steps:

[0044] S10. The controller sends downlink control information to the controlled devices via the lighting power supply link. In this embodiment, the controller, as the control terminal of the lighting power supply system, sends downlink control information to each controlled device (such as lamps, splitters, drive nodes, etc.) via the lighting power supply link to achieve real-time control of the downstream devices. The lighting power supply link provides power to the controlled devices and also serves as the physical medium for data transmission. Specifically, the downlink control information sent by the controller to the controlled devices via the lighting power supply link is carried by abnormal time parameters in the standard drive timing. The abnormal time parameters include at least one of the following: high-level duration, low-level duration, cycle length, interval length, and reset time.

[0045] For example, the downlink control information is transmitted by extending the low-level width of the Return-to-Zero (RZ) code. Return-to-Zero (RZ) is a common digital signal encoding method. In standard RZ timing, a symbol contains both high and low levels, with the high level preceding the low level. For example, a high level of 900ns, a low level of 300ns, and a period of 1200ns represent symbol 1; a high level of 300ns, a low level of 900ns, and a period of 1200ns represent symbol 0. The signal returns to zero level after each symbol period. This embodiment extends the duration of the low level in the standard RZ code beyond the normal range, thereby embedding additional control information into the abnormal timing parameters without changing the overall drive timing compatibility. The controlled device can parse the downlink control information by detecting abnormal changes in the low-level width, achieving covert transmission of control commands. The RZ chip only recognizes the high-level width to determine 0 / 1 codes; therefore, the low-level width does not affect the LED display. The controller represents control information by inserting a specific low-level duration. For example, the normal symbol timing of a certain return-to-zero IC (such as WS2811) is shown in Table 1 below:

[0046] Table 1:

[0047] T0H 0 code, high level time 220ns~380ns T1H 1 code, high-level time 580ns~1µs T0L 0 code, low level time 580ns~1µs T1L 1 code, low level time 580ns~1µs Tdata Data cycle ≥1.25us

[0048] When the controller needs to send configuration information, it uses a special low-level width for the low-level symbols of the entire frame or part of the normal transmission data, as shown in Table 2 below:

[0049] Table 2:

[0050] T0H 0 code, high level time 220ns~380ns T1H 1 code, high-level time 580ns~1µs T0L 0 code, low level time 1.2µs~1.8µs T1L 1 code, low level time 900ns~1.2µs Tdata Data cycle ≥2.10us

[0051] When the entire frame uses a special low-level width, the configuration information is carried after the normal transmitted data. When the sub-device detects an abnormal low-level width, it enters configuration parsing mode and extracts the specific configuration information from the last few bytes of the data frame. As another feasible downlink communication scheme, the system presets a maximum number of LEDs N (e.g., 288); when transmitting control information, the controller continues to send additional data after the N+1th LED position; the sub-device identifies data segments exceeding the maximum length as configuration data for parsing.

[0052] S20. The controlled device sends uplink feedback information to the controller by changing the electrical characteristics of its access power supply link. In this embodiment, after receiving downlink control information, the controlled device changes the electrical characteristics of its access power supply link, causing a detectable change in the electrical parameters of the power supply link, thereby modulating the uplink feedback information onto the power supply link. Specifically, the controlled device controls its own load, causing a change in the power supply circuit current. In this product, the load change is mainly achieved by controlling the on / off state of several downstream LEDs, resulting in a significant change in the current within the system, which can be detected by the current acquisition circuit of the controller. For example, connecting the load, disconnecting the load, or PWM modulating the load to form a recognizable current waveform. The controlled device can adjust the load to achieve uplink feedback through controllable switching devices, including at least one of the following: MOSFET, IGBT, bipolar transistor, relay, solid-state relay, constant current drive adjustment module, and zero-return code chip.

[0053] S30. The controller decodes the uplink feedback information by detecting changes in the electrical parameters of the power supply link. In this embodiment, the controller continuously monitors the electrical parameters of the lighting power supply link. When a regular change in the electrical parameters is detected, it is determined to be uplink feedback information sent by the controlled device, and decoded according to a preset encoding rule. The controller obtains the current change waveform by sampling a voltage divider resistor (e.g., 0.03Ω), an operational amplifier (e.g., 50x gain), and high-speed ADC sampling. To acquire the current change in the load, the controller needs to accurately acquire the voltage value of the sampling resistor and calculate the current value by dividing the voltage by the voltage divider resistor. The voltage divider resistor is connected in series on the system power bus. When the system load generates current, the voltage value across the voltage divider resistor is acquired. The resistor is prone to heating, so the voltage divider resistor should not be too large. During ADC acquisition, in order to acquire the voltage across the voltage divider resistor more accurately, the operational amplifier uses differential detection (requiring the use of two ADC inputs for acquisition), so that the influence of external impedance on the reference input can be canceled out. When the ADC of the main control MCU acquires the voltages Vref and Vout, it must be considered whether the ADC's range can cover the maximum value of Vout. If it cannot (for example, if the ADC's range is 0-2500mV, but the Vout range is 0-5.0V), then a voltage divider resistor must be added at the Vout terminal. The actual Vout voltage value is calculated by acquiring the voltage after the voltage divider. In order to accurately reconstruct the current change curve, according to the Nyquist sampling theorem, the sampling period must be at least twice the symbol period. Currently, the shortest uplink symbol period is 50ms. At this time, the ADC sampling period is once every 10ms, which is equivalent to one symbol being sampled 5 times, which can accurately reconstruct the current change curve. After acquiring a complete frame of uplink data through the ADC, a set of raw ADC data is formed. Each value in this data set needs to be compared with a preset threshold. Values ​​greater than the threshold are considered symbol 1 (i.e., the LED is considered lit), and values ​​less than the threshold are considered symbol 0 (i.e., the LED is considered off). Based on this, the raw data is converted into digital symbol signals, which are then sent to the decoding module for decoding.

[0054] S40. The downlink control information and uplink feedback information are transmitted on the same physical power supply link. In this embodiment, the downlink control information and uplink feedback information share the same physical power supply link for transmission, eliminating the need for laying additional dedicated communication backhaul lines. The downlink control information is transmitted from the controller to the controlled device using voltage / timing modulation, while the uplink feedback information is transmitted from the controlled device to the controller using current / impedance modulation. The information in these two transmission directions is independent and does not interfere with each other at the physical layer, achieving true bidirectional data communication. Compared with existing technologies, the bidirectional data communication method provided in this embodiment reuses physical lines on existing lighting power supply links. This allows the controller to send downlink control information to the controlled device through the lighting power supply link, while the controlled device can actively change the electrical characteristics of the power supply link to send uplink feedback information to the controller. The controller can decode and obtain the feedback data by detecting changes in the electrical parameters of the power supply link. Thus, bidirectional data communication on the same physical power supply link is achieved without adding extra backhaul lines or increasing wiring costs. This enables the controller to obtain the working status, fault information, and topology information of the lower-level devices in real time, effectively solving the problem of being unable to locate abnormal nodes in the existing one-way communication mode. This significantly improves the maintainability and fault diagnosis efficiency of the system, and is particularly suitable for large-scale intelligent lighting scenarios with long distances, multi-level cascading, and multi-node distribution.

[0055] To further improve the reliability of uplink feedback information transmission, in this embodiment, the controlled device can adjust the switching frequency of the controllable switching device to ensure that the frequency of electrical parameter changes in the power supply link is within the optimal response frequency band of the controller's detection circuit, thereby improving the signal-to-noise ratio and decoding accuracy. It is worth noting that in practical applications, multiple controlled devices can share the same lighting power supply link. To avoid conflicts in uplink feedback information, the controller can adopt a traversal request method, sending downlink requests with node addresses. Child nodes with matching addresses respond to the request, while those with mismatched addresses discard it, thus preventing signal conflicts caused by multiple devices simultaneously modulating current. For example, in a multi-level cascaded intelligent lighting system, the controller sends downlink control information containing specific node addresses to the target controlled device via the power supply link. After parsing the instructions, the first-level controlled device executes the corresponding control operations and, by changing its electrical characteristics, sends its own status information and the aggregated information of the lower-level devices back to the controller. The controller determines the operating status of each level of device based on the decoded data. When an abnormal current or communication interruption is detected at a node, the fault location can be quickly identified. In order to achieve effective transmission of downlink control information without changing the existing lighting drive standard or adding additional communication lines, it is considered that the time parameters in the standard drive timing have redundancy or scalability under certain conditions.

[0056] In one embodiment of the present invention, based on the above embodiments, the downlink control information sent by the controller to the controlled device through the lighting power supply link is carried by abnormal time parameters in the standard drive timing. These abnormal time parameters include at least one of the following: high-level duration, low-level duration, cycle length, interval length, and reset time. The standard drive timing is a widely adopted signal specification in the lighting industry, and the original decoding circuit of the controlled device is designed based on the normal range of these time parameters. This embodiment cleverly utilizes abnormal values ​​of time parameters to carry additional control information, achieving compatibility with standard protocols. Specifically, abnormal high-level duration refers to setting the high-level duration corresponding to logic "1" to a specific duration deviating from the standard value. For example, if the standard specifies a high-level duration of 0.5µs, then 0.7µs can be defined as an abnormal value carrying additional control information. Abnormal low-level duration is similar, encoding data by extending or compressing the low-level duration. Abnormal cycle length refers to changing the duration of the entire symbol cycle, using changes in cycle length to represent different instructions. Abnormal interval length refers to inserting a specific length of idle interval between consecutive data frames, using the interval duration to transmit information. Abnormal reset time refers to setting the duration of the standard reset signal to an unconventional value. For example, if the standard reset time is 50µs, then 80µs can be defined as a reset instruction with special meaning. After detecting this abnormal reset time, the controlled device not only performs a reset operation but also parses out the additional control information.

[0057] This embodiment utilizes abnormal timing parameters in the standard driving timing sequence to carry downlink control information. This allows the invention to achieve extended transmission of control information while maintaining full compatibility with the basic driving functions of existing controlled devices, without requiring large-scale modifications to the hardware circuitry of the controlled devices. For older devices that only support the standard protocol, abnormal timing parameters may be considered fluctuations within the normal tolerance range and ignored, without affecting their basic operating state. For new devices that support the protocol of this invention, the extended information carried in these abnormal parameters can be identified and parsed. Therefore, this solution achieves a unification of forward compatibility and backward scalability, reducing the cost and difficulty of system upgrades, facilitating gradual promotion and application in already deployed lighting systems, and possessing good engineering practice value. For example, in an intelligent lighting system that uses return-to-zero codes as the standard driving timing sequence, this invention provides a specific and feasible extended transmission scheme for downlink control information.

[0058] In one embodiment of the present invention, based on the above embodiments, the downlink control information is transmitted by extending the low-level width of the return-to-zero code. Return-to-zero code is a widely used digital encoding standard in the field of LED lighting control. Its typical characteristics are: within each symbol cycle, a high level represents a data bit (such as logic "1"), and the signal must then return to a low level (zero level). The duration of the low level is usually a fixed value (such as 0.5µs or 1.0µs), and the entire symbol cycle duration is also a fixed value (such as 1.2µs). This embodiment, while maintaining the high-level duration and the start time of the symbol cycle unchanged, extends the low-level width of a specific symbol, for example, extending the standard low-level width of 0.5µs to 1.5µs or 2.0µs, forming a clearly identifiable abnormal low level. During decoding, the controlled device first identifies the high-level data bits according to the standard return-to-zero code rules. Simultaneously, it uses a timer to measure the duration of the low-level signal within each symbol cycle. When a low-level duration exceeds the standard range but falls within a preset abnormal interval, it is determined that the symbol carries extended downlink control information. By combining multiple symbols with abnormally low-level widths, a complete control command frame can be constructed.

[0059] This embodiment achieves downlink control information transmission by extending the low-level width of the return-to-zero (RZ) code, fully utilizing the RZ code's inherent characteristic of returning to zero level. The power consumption of the controlled device mainly depends on the output value of the driver IC; a larger driver value results in higher LED brightness but also higher power consumption, and is not directly related to the low-level duration of the RZ code. Therefore, extending the width during the low-level period has minimal impact on the LED's luminous state, making it less noticeable to the human eye as flickering or brightness changes, thus ensuring stable lighting effects. Simultaneously, since only the low-level width is extended without altering the high-level data representation function and the overall structure of the symbol period, controlled devices supporting this invention's protocol can simultaneously maintain compatibility with the standard RZ code's conventional control functions, achieving dual-use of a single code. Furthermore, the extension range of the low-level width can be flexibly set according to actual communication needs. A larger extension makes the controlled device easier to identify and provides stronger anti-interference capabilities, but the symbol period also increases accordingly, requiring a trade-off between transmission rate and reliability. Therefore, this scheme achieves extended transmission of downlink control information with extremely low implementation complexity while maintaining compatibility with the existing RZ code ecosystem, demonstrating good practicality and promotional value.

[0060] Considering that the modulation method of uplink feedback information directly affects the reliability of communication and the implementation complexity of the controlled device, and in order to adapt to the needs of different application scenarios, flexible and diverse uplink information modulation methods are provided. In one embodiment of the present invention, based on the above embodiments, the controlled device sends uplink feedback information to the controller by changing the electrical characteristics of the access power supply link. The electrical characteristics include at least one of the following: current change, voltage change, impedance change, power change, conduction state change, and pulse load change. The controlled device can change the electrical characteristics of the access power supply link in various ways. For example, when current change is used as the modulation method, the controlled device has a controllable load branch internally. By controlling the on / off state of this branch, the total current consumption of the power supply link is changed, with the increase and decrease of current corresponding to different logic states; or, the load is changed by controlling the on / off state of several downstream LEDs, resulting in a significant change in the current within the system. When voltage variation is used as a modulation method, the controlled device adjusts its internal equivalent impedance to cause corresponding changes in the node voltage of the power supply link driven by a constant current source. When impedance variation is used as a modulation method, the controlled device switches resistor networks with different resistance values ​​connected to the power supply link, causing discrete jumps in the link impedance. When power variation is used as a modulation method, the controlled device adjusts the output power level of the LED driver chip to cause regular changes in the total power consumption of the power supply link. When conduction state variation is used as a modulation method, the controlled device controls the switching devices connected in series in the power supply circuit to turn on and off, causing the power supply link current to drop to zero in the off state, forming a clear state jump. When pulse load variation is used as a modulation method, the controlled device intermittently connects an additional load at a specific frequency and duty cycle, generating a identifiable high-frequency pulse current component on the power supply link. This embodiment limits the electrical characteristics to at least one of the above, allowing the controlled device to select the most suitable modulation method according to its own hardware configuration and the system's operating environment, thereby ensuring effective transmission of uplink feedback information while reducing interference with the original lighting function of the controlled device. For example, for LED luminaires using constant current drive, modulation via current or power changes can be achieved directly using existing constant current drive adjustment modules without the need for additional switching devices, simplifying hardware circuit design. For scenarios requiring rapid response, higher data transmission rates can be achieved through conduction state changes or pulse load changes. Therefore, the optional configuration of various electrical characteristics enhances the compatibility and flexibility of the solution, enabling this invention to be applied to different types of controlled devices and diverse intelligent lighting system architectures.It is worth noting that the controlled device's uplink feedback function relies on specific actuators. To clarify the specific implementation path of the controlled device changing its electrical characteristics and to ensure the hardware feasibility and cost controllability of this function, in one embodiment of the present invention, based on the above embodiments, the controlled device achieves uplink feedback by changing the electrical characteristics of the access power supply link by: the controlled device adjusting the load through a controllable switching device; the controllable switching device is at least one of the following: MOSFET, IGBT, bipolar transistor, relay, solid-state relay, constant current drive adjustment module, or return-to-zero code chip. The controllable switching device is the core actuator for the controlled device to adjust its electrical characteristics.

[0061] For example, when a MOSFET is used as a controllable switching device, the control unit of the controlled device outputs a PWM signal to drive the gate of the MOSFET. By adjusting the duty cycle of the PWM, the conduction degree of the MOSFET is controlled, thereby adjusting the equivalent impedance of the parallel load and realizing continuous change of the power supply link current, which is suitable for scenarios requiring analog modulation. When an IGBT is used, due to its high voltage and current withstand capability, it is suitable for uplink feedback modulation of high-power lighting equipment. When a bipolar transistor is used, its linear amplification region characteristics can be used to achieve relatively smooth current regulation, which is low cost. When a relay or solid-state relay is used, the on / off control of the load is realized through the opening and closing of the contacts. The circuit structure is simple and suitable for scenarios requiring switching modulation. When a constant current drive regulation module is used, the original drive circuit of the LED lamp can be used directly. By changing the set value of the constant current output, the current consumption of the power supply link can be adjusted without adding additional components, resulting in the highest integration. When a return-to-zero code chip is used, its built-in communication protocol processing capability and controllable output port can be used to automatically complete the modulation and transmission of uplink feedback information according to the preset encoding rules, reducing the processing burden of the main controller of the controlled device.

[0062] This embodiment provides clear selection guidance for the hardware design of controlled devices by defining the specific types of controllable switching devices, enabling suitable implementation solutions to be found for controlled devices with different power levels and cost constraints. For example, for low-power LED bulbs, constant current drive adjustment modules or MOSFETs can meet functional requirements while maintaining extremely low additional costs; for industrial-grade high-power floodlights, IGBTs or solid-state relays can ensure device reliability and lifespan; for intelligent lighting fixtures requiring complex coding functions, zero-code chips can simplify software design and improve development efficiency. Therefore, the compatibility and support of various controllable switching devices give this invention good hardware adaptability and cost gradient, facilitating its application in products of different price ranges. To ensure that the controller can accurately and reliably detect changes in the electrical parameters of the power supply link and correctly decode the uplink feedback information, it is necessary to comprehensively consider the differences in accuracy, cost, response speed, and anti-interference capabilities of different detection methods to select the optimal detection scheme.

[0063] In one embodiment of the present invention, based on the above embodiments, the controller decodes the uplink feedback information by detecting changes in the electrical parameters of the power supply link using at least one of the following detection methods: current sampling, voltage sampling, shunt detection, Hall effect detection, power detection, and high-frequency ripple detection. The controller can select the appropriate detection method according to the system scale and cost budget. Specifically, the current sampling method can use a precision sampling resistor connected in series in the power supply link, and then use an operational amplifier to amplify the voltage difference across the sampling resistor before it is acquired by an ADC. This method has a simple circuit and low cost, and is suitable for systems with a small number of nodes and short line distances. The voltage sampling method can directly detect voltage fluctuations at the nodes of the power supply link without the need for additional components connected in series in the main power supply circuit, thus having a small impact on power supply efficiency. The shunt detection method uses a shunt as the current detection element, which has the characteristics of high accuracy and good linearity, and is suitable for occasions with high measurement accuracy requirements. The Hall effect detection method is based on the Hall effect principle. The Hall current sensor non-contactly detects current changes in the power supply link, achieving electrical isolation between the detection circuit and the main power supply circuit, ensuring high safety and making it particularly suitable for high-voltage, high-power lighting systems. The power detection method simultaneously acquires voltage and current signals and calculates instantaneous power, using power changes to extract uplink feedback information, effectively suppressing common-mode interference. The high-frequency ripple detection method extracts high-frequency ripple components in a specific frequency band of the power supply link using a bandpass filter. The controlled device modulates the uplink feedback information onto this high-frequency band, thus separating it from low-frequency power supply voltage fluctuations and LED drive current ripple, improving the signal-to-noise ratio.

[0064] This embodiment provides multiple detection methods, enabling the controller to select the optimal detection scheme based on the actual application environment. This balances cost, efficiency, and safety while ensuring decoding accuracy. For example, Hall effect detection is used in high-voltage AC-powered landscape lighting systems to effectively isolate the detection end from the high-voltage end, avoiding safety hazards. High-frequency ripple detection is used in long-distance multi-node transmission systems to effectively distinguish uplink information sent by each node from low-frequency noise in the line, improving communication reliability. Therefore, the flexible configuration of multiple detection methods enhances the environmental adaptability and engineering practicality of this invention, enabling the solution to cover a full range of applications, from low-cost indoor lighting to high-requirement outdoor lighting. It should be noted that the encoding method of the uplink feedback information directly determines the reliability, rate, and compatibility with the controller's decoding algorithm. To provide diverse encoding options to adapt to different communication needs and environmental conditions, this invention supports multiple uplink feedback information encoding methods, allowing the controlled device to flexibly select the appropriate method based on actual conditions.

[0065] In one embodiment of the present invention, based on the above embodiments, the uplink feedback information sent by the controlled device to the controller adopts any of the following encoding methods: Manchester encoding, PWM encoding, pulse width encoding, pulse position encoding, NRZ encoding, differential encoding, and custom timing encoding. Different encoding methods have their own technical characteristics and application advantages. Specifically, Manchester encoding has a level transition in the middle of each symbol cycle, using the transition direction to represent data (e.g., rising edge represents "1", falling edge represents "0"). It has built-in clock synchronization information, requiring no additional synchronization signal, and has no DC component, facilitating transformer-coupled transmission, making it suitable for applications with high synchronization requirements. PWM encoding carries data information by adjusting the duty cycle of the pulse; for example, a duty cycle greater than 50% represents "1", and less than 50% represents "0". It has strong noise immunity and a simple demodulation circuit, making it suitable for industrial sites with significant environmental interference. Pulse width encoding uses the absolute width of the pulse to represent data; different pulse widths correspond to different data symbols. Transmitting multiple bits of information within a single pulse improves bandwidth utilization; pulse position coding distinguishes data by the position of the pulse in the time slot, is insensitive to amplitude changes, and has strong resistance to amplitude interference; NRZ coding (non-return-to-zero coding) keeps the level constant within a symbol period, is simple to implement, has high coding efficiency, and is suitable for high-speed data transmission; differential coding represents data by whether or not the level changes between adjacent symbols, is insensitive to polarity, and can be correctly decoded even if the polarity of the signal is reversed during transmission, enhancing the robustness of transmission; custom timing coding allows the system to define dedicated data frame formats and timing rules according to specific application requirements, offering the highest flexibility and compatibility with existing proprietary protocols.

[0066] This embodiment provides multiple encoding methods, enabling controlled devices to select the optimal encoding scheme based on constraints such as communication distance, data rate, anti-interference requirements, and hardware resources. This ensures accurate information transmission while optimizing system performance. For example, Manchester encoding can be used in large systems with numerous nodes and complex wiring, leveraging its self-synchronization characteristics to simplify the controller's decoding circuit design. In outdoor lighting scenarios with harsh electromagnetic environments, PWM encoding or differential encoding can improve signal anti-interference capabilities. In intelligent lighting fixtures requiring the transmission of large amounts of status data, pulse width encoding or custom timing encoding can improve channel bandwidth utilization. Therefore, the support for multiple encoding methods gives this invention excellent protocol flexibility and environmental adaptability, facilitating interoperability with devices from different manufacturers and generations.

[0067] In a preferred embodiment of the present invention, the uplink data uses Manchester encoding. For communication stability and anti-interference capability, the uplink data uses the Manchester encoding format. Its characteristic is that a level transition or flip must occur in the middle of each bit cycle, allowing the receiver to easily perform timing synchronization and avoiding prolonged periods of 0 or 1 as in ordinary encoding, which could make it difficult for the receiver to determine bit boundaries. Currently, in the uplink data, the original 0 code is represented by 01 after encoding, and the original 1 code is represented by 10 after encoding; for example, if the original data is 0xA1 (0b1010 0001), the corresponding encoded data is 2 bytes (0b 10 01 10 01 01 01 01 10) 0x99 0x56; where 0 in the encoded data represents a low level, which in this product means the light is off, and 1 in the encoded data represents a high level, which in this product means the light is on (lighting up several LEDs). To facilitate synchronization, in the actual reported raw data, the first 4 bits of the data are set to a synchronization header of 0x0F (10101010 after Manchester encoding), followed by the actual reported data. This allows the receiving end to capture the synchronization header feature data and begin parsing a frame of reported data. An example of one reported data structure is shown below:

[0068] typedef struct {

[0069] uint8_t head; / / 4 bits

[0070] uint8_t branch1; / / 2 bits

[0071] uint16_t num1; / / 10 bit

[0072] uint8_t branch2;

[0073] uint16_t num2;

[0074] uint8_t branch3;

[0075] uint16_t num3;

[0076] } topo_report_fields_t;

[0077] If a splitter sub-device has 108 LEDs on branch 1, 24 on branch 2, and 12 on branch 3, then the reported raw data would be:

[0078] report_info.head = 0x0F;

[0079] report_info.branch1 = 1;

[0080] report_info.num1 = 108;

[0081] report_info.branch2 = 2;

[0082] report_info.num2 = 24;

[0083] report_info.branch3 = 3;

[0084] report_info.num3 = 12;

[0085] The above structure is then converted into a raw character stream in a specific order; Manchester encoding then uses this raw character stream as raw data for encoding, and finally sends out the encoded data by lighting up some LEDs (code 1) and turning off some LEDs (code 0).

[0086] In one embodiment of the present invention, the controller dynamically adjusts at least one communication parameter of the uplink feedback information based on communication quality. The communication parameters include: symbol width, sampling frequency, threshold value, synchronization window, and retransmission count. Specifically, the controller automatically adjusts the symbol width based on the quality of the sampled waveform: increasing the symbol width when noise is high and shortening it when the signal is stable, thereby improving decoding success rate and communication efficiency. To improve communication efficiency, during the monitoring of data reporting by sub-devices, the controller first performs a short timeout (300ms) to detect synchronization header data. Only after detecting valid synchronization header data will the timeout be changed to a longer timeout (the timeout duration is related to the duration of the current symbol; for example, if the symbol duration is 50ms and the complete data is 40 bits, the timeout will be set to 2100ms (with some reserved time)). The controller waits to receive the complete data frame and then sends it to the parsing function for processing. If valid synchronization header data is not detected within the short timeout period, the monitoring mechanism exits after a timeout. Currently, the product supports three symbol duration levels: 50ms, 100ms, and 200ms. When the controller sends a reporting request, it specifies which symbol duration level the sub-device should use for reporting. After receiving the reporting request, the sub-device adjusts its symbol duration to the level specified by the controller before reporting. To improve decoding success and efficiency, the controller prioritizes using the shortest duration level or the last successfully used duration level for reporting requests. If invalid reported data is detected, it is assumed that communication instability is causing garbled characters. The controller will then increase the duration level and re-request the report until communication is successful or all duration levels have been tried.

[0087] In one embodiment of the present invention, the controller employs an adaptive decoding process for decoding the uplink feedback information, including the following steps:

[0088] (1) Sampling: Uplink data reporting is accomplished by controlling the on / off state of the load. Changes in the on / off state of the load will cause changes in the load current. In the hardware circuit design, a very small voltage divider resistor is used to detect the current load current. The current change will be synchronously reflected in the voltage across the resistor. After being amplified several times by the operational amplifier chip, a voltage value that is easy for the main control ADC to collect is formed. The original value is formed by collecting the voltage across the voltage divider resistor through the ADC. The sampling frequency must be more than twice the symbol frequency to restore the voltage change curve. This product uses a 5x sampling rate for ADC acquisition, that is, 5 ADC values ​​are collected for 1 symbol duration, which can ensure lossless curve restoration. In order to ensure the accuracy and stability of the collected data, the ADC can use the method of continuously collecting multiple times and calculating the average value, or continuously collecting multiple times and calculating the median value, or other similar algorithms for software filtering during the actual acquisition process, to remove some abnormal jump values ​​and form a stable and reliable voltage value. After the ADC value of a complete frame of data is collected, an ADC raw data stream will be formed.

[0089] (2) Digitization of raw data: For the next step of decoding, the raw data stream formed by sampling needs to be converted into digital signals 1 or 0. The conversion method is to compare the raw ADC value with a preset threshold. ADC values ​​greater than or equal to the threshold are considered 1, and values ​​less than the threshold are considered 0. In this way, the raw data stream is converted into digital symbol signals that can be recognized by the decoding synchronization head module. Because the symbol 1 and 0 of the digital signal are related to whether the subsequent decoding module can decode the data normally, the preset threshold is crucial. The system can preset a base threshold (e.g., 80mV) based on the actual product and after hardware testing. Subsequently, in the synchronization head decoding module, this threshold will be dynamically adjusted according to the actual situation so that the data decoding module can decode the data more accurately.

[0090] (3) Synchronization Header Decoding Module: In each frame of data in uplink communication, the frame header is fixed with an 8-bit synchronization code (0b10101010 after Manchester encoding) so that the receiving end can synchronize the position of a frame of data after receiving data with this feature point. In order to improve communication efficiency, in the decoding process at the receiving end, the receiving end will first decode the synchronization code of the received information (decoding while acquiring data). If a valid synchronization code is parsed, it is considered that there is real data afterward, and the receiving timeout time will be extended so as to receive a complete frame of data. If a valid synchronization code is not parsed within the timeout (300ms), the decoding process will exit. In the actual receiving and decoding process, due to factors such as the clock error at the transmitting end, the sampling period deviation at the receiving end, signal attenuation, and environmental noise, the actual symbol width and level decision threshold within the same data frame will change.

[0091] If the decoding scheme uses a fixed code width (symbol period is 5 times the acquisition period) and a fixed decision threshold, it has the following drawbacks: A. When the symbol width drifts, it is easy to cause errors in symbol boundary judgment; B. The fixed threshold cannot adapt to different signal amplitude conditions and is prone to misjudgment; C. Synchronization head detection is based solely on bit pattern matching and is easily affected by noise interference, resulting in pseudo-synchronization; D. Maintaining the same level for a long time can easily cause statistical errors in the number of symbols. Therefore, an adaptive decoding method that can automatically calibrate the decoding parameters according to the actual characteristics of the received signal is needed to improve decoding accuracy and system robustness. The synchronization head decoding module utilizes the alternating high and low level characteristics of the synchronization head "1010" to calibrate the current data frame after detecting the synchronization head. ① Dynamic code width: When the synchronization head feature sequence "1010" is detected, the duration of the four consecutive symbols constituting the synchronization head is recorded: L0, L1, L2, L3, where L1 represents the number of ADC sampling points for the corresponding level state. The actual code width of the current data frame is obtained by calculating the average of the four symbol lengths: W = (L0 + L1 + L2 + L3) / 4, and this is used as the dynamic code width parameter in the subsequent decoding process. Compared with the fixed code width scheme, this mechanism can automatically adapt to the symbol width changes caused by the transmitter clock deviation and sampling frequency error, improving the symbol recovery accuracy. ② Synchronization header reliability verification: In order to avoid noise signals triggering synchronization header detection, the decoding module needs to further verify the validity of the "1010" sequence after detection. There are three symbol positions for the current uplink data (50ms / 100ms / 200ms). If the decoded dynamic code width exceeds a certain proportion of the symbol duration corresponding to the current position (this proportion can be adjusted in practice), it is considered a false synchronization header. Only when the dynamic code width falls within the legal range is it considered a valid synchronization header. For example: if the current symbol position is 50ms, the allowed dynamic code width range is 40-60ms. When a code width exceeding 60ms or below 40ms is detected, it is considered invalid data. This mechanism effectively suppresses synchronization head misjudgments caused by random noise, glitches, or false triggering, improving synchronization positioning accuracy. ③ Dynamic threshold adjustment: After the synchronization head is confirmed to be valid, statistical analysis is performed on the ADC sampling data within the synchronization head area. The maximum sampling value ADCmax and the minimum sampling value ADCmin in the current data are obtained, and the threshold value is recalculated: threshold = (ADCmax + ADCmin) / 2. This threshold value is then used as the dynamic decision threshold for subsequent data decoding modules. Since this threshold is directly derived from the actual received signal, it can automatically adapt to amplitude changes caused by factors such as signal attenuation, power fluctuations, temperature drift, and changes in receiving distance. Compared to fixed threshold schemes, it has stronger environmental adaptability.After the synchronization header decoding module completes, the following information can be obtained: ① whether a valid synchronization header is detected; ② the actual code width and duration of the valid synchronization header; ③ the dynamic threshold of the valid synchronization header.

[0092] (4) Data Decoding Module: After the synchronization header decoding module parses a valid synchronization header, it continues to wait for the ADC sampling of the complete data to be completed, forming a data stream of one frame. Then, the data module decodes according to the dynamically adjusted code width W and threshold value in the synchronization header decoding. ① Adaptive symbol recovery of dynamic code width W: For any continuous level duration L, the number of symbols is calculated as follows: N=round(L / W) where round() represents rounding operation. Based on the obtained number of symbols N, the corresponding number of logical symbols is automatically compensated. Compared with the traditional integer truncation method: N=int(L / W), it can significantly reduce the symbol number offset problem caused by the accumulation of sampling errors. ② Manchester code validity check: After the symbol recovery is completed, the validity of the Manchester code needs to be checked.

[0093] Encoding pair Data bits 01 0 10 1

[0094] According to the Manchester code definition: if 00 or 11 appears, it is determined to be an illegal Manchester code, and the decoding process is terminated. By adding a step to verify the legality of the encoding, the accuracy of data recovery can be further improved. ③ Manchester Decoding: After the above process, a string of legal and clear Manchester code metadata will be obtained. Then, by converting the data bits corresponding to 01 to 0 and the data bits corresponding to 10 to 1, the final decoded data is obtained. For example, the Manchester encoded stream is: 10101010 01010101 01010110 01011001 01011010 01100101 01100110 0110100101101010 10010101, corresponding to the following data bits: 0b11110000 00010010 00110100 0101011001111000. The decoded hexadecimal data is: 0xF0 0x12 0x34 0x56 0x78. The decoded data undergoes corresponding validity checks for different devices. For example, when a splitter sub-device reports information, the checks include: the synchronization word in the frame header (0x0F), the validity of the branch sequence number value, and the validity of the branch lamp value. Only after all validations pass will the final parsed result be output to the application.

[0095] To better implement the bidirectional data communication method in the embodiments of the present invention, based on the bidirectional data communication method, please refer to the corresponding... Figure 2 , Figure 2This is a schematic diagram of an embodiment of the bidirectional data communication system 300 provided by the present invention. The bidirectional data communication system 300 includes: a downlink transmission module 310, used by the controller to send downlink control information to the controlled device through a lighting power supply link; an uplink feedback module 320, used by the controlled device to send uplink feedback information to the controller by changing the electrical characteristics of the access power supply link; a parameter detection module 330, used by the controller to decode the uplink feedback information by detecting changes in the electrical parameters of the power supply link; and a transmission control module 340, used to ensure that the downlink control information and the uplink feedback information are transmitted on the same physical power supply link. It should be noted that the bidirectional data communication system provided in the above embodiment can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules can be found in the corresponding content in the above bidirectional data communication method embodiments, and will not be repeated here.

[0096] Please see Figure 3 , Figure 3 The hierarchical lighting power supply and communication network topology is shown. The bidirectional power supply multiplexing communication scheme of this invention can be adapted to large-scale intelligent lighting and landscape lighting systems with multi-level cascade and line power supply structure. The overall architecture is divided into three levels: the 0th level main controller layer, the 1st level first-level splitter layer, and the 2nd level second-level splitter layer. Each device is assigned an independent level number, which is used to distinguish the device location and branch affiliation when reporting the uplink topology.

[0097] 1. Layer 0: Deployment of main controller layer devices

[0098] Layer 0 only has two types of nodes: controller (layer 0, number 0) and power supply tee (layer 0, number 2). The controller has two output ports OUT1 and OUT2, and the two ports independently output timing signals with return-to-zero codes:

[0099] The controller's OUT1 port is connected downwards to the splitter 1 (level 1, number 1) via the LED string cable.

[0100] The controller OUT2 port line is connected in series with a power supply tee, and the power supply tee is connected downward to the splitter 1 (level 1, number 2) via an extension line.

[0101] The primary function of the power supply tee is to compensate for power supply voltage and reduce line voltage drop. In addition, the power supply tee also has data parsing and uplink reporting capabilities, meaning it possesses bidirectional communication functionality. This function is used during network topology configuration, allowing the power supply tee to report its location so that the controller can pinpoint its exact location when building the topology structure. When the controller decodes the topology frame, it identifies the power supply tee node and treats it as a node within the topology structure.

[0102] 2. Layer 1: Deployment of primary splitter layer equipment

[0103] The first layer contains two independent first-level splitters, namely Layer 1 No. 1 and Layer 1 No. 2. Both splitters are multi-output devices, and each output interface can be connected to an external LED string or the next-level splitter.

[0104] Splitter 1 (Level 1, Number 1): The input terminal receives the power supply communication signal sent by the controller OUT1, and it leads out two light string output branches; one of the light strings is cascaded to the second-level splitter at the end, and the other is directly connected to the terminal LED light string load.

[0105] Splitter 1 (Level 1, No. 2): The input terminal receives the power supply communication signal sent by the controller OUT2 via the power supply tee extension line, and also leads out two light string output branches; one is directly connected to the terminal light string, and the other is cascaded down to the second-level splitter.

[0106] All primary splitters have built-in MOS controllable switches and Manchester uplink modulation circuits. When the controller needs to obtain topology information, it will send downlink topology reporting requests with node addresses in sequence. After receiving the request, the primary splitter with the matching address will complete the uplink feedback by modulating the load current within the allocated time slot. The primary splitter with the mismatched address will discard the request and not respond, thereby avoiding link conflicts caused by multiple nodes reporting at the same time.

[0107] 3. Layer 2: Deployment of secondary splitter layer equipment

[0108] The first layer consists of two primary splitters, each cascaded down to a secondary splitter, forming the second layer of splitters.

[0109] Left-side secondary splitter: Splitter 1 (Level 2, No. 1), driven by the first-level splitter branch of Level 1 No. 1, with all dual outputs connected to terminal light strings, and no deeper level devices.

[0110] Right-side secondary splitter: Splitter 1 (Level 2, No. 4), driven by the first-level splitter branch of Level 1 No. 2, has its own dual outputs all connected to terminal light strings, with no deeper level devices.

[0111] When the secondary splitter reports uplink data, it only uploads its own hierarchical number, device number, output branch numbers, and the number of LEDs connected to each branch (see [reference]). Figure 3 Since the controller already carries the target node's hierarchy and number in the downlink request, this information is determined before communication, so there is no need to repeat the upstream splitter number in the uplink data. The controller sends requests to each level of target node in the order of hierarchical traversal and receives responses. After decoding, the tree topology link shown in the attached diagram can be completely reconstructed, and the fault location of any first-level or second-level splitter and its subordinate light strings can be accurately located.

[0112] The complete bidirectional communication workflow under this topology is as follows: The controller outputs standard return-to-zero code light display data from OUT1 and OUT2 respectively; if extended commands such as topology query, reporting cycle, and symbol level configuration are required, a return-to-zero code configuration byte with an abnormal low-level width is inserted at the end of the LED data frame. The signal is transparently transmitted to all primary and secondary splitters via the LED string, supplementary power tee, and extension line; each splitter detects a low-level timing sequence that exceeds the standard range, enters configuration parsing mode, and stores parameters such as the reporting time slot, the three symbol rates of 50 / 100 / 200ms, and its own device address.

[0113] The controller issues topology uplink and downlink commands with node addresses, traversing requests sequentially according to the hierarchy: first, a request with an address is sent to the first-level splitter; after the first-level splitter completes its report, a request with an address is sent to the second-level splitter. The two levels of devices send uplink data in a time-sharing manner to avoid current modulation signal conflicts on the bus.

[0114] First-level splitter (level 1, number 1, number 2): After receiving a request to match its level and number, it alternately turns on and off the output branch lamp string load with the set code element position, changes the total current of the circuit, and modulates the structure data containing the level 0 controller, its own level number, 2 output branches, and the number of the next level second-level splitter onto the power supply link according to Manchester encoding.

[0115] Secondary splitters (Level 2 No. 1, Level 2 No. 4): Upon receiving a request matching their level and number, they cyclically switch the LED string load to change the loop current. The reported data frame includes information that the splitter is a secondary splitter, the upstream device is the corresponding primary splitter number, the number of LED strings at both terminals, and a fault flag.

[0116] The hierarchical lighting power supply and communication network topology in this embodiment uses a dual identification mechanism of hierarchical number and device number, combined with uplink topology reporting, to automatically generate a complete network diagram with attached figures. This eliminates the need for manual input of wiring information and significantly reduces the debugging cost of large-scale lighting projects.

[0117] Please see Figure 4This embodiment discloses a 28V DC-powered, two-stage splitter tree-cascaded intelligent lighting bidirectional communication system. The entire system adopts a three-wire (power line, ground line, and return-to-zero code data line) power supply and communication multiplexing architecture, eliminating the need for independent backhaul communication cables. It consists of a DC power supply, a main controller, a first-stage 1out2 splitter, a second-stage 1out3 splitter, and multiple LED light strings, forming a complete hierarchical network. Each node shares the same power cable to transmit downlink control commands and uplink device status feedback data. Downlink control commands are transmitted via voltage timing signals on the return-to-zero code data line, while uplink device status feedback is transmitted by the controlled device changing the load current of the power supply link. Both are transmitted separately within the same physical cable using different signal dimensions, without interference.

[0118] The system input is connected to a 28V DC power supply, which only provides the rated operating voltage for the controller. The controller integrates a zero-code signal generation circuit, a 0.03Ω precision sampling resistor, a 50x differential operational amplifier circuit, and a multi-channel ADC sampling module. The controller outputs a single-channel composite signal bus, which simultaneously transmits the 28V power supply and the zero-code downlink control timing signal.

[0119] First-stage splitter: 1out2 splitter 1

[0120] The controller output bus is directly connected to the 1-to-2 splitter 1 (1out2 splitter 1), which has one input channel and two independent output channels:

[0121] Channel 1 is directly connected to light string 1, which is composed of multiple cascaded zero-code driven LED beads connected in series, serving as the terminal lighting load;

[0122] Channel 2 leads out a long line as the main bus, which is then connected to the second-level splitter.

[0123] The 1out2 splitter has a built-in independent communication parsing unit and a MOS controllable load switch, which can recognize the extended return-to-zero code configuration command issued by the controller. It also supports changing the total current of the circuit by adjusting the on / off state of the output branch lamp beads to complete Manchester-encoded uplink data modulation.

[0124] Second-stage splitter: 1out3 splitter 2

[0125] The second output bus of the 1out2 splitter 1 is extended to the 1-to-3 splitter 2 (1out3 splitter 2). This secondary splitter has one input channel and three independent output channels, with each of the three outputs connected to a terminal LED string load.

[0126] First output: LED string 3;

[0127] Second output: 4 LED strings;

[0128] Third output: 5 LED strings.

[0129] The 1out3 splitter 2 also integrates uplink modulation hardware, which can independently report its own device number, the number of the superior splitter, the number of LEDs in the three output branches, fault status and other topology information.

[0130] System terminal load description: The entire topology includes 5 independent light strings: light string 1, light string 2, light string 3, light string 4, and light string 5; among them, light string 2 is the main transmission cable connecting the two-level splitter, which can be used to hang lighting beads or directly connect to the extension line, there is no mandatory requirement; light strings 1, 2, 3, 4, and 5 are the terminal lighting loads, and each light string is composed of several RGB beads with zero code cascaded end to end.

[0131] The downlink control information transmission process under this topology is as follows: The controller outputs standard return-to-zero code lighting drive timing based on the 28V power supply bus to control the brightness and color display of all LEDs in LED strings 1, 2, 3, 4, and 5. The standard return-to-zero code timing strictly follows the WS2812 reference parameters to ensure the normal basic display function of all LEDs. When the controller needs to issue extended commands such as topology query, reporting symbol level, and device address configuration, a special return-to-zero code element with a low-level width exceeding the standard range is inserted at the end of the regular lighting display data frame: the standard low-level duration is 580ns~1μs, and the low-level duration of the configuration command code element is extended to 1.2μs~1.8μs. 1out2 splitter 1 and 1out3 splitter 2 measure the low-level duration of each return-to-zero code element in real time. Once an abnormal low-level range is detected, they immediately switch to configuration parsing mode, extract the intra-frame control parameters, and store the local reporting time slot, the three uplink symbol rates of 50ms / 100ms / 200ms, and their own level identifier. The splitter only parses extended configuration instructions, and the standard lighting timing is directly and transparently forwarded to the lower-level bus without affecting the normal lighting of the end LEDs, thus achieving backward compatibility.

[0132] The uplink topology feedback transmission process under this topology is as follows: The controller issues uplink and downlink commands with node addresses, and traverses the requests sequentially according to the hierarchy. First, it sends a request with an address to the first-level 1out2 splitter 1. After the first-level splitter completes its report, it sends a request with an address to the second-level 1out3 splitter 2. The two-level devices send uplink data in a time-sharing manner to avoid current modulation signal conflicts on the bus.

[0133] Level 1 1out2 splitter 1 reporting logic:

[0134] Upon receiving a request matching its level and number, it alternately switches the LED string loads of its two output branches on and off using the set code level, periodically changing the total current of the bus loop. It then modulates the topology data, which includes "itself is a first-level splitter, the upper-level device is the main controller, the total number of output branches is 2, the second lower-level 1out3 splitter is 2, and the total number of LED beads in LED string 1", into the power supply current waveform using Manchester encoding (0 corresponds to 01, 1 corresponds to 10) and sends it.

[0135] Secondary 1out3 splitter 2 reporting logic:

[0136] After receiving a request that matches its level and number, the splitter cycles through the loads of light strings 3, 4, and 5 to change the loop current. The reported data frame includes "itself is a secondary splitter, the upstream device is 1out2 splitter 1, the three output branches, the number of LEDs in light strings 3 / 4 / 5, and the short circuit / open circuit fault flags of each branch".

[0137] The uplink frames of both splitters are uniformly pre-loaded with a fixed 4-bit Manchester synchronization header of 10101010, which facilitates the controller to capture the frame start position. The synchronization header is also used to dynamically calibrate the decoding threshold and correct clock drift.

[0138] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Based on the above-described bidirectional data communication method, the present invention also provides an electronic device 200, which can be a mobile terminal, desktop computer, laptop, handheld computer, server, or other computing device. The electronic device 200 includes a processor 210, a memory 220, and a display 230. Figure 4 Only some components of the electronic device are shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0139] In some embodiments, memory 220 may be an internal storage unit of electronic device 200, such as a hard disk or memory of electronic device 200. In other embodiments, memory 220 may be an external storage device of electronic device 200, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on electronic device 200. Furthermore, memory 220 may include both internal and external storage units of electronic device 200. Memory 220 is used to store application software and various types of data installed on electronic device 200, such as program code installed on electronic device 200. Memory 220 may also be used to temporarily store data that has been output or will be output. In one embodiment, memory 220 stores a bidirectional data communication program 240, which can be executed by processor 210 to implement the bidirectional data communication methods of the embodiments of this application.

[0140] In some embodiments, processor 210 may be a central processing unit (CPU), microprocessor or other data processing chip, used to run program code stored in memory 220 or process data, such as performing bidirectional data communication methods.

[0141] In some embodiments, display 230 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. Display 230 is used to display information from electronic device 200 and to display a visual user interface. Components 210-230 of electronic device 200 communicate with each other via a system bus.

[0142] In one embodiment, the steps of the bidirectional data communication method described above are implemented when the processor 210 executes the bidirectional data communication program 240 in the memory 220.

[0143] This embodiment also provides a computer-readable storage medium storing a bidirectional data communication program thereon, which, when executed by a processor, can implement the steps in the above embodiments.

[0144] The serial numbers assigned to components in this document, such as "first" and "second," are used solely to distinguish the described objects and do not have any sequential or technical meaning. In the description of this application, it should be understood that the terms "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used solely for the convenience of describing this application and for simplification, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0145] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A bidirectional data communication method, applied to a lighting power supply system including a controller and at least one controlled device, characterized in that, The bidirectional data communication method includes the following steps: The controller sends downlink control information to the controlled device via the lighting power supply link; The controlled device sends uplink feedback information to the controller by changing the electrical characteristics of the access power supply link; The controller decodes the uplink feedback information by detecting changes in the electrical parameters of the power supply link; The downlink control information and uplink feedback information are transmitted on the same physical power supply link.

2. The bidirectional data communication method according to claim 1, characterized in that, The electrical characteristics are at least one of the following: current change, voltage change, impedance change, power change, conduction state change, and pulse load change.

3. The bidirectional data communication method according to claim 1, characterized in that, The controller decodes the uplink feedback information by detecting changes in the electrical parameters of the power supply link using at least one of the following detection methods: current sampling, voltage sampling, shunt detection, Hall effect detection, power detection, and high-frequency ripple detection.

4. The bidirectional data communication method according to claim 1, characterized in that, The controlled device achieves uplink feedback by changing the electrical characteristics of the access power supply link by adjusting the load through a controllable switching device; the controllable switching device is at least one of the following: MOSFET, IGBT, bipolar transistor, relay, solid-state relay, constant current drive adjustment module, and return-to-zero code chip.

5. The bidirectional data communication method according to claim 1, characterized in that, The uplink feedback information sent by the controlled device to the controller adopts any of the following encoding methods: Manchester encoding, PWM encoding, pulse width encoding, pulse position encoding, NRZ encoding, differential encoding, and custom timing encoding.

6. The bidirectional data communication method according to claim 1, characterized in that, The downlink control information sent by the controller to the controlled device through the lighting power supply link is carried by the abnormal time parameters in the standard drive timing. The abnormal time parameters include at least one of the following: high level duration, low level duration, cycle length, interval length, and reset time.

7. The bidirectional data communication method according to claim 6, characterized in that, The downlink control information is transmitted by extending the low-level width of the return-to-zero code.

8. A two-way data communication system, characterized in that, include: The downlink transmission module is used by the controller to send downlink control information to the controlled device through the lighting power supply link; An uplink feedback module is used by the controlled device to send uplink feedback information to the controller by changing the electrical characteristics of the access power supply link; The parameter detection module is used by the controller to decode the uplink feedback information by detecting changes in the electrical parameters of the power supply link; The transmission control module is used to enable the downlink control information and the uplink feedback information to be transmitted on the same physical power supply link.

9. An electronic device, characterized in that, Including memory and processor, among which, The memory is used to store programs; The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps of the bidirectional data communication method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Used to store computer-readable programs or instructions, which, when executed by a processor, are capable of implementing the steps of the bidirectional data communication method according to any one of claims 1 to 7.