DMX and DALI two-in-one communication interface circuit and power supply
By designing a two-in-one communication interface circuit for DMX and DALI, automatic switching of communication interfaces is realized, solving the problem that DMX and DALI protocols cannot be automatically switched in the prior art, and improving the versatility and management efficiency of the product.
Patent Information
- Application Number
- CN202510019695.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-05-23
AI Technical Summary
When existing lighting power products use the DMX and DALI communication protocols, they cannot achieve automatic switching, and require manual switching, resulting in problems such as stock, manual line adjustment and single-function models.
A two-in-one communication interface circuit of DMX and DALI is designed, including a power supply/interface unit, an interface switching unit, an isolated communication unit, an NFC unit and a main control unit, through which automatic switching of the communication interface is realized.
Automatic switching of communication interfaces is realized without manual intervention, solving the problems of inventory preparation, manual line adjustment and single-function models, and improving the versatility and management efficiency of the product.
Smart Images

Figure CN120035020A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of LED lighting, and more specifically to a DMX and DALI two-in-one communication interface circuit and a power supply. Background Art
[0002] Digitally Addressable Lighting Interface (DALI) has become a global standard for responding to the energy crisis, mainly for commercial and industrial use. DALI-type ballasts operate at lower power than standard magnetic ballasts. DALI contains a two-wire serial bus and requires a DALI-specific power supply. The master device sends a 16-bit Manchester-encoded data packet, and the ballast responds with an 8-bit Manchester-encoded data packet. In addition, multiple master devices are supported, and two master devices can share the same ballast. For ballasts to be connected to the same interface line, a total of 64 channels or single addresses are available. Each DALI bus can have up to 16 groups, and there are also 16 scenes available. DALI has improved interoperability and functionality, scalability, and has become an industry standard.
[0003] At present, lighting power products are mainly controlled by DMX and DALI communication protocols. There are two main types of products on the market. The first type: only DMX protocol or DALI protocol can be used. DMX and DALI cannot be switched at will, and the product control protocol has been determined at the factory. The second type: DMX and DALI two-in-one with the same hardware and software. DXM and DALI protocols can be switched at will. The internal communication protocol of the MCU is selected through NFC configuration, and the hardware interface is manually switched through the communication interface. However, whether it is the first or second type of products, end customers will have a very bad experience when preparing inventory or changing protocols, and the workload is also relatively cumbersome. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a DMX and DALI two-in-one communication interface circuit and a power supply in view of the problems existing in the prior art.
[0005] The technical solution adopted by the present invention to solve the technical problem is: constructing a DMX and DALI two-in-one communication interface circuit, including: a power supply / interface unit, an interface switching unit, an isolation communication unit, an NFC unit and a main control unit;
[0006] The power supply / interface unit provides direct current and selects a corresponding interface according to the switching of the interface switching unit;
[0007] The interface switching unit is connected to the isolation communication unit and the power supply / interface unit respectively, and is used to switch and select the interface of the power supply / interface unit according to the control signal transmitted by the isolation communication unit;
[0008] The isolation communication unit is used to electrically isolate the DMX signal and the DALI signal and communicate with the main control unit;
[0009] The NFC unit is connected to the main control unit, and is used to obtain configuration parameters of the power supply and send the configuration parameters of the power supply to the main control unit;
[0010] The main control unit is used to determine the communication protocol according to the configuration parameters of the power supply, and output the control signal to the isolation communication unit based on the communication protocol.
[0011] The DMX and DALI two-in-one communication interface circuit of the present invention further includes: a bus constant current source;
[0012] The bus constant current source is connected to the power supply / interface unit and is used to supply power to the DALI bus.
[0013] The DMX and DALI two-in-one communication interface circuit of the present invention further includes: a power conversion unit;
[0014] The power conversion unit is connected to the main control unit and is used for controlling the main control unit to output a corresponding current and sending a feedback signal to the main control unit.
[0015] In the DMX and DALI two-in-one communication interface circuit of the present invention, the power supply / interface unit includes: a power supply module, a 485 interface module and a DALI interface module;
[0016] The power supply module is used to provide the direct current;
[0017] The 485 interface module is connected to the power supply module and the interface switching unit, and is used to select the 485 interface according to the switching of the interface switching unit;
[0018] The DALI interface module is connected to the power supply module and the interface switching unit, and is used to enable the DALI interface according to the switching of the interface switching unit.
[0019] In the DMX and DALI two-in-one communication interface circuit of the present invention, the 485 interface module includes: a clamping and current limiting circuit and a 485 interface circuit;
[0020] The clamping and current limiting circuit is connected to the interface switching unit and is used to perform clamping and current limiting functions;
[0021] The 485 interface circuit is connected to the clamp and current limiting circuit and is used to select the 485 interface according to the switching of the interface switching unit.
[0022] In the DMX and DALI two-in-one communication interface circuit of the present invention, the DALI interface module includes: a current module, a signal receiving circuit and a signal sending circuit;
[0023] The current module is connected to the interface switching unit and the bus constant current source respectively, and is used to generate a current source according to the power supply signal provided by the bus constant current source;
[0024] The signal receiving circuit is connected to the current module, and is used to select the DALI interface according to the switching of the interface switching unit, and send a selection signal to the main control unit;
[0025] The signal sending circuit is connected to the signal receiving circuit and is used to send a response signal to the main control unit.
[0026] In the DMX and DALI two-in-one communication interface circuit of the present invention, the interface switching unit includes: a 485 switching module and a DALI switching module;
[0027] The 485 switching module is connected to the power supply / interface unit and the isolated communication unit, and is used to perform 485 switching according to the control signal transmitted by the isolated communication unit;
[0028] The DALI switching module is connected to the power supply / interface unit and the isolated communication unit, and is used to perform DALI switching according to a control signal transmitted by the isolated communication unit.
[0029] In the DMX and DALI two-in-one communication interface circuit of the present invention, the 485 switching module includes: a current limiting circuit and a first switch circuit;
[0030] The current limiting circuit is connected to the isolation communication unit and is used for current limiting when switching to the 485 interface;
[0031] The first switch circuit is used to be turned on when switching to the 485 interface to enable the 485 interface.
[0032] In the DMX and DALI two-in-one communication interface circuit of the present invention, the DALI switching module includes: a clamping decoupling circuit, a second switching circuit and a second gating circuit;
[0033] The clamping decoupling circuit is connected to the second switch circuit, and is used to perform clamping decoupling on the second switch circuit when switching to the DALI interface;
[0034] The second switch circuit is used to be turned on when switching to the DALI interface to enable the DALI interface.
[0035] The present invention further provides a power supply, comprising: the above-mentioned DMX and DALI two-in-one communication interface circuit.
[0036] The DMX and DALI two-in-one communication interface circuit and power supply of the present invention have the following beneficial effects: including: a power supply / interface unit, an interface switching unit, an isolation communication unit, an NFC unit and a main control unit; the power supply / interface unit provides direct current and selects the corresponding interface; the interface switching unit switches and selects the interface of the power supply / interface unit according to the control signal transmitted by the isolation communication unit; the isolation communication unit electrically isolates the DMX signal and the DALI signal and communicates with the main control unit; the NFC unit obtains the configuration parameters of the power supply and sends the configuration parameters of the power supply to the main control unit; the main control unit determines the communication protocol according to the configuration parameters of the power supply, and outputs the control signal to the isolation communication unit based on the communication protocol. The present invention can realize the automatic switching of the communication interface without manual intervention, can realize multiple uses of one machine, and effectively solve the problems of spare inventory, manual line adjustment, single function model, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0038] Figure 1 It is a principle block diagram of the DMX and DALI two-in-one communication interface circuit provided by the present invention;
[0039] Figure 2 The present invention provides a circuit diagram of a two-in-one DMX and DALI communication interface circuit. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] In order to solve the problems that the current LED driver power supply cannot realize DMX and DALI two-in-one, cannot achieve multiple uses of one machine, has high product management costs, is not conducive to inventory, or can partially realize DMX and DALI two-in-one, but cannot realize communication interface circuit two-in-one, and requires manual replacement of interfaces, the present invention provides a DMX and DALI two-in-one communication interface circuit.
[0042] Specifically, refer to Figure 1, Figure 1 This is a functional block diagram of the DMX and DALI two-in-one communication interface circuit provided by the present invention.
[0043] like Figure 1 As shown, the DMX and DALI two-in-one communication interface circuit includes: a power supply / interface unit 10, an interface switching unit 20, an isolation communication unit 30, an NFC unit 40 and a main control unit 50.
[0044] The power supply / interface unit 10 provides direct current and selects the corresponding interface according to the switching of the interface switching unit 20. Specifically, the power supply / interface unit 10 is responsible for providing stable direct current to the entire system to power each unit circuit. At the same time, the power supply / interface unit 10 can also select the corresponding interface (i.e., select the 485 interface or the DALI interface) according to the switching of the interface switching unit 20.
[0045] Optionally, in an embodiment of the present invention, the power supply / interface unit 10 includes: a power supply module 11 , a 485 interface module 12 and a DALI interface module 13 .
[0046] Among them, the power supply module 11 is used to provide direct current. Optionally, in an embodiment of the present invention, the power supply module 11 is an auxiliary power supply inside the LED driving power supply, through which 10V and 24V direct current can be provided to various units of the system. In an embodiment of the present invention, the 485 interface module 12 is connected to the power supply module 11 and the interface switching unit 20, and is used to select the 485 interface according to the switching of the interface switching unit 20. The DALI interface module 13 is connected to the power supply module 11 and the interface switching unit 20, and is used to select the DALI interface according to the switching of the interface switching unit 20.
[0047] Optionally, the 485 interface module 12 includes: a clamping and current limiting circuit and a 485 interface circuit; the clamping and current limiting circuit is connected to the interface switching unit 20 for performing the clamping and current limiting functions; the 485 interface circuit is connected to the clamping and current limiting circuit for selecting the 485 interface according to the switching of the interface switching unit 20.
[0048] Optionally, the DALI interface module 13 includes: a current module, a signal receiving circuit and a signal sending circuit; the current module is respectively connected to the interface switching unit 20 and the bus constant current source 70, and is used to generate a current source according to the power supply signal provided by the bus constant current source 70; the signal receiving circuit is connected to the current module, and is used to select the DALI interface according to the switching of the interface switching unit 20, and send a selection signal to the main control unit 50; the signal sending circuit is connected to the signal receiving circuit, and is used to send a response signal to the main control unit 50.
[0049] In the embodiment of the present invention, the interface switching unit 20 is respectively connected to the isolation communication unit 30 and the power supply / interface unit 10, and is used to switch and select the interface of the power supply / interface unit 10 according to the control signal transmitted by the isolation communication unit 30. Optionally, the interface switching unit 20 includes: a 485 switching module 21 and a DALI switching module 22; the 485 switching module 21 is connected to the power supply / interface unit 10 and the isolation communication unit 30, and is used to perform 485 switching according to the control signal transmitted by the isolation communication unit 30; the DALI switching module 22 is connected to the power supply / interface unit 10 and the isolation communication unit 30, and is used to perform DALI switching according to the control signal transmitted by the isolation communication unit 30.
[0050] Optionally, the 485 switching module 21 includes: a current limiting circuit and a first switching circuit; the current limiting circuit is connected to the isolation communication unit 30, and is used for current limiting when switching to the 485 interface; the first switching circuit is used to be turned on when switching to the 485 interface to enable the 485 interface.
[0051] Optionally, the DALI switching module 22 includes: a clamping decoupling circuit, a second switching circuit and a second gating circuit; the clamping decoupling circuit is connected to the second switching circuit, and is used to clamp and decouple the second switching circuit when switching to the DALI interface; the second switching circuit is used to be turned on when switching to the DALI interface to enable the DALI interface.
[0052] The isolation communication unit 30 is used to electrically isolate the DMX signal and the DALI signal and communicate with the main control unit 50. Specifically, the isolation communication unit 30 is responsible for electrically isolating the DMX and DALI signals and maintaining real-time communication with the main control unit 50.
[0053] The NFC unit 40 is connected to the main control unit 50, and is used to obtain the configuration parameters of the power supply and send the configuration parameters of the power supply to the main control unit 50. In the embodiment of the present invention, the NFC unit 40 is a wireless communication circuit for the user application layer, and the various configuration parameters of the power supply are obtained through the NFC unit 40, and the obtained various configuration parameters are sent to the main control unit 50, so as to realize intelligence and convenience.
[0054] The main control unit 50 is used to determine the communication protocol according to the configuration parameters of the power supply, and output a control signal to the isolated communication unit 30 based on the communication protocol. In the embodiment of the present invention, the main control unit 50 is the control core of the entire power supply system, which can realize the processing of application layer data, driver layer signals, protocol parsing and control management of energy consumption of each unit. Its main functions are to receive host signals, instructions, control the output current of the power converter, etc.
[0055] Furthermore, if Figure 1As shown, the DMX and DALI two-in-one communication interface circuit also includes: a bus constant current source 70; the bus constant current source 70 is connected to the power supply / interface unit 10 and is used to supply power to the DALI bus. The bus constant current source 70 is used to provide current to the DALI bus according to the auxiliary power supply.
[0056] Furthermore, if Figure 1 As shown, the DMX and DALI two-in-one communication interface circuit also includes: a power conversion unit 60; the power conversion unit 60 is connected to the main control unit 50, and is used for the main control unit 50 to control the output of the corresponding current, and to send the feedback signal to the main control unit 50. Among them, the power conversion unit 60 may include multiple functional converters. The power conversion unit 60 is mainly controlled by the main control unit 50, and the main control unit 50 controls the output current of each power converter through the power control signal to realize the control of dynamic lighting. The power conversion unit 60 receives the PWM dimming signal of the main control unit 50, and feeds back the output current and output voltage to the main control unit 50.
[0057] It should be noted that in the embodiment of the present invention, the NFC unit 40, the auxiliary power supply, the power conversion unit 60 and the main control unit 50 can all adopt existing solutions, and the present invention does not make specific limitations.
[0058] The following uses a specific application example to illustrate the switching between the two different communication protocols of DMX and DALI of the present invention.
[0059] Specifically, Figure 2 As shown, in one embodiment, the clamping and current limiting circuit includes: a voltage regulator tube D3, a voltage regulator tube D4, an eighth resistor R8 and a ninth resistor R9. The 485 interface circuit includes: a chip U3, a tenth resistor R10, a third capacitor C3, an eleventh resistor R11 and a fourth capacitor C4. U3 is a 485 chip (i.e., a 485 IC). The second voltage regulator tube Z2 plays a protective role, and the fourth capacitor C4 plays a filtering role. The current limiting circuit includes: a fourth resistor R4; the first switch circuit includes: a second MOS tube Q2, a first MOS tube Q1, a first capacitor C1, a third resistor R3 and a first voltage regulator tube Z1. The isolation communication unit 30 includes: a first photocoupler U1-B, a fourth photocoupler U4-B, an eighth photocoupler U8-B and a ninth photocoupler U9-A.
[0060] like Figure 2As shown, the second end of the first photocoupler U1-B is connected to the auxiliary power supply through the connector J1 to receive the +10V voltage provided by the auxiliary power supply, the first end of the first photocoupler U1-B is connected to the gate of the second MOS tube Q2 and the gate of the first MOS tube Q1 through the fourth resistor R4, the drain of the second MOS tube Q2 is connected to the input port of the 485-A / D+ signal through the connector J1, the source of the second MOS tube Q2 is connected to the source of the first MOS tube Q1, the source of the first MOS tube Q1 is connected to the connection node of the tenth resistor R10 and the voltage regulator tube D4, the first end of the first capacitor C1 is connected to the gate of the second MOS tube Q2, the second end of the first capacitor C1 is connected to the source of the second MOS tube Q2, and the third resistor R3R3 and the first voltage regulator tube Z1 are sequentially connected in parallel with the first capacitor C1.
[0061] like Figure 2 As shown, the tenth resistor R10 is also grounded through the third capacitor C3, the first end of the second voltage regulator Z2 is connected to the connection node of the tenth resistor R10 and the voltage regulator D4, the second end of the second voltage regulator Z2 is grounded, the sixth pin of U3 is connected to the connection node of the tenth resistor R10 and the voltage regulator D4 through the eighth resistor R8, the seventh pin of U3 is connected to the second end of the voltage regulator D4 and the first end of the voltage regulator D3 through the ninth resistor R9, the second end of the voltage regulator D3 is grounded, and the eighth pin of U3 is grounded through the fourth capacitor C4. Among them, VCC1 is obtained by converting +10V.
[0062] like Figure 2 As shown, the current module includes: rectifier bridge BD1, seventh reference device U7, tenth diode D10, twenty-third resistor R23, fifth voltage regulator Z5, eleventh diode D11, twenty-fourth resistor R24 and twenty-fifth resistor R25. The signal receiving circuit includes: ninth transistor Q9, twelfth diode D12 and fourth voltage regulator Z4. The signal sending circuit includes: thirteenth transistor Q10, twenty-ninth resistor R29, eleventh capacitor, thirtieth resistor R30, twenty-sixth resistor R26, twenty-seventh resistor R27, twenty-eighth resistor R28 and thirteenth diode D13. As shown Figure 2 As shown, the clamp decoupling circuit includes: a second voltage regulator tube Z2, a third voltage regulator tube Z3, a sixth capacitor C6, a ninth capacitor C9, a twelfth resistor R12 and a twentieth resistor R20. The second switch circuit includes: a third MOS tube Q3 and a fifth MOS tube Q5. The second selection circuit includes: a seventh triode Q7, a nineteenth resistor R19, a twenty-first resistor R21, a twenty-second resistor R22 and an eighteenth resistor R18.
[0063] like Figure 2As shown, the bus constant current source 70 includes: a fourth MOS tube Q4, a fifth diode D5, a sixth diode D6, a seventh diode D7, a fifth reference device U5, a seventh capacitor C7, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15, a sixteenth resistor R16, a seventeenth resistor R17 and a chip inductor BC1.
[0064] like Figure 2 As shown, the drain of the fourth MOS tube Q4 is connected to the second end of the sixth photocoupler U6-B, and is also connected to the fifth pin of the connector J1 to receive the +24V voltage provided by the auxiliary power supply. The source of the fourth MOS tube Q4 is connected to the anode of the seventh diode D7, the first end of the fifteenth resistor R15, the first end of the fourteenth resistor R14 and the second end of the fifth reference device U5, the gate of the fourth MOS tube Q4 is connected to the cathode of the sixth diode D6, the cathode of the seventh diode D7, the first end of the sixteenth resistor R16, the first end of the seventh capacitor C7 and the first end of the thirteenth resistor R13, the second end of the sixteenth resistor R16 is connected to the first end of the fifth reference device U5, the third end of the fifth reference device U5, the anode of the sixth diode D6, the second end of the seventh capacitor C7 and the second end of the thirteenth resistor R13 are connected to the anode of the fifth diode D5, the cathode of the fifth diode D5 is connected to the input end of the rectifier bridge BD1 through the chip inductor BC1, and the first ends of the fourth and thirteenth resistors R13 are also connected to the fourth pin of the connector J1 through the fourth photocoupler U4-B, the seventeenth resistor R17 and the tenth resistor R10 in sequence.
[0065] like Figure 2 As shown, the gate of the fifth MOS transistor Q5 is connected to the third pin of the connector J1 through the nineteenth resistor R19, the drain of the fifth MOS transistor Q5 is connected to the second pin of the connector J1, the source of the fifth MOS transistor Q5 is connected to the fourth pin of the connector J1, the ninth capacitor C9 is connected between the gate and the source of the fifth MOS transistor Q5, the twentieth resistor R20 and the third voltage regulator Z3 are sequentially connected in parallel with the ninth capacitor C9. The collector of the seventh triode Q7 is connected to the third pin of the connector J1 through the nineteenth resistor R19, the emitter of the seventh triode Q7 is connected to the fourth pin of the connector J1, the base of the seventh triode Q7 is connected to VCC1 through the twenty-first resistor R21, and the twenty-second resistor R22 is connected between the base of the seventh triode Q7 and the fourth pin of the connector J1. The drain of the third MOS tube Q3 is connected to the first pin of the connector J1, the source of the third MOS tube Q3 is connected to the input end of the rectifier bridge BD1, the gate of the third MOS tube Q3 is connected to the sixth photocoupler U6-B through the eighteenth resistor R18, the second voltage regulator tube Z2 is connected between the gate and the source of the third MOS tube Q3, and the sixth capacitor C6 and the twelfth electrode are sequentially connected in parallel with the second voltage regulator tube Z2.
[0066] like Figure 2 As shown, the second end of the seventh reference device U7 is connected to the output end of the rectifier bridge BD1, the third end of the seventh reference device U7 is connected to the anode of the tenth diode D10, the first end of the seventh reference device U7 is connected to the second end thereof, the cathode of the tenth diode D10 is connected to the rectifier bridge BD1 through the twenty-third resistor R23, the first end of the fifth voltage-stabilizing tube Z5 is connected to the anode of the eleventh diode D11 and the base of the ninth transistor Q9, the second end of the fifth voltage-stabilizing tube Z5 is connected to the output end of the rectifier bridge BD1, the cathode of the eleventh diode D11 is connected to the emitter of the ninth transistor Q9, the twenty-fifth resistor R25 and the twenty-fourth resistor R24 are connected in series between the output end of the rectifier bridge BD1 and the emitter of the ninth transistor Q9, the collector of the ninth transistor Q9 is connected to the cathode of the twelfth diode D12, the first end of the ninth photoelectric coupler U9-A, the anode of the fourteenth diode D14, the second end of the ninth photoelectric coupler U9-A The first end of the thirteenth diode D14 is connected to the anode of the twelfth diode D12 and the fourth voltage regulator tube Z4, the cathode of the fourteenth diode D14 is connected to the emitter of the thirteenth transistor Q10, the first end of the thirtieth resistor R30 and the eleventh capacitor, the collector of the thirteenth transistor Q10 is connected to the first end of the twenty-sixth resistor R26, the first end of the twenty-seventh resistor R27 and the first end of the twenty-eighth resistor R28 through the twenty-ninth resistor R29, the base of the thirteenth transistor Q10 is connected to the second end of the thirtieth resistor R30 and the fourth end of the eighth photoelectric coupler U8-B, the third end of the eighth photoelectric coupler U8-B, the second end of the twenty-sixth resistor R26 and the source of the eighth MOS tube are connected, the second end of the twentieth resistor and the anode of the thirteenth diode D13 are connected to the gate of the eighth MOS tube Q8, the cathode of the thirteenth diode D13 is connected to the second end of the twenty-eighth resistor R28, and the drain of the eighth MOS tube Q8 is connected to the output end of the rectifier bridge BD1.
[0067] like Figure 2As shown, when the main control unit 50 determines to select the DMX communication protocol (i.e., select the 485 interface) according to the configuration parameters obtained by the NFC unit 40, the main control unit 50 controls the first photocoupler U1-B to be turned on and the sixth photocoupler U6-B to be turned off. At this time, the positive bias information controls the first MOS tube Q1 and the second MOS tube Q2 to be turned on through the fourth resistor R4. After the first MOS tube Q1 and the second MOS tube Q2 are turned on, the 485-A signal connected to the connector J1 is received, and the signal is connected to the sixth pin of U3 through the eighth resistor R8. Among them, the first capacitor C1 decouples the high-frequency signal input by the first MOS tube Q1 and the second MOS tube Q2, the first voltage regulator Z1 clamps the VGS of the first MOS tube Q1 and the second MOS tube Q2, and the third resistor R3R3 is used as a lower bias resistor to ensure that when the first photocoupler U1-B is not turned on, the first MOS tube Q1 and the second MOS tube Q2 can be quickly turned off. At this time, U3 performs voltage conversion, that is, the 485-A signal connected by U3 is converted into TTL level and transmitted to the main control unit 50. That is, at this time, the 485 interface is connected. Among them, the second voltage regulator Z2, the third voltage regulator Z3, and the fourth voltage regulator Z4 are used to clamp and limit the current when the 485-A signal is higher than the amplitude of the acceptance signal of U3, effectively improving the communication reliability of U3. The tenth resistor R10 is the upper bias resistor of the sixth pin of U3, and the eleventh resistor R11 is the lower bias resistor of the seventh pin of U3. The next differential level is formed by these two resistors to achieve the control of the input of the waiting signal at any time.
[0068] like Figure 2 As shown, when the main control unit 50 determines to use the DALI interface, the main control unit 50 controls the first photocoupler U1-B to be turned off, the seventh transistor Q7 to be turned off, and the fifth MOS tube Q5 to be turned on, and at the same time controls the sixth photocoupler U6-B to be turned on, and the third MOS tube Q3 to be turned on. At this time, the signal is switched, that is, the 485 communication is switched to the DALI communication. The DALI signal (i.e., D+) of the first pin of the connector J1 passes through the third MOS tube Q3 and is input to the input end of the rectifier bridge BD1 to be transmitted to the DALI interface circuit. The second voltage regulator tube, the third voltage regulator tube Z3, the sixth capacitor C6, the ninth capacitor C9, the twelfth resistor R12, and the twentieth resistor R20 clamp and decouple the control signals of the third MOS tube Q3 and the fifth MOS tube Q5, and submit the shutdown and other processing.
[0069] like Figure 2As shown, after selecting the DALI interface, the seventh reference device U7, the tenth diode D10, the twenty-third resistor R23, the fifth voltage regulator Z5, the ninth transistor Q9, the twenty-fourth resistor R24 and the twenty-fifth resistor R25 form a 2mA current source, and the interface consumes only less than 0.033W. The ninth photocoupler U9-A, the twelfth diode D12 and the fourth voltage regulator Z4 form a signal receiving device. When the DALI signal is connected, the DALI signal is transmitted to the MCU of the main control unit 50 through the ninth photocoupler U9-A. After receiving the signal from the main control unit 50, the eighth photocoupler U8-B controls the on and off time of the tenth transistor Q10 and the eighth MOS tube Q8. Among them, the selection of the eleventh capacitor needs to meet the requirements of large capacity to achieve the energy consumed during the conduction of the tenth transistor Q10, wherein the conduction and cutoff of the eighth MOS tube Q8 completely follow the tenth transistor Q10.
[0070] like Figure 2 As shown, the seventeenth resistor R17, the fourth photocoupler U4-B, the thirteenth resistor R13, the seventh capacitor C7, the sixth diode D6, the seventh diode D7, the fourth MOS tube Q4, the sixteenth resistor R16, the fifth reference device U5, the fifteenth resistor R15, the fourteenth resistor R14, the thirteenth resistor R13, the fifth diode D5 and the patch inductor BC1 form a current source, which can convert the +24V provided by the auxiliary power supply into 56mA to power the DALI bus. When the bus constant current source 70 is turned on, the fourth photocoupler U4-B is turned on. At this time, the fifth reference device U5 and the fourth MOS tube Q4 are turned on, and the signal flows through the fifth diode D5 through the patch inductor BC1 to the DALI bus. The fifth reference device U5 is a 1.25V reference chip, which controls the state of the fourth MOS tube Q4 by detecting the voltage across the fourteenth resistor R14 and the fifteenth resistor R15. When the voltage across R14 and R15 is higher than 1.25V, U5 pulls down the gate level of Q4 through R16 to let it enter the amplification area or the cut-off area, thereby ensuring that the bus current does not exceed 56mA.
[0071] Depend on Figure 2 It can be seen that the switching between DMX and DALI is achieved by controlling the first photocoupler U1 -B and the sixth photocoupler U6 -B, so that one signal line can meet different communication modes.
[0072] The present invention further provides a power supply, comprising: the DMX and DALI two-in-one communication interface circuit disclosed in the embodiment of the present invention.
[0073] Since different interface communication circuits use different hardware to provide signal conditioning to the MCU, it is very troublesome to switch the interface circuit at the application layer. The entire machine housing needs to be disassembled. Once the housing is disassembled, the waterproof performance of the product with strict waterproof requirements cannot be guaranteed before leaving the factory. On the other hand, manual line adjustment is required when switching between DMX and DALI, and the operability is low. Through the present invention, the communication interface can be automatically switched without manual physical intervention, and one machine can be used for multiple purposes to solve multiple problems such as spare inventory, manual line adjustment, and single-function models.
[0074] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0075] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0076] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0077] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot limit the scope of protection of the present invention. All equivalent changes and modifications made to the scope of the claims of the present invention should fall within the scope of the claims of the present invention.
Claims
1. A DMX and DALI two-in-one communication interface circuit, characterized in that: include: Power supply / interface unit, interface switching unit, isolated communication unit, NFC unit and main control unit; The power supply / interface unit provides direct current and selects a corresponding interface according to the switching of the interface switching unit; The interface switching unit is connected to the isolation communication unit and the power supply / interface unit respectively, and is used to switch and select the interface of the power supply / interface unit according to the control signal transmitted by the isolation communication unit; The isolation communication unit is used to electrically isolate the DMX signal and the DALI signal and communicate with the main control unit; The NFC unit is connected to the main control unit, and is used to obtain configuration parameters of the power supply and send the configuration parameters of the power supply to the main control unit; The main control unit is used to determine the communication protocol according to the configuration parameters of the power supply, and output the control signal to the isolation communication unit based on the communication protocol.
2. The DMX and DALI two-in-one communication interface circuit according to claim 1, characterized in that: Also includes: Bus constant current source; The bus constant current source is connected to the power supply / interface unit and is used to supply power to the DALI bus.
3. The DMX and DALI two-in-one communication interface circuit according to claim 1, characterized in that: Also includes: Power conversion unit; The power conversion unit is connected to the main control unit and is used for controlling the main control unit to output a corresponding current and sending a feedback signal to the main control unit.
4. The DMX and DALI two-in-one communication interface circuit according to claim 1, characterized in that: The power supply / interface unit includes: a power supply module, a 485 interface module and a DALI interface module; The power supply module is used to provide the direct current; The 485 interface module is connected to the power supply module and the interface switching unit, and is used to select the 485 interface according to the switching of the interface switching unit; The DALI interface module is connected to the power supply module and the interface switching unit, and is used to enable the DALI interface according to the switching of the interface switching unit.
5. The DMX and DALI two-in-one communication interface circuit according to claim 4, characterized in that: The 485 interface module includes: a clamping and current limiting circuit and a 485 interface circuit; The clamping and current limiting circuit is connected to the interface switching unit and is used to perform clamping and current limiting functions; The 485 interface circuit is connected to the clamp and current limiting circuit and is used to select the 485 interface according to the switching of the interface switching unit.
6. The DMX and DALI two-in-one communication interface circuit according to claim 4, characterized in that: The DALI interface module includes: a current module, a signal receiving circuit and a signal sending circuit; The current module is connected to the interface switching unit and the bus constant current source respectively, and is used to generate a current source according to the power supply signal provided by the bus constant current source; The signal receiving circuit is connected to the current module, and is used to select the DALI interface according to the switching of the interface switching unit, and send a selection signal to the main control unit; The signal sending circuit is connected to the signal receiving circuit and is used to send a response signal to the main control unit.
7. The DMX and DALI two-in-one communication interface circuit according to claim 1, characterized in that: The interface switching unit includes: a 485 switching module and a DALI switching module; The 485 switching module is connected to the power supply / interface unit and the isolated communication unit, and is used to perform 485 switching according to the control signal transmitted by the isolated communication unit; The DALI switching module is connected to the power supply / interface unit and the isolated communication unit, and is used to perform DALI switching according to a control signal transmitted by the isolated communication unit.
8. The DMX and DALI two-in-one communication interface circuit according to claim 7, characterized in that: The 485 switching module includes: a current limiting circuit and a first switch circuit; The current limiting circuit is connected to the isolation communication unit and is used for current limiting when switching to the 485 interface; The first switch circuit is used to be turned on when switching to the 485 interface to enable the 485 interface.
9. The DMX and DALI two-in-one communication interface circuit according to claim 7, characterized in that: The DALI switching module includes: a clamping decoupling circuit, a second switching circuit and a second gating circuit; The clamping decoupling circuit is connected to the second switch circuit, and is used to perform clamping decoupling on the second switch circuit when switching to the DALI interface; The second switch circuit is used to be turned on when switching to the DALI interface to enable the DALI interface.
10. A power supply, characterized in that: include: The DMX and DALI two-in-one communication interface circuit according to any one of claims 1 to 9.