CN113556840B - Detection equipment of DMX512 signal amplifying circuit and DMX512 signal amplifying circuit - Google Patents

Detection equipment of DMX512 signal amplifying circuit and DMX512 signal amplifying circuit Download PDF

Info

Publication number
CN113556840B
CN113556840B CN202110855713.6A CN202110855713A CN113556840B CN 113556840 B CN113556840 B CN 113556840B CN 202110855713 A CN202110855713 A CN 202110855713A CN 113556840 B CN113556840 B CN 113556840B
Authority
CN
China
Prior art keywords
signal
amplifying circuit
dmx512
differential signal
differential
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110855713.6A
Other languages
Chinese (zh)
Other versions
CN113556840A (en
Inventor
吴明亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Beidao Photoelectric Industry Co ltd
Original Assignee
Guangzhou Beidao Photoelectric Industry Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Beidao Photoelectric Industry Co ltd filed Critical Guangzhou Beidao Photoelectric Industry Co ltd
Priority to CN202110855713.6A priority Critical patent/CN113556840B/en
Publication of CN113556840A publication Critical patent/CN113556840A/en
Application granted granted Critical
Publication of CN113556840B publication Critical patent/CN113556840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Amplifiers (AREA)

Abstract

The application relates to detection equipment of a DMX512 signal amplifying circuit and the DMX512 signal amplifying circuit. The detection equipment of the DMX512 signal amplifying circuit comprises a controller and an indication module, wherein the controller is respectively and electrically connected with a TTL signal input end of a first RS-485 chip of the DMX512 signal amplifying circuit, a forward output end of a differential signal and a reverse output end of the differential signal, and is used for receiving the TTL signal, the first differential signal and the second differential signal, judging whether the output signal of the DMX512 signal amplifying circuit chip is wrong according to the TTL signal, the first differential signal and the second differential signal, and outputting the indication signal according to a judging result; the indication module indicates according to the indication signal, namely, the indication module indicates whether the output signal of the DMX512 signal amplifying circuit is wrong or not under the control of the controller, and the state of the indication module when the output signal of the DMX512 signal amplifying circuit is wrong is different from the state of the indication module when the output signal of the DMX512 signal amplifying circuit is correct, so that the reliability of the circuit is improved.

Description

Detection equipment of DMX512 signal amplifying circuit and DMX512 signal amplifying circuit
Technical Field
The application relates to the technical field of RS-485 chips, in particular to detection equipment of a DMX512 signal amplifying circuit and the DMX512 signal amplifying circuit.
Background
The DMX512 protocol is a data dimming protocol proposed by the united states stage lighting association (USITT) which gives a protocol standard for communication between a light controller and a light fixture, which provides a good standard for controlling light fixtures using digital signals.
The DMX512 signal amplifying circuit is mainly used for shaping the weakened RS-485 signal to restore the weakened RS-485 signal to a 485 differential signal with steep edges, the current signal amplifying circuit realizes the functions by using a traditional analog circuit and cannot indicate whether the output of the signal amplifying circuit has errors or not, so the reliability of the current DMX512 signal amplifying circuit is lower.
Disclosure of Invention
In view of the above, it is desirable to provide a detection apparatus of a DMX512 signal amplifying circuit and a DMX512 signal amplifying circuit capable of improving the reliability of the DMX512 signal amplifying circuit.
In a first aspect, a detection apparatus for a DMX512 signal amplifying circuit is provided, including:
the controller is electrically connected with the TTL level input end of the first RS-485 chip of the DMX512 signal amplifying circuit, the TTL level input end of the first RS-485 chip, the forward output end of the differential signal of the first RS-485 chip and the reverse output end of the differential signal of the first RS-485 chip respectively, and is used for receiving the TTL signal input to the TTL signal input end, the first differential signal output by the forward output end and the second differential signal output by the reverse output end, judging whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal and the second differential signal and outputting an indication signal according to the judging result;
and the indication module is connected with the controller and indicates according to the indication signal.
In one embodiment, the indicator module includes an indicator light.
In one embodiment, the controller is a micro-control unit.
In a second aspect, a DMX512 signal amplifying circuit is provided, including:
the signal input circuit comprises a second RS-485 chip, wherein the second RS-485 chip is used for receiving a third differential signal and a fourth differential signal and converting a differential signal pair formed by the third differential signal and the fourth differential signal into corresponding TTL signals;
the input end of the isolation circuit is electrically connected with the signal input circuit;
the signal output circuit comprises a first RS-485 chip, wherein the first RS-485 chip is electrically connected with the output end of the isolation circuit and is used for converting the TTL signal into a first differential signal and a second differential signal corresponding to the TTL signal;
a detection apparatus for a DMX512 signal amplifying circuit as in any one of the first aspects above.
In one embodiment, the controller is a micro control unit, the power supply voltage of the micro control unit is 3.3V, and the power supply voltage of the first RS-485 chip is 5V.
In one embodiment, the detection device of the DMX512 signal amplifying circuit further includes:
the first voltage division module is electrically connected with the forward output end and the controller respectively, and is used for carrying out voltage division processing on the first differential signal and outputting the first voltage division signal to the controller;
the second voltage division module is respectively and electrically connected with the reverse output end and the controller, and is used for carrying out voltage division processing on the second differential signal and outputting a second voltage division signal to the controller;
the controller is further configured to determine whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first voltage division signal, and the second voltage division signal, and output an indication signal according to a determination result.
In a third aspect, a method for detecting a DMX512 signal amplifying circuit is provided, including:
acquiring a TTL signal received by a TTL signal input end of a first RS-485 chip of the DMX512 signal amplifying circuit, a first differential signal output by a forward output end of a differential signal of the first RS-485 chip, and a second differential signal output by a reverse output end of the differential signal of the first RS-485 chip;
judging whether the output signal of the DMX512 signal amplifying circuit is wrong or not according to the TTL signal, the first differential signal and the second differential signal;
and outputting an indication signal according to the judgment result, wherein the indication signal is used for controlling the indication module to indicate.
In one embodiment, the step of determining whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal and the second differential signal includes:
if the TTL signal is a high level signal, judging whether the first differential signal is larger than a first threshold value and whether the second differential signal is smaller than a second threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong;
if the TTL signal is a low level signal, judging whether the first differential signal is smaller than a second threshold value and whether the second differential signal is larger than the first threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong.
In a fourth aspect, a detection apparatus for a DMX512 signal amplifying circuit is provided, including:
the acquisition module is used for acquiring a TTL signal received by a TTL level input end of a first RS-485 chip of the DMX512 signal amplification circuit, a first differential signal output by a forward output end of a differential signal of the first RS-485 chip and a second differential signal output by a reverse output end of the differential signal of the first RS-485 chip;
the judging module is used for judging whether the signal output by the DMX512 signal amplifying circuit is wrong or not according to the TTL signal, the first differential signal and the second differential signal;
the indication module is used for outputting an indication signal according to the judging result, and the indication signal is used for controlling the indication module to indicate.
In a fifth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of detecting a DMX512 signal amplifying circuit as set forth in any one of the third aspects above.
The detection device of the DMX512 signal amplifying circuit comprises a controller and an indication module, wherein the controller is respectively and electrically connected with a TTL signal input end of a first RS-485 chip of the DMX512 signal amplifying circuit, a forward output end of a differential signal and a reverse output end of the differential signal, and is used for receiving the TTL signal input to the TTL signal input end, the first differential signal output by the forward output end and the second differential signal output by the reverse output end, judging whether the output signal of the DMX512 signal amplifying circuit chip is wrong or not according to the TTL signal, the first differential signal and the second differential signal, and outputting the indication signal according to a judging result; the indication module indicates according to the indication signal, namely, the indication module indicates whether the output signal of the DMX512 signal amplifying circuit is wrong or not under the control of the controller, and the state of the indication module when the output signal of the DMX512 signal amplifying circuit is wrong is different from the state of the indication module when the output signal of the DMX512 signal amplifying circuit is correct, so that the reliability of the circuit is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments or the conventional techniques of the present application, the drawings required for the descriptions of the embodiments or the conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a schematic diagram of a DMX512 signal amplifying circuit;
FIG. 2 is a schematic diagram of a DMX512 signal amplifying circuit in one embodiment;
FIG. 3 is a schematic diagram of a DMX512 signal amplifying circuit according to another embodiment;
FIG. 4 is a flow chart illustrating a method for detecting a DMX512 signal amplifying circuit according to an embodiment;
FIG. 5 is a flowchart illustrating a technical process of step S404 in the embodiment of FIG. 4;
FIG. 6 is a flowchart illustrating a technical process of step S404 in another embodiment of FIG. 4;
fig. 7 is a block diagram of a detection apparatus of the DMX512 signal amplifying circuit according to an embodiment.
Detailed Description
In order that the application may be readily understood, a more complete description of the application will be rendered by reference to the appended drawings. Embodiments of the application are illustrated in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that the terms first, second, etc. as used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be connected to the other element through intervening elements. Further, "connection" in the following embodiments should be understood as "electrical connection", "communication connection", and the like if there is transmission of electrical signals or data between objects to be connected.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," and/or the like, specify the presence of stated features, integers, steps, operations, elements, components, or groups thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof.
As described in the background art, the current DMX512 signal amplifying circuit is mainly used for shaping the weakened RS-485 signal to restore the weakened RS-485 signal to a 485 differential signal with steep edges. Next, a DMX512 signal amplifying circuit according to an embodiment of the present application will be briefly described.
As shown in fig. 1, the DMX512 signal amplifying circuit may include a signal input circuit 110, an isolation circuit 120, and a signal output circuit 130. Specifically, the signal input circuit 110 may include a second RS-482 chip 112, where the second RS-485 chip 112 is configured to receive the third differential signal and the fourth differential signal, and convert a differential signal pair formed by the third differential signal and the fourth differential signal into corresponding TTL signals. It should be noted that the RS-485 chip includes a TTL signal output terminal (RO terminal shown in fig. 1), a TTL signal input terminal (DI terminal shown in fig. 1), a forward terminal (a terminal shown in fig. 1) of a differential signal, and a reverse terminal (B terminal shown in fig. 1) of the differential signal. Optionally, the third differential signal is input to a positive terminal of the differential signal of the second RS-485 chip, and the fourth differential signal is input to a negative terminal of the differential signal of the second RS-485 chip. It should be noted that the detection sensitivity of the receiver of the RS-485 chip is generally ±200mV, and when the difference between the third differential signal and the fourth differential signal is greater than 200mV, the second RS-485 chip outputs logic 1, i.e. the TTL signal is logic 1. When the difference between the third differential signal and the fourth differential signal is smaller than-200 mV, the second RS-485 chip outputs logic 0, namely the TTL signal is logic 0.
Optionally, the signal input circuit may further include a three-core socket CON1, a resistor R2, and a transient diode (TVS tube) D1. It should be noted that the resistors R1 and R2 are used to fix a level in the absence of signal input, so that the output of the second RS-485 chip is fixed at a high level. Optionally, the resistance of the resistor R1 is 10kΩ, and the resistance of the resistor R2 is 10kΩ. The TVS tube D1 is used to suppress surge voltage of an input circuit.
Specifically, the input terminal of the isolation circuit 120 is electrically connected to the signal input circuit 110. It should be noted that the isolation circuit 120 is used to isolate the input signal from the output signal, so as to enhance the anti-interference capability of the circuit. Alternatively, the magnetic isolation circuit 120 may include a magnetic isolation chip 122.
Specifically, the signal output circuit 130 may include a first RS-485 chip 132. Specifically, the first RS-485 chip 132 is electrically connected to the output of the isolation circuit 120. The first RS-485 chip 132 is used for converting the TTL signal into a first differential signal and a second differential signal corresponding to the TTL signal. The TTL signal is input to the TTL signal input end of the first RS-485 chip, the positive end of the differential signal of the first RS-485 chip outputs a first differential signal, and the negative end of the differential signal of the first RS-485 chip outputs a second differential signal. When the TTL signal is logic 1, the first differential signal is larger than the second differential signal, and when the TTL signal is logic 0, the first differential signal is smaller than the second differential signal.
Optionally, the signal output circuit 130 may further include a three-core socket CON2 and a TVS tube D2. It should be noted that TVS tube D2 may be used to suppress surge voltages on the output circuit of the DMX512 signal amplifying circuit.
It can be understood that the input signal circuit of the DMX512 signal amplifying circuit receives the third differential signal and the fourth differential signal, and converts the differential signal pair formed by the third differential signal and the fourth differential signal into a TTL signal, where the TTL signal is input to the signal output circuit through the isolation circuit and converted into the first differential signal and the second differential signal, so that the DMX512 signal amplifying circuit performs shaping on the third differential signal and the fourth differential signal, and restores the third differential signal and the fourth differential signal into the first differential signal and the second differential signal with steep edges.
As can be seen from the above description, although the DMX512 signal amplifying circuit can implement shaping the third differential signal and the fourth differential signal to restore them to the first differential signal and the second differential signal with steep edges, the current DMX512 signal amplifying circuit cannot indicate whether an error occurs in the output signal.
In view of this, the embodiment of the application provides a DMX512 signal amplifying circuit capable of indicating whether the signal of the DMX512 signal amplifying circuit is wrong, so as to improve the reliability of the DMX512 signal amplifying circuit.
Referring to fig. 2, a schematic structural diagram of a DMX512 signal amplifying circuit according to a first embodiment of the present application is shown, where the DMX512 signal amplifying circuit may include: a signal input circuit 110, an isolation circuit 120, a signal output circuit 130, and a detection device 210 of a DMX512 signal amplifying circuit.
The descriptions of the signal input circuit 110, the isolation circuit 120 and the signal output circuit 130 are detailed in the above embodiments, and are not repeated here.
In an alternative embodiment of the present application, the signal output circuit may further include a first protection element and a second protection element. It should be noted that the first protection element is electrically connected to the forward output terminal of the differential signal of the first RS-485 chip, and the second protection element is electrically connected to the reverse output terminal of the differential signal of the first RS-485 chip. Alternatively, the first protection element may be a fuse. Alternatively, the second protection element may be a fuse. As shown in fig. 2, the first protection element is a self-restoring fuse F1, and the second protection element is a self-restoring fuse F2. The first protection element and the second protection element provided in the above embodiments may be used to protect the DMX512 signal amplifying circuit, so as to avoid burning the DMX512 signal amplifying circuit due to an external error line or an external voltage. When the circuit connected with the output end of the DMX512 signal amplifying circuit is short-circuited or overloaded, the heat generated by the large current flowing through the self-recovery fuse melts the polymeric resin, the volume is rapidly increased to form a high-resistance state, and the working current is rapidly reduced, so that the DMX512 signal amplifying circuit is limited and protected. After the fault is removed, the self-recovery fuse is cooled again for crystallization, the volume is contracted, the conductive particles form a conductive path again, and the self-recovery fuse is recovered to a low-resistance state, so that the protection of the DMX512 signal amplifying circuit is finished, and manual replacement is not needed.
Next, a detection apparatus of the DMX512 signal amplifying circuit provided by the embodiment of the present application will be described.
With continued reference to fig. 2, the detection device 210 of the dmx512 signal amplifying circuit includes a controller 212 and an indication module 214. Specifically, the controller 212 is electrically connected to a TTL signal input end of the first RS-485 chip of the DMX512 signal amplifying circuit, a forward output end of the differential signal of the first RS-485 chip, and a reverse output end of the differential signal of the first RS-485 chip, respectively. The controller 212 is configured to receive a TTL signal input to the TTL signal input end of the first RS-485 chip, a first differential signal output by the forward output end of the first RS-485 chip, and a second differential signal output by the reverse output end of the first RS-485 chip, determine whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal, and the second differential signal, and output an indication signal according to a determination result. Specifically, the indication module 214 is connected to the controller 212, and indicates according to the indication signal.
It should be noted that, the first RS-485 chip is configured to convert the TTL signal into a first differential signal and a second differential signal, and when the first differential signal and the second differential signal output by the forward output end and the reverse output end of the first RS-485 chip are inconsistent with the TTL signal input to the TTL signal input end of the first RS-485 chip, the output signal error of the DMX512 signal amplifying circuit is proved. The controller outputs the indication signal under the condition that the first differential signal and the second differential signal are inconsistent with the TTL signal, and the indication module indicates according to the indication signal, so that the output signal error of the DMX512 signal amplifying circuit is indicated, and the reliability of the DMX512 signal amplifying circuit is improved.
The detection device of the DMX512 signal amplifying circuit provided in the foregoing embodiment includes a controller and an indication module, where the controller is electrically connected to a TTL signal input end of a first RS-485 chip of the DMX512 signal amplifying circuit, a forward output end of a differential signal, and a reverse output end of the differential signal, and is configured to receive the TTL signal input to the TTL signal input end, the first differential signal output by the forward output end, and the second differential signal output by the reverse output end, determine whether the output signal of the DMX512 signal amplifying circuit chip is wrong according to the TTL signal, the first differential signal, and the second differential signal, and output the indication signal according to a determination result; the indication module indicates according to the indication signal, namely, the indication module indicates whether the output signal of the DMX512 signal amplifying circuit is wrong or not under the control of the controller, and the state of the indication module when the output signal of the DMX512 signal amplifying circuit is wrong is different from the state of the indication module when the output signal of the DMX512 signal amplifying circuit is correct, so that the reliability of the circuit is improved.
In an alternative embodiment of the present application, the controller provided in the above embodiment is a Micro Control Unit (MCU). Alternatively, the indication module may comprise an indicator light. In the embodiment, the Micro Control Unit (MCU) is adopted as the controller to not aggravate the load of the output circuit of the DMX512 signal amplifying circuit, the MCU is used for monitoring the output signal of the DMX512 signal amplifying circuit in real time, and the indication signal is output according to the output signal of the DMX512 signal amplifying circuit so as to control the indication lamp.
Referring to fig. 3, a schematic structural diagram of a DMX512 signal amplifying circuit according to an embodiment of the present application is shown, where the DMX512 signal amplifying circuit may include: a signal input circuit 110, an isolation circuit 120, a signal output circuit 130, and a detection device 210 of a DMX512 signal amplifying circuit. The detection device 210 of the signal input circuit 110, the isolation circuit 120, the signal output circuit 130 and the DMX512 signal amplifying circuit is described in detail in the above embodiments, and will not be repeated here. The controller 212 of the detecting device 210 of the DMX512 signal amplifying circuit is an MCU with a power supply voltage of 3.3V, and the first RS-485 chip 132 is an RS-485 chip with a power supply voltage of 5V. According to the embodiment, the RS-485 chip with the power supply voltage of 5V is used as the first RS-485 chip, so that the anti-interference capability of the DMX512 signal amplifying circuit can be improved, and the 3.3V MCU is used as the controller, so that the loss of the DMX512 signal amplifying circuit can be reduced. As shown in fig. 3, the second RS-485 chip may optionally have a supply voltage of 5V. Optionally, the power supply voltage of the magnetic isolation chip is 5V.
In an alternative embodiment of the present application, the detection apparatus of the DMX512 signal amplifying circuit provided in the foregoing embodiment may further include a first voltage dividing module 310 and a second voltage dividing module 320. Specifically, the first voltage dividing module 310 is electrically connected to the positive output end of the differential signal of the first RS-485 chip 132 and the controller 212, and is configured to perform voltage dividing processing on the first differential signal, and output a first voltage dividing signal to the controller 212. The second voltage dividing module 320 is electrically connected to the controller 212 and the inverted output end of the differential signal of the first RS-485 chip 132, and is configured to perform voltage dividing processing on the second differential signal, and output a second voltage dividing signal to the controller 212. Specifically, the controller 212 may be further configured to determine whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first voltage division signal, and the second voltage division signal, and output an indication signal according to the determination result.
It is understood that the voltage of the first divided signal is less than the voltage of the first differential signal and the voltage of the second divided signal is less than the voltage of the second differential signal. With continued reference to fig. 3, the MCU212 may alternatively employ an AT32F421 series MCU. The first voltage dividing module 310 is electrically connected to a first analog-to-digital conversion end (ADC 1 end) of the MCU212, the second voltage dividing module 320 is electrically connected to a second analog-to-digital conversion end (ADC 2) of the MCU212, a TTL signal input end of the first RS-485 chip 132 is electrically connected to a receiving data end (RXD end) of the MCU212, and a general purpose output end (GPIO end) of the MCU212 is electrically connected to the indication module 330. It should be noted that, since the first differential signal and the second differential signal output by the first RS-485 chip 132 are analog signals, the first differential signal and the second differential signal need to be analog-to-digital converted before being analyzed by the MCU 212.
With continued reference to fig. 3, optionally, the first voltage dividing module 310 may include a resistor R3 and a resistor R4. The controller 212 is electrically connected to a common terminal of the resistor R3 and the resistor R4 to receive the first voltage division signal. Optionally, the other end (the other end electrically connected to the controller) of the resistor R3 is electrically connected to the positive output end of the differential signal of the first RS-485 chip 132, and the other end (the other end electrically connected to the controller) of the resistor R4 is connected to the ground. Alternatively, the second voltage divider module 320 may include a resistor R5 and a resistor R6. The controller 212 is electrically connected to a common terminal of the resistor R5 and the resistor R6 to receive the second voltage division signal. Optionally, the other end (the other end electrically connected to the controller) of the resistor R5 is electrically connected to the inverted output end of the differential signal of the first RS-485 chip 132, and the other end (the other end electrically connected to the controller) of the resistor R6 is connected to the ground.
In an alternative embodiment of the application, the controller of the detecting device of the DMX512 signal amplifying circuit is an MCU with a power supply voltage of 3.3V, and the first RS-485 chip is an RS-485 chip with a power supply voltage of 5V. Optionally, the ratio of the resistance values of the resistor R3 and the resistor R4 isOptionally, the ratio of the resistance values of the resistor R5 and the resistor R6 is +.>Optionally, the resistance of the resistor R3 is 1kΩ, and the resistance of the resistor R4 is 2kΩ. Optionally, the resistance of the resistor R5 is 1kΩ, and the resistance of the resistor R6 is 2kΩ. Optionally, please continue to refer to fig. 3, the indication module 330 includes an indication lamp L1 and a resistor R7. Specifically, one end of the indicator light L1 is electrically connected to the controller 212, and the other end of the indicator light L1 is grounded through the resistor R7. Alternatively, the resistance of the resistor R7 is 1kΩ.
It will be appreciated that the first voltage dividing module and the second voltage dividing module may take other forms, and are not limited to the forms already mentioned in the above embodiments, as long as they can achieve voltage division so that the voltage received by the controller does not impair the function of the controller.
Referring to fig. 4, a flowchart of a detection method of a DMX512 signal amplifying circuit according to an embodiment of the present application is shown. As shown in fig. 4, the method for detecting the DMX512 signal amplifying circuit may include: s402 to S406.
S402: and acquiring a TTL signal received by a TTL signal input end of a first RS-485 chip of the DMX512 signal amplifying circuit, a first differential signal output by a forward output end of a differential signal of the first RS-485 chip, and a second differential signal output by a reverse output end of the differential signal of the first RS-482 chip.
S404: and judging whether the output signal of the DMX512 signal amplifying circuit is wrong or not according to the TTL signal, the first differential signal and the second differential signal.
S406: and outputting an indication signal according to the judgment result, wherein the indication signal is used for controlling the indication module to indicate.
The DMX512 signal amplifying circuit and the indicating module are described in detail in the above embodiments, and are not described herein.
In an alternative embodiment of the present application, step S404 of the above embodiment: the step of determining whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal, and the second differential signal may include:
if the TTL signal is a high level signal, judging whether the first differential signal is larger than a first threshold value and the second differential signal is smaller than a second threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong. If the TTL signal is a low level signal, judging whether the first differential signal is smaller than a second threshold value and whether the second differential signal is larger than the first threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong.
Referring to fig. 5, a technical process of determining whether an output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal, and the second differential signal according to an embodiment of the present application is shown, and as shown in fig. 5, the technical process may include: s502 to S506.
S502: whether the TTL signal is a high level signal or a low level signal is determined.
Namely, judging that the TTL signal input to the TTL signal input end of the first RS-485 chip of the DMX512 signal amplifying circuit is logic 1 and logic 0 when the TTL signal is logic 1, and when the TTL signal is logic 1, the TTL signal is a high level signal; when the TTL signal is logic 0, then the TTL signal is a low level signal.
S504: if the TTL signal is a high level signal, judging whether the first differential signal is larger than a first threshold value and the second differential signal is smaller than a second threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong.
It should be noted that the first threshold is greater than the second threshold.
S506: if the TTL signal is a low level signal, judging whether the first differential signal is smaller than a second threshold value and whether the second differential signal is larger than the first threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong.
Referring to fig. 6, another technical process of determining whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal and the second differential signal according to the embodiment of the present application is shown. The technical process is applied to a DMX512 signal amplifying circuit as shown in FIG. 3. Specifically, the controller is an MCU with a supply voltage of 3.3V, the supply voltage of the first RS-485 chip is 5V, r3=r5=1kΩ, and r4=r6=2kΩ. The indication module comprises an indication lamp. As shown in fig. 6, the method for detecting the DMX512 signal amplifying circuit may include: s502 and S602 to S608.
S502: whether the TTL signal is a high level signal or a low level signal is determined.
S602: if the TTL signal is a high level signal, determining whether the first differential signal is greater than 2V and the second differential signal is less than 0.7V, if yes, executing S606; if not, then S608 is performed.
S604: if the TTL signal is a low level signal, determining whether the first differential signal is less than 0.7V and the second differential signal is greater than 2V, if yes, executing S606; if not, then S608 is performed.
S606: and controlling the indicator lamp to be turned on.
Optionally, the indicator light may be an LED light. Optionally, the LED lamp is controlled to flash at a frequency of 1 Hz.
S608: and controlling the indicator lamp to be turned off.
It should be understood that, although the steps in the flowcharts of fig. 4 to 6 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of fig. 4-6 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in other steps.
Referring to fig. 7, a block diagram of a detection apparatus 700 of a DMX512 signal amplifying circuit according to an embodiment of the present application is shown. As shown in fig. 7, the detection device of the DMX512 signal amplifying circuit may include: an acquisition module 702, a judgment module 704 and an indication module 706. Specifically, the obtaining module 702 may be configured to obtain a TTL signal received by a TTL level input end of a first RS-485 chip of the DMX512 signal amplifying circuit, a first differential signal output by a forward output end of a differential signal of the first RS-485 chip, and a second differential signal output by a reverse output end of the differential signal of the first RS-482 chip. The determining module 704 may be configured to determine whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal, and the second differential signal. The indication module 706 may be configured to output an indication signal according to the determination result, where the indication signal is used to control the indication module to indicate.
For specific limitations of the detection device of the DMX512 signal amplifying circuit, reference may be made to the above limitations of the detection method of the DMX512 signal amplifying circuit, and details thereof are not repeated herein. The modules in the detection device of the DMX512 signal amplifying circuit can be all or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the steps of the above-described detection method embodiments of the DMX512 signal amplifying circuits.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
In the description of the present specification, reference to the terms "some embodiments," "other embodiments," "desired embodiments," and the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (9)

1. A detection apparatus for a DMX512 signal amplifying circuit, comprising:
the controller is electrically connected with the TTL signal input end of the first RS-485 chip of the DMX512 signal amplifying circuit, the forward output end of the differential signal of the first RS-485 chip and the reverse output end of the differential signal of the first RS-485 chip respectively, and is used for receiving the TTL signal input to the TTL signal input end, the first differential signal output by the forward output end and the second differential signal output by the reverse output end, judging whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal and the second differential signal, and outputting an indication signal according to a judging result;
the indication module is connected with the controller and indicates according to the indication signal;
wherein, the step of judging whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal and the second differential signal includes:
if the TTL signal is a high-level signal, judging whether the first differential signal is larger than a first threshold value and the second differential signal is smaller than a second threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong;
if the TTL signal is a low level signal, judging whether the first differential signal is smaller than the second threshold value and whether the second differential signal is larger than the first threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong.
2. The apparatus for detecting a DMX512 signal amplifying circuit according to claim 1, wherein said indication module includes an indicator light.
3. The apparatus for detecting a DMX512 signal amplifying circuit according to claim 1, wherein said controller is a micro control unit.
4. A DMX512 signal amplifying circuit, comprising:
the signal input circuit comprises a second RS-485 chip, wherein the second RS-485 chip is used for receiving a third differential signal and a fourth differential signal and converting a differential signal pair formed by the third differential signal and the fourth differential signal into corresponding TTL signals;
the input end of the isolation circuit is electrically connected with the signal input circuit;
the signal output circuit comprises a first RS-485 chip, wherein the first RS-485 chip is electrically connected with the output end of the isolation circuit and is used for converting the TTL signal into a first differential signal and a second differential signal corresponding to the TTL signal;
a detection apparatus for a DMX512 signal amplifying circuit according to any one of claims 1 to 3.
5. The DMX512 signal amplifying circuit according to claim 4, wherein the controller is a micro control unit, a power supply voltage of the micro control unit is 3.3V, and a power supply voltage of the first RS-485 chip is 5V.
6. The DMX512 signal amplifying circuit according to claim 5, wherein the detecting device of the DMX512 signal amplifying circuit further includes:
the first voltage division module is electrically connected with the forward output end and the controller respectively, and is used for carrying out voltage division processing on the first differential signal and outputting a first voltage division signal to the controller;
the second voltage division module is electrically connected with the reverse output end and the controller respectively, and is used for carrying out voltage division processing on the second differential signal and outputting a second voltage division signal to the controller;
the controller is further configured to determine whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first voltage division signal, and the second voltage division signal, and output an indication signal according to a determination result.
7. A method for detecting a DMX512 signal amplifying circuit, comprising:
acquiring a TTL signal received by a TTL signal input end of a first RS-485 chip of the DMX512 signal amplifying circuit, a first differential signal output by a forward output end of a differential signal of the first RS-485 chip, and a second differential signal output by a reverse output end of the differential signal of the first RS-482 chip;
judging whether the output signal of the DMX512 signal amplifying circuit is wrong or not according to the TTL signal, the first differential signal and the second differential signal;
outputting an indication signal according to the judgment result, wherein the indication signal is used for controlling the indication module to indicate;
wherein, the step of judging whether the output signal of the DMX512 signal amplifying circuit is wrong according to the TTL signal, the first differential signal and the second differential signal includes:
if the TTL signal is a high-level signal, judging whether the first differential signal is larger than a first threshold value and the second differential signal is smaller than a second threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong;
if the TTL signal is a low level signal, judging whether the first differential signal is smaller than the second threshold value and whether the second differential signal is larger than the first threshold value, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong.
8. A detection apparatus for a DMX512 signal amplifying circuit, comprising:
the acquisition module is used for acquiring a TTL signal received by a TTL level input end of a first RS-485 chip of the DMX512 signal amplification circuit, a first differential signal output by a forward output end of a differential signal of the first RS-485 chip and a second differential signal output by a reverse output end of the differential signal of the first RS-482 chip;
the judging module is used for judging whether the output signal of the DMX512 signal amplifying circuit is wrong or not according to the TTL signal, the first differential signal and the second differential signal;
the indication module is used for outputting an indication signal according to the judgment result, and the indication signal is used for controlling the indication module to indicate;
the judging module is further configured to judge whether the first differential signal is greater than a first threshold and whether the second differential signal is less than a second threshold when the TTL signal is a high level signal, and if not, determine that the DMX512 signal amplifying circuit outputs a signal error;
and judging whether the first differential signal is smaller than the second threshold value and whether the second differential signal is larger than the first threshold value when the TTL signal is a low-level signal, and if not, determining that the signal output by the DMX512 signal amplifying circuit is wrong.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of claim 7.
CN202110855713.6A 2021-07-28 2021-07-28 Detection equipment of DMX512 signal amplifying circuit and DMX512 signal amplifying circuit Active CN113556840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110855713.6A CN113556840B (en) 2021-07-28 2021-07-28 Detection equipment of DMX512 signal amplifying circuit and DMX512 signal amplifying circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110855713.6A CN113556840B (en) 2021-07-28 2021-07-28 Detection equipment of DMX512 signal amplifying circuit and DMX512 signal amplifying circuit

Publications (2)

Publication Number Publication Date
CN113556840A CN113556840A (en) 2021-10-26
CN113556840B true CN113556840B (en) 2023-08-29

Family

ID=78104703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110855713.6A Active CN113556840B (en) 2021-07-28 2021-07-28 Detection equipment of DMX512 signal amplifying circuit and DMX512 signal amplifying circuit

Country Status (1)

Country Link
CN (1) CN113556840B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114432141B (en) * 2021-12-31 2023-08-22 天津康健医疗器械有限公司 Acupuncture needle circuit and acupuncture needle state indication method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5331672A (en) * 1991-07-09 1994-07-19 General Datacomm, Inc. Automatic detector and selector of RS-232 or V.35 interface
CN1713518A (en) * 2004-06-22 2005-12-28 株式会社瑞萨科技 Electric component for high frequency power amplifier
CN202710697U (en) * 2012-07-11 2013-01-30 杨铁军 DMX (DataMultiplexer) 512 circuit detecting system
CN209895335U (en) * 2019-05-24 2020-01-03 青岛中加特变频电机有限公司 Multi-channel signal conversion circuit and module
CN111954340A (en) * 2020-08-10 2020-11-17 深圳市汇德科技有限公司 DMX512 signal amplifier and LED control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5331672A (en) * 1991-07-09 1994-07-19 General Datacomm, Inc. Automatic detector and selector of RS-232 or V.35 interface
CN1713518A (en) * 2004-06-22 2005-12-28 株式会社瑞萨科技 Electric component for high frequency power amplifier
CN202710697U (en) * 2012-07-11 2013-01-30 杨铁军 DMX (DataMultiplexer) 512 circuit detecting system
CN209895335U (en) * 2019-05-24 2020-01-03 青岛中加特变频电机有限公司 Multi-channel signal conversion circuit and module
CN111954340A (en) * 2020-08-10 2020-11-17 深圳市汇德科技有限公司 DMX512 signal amplifier and LED control system

Also Published As

Publication number Publication date
CN113556840A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
US10649033B2 (en) Methods for switch health determination
US8443130B2 (en) USB port detecting circuit
CN113556840B (en) Detection equipment of DMX512 signal amplifying circuit and DMX512 signal amplifying circuit
CN103605017A (en) Detection method of vehicle switch quantity signal
CN104467854A (en) Port state acquisition circuit and method
US20140211353A1 (en) Protection circuit for fan control chip
CN106370924A (en) High-voltage signal acquisition and protection circuit
CN110658481A (en) Grounding loss detection system
CN216350976U (en) Fault detection circuit, direct current power supply system and direct current equipment
CN103472407A (en) Dual-power state detection circuit, power supply system and dual-power state detection method
CN111999592A (en) Circuit and device for detecting position of disconnection point of high-voltage interlocking circuit
CN209104785U (en) A kind of current foldback circuit
US20160328946A1 (en) Alarm device and electronic device using the same
CN220709329U (en) Circuit for detecting load short circuit and open circuit by utilizing diode combination circuit and electronic equipment
CN102385018B (en) External equipment connection sensing circuit
CN220084961U (en) Voltage signal amplitude limiting judging device
CN108051649B (en) Detection circuit and detection method for externally configured resistor
CN114024562B (en) Low-voltage wide common-mode detection range receiver
CN111769829B (en) Signal conversion circuit supporting forward and reverse connection
CN213398823U (en) Circuit detection device
CN219247695U (en) Standard source device
US20120007566A1 (en) Charging circuit
CN219659426U (en) Overvoltage protection circuit, electronic equipment and vehicle
CN221137985U (en) Power management circuit and vehicle
CN117110857A (en) Detection circuit, detection system, control method, control device and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant