Test circuit for a DALI power supply
By designing test circuits for power supply modules, relays, and MCUs, the power supply status of DALI power supplies and lighting equipment is automatically controlled, solving the problem of long production time in the DALI power supply process, realizing fast and comprehensive testing, and improving production efficiency.
Patent Information
- Application Number
- CN202211725248.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In the production process of existing DALI power products, traditional testing methods are time-consuming and cannot fully cover the performance indicators of the DALI standard protocol, thus affecting production efficiency.
Design a test circuit that includes a power supply module, relays, and a microcontroller unit. The MCU automatically controls the power supply status of the DALI power supply and lighting equipment, and the relays realize short-circuit or open-circuit control to automatically test the performance indicators of the DALI power supply.
It enables automated testing of DALI power supplies, shortens testing time, improves production efficiency, and fully covers the technical specifications of the DALI standard protocol, making it suitable for mass production.
Smart Images

Figure CN115988707B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention generally relate to the fields of electronics and lighting, and particularly to a test circuit for DALI power supplies. Background Technology
[0002] With the continuous improvement of the Digital Addressable Lighting Interface (DALI) protocol and the expansion of the DALI Alliance, and given the compatibility advantages of products based on the DALI protocol, more and more companies are investing in the development of power supply products that meet the DALI standard protocol. However, traditional power supply performance tests (e.g., output current, output power, open-circuit protection) are no longer sufficient to cover the technical specifications of power supply products that meet the DALI standard protocol during production. This may lead to issues where these power supply products fail to meet the DALI protocol requirements during mass production.
[0003] Currently, the mainstream testing method in the production process of DALI power supplies involves purchasing dimmers or main units that meet the DALI protocol and having production workers manually test whether the power supply can dim lighting equipment and whether the switching on and off of lighting equipment is normal. However, other performance indicators of DALI power supplies are basically impossible to test, and the testing time is long. For example, testing a DALI power supply typically takes about 1 minute, which greatly affects production efficiency. Summary of the Invention
[0004] This invention provides a test circuit for a DALI power supply used to drive a lighting device. The test circuit includes: a power supply module configured to generate a DC output voltage based on an AC input voltage to power a plurality of relays and a microcontroller unit (MCU); the plurality of relays configured to be in an on or off state based on a control signal from the MCU to control the AC input voltage to power or de-power the DALI power supply, or to short-circuit or open-circuit between the DALI power supply and the lighting device; and the MCU configured to test whether the DALI power supply or the lighting device can work normally when the AC input voltage powers the DALI power supply.
[0005] The test circuit for DALI power supply provided in this embodiment of the invention can automatically test whether the DALI power supply or lighting equipment can work properly using an MCU, without manual testing. Furthermore, it can automatically control the connection / disconnection of the DALI power supply or the short circuit or open circuit of the lighting equipment using a relay, without the need for manual control by an external switch, thus shortening the testing time and improving production efficiency. Attached Figure Description
[0006] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0007] Figure 1 A schematic diagram of a test circuit for a DALI power supply according to an embodiment of the present invention is shown.
[0008] Figure 2 A schematic diagram of the circuit structure of an AC-DC conversion circuit according to an embodiment of the present invention is shown;
[0009] Figure 3 A schematic diagram of the circuit structure of a DALI bus provided in an embodiment of the present invention is shown;
[0010] Figure 4 A schematic diagram of the circuit structure of a first DC-DC power supply circuit and a second DC-DC power supply circuit provided in an embodiment of the present invention is shown.
[0011] Figures 5(a) to 5(c) A schematic diagram of the circuit structure of a plurality of relays provided in one embodiment of the present invention is shown;
[0012] Figure 6 A schematic diagram of the circuit structure of a buzzer provided in one embodiment of the present invention is shown;
[0013] Figure 7 A schematic diagram of the circuit structure of a display screen according to an embodiment of the present invention is shown; and
[0014] Figure 8 A schematic diagram of the circuit structure of an isolated serial port circuit provided in an embodiment of the present invention is shown. Detailed Implementation
[0015] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.
[0016] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0017] To address the problems of existing technologies, embodiments of the present invention provide a test circuit for DALI power supplies. The test circuit for DALI power supplies provided by these embodiments will be described below.
[0018] Figure 1 A schematic diagram of a test circuit for a DALI power supply according to an embodiment of the present invention is shown. Figure 1 As shown, the DALI power supply test system may include a test circuit 102, a DALI power supply 104, and lighting equipment (e.g., including multi-LED lights) 106, etc.
[0019] As an example, test circuit 102 can be used to test whether DALI power supply 104 or lighting device 106 can work properly, DALI power supply 104 can be used to drive lighting device 106.
[0020] As an example, the test circuit 102 may include a power supply module, multiple relays 112, and a microcontroller unit (MCU) 114, etc. The power supply module may be configured to generate a DC output voltage based on an AC input voltage (e.g., 220VAC) to power the multiple relays 112 and the MCU 114. The multiple relays 112 may be configured to be in an on or off state based on control signals from the MCU 114 to control the AC input voltage to power on or off the DALI power supply 104, or to short-circuit or open-circuit between the DALI power supply 104 and the lighting device 106. The MCU 114 may be configured to test whether the DALI power supply 104 or the lighting device 106 can work properly when the AC input voltage powers the DALI power supply 104.
[0021] As an example, MCU 114 can be further configured to test one or more of the following: whether the lighting device 106 can be properly closed and closed; whether the lighting device 106 is in an open or short circuit state; the Global Trade Item Number (GTIN) of the DALI power supply 104 to obtain information about the power supply manufacturer and other products; whether the DALI power supply 104 meets the DALI standard protocol requirements; and whether the DALI power supply 104 can be used to dim the lighting device 106.
[0022] As an example, see reference Figure 1 The power supply module may include an AC-DC conversion circuit 108, a first DC-DC power supply circuit 110, and a second DC-DC power supply circuit 116. The AC-DC conversion circuit 108 may be configured to convert an AC input voltage into a first DC output voltage. The first DC-DC power supply circuit 110 may be configured to power a plurality of relays 112 based on the first DC output voltage. The second DC-DC power supply circuit 116 may be configured to power an MCU 114 based on the first DC output voltage.
[0023] In some embodiments, the AC-DC conversion circuit 108 can provide the DC operating voltage required for the entire system. It can generate a DC output voltage based on the AC input voltage (e.g., 220VAC). Furthermore, the AC-DC conversion circuit 108 can be controlled by the MCU 114 to output a suitable DC output voltage, such as 10.5V / 16.5V / 21V, which will be discussed in conjunction with the following... Figure 2 A detailed introduction will be provided.
[0024] In some embodiments, the test circuit 102 may be provided with two DC-DC power supply circuits, wherein the first DC-DC power supply circuit 110 may output, for example, a 5V voltage based on the DC output voltage from the AC-DC conversion circuit 108 to power the switching control (e.g., turning on or off) of multiple relays 112, and the second DC-DC power supply circuit 116 may output, for example, a 5V voltage based on the DC output voltage from the AC-DC conversion circuit 108 to power the MCU 114.
[0025] It should be noted that since the operating current of multiple relays 112 is close to 1A, the maximum output current of the selected first DC-DC power supply circuit 112 is about 1A, and the load may change suddenly when multiple relays are working, which may cause ripple; while the second DC-DC power supply circuit 116 can be used to power modules such as MCU 114, and its ripple is smaller and more stable.
[0026] As an example, MCU 114 can be configured to send DALI instructions to DALI power supply 104 via DALI bus 118, causing DALI power supply 104 to compare the duration of the high and low levels in the DALI instructions actually received by DALI power supply 104 with the duration of the internal preset high and low levels, respectively, and adjust the upper and lower limits of the internal preset high and low level duration ranges based on the comparison results.
[0027] In short, the receiving time of the DALI power supply 104 needs to be calibrated. The purpose and method of calibration are described in detail below:
[0028] First, the purpose of calibrating the receiving time of the DALI power supply 104 may include: the internal module of the DALI power supply 104 sets a range for the duration of the received valid high and low levels, such as a high level duration range of 300 to 520 μs; during DALI protocol testing, the duration of the high and low levels in the DALI commands sent by the protocol test machine is at least, for example, 334 μs, and at most, 500 μs; due to the transmission delay of components such as optocouplers on the module, it may be possible that when the duration of the high and low levels sent from the outside is 334 μs, the high level duration received by the MCU on the module is 290 μs, which exceeds the default high level duration range of 300 to 520 μs, causing the command to be judged as an invalid command, ultimately resulting in the DALI protocol test failing.
[0029] Secondly, the method for calibrating the receiving time of the DALI power supply 104 may include: through the MCU on the test circuit 102. 114. A series of DALI commands, including standard high and low levels with a duration of 417us, are sent to the DALI power supply 104. The content of this DALI command instructs the module inside the DALI power supply 104 to perform reception time calibration. After the DALI power supply 104 receives this DALI command, the actual received high level duration may be, for example, 400us, and the low level duration may be, for example, 434us. The original default reception high level duration set inside the DALI power supply 104 is 390us, and the low level duration is 444us. The actual values are compared with the above original default values, that is, the high level duration is 10us more and the low level duration is 10us less. Then the MCU inside the DALI power supply 104 will adjust the upper and lower limits of the high and low level durations. For example, if the previous high level duration range was 300~520us, the adjusted high level duration range will be 310~530us. Similarly, the low level duration will also be calibrated. It will not be described in detail here for simplicity.
[0030] As an example, MCU 114 can be configured to receive DALI instructions from DALI power supply 104 via DALI bus 118, compare the duration of the high and low levels in the DALI instructions actually received by MCU 114 with internal preset center values, and send the comparison result to DALI power supply 104, so that DALI power supply 104 adjusts the duration of the high and low levels in the DALI instructions provided to MCU 114.
[0031] In short, the transmission time of the DALI power supply 104 needs to be calibrated. The purpose and method of calibration are described in detail below:
[0032] First, the purpose of calibrating the transmission time of the DALI power supply 104 can include: DALI commands sent from the internal module of the DALI power supply 104 to the MCU 114 via the DALI bus 118 include high and low levels of fixed duration, such as a high level duration of, for example, 430us and a low level duration of, for example, 404us. Due to transmission delays caused by optocouplers and other components on the module, the actual high level duration on the DALI bus 118 may become 450us and the low level duration may become 384us. If used at high temperatures, the actual high and low level durations on the DALI bus 118 may also deviate, such as a high level duration of 470us and a corresponding low level duration of 364us, which exceeds the standard effective time range of 366-466us required by the DALI protocol receiver. Calibration can be used to adjust the transmission and reception times of the internal module of the DALI power supply 104 so that the high and low level durations received on the DALI bus 118 are close to the center value of 417us.
[0033] Secondly, the method for calibrating the transmission time of the DALI power supply 104 can include: the internal module of the DALI power supply 104 sends a series of DALI commands to the MCU 114 via the DALI bus 118, where the high and low level durations in the sent DALI commands are default values (e.g., the high level duration can be, for example, 430us, and the low level duration can be, for example, 404us); the actual high level duration received by the MCU 114 in the test circuit 102 is 450us, and the low level duration is 384us; comparing the actual high level duration of 450us and the low level duration of 384us received by the MCU 114 with the center value of 417us, it can be seen that the high level duration is 33us longer and the low level duration is 33us shorter; then the MCU 114 sends a series of DALI commands to DALI power supply 104 via DALI bus 118, instructing the internal module of DALI power supply 104 to reduce the high-level duration of its DALI commands by 33µs and increase the low-level duration by 33µs. Upon receiving the DALI commands, DALI power supply 104 changes the high-level duration of its sent DALI commands to 430µs - 33µs = 397µs and the low-level duration to 404µs + 33µs = 437µs. Then, DALI power supply 104 resends a series of DALI commands to MCU 114 based on the newly modified durations. At this point, the high and low level durations in the DALI commands received by MCU 114 are both at the center value of 417µs. In this way, even if the high-level duration increases by 20µs to 437µs due to use in a high-temperature environment, the range of 366-466µs can still be met.
[0034] The aforementioned DALI bus 118 can be configured to output a constant voltage, such as 10V, 16V, or 20.5V, and when the DALI bus is short-circuited, the bus current is set to 250mA, which will be discussed in conjunction with the following... Figure 3 Provide a detailed description.
[0035] As an example, the test circuit 102 may also include a buzzer 120, which may be configured to emit a first preset number of sounds when the MCU 114 detects that the DALI power supply 104 and the lighting device 106 have passed the test, and to emit a second preset number of sounds when the MCU 114 detects that the DALI power supply 104 or the lighting device 106 has failed the test; wherein, the second DC-DC power supply circuit 116 may also be configured to power the buzzer 120 based on a first DC output voltage from the AC-DC converter 108.
[0036] Specifically, the buzzer 120 can be used to indicate whether the DALI power supply 104 and the lighting device 106 have passed the test by beeping. For example, it can beep once when both the DALI power supply 104 and the lighting device 106 have passed the test, and beep several times in succession when either the DALI power supply 104 or the lighting device 106 has failed the test, so that the test results can be determined based on the beeping sound.
[0037] As an example, the test circuit 102 may also include a display screen 122, which may be configured to receive a first control signal and send the first control signal to an MCU 114, so that the MCU 114 tests whether the DALI power supply 104 and / or the lighting device 106 can work properly, and receives and displays the test results from the MCU 114; wherein, the second DC-DC power supply circuit 116 may also be configured to power the display screen 122 based on the first DC output voltage from the AC-DC converter 108.
[0038] Specifically, the display screen 122 can be an LCD touch screen, which can trigger the MCU 114 to perform automatic tests by touching the screen, and the display screen 122 can receive and display the test data and test results from the MCU 114.
[0039] As an example, the test circuit 102 may also include an isolated serial port circuit 124 and a host computer 126. The first end of the isolated serial port circuit 124 can be connected to the MCU 114, and the second end can be connected to the host computer 126 via a serial data cable. The host computer 126 can be configured to receive a second control signal and send the second control signal to the MCU 114, so that the MCU 114 can test whether the DALI power supply 104 and / or lighting device 106 can work properly, and receive the test results from the MCU 114 and display the test results.
[0040] Specifically, the isolated serial port circuit 124 can be connected to a computing device. The host computer 126 on the computing device can be used to operate the MCU 114 to perform tests. The host computer 126 can select test content, receive test data and test results from the MCU 114 and display them. The host computer 126 can also be used to expand the operation functions.
[0041] In some embodiments, the computing device may be a fixed computing device (e.g., a set-top box or desktop computer) or a mobile computing device (e.g., a tablet computing device, a laptop computer, a game console, or a smartphone). Their configurations are known in other ways and will therefore not be described further.
[0042] In various implementations, the computing device can be one or more components of: a data center, a laptop, netbook, notebook, ultrabook, smartphone, tablet, personal digital assistant (PDA), ultra-mobile PC, mobile phone, digital camera, or Internet of Things (IoT) user equipment. In other implementations, the computing device can be any other electronic device that processes data.
[0043] To better understand the test circuit for DALI power supply provided in the embodiments of the present invention, the specific implementation of each module is described in detail below. It should be understood that the following examples are provided only as examples and are not intended to be limiting.
[0044] refer to Figure 2 , Figure 2 A schematic diagram of the circuit structure of an AC-DC conversion circuit 108 provided in an embodiment of the present invention is shown.
[0045] As an example, the AC-DC conversion circuit 108 may include a rectifier circuit 1082, a filter circuit 1084, and a secondary-side feedback flyback circuit 1086. The first terminal of the rectifier circuit 1082 can receive an AC input voltage (220VAC), the second terminal can be connected to the first terminal of the filter circuit 1084, the second terminal of the filter circuit 1084 can be connected to the first terminal of the secondary-side feedback flyback circuit 1086, the second terminal of the secondary-side feedback flyback circuit 1086 can be connected to the output terminal of the MCU 114, and the third terminal can be used to output a first DC output voltage (e.g., 10.5V, 16.5V, or 21V).
[0046] Specifically, such as Figure 2 As shown, AC power can be connected through the live and neutral wire terminals. The voltage is then isolated and stepped down by the rectifier circuit 1082, the filter circuit 1084, and the secondary feedback flyback circuit 1086, and outputs a default voltage of 10.5V. Alternatively, the output voltage can be changed to 16.5V or 21V by controlling it through the MCU 114.
[0047] refer to Figure 3 , Figure 3 A schematic diagram of the circuit structure of a DALI bus 118 provided in an embodiment of the present invention is shown.
[0048] As an example, the DALI bus 118 may include a transistor voltage regulator and constant current circuit, a first indicator light may be connected to the transistor voltage regulator and constant current circuit, and the first indicator light may be used to indicate whether the DALI command on the DALI bus 118 is high or low.
[0049] Specifically, by building a transistor circuit, the output bus voltage can be 10V, 16V, or 20.5V, and the current when the DALI bus voltage is pulled low can be 250mA; and the first indicator light can be used to indicate whether the bus voltage is high or low.
[0050] refer to Figure 4 , Figure 4 The diagram shows a schematic diagram of the circuit structure of a first DC-DC power supply circuit and a second DC-DC power supply circuit provided in an embodiment of the present invention.
[0051] As an example, the first DC-DC power supply circuit 110 and the second DC-DC power supply circuit 116 can receive a first DC output voltage (e.g., 10.5V, 16.5V, or 21V) from the AC-DC conversion circuit 108, and can generate a second DC output voltage based on the first DC output voltage. The first DC-DC power supply circuit 110 can be dedicated to powering the switching of multiple relays 116, and the second DC-DC power supply circuit 116 can be used to power the MCU 114, buzzer 120, display 122, and isolated serial port circuit 124, etc.
[0052] refer to Figures 5(a) to 5(c) , Figures 5(a) to 5(c) A schematic diagram of the circuit structure of multiple relays provided in one embodiment of the present invention is shown.
[0053] In some embodiments, the multiple relays may include four relays, such as the first relay in FIG5(a), the second relay in FIG5(b), and the third and fourth relays in FIG5(c). It is understood that this is provided by way of example only and should not be construed as limiting. In other embodiments, the multiple relays may also be other suitable numbers of relays.
[0054] As shown in Figure 5(a), Figure 5(a) shows a schematic diagram of the circuit structure of the first relay 112-1 provided in an embodiment of the present invention.
[0055] As an example, multiple relays may include a first relay 112-1, which can be configured to be in an ON state based on a control signal from MCU 114 to control the AC input voltage to power DALI power supply 104. A first terminal can be connected to a first terminal of the AC input voltage, a second terminal can be connected to the output of a first DC-DC power supply circuit 110, a third terminal can be connected to the output of MCU 114, a fourth terminal can be connected to the input of a second indicator light, a fifth terminal can be connected to the first input of DALI power supply 104, and the second input of DALI power supply 104 can be connected to the second terminal of the AC input voltage. The second indicator light can be used to indicate whether the first relay 112-1 is in an ON or OFF state.
[0056] Specifically, the first relay 112-1 can be used for power on / off control of the DALI power supply 104. The first terminal of the first relay 112-1 can be connected to the 220VAC live wire, the second terminal can receive the second DC output voltage (e.g., 5V) from the first DC-DC power supply circuit 110, the third terminal can be connected to the output terminal of the MCU 114, the fourth terminal can be connected to the input terminal of the second indicator light, the fifth terminal can be connected to the first input terminal of the DALI power supply 104, and the second input terminal of the DALI power supply 104 can be connected to the 220VAC neutral wire.
[0057] As shown in Figure 5(b), Figure 5(b) shows a schematic diagram of the circuit structure of the second relay 112-2 provided in the embodiment of the present invention. When the second relay 112-2 is disconnected, the connection between the positive terminal of the DALI power supply and the positive terminal of the LED is disconnected, and the LED can be in an open circuit state.
[0058] As an example, the multiple relays may also include a second relay 112-2, wherein the second relay 112-2 can be configured to be in an off state based on a control signal from the MCU 114 to control the open circuit between the DALI power supply 104 and the lighting device 106. A first terminal may be connected to the output terminal of the DALI power supply 104, a second terminal may be connected to the output terminal of the first DC-DC power supply circuit 110, a third terminal may be connected to the output terminal of the MCU 114, a fourth terminal may be connected to the input terminal of a third indicator light, and a fifth terminal may be connected to the first terminal of the lighting device 106, wherein the third indicator light is used to indicate whether the second relay 112-2 is in an on or off state.
[0059] Specifically, the second relay 112-2 can be used to output open-circuit control for the lighting device 106. The first terminal of the second relay 112-2 can be connected to the positive output terminal of the DALI power supply 104, the second terminal can receive the second DC output voltage (e.g., 5V) from the first DC-DC power supply circuit 110, the third terminal can be connected to the output terminal of the MCU 114, the fourth terminal can be connected to the input terminal of the third indicator light, and the fifth terminal can be connected to the positive terminal of the lighting device 106.
[0060] As shown in Figure 5(c), Figure 5(c) shows a schematic diagram of the circuit structure of the third relay 112-3 and the fourth relay 112-4 provided in the embodiment of the present invention. When the third relay 112-3 or the fourth relay 112-4 is turned on, the connection between the positive terminal of the DALI power supply and the negative terminal of the LED is connected, and the LED can be in a short-circuit state.
[0061] As an example, the multiple relays may also include a third relay 112-3 and a fourth relay 112-4, wherein the third relay 112-3 and the fourth relay 112-4 can be configured to be in an ON state based on a control signal from the MCU 114 to control a short circuit between the DALI power supply 104 and the lighting device 106. A first terminal can be connected to the third terminal of the DALI power supply 104, a second terminal can be connected to the output terminal of the first DC-DC power supply circuit 110, a third terminal can be connected to the output terminal of the MCU 114, a fourth terminal can be connected to the input terminal of a fourth indicator light, and a fifth terminal can be connected to the second terminal of the lighting device 106, wherein the fourth indicator light can be used to indicate whether the third relay 112-3 and the fourth relay 112-4 are in an ON state or an OFF state.
[0062] Specifically, the third relay 112-3 and the fourth relay 112-4 can be used to output single-color or dual-color short-circuit control for the lighting device 106. The first terminal of the third relay 112-3 and the fourth relay 112-4 can be connected to the positive output terminal of the DALI power supply 104, the second terminal can receive the second DC output voltage (e.g., 5V) from the first DC-DC power supply circuit 110, the third terminal can be connected to the output terminal of the MCU 114, the fourth terminal can be connected to the input terminal of the fourth indicator light, and the fifth terminal can be connected to the negative terminal of the lighting device 106.
[0063] In such Figures 5(a) to 5(c) In the illustrated embodiment, the lighting device may include two LED lights, namely LED light 1 and LED light 2.
[0064] refer to Figure 6 , Figure 6 A schematic diagram of the circuit structure of a buzzer provided in one embodiment of the present invention is shown.
[0065] like Figure 6 As shown, the first end of the buzzer 120 can be connected to the output of the second DC-DC power supply circuit 116 to receive the second DC output voltage (e.g., 5V) from the second DC-DC power supply circuit 116, and the second end can be connected to the output of the MCU 114 to receive the test results from the MCU 114 and inform the user whether the test has passed by sounding, for example, sounding once when the test passes and sounding multiple times continuously when the test fails.
[0066] refer to Figure 7 , Figure 7 A schematic diagram of the circuit structure of a display screen provided in one embodiment of the present invention is shown.
[0067] like Figure 7 As shown, the first end of the display screen 122 can be connected to the output end of the second DC-DC power supply circuit 116 to receive the second DC output voltage (e.g., 5V) from the second DC-DC power supply circuit 116, the second end can be connected to the input end of the MCU 114, and the third end can be connected to the output end of the MCU 114.
[0068] The test control can be performed through the LCD screen 122, and the screen can receive and display test data and test results from the MCU 114.
[0069] refer to Figure 8 , Figure 8 A schematic diagram of the circuit structure of an isolated serial port circuit 124 provided in an embodiment of the present invention is shown.
[0070] like Figure 8 As shown, the first end of the isolated serial port circuit 124 can be connected to the MCU 114, and the second end can be connected to the host computer via a serial data cable.
[0071] Specifically, by configuring the isolated serial port circuit 124, the computing platform can be connected via a serial data cable to perform test operations on a dedicated host computer, and the test data and test results from the MCU 114 can be received and displayed. Test content can be selected on the dedicated host computer, which can be operated to expand functions. In this way, test content can be flexibly added according to customer needs.
[0072] In summary, the embodiments of the present invention provide multiple indicator lights. For example, indicator lights connected to multiple relays can be used to indicate whether the multiple relays are in an on or off state (for example, a lit light indicates that the relay is in an on state, and an off light indicates that the relay is in an off state). Indicator lights connected to the DALI bus can be used to indicate whether the DALI bus is working and whether the DALI instruction on the DALI bus is high or low. Indicator lights connected to the MCU can be used to indicate whether the MCU is performing a test. Indicator lights connected to the isolated serial port circuit can be used to indicate whether the serial port is connected.
[0073] As can be seen, the embodiments of the present invention provide a stable and reliable mass production test circuit for DALI power supplies. This circuit has the advantages of being fast, accurate, and comprehensive. It solves the technical problems existing in the production testing process of DALI power supply products, such as long time consumption, low efficiency, and simple test content. It can quickly and automatically test, fully cover technical indicators, and greatly improve production efficiency.
[0074] In terms of technical effectiveness, the test circuit for DALI power supplies provided in this invention has the following advantages: high degree of automation, fast testing speed, and suitability for mass production; the circuit has a built-in AC-DC conversion circuit, eliminating the need for external power supply equipment; it includes multiple relays that can automatically control the power supply's on / off state and control the open / short circuit of lighting equipment, eliminating the need for manual control via external switches; the circuit includes multiple indicator lights of different colors, an automatic buzzer, etc., allowing users to easily determine whether the test has passed; the circuit includes a touch screen display, enabling easy operation and data viewing on the system; the circuit includes an isolated serial port circuit and is designed with a matching host computer, allowing connection to a computer for easy selection of test content and viewing of test data and results; and by using a high-performance MCU as the control core, it can comprehensively test the main technical indicators of the DALI power supply, and can add other functional tests according to customer needs, thereby more comprehensively covering the test content.
[0075] In summary, the test circuit for DALI power supplies provided in this invention can be mainly used to test dimming, switching, LED output open / short circuit detection, and GTIN code reading as required by the DALI standard protocol. Simultaneously, by detecting the transmission / reception time of DALI commands, it automatically calibrates for differences in high / low level durations caused by component deviations, preventing DALI power supplies from failing to meet DALI standard protocol requirements due to component differences. This invention can also flexibly add test content according to customer needs. The system of this invention can use its built-in display screen for one-click testing, or it can be connected to a computer via a serial port for testing operations and viewing test data and results through a matching host computer. The test circuit is equipped with multiple indicator lights and a buzzer, making it easy to determine whether the test has passed. Based on the automated comprehensive testing provided by this invention, all tests can be completed quickly, greatly saving testing time and improving production efficiency.
[0076] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.
[0077] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0078] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0079] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A test circuit for a Digital Addressable Lighting Interface (DALI) power supply, characterized in that, The test circuit is externally connected to an AC input voltage, the DALI power supply, and a lighting device. The DALI power supply is used to drive the lighting device. The test circuit includes: The power supply module is configured to generate a DC output voltage based on the AC input voltage to power multiple relays and microcontroller units (MCUs). The plurality of relays; and The MCU is configured to test whether the DALI power supply or the lighting device can function properly when the AC input voltage powers the DALI power supply. The plurality of relays include: A first relay, whose terminals are connected in series in the path of the AC input voltage supplying the DALI power supply, is configured to be in an on or off state based on a control signal from the MCU, so as to control the AC input voltage supplying or de-energizing the DALI power supply. A second relay, whose terminals are connected in series between the positive terminal of the DALI power supply and the positive terminal of the lighting device, is configured to be in an on or off state based on a control signal from the MCU, to control whether the lighting device is in an open circuit state; and The third relay, whose terminals are connected in series between the positive terminal of the DALI circuit and the negative terminal of the lighting device, is configured to be in an on or off state based on the control signal from the MCU, so as to control whether the lighting device is in a short circuit state.
2. The test circuit according to claim 1, characterized in that, The power supply module includes: An AC-DC conversion circuit is configured to convert the AC input voltage into a first DC output voltage. A first DC-DC power supply circuit is configured to power the plurality of relays based on the first DC output voltage; and The second DC-DC power supply circuit is configured to power the MCU based on the first DC output voltage.
3. The test circuit according to claim 1, characterized in that, The MCU is configured to send DALI commands to the DALI power supply via the DALI bus, so that the DALI power supply compares the duration of the high level and low level in the DALI command actually received by the DALI power supply with the duration of the internal preset high level and low level, respectively, and adjusts the upper and lower limits of the internal preset high level and low level duration range based on the comparison results.
4. The test circuit according to claim 1, characterized in that, The MCU is configured to receive DALI instructions from the DALI power supply via the DALI bus, compare the duration of the high and low levels in the DALI instructions actually received by the MCU with an internal preset center value, and send the comparison result to the DALI power supply, so that the DALI power supply adjusts the duration of the high and low levels in the DALI instructions provided to the MCU.
5. The test circuit according to claim 2, characterized in that, Also includes: A buzzer is configured to sound a first preset number of times when the MCU detects that the DALI power supply and the lighting device have passed the test, and to sound a second preset number of times when the MCU detects that the DALI power supply or the lighting device has failed the test; wherein, The second DC-DC power supply circuit is also configured to power the buzzer based on the first DC output voltage.
6. The test circuit according to claim 5, characterized in that, Also includes: The display screen is configured to receive a first control signal and send the first control signal to the MCU, causing the MCU to test whether the DALI power supply or the lighting device is functioning properly, and to receive and display the test results from the MCU; wherein, The second DC-DC power supply circuit is also configured to power the display screen based on the first DC output voltage.
7. The test circuit according to claim 1, characterized in that, Also includes: An isolated serial port circuit is connected to the MCU at one end and to the host computer at the other end via a serial data cable. as well as The host computer is configured to receive a second control signal and send the second control signal to the MCU, so that the MCU can test whether the DALI power supply or the lighting device can work properly, and receive the test results from the MCU and display the test results.
8. The test circuit according to claim 2, characterized in that, The AC-DC conversion circuit includes: The rectifier circuit receives the AC input voltage at its first terminal; The filter circuit, with its first terminal connected to the second terminal of the rectifier circuit; and The secondary-side feedback flyback circuit has its first terminal connected to the second terminal of the filter circuit, the second terminal connected to the output terminal of the MCU, and its third terminal outputting the first DC output voltage.
9. The test circuit according to claim 3 or 4, characterized in that, The DALI bus includes a transistor voltage regulator and a constant current circuit, wherein, The first indicator light is connected to the transistor voltage regulator and constant current circuit and is used to indicate whether the DALI command is high or low.
10. The test circuit according to claim 2, characterized in that, The first relay is configured to be in an ON state based on a control signal from the MCU to control the AC input voltage supplying power to the DALI power supply. A first terminal is connected to a first terminal of the AC input voltage, a second terminal is connected to the output terminal of the first DC-DC power supply circuit, a third terminal is connected to the output terminal of the MCU, a fourth terminal is connected to the input terminal of the second indicator light, and a fifth terminal is connected to the first input terminal of the DALI power supply. The second input terminal of the DALI power supply is connected to the second terminal of the AC input voltage, and wherein… The second indicator light is used to indicate whether the first relay is in the on or off state.
11. The test circuit according to claim 3, characterized in that, The second relay is configured to be in an open state based on a control signal from the MCU to control the open circuit between the DALI power supply and the lighting device. Its first terminal is connected to the output of the DALI power supply, its second terminal is connected to the output of the first DC-DC power supply circuit, its third terminal is connected to the output of the MCU, its fourth terminal is connected to the input of the third indicator light, and its fifth terminal is connected to the first terminal of the lighting device. The third indicator light is used to indicate whether the second relay is in the on or off state.
12. The test circuit according to claim 3, characterized in that, The third relay is configured to be in an ON state based on a control signal from the MCU to control a short circuit between the DALI power supply and the lighting device. Its first terminal is connected to the output of the DALI power supply, its second terminal is connected to the output of the first DC-DC power supply circuit, its third terminal is connected to the output of the MCU, its fourth terminal is connected to the input of the fourth indicator light, and its fifth terminal is connected to the second terminal of the lighting device. The fourth indicator light is used to indicate whether the third relay is in the on or off state.
Citation Information
Patent Citations
Time sequence correction method and system of DALI control device
CN113778057A
Short-circuit detection circuit of constant-voltage dimming power supply based on DALI protocol and lighting equipment
CN216414634U
A bus interface and a method for prevention of lockout situation
EP3651553A1
Test circuit for DALI power supply
TW202426957A
