Detection device of DMX512 signal amplification circuit and DMX512 signal amplification circuit

文档序号:156635 发布日期:2021-10-26 浏览:21次 中文

阅读说明:本技术 Dmx512信号放大电路的检测设备和dmx512信号放大电路 (Detection device of DMX512 signal amplification circuit and DMX512 signal amplification circuit ) 是由 吴明亮 于 2021-07-28 设计创作,主要内容包括:本申请涉及一种DMX512信号放大电路的检测设备和DMX512信号放大电路。所述DMX512信号放大电路的检测设备包括控制器和指示模组,控制器分别与DMX512信号放大电路的第一RS-485芯片的TTL信号输入端、差分信号的正向输出端以及差分信号的反向输出端电连接,用于接收TTL信号、第一差分信号以及第二差分信号,并根据TTL信号、第一差分信号以及第二差分信号,判断DMX512信号放大电路芯片输出信号是否发生错误,并根据判断结果输出指示信号;指示模组根据指示信号进行指示,即指示模块在控制器的控制下,在DMX512信号放大电路输出信号错误时的状态与DMX512信号放大电路输出信号正确时的状态不同,以指示DMX512信号放大电路输出信号是否错误,从而提高电路的可靠性。(The application relates to a detection device of a DMX512 signal amplification circuit and the DMX512 signal amplification circuit. The detection device of the DMX512 signal amplification circuit comprises a controller and an indication module, wherein the controller is respectively electrically connected with a TTL signal input end of a first RS-485 chip of the DMX512 signal amplification 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 an output signal of the DMX512 signal amplification circuit chip 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 a judgment result; the indicating module indicates according to the indicating signal, namely the indicating module is under the control of the controller, and the state when the output signal of the DMX512 signal amplifying circuit is wrong is different from the state when the output signal of the DMX512 signal amplifying circuit is correct, so as to indicate whether the output signal of the DMX512 signal amplifying circuit is wrong or not, thereby improving the reliability of the circuit.)

1. A detection apparatus for a DMX512 signal amplification circuit, comprising:

the controller is respectively 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 of the first RS-485 chip and a reverse output end of the differential signal of the first RS-485 chip, and is used for receiving a TTL signal input to the TTL signal input end, a first differential signal output by the forward output end and a second differential signal output by the reverse output end, judging whether an 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 indicating signal according to a judgment result;

and the indicating module is connected with the controller and indicates according to the indicating signal.

2. The DMX512 signal amplification circuit test apparatus of claim 1, wherein the indication module comprises an indicator light.

3. The DMX512 signal amplification circuit test device of claim 1 wherein the controller is a micro-control unit.

4. A DMX512 signal amplification 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 differential signals 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 device of a DMX512 signal amplification circuit according to any of claims 1-3.

5. The DMX512 signal amplification circuit of claim 4, wherein the controller is a micro control unit, a supply voltage of the micro control unit is 3.3V, and a supply voltage of the first RS-485 chip is 5V.

6. The DMX512 signal amplification circuit of claim 5, wherein the detection device of the DMX512 signal amplification circuit further comprises:

the first voltage division module is respectively electrically connected with the forward output end and the controller, 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 respectively 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 an output signal of the DMX512 signal amplifying circuit is erroneous according to the TTL signal, the first divided-voltage signal, and the second divided-voltage signal, and output an indication signal according to a determination result.

7. A detection method of a DMX512 signal amplification circuit is characterized by comprising the following steps:

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;

and outputting an indication signal according to the judgment result, wherein the indication signal is used for controlling the indication module to indicate.

8. The method of claim 7, wherein the step of determining whether the output signal of the DMX512 signal amplification circuit is erroneous according to the TTL signal, the first differential signal, and the second differential signal comprises:

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 output signal of the DMX512 signal amplifying circuit is wrong;

if the TTL signal is a low level signal, determining whether the first differential signal is smaller than the second threshold and the second differential signal is greater than the first threshold, and if not, determining that the output signal of the DMX512 signal amplifying circuit is incorrect.

9. A detection device of a DMX512 signal amplification circuit is characterized by comprising:

an obtaining module, configured to obtain a TTL signal received at 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 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;

and the indicating module is used for outputting an indicating signal according to the judgment result, and the indicating signal is used for controlling the indicating module to indicate.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 7 to 8.

Technical Field

The application relates to the technical field of RS-485 chips, in particular to a detection device of a DMX512 signal amplification circuit and the DMX512 signal amplification circuit.

Background

The DMX512 protocol is a data dimming protocol proposed by the united states stage light association (USITT) which provides a protocol standard for communication between light controllers and light fixtures, and the proposed protocol provides a good standard for controlling light fixtures using digital signals.

The DMX512 signal amplifying circuit is mainly used for shaping a weak RS-485 signal and reducing the weak RS-485 signal into a 485 differential signal with a steep edge, and the conventional analog circuit is used for realizing the functions of the conventional signal amplifying circuit at present and cannot indicate whether an error occurs in the output of the conventional signal amplifying circuit, so that the conventional DMX512 signal amplifying circuit is low in reliability.

Disclosure of Invention

In view of the above, it is necessary to provide a detection device for a DMX512 signal amplification circuit and a DMX512 signal amplification circuit, which can improve the reliability of the DMX512 signal amplification circuit.

In a first aspect, a detection device for a DMX512 signal amplification circuit is provided, which includes:

the controller is respectively electrically connected with a TTL level input end of a first RS-485 chip, a TTL level input end of the first RS-485 chip, a forward output end of a differential signal of the first RS-485 chip and a reverse output end of the differential signal of the first RS-485 chip of the DMX512 signal amplifying circuit, and is used for receiving 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 or not according to the TTL signal, the first differential signal and the second differential signal, and outputting an indicating signal according to a judgment result;

and the indicating module is connected with the controller and indicates according to the indicating signal.

In one embodiment, the indication module comprises an indication lamp.

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, and the second RS-485 chip is used for receiving a third differential signal and a fourth differential signal and converting differential signals 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 amplification circuit as described 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 micro 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 amplification circuit further includes:

the first voltage division module is respectively electrically connected with the forward output end and the controller, and is used for carrying out voltage division processing on a first differential signal and outputting a first voltage division signal to the controller;

the second voltage division module is respectively 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 erroneous according to the TTL signal, the first divided signal, and the second divided 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 erroneous according to the TTL signal, the first differential signal, and the second differential signal includes:

if the TTL signal is a high level signal, determining whether the first differential signal is greater than a first threshold and the second differential signal is less than a second threshold, and if not, determining that the output signal of the DMX512 signal amplifying circuit is erroneous;

if the TTL signal is a low level signal, determining whether the first differential signal is smaller than a second threshold and the second differential signal is greater than the first threshold, and if not, determining that the output signal of the DMX512 signal amplifying circuit is incorrect.

In a fourth aspect, a detection apparatus for a DMX512 signal amplification 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 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 the indicating module is used for outputting an indicating signal according to the judgment result, and the indicating signal is used for controlling the indicating 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 the method of detecting a DMX512 signal amplification circuit as described in any of the third aspects above.

The detection device of the DMX512 signal amplification circuit comprises a controller and an indication module, wherein the controller is respectively electrically connected with a TTL signal input end of a first RS-485 chip of the DMX512 signal amplification 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 end, the first differential signal output by the forward output end and the second differential signal output by the reverse output end, judging whether an output signal of the DMX512 signal amplification circuit chip 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 a judgment result; the indicating module indicates according to the indicating signal, namely the indicating module is under the control of the controller, and the state when the output signal of the DMX512 signal amplifying circuit is wrong is different from the state when the output signal of the DMX512 signal amplifying circuit is correct, so as to indicate whether the output signal of the DMX512 signal amplifying circuit is wrong or not, thereby improving the reliability of the circuit.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present application, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a schematic diagram of a DMX512 signal amplifying circuit;

FIG. 2 is a schematic diagram of a DMX512 signal amplification circuit according to an embodiment;

FIG. 3 is a schematic diagram of a DMX512 signal amplifying circuit according to another embodiment;

FIG. 4 is a schematic flow chart illustrating a method for detecting a DMX512 signal amplification circuit according to an embodiment;

FIG. 5 is a flowchart illustrating the 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 showing a detection device of the DMX512 signal amplification circuit according to the embodiment.

Detailed Description

To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth 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 present 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, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.

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 is understood to mean "electrical connection", "communication connection", or the like, if there is a transfer of electrical signals or data between the connected objects.

As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.

As described in the background, the current DMX512 signal amplifying circuit is mainly used for shaping a weak RS-485 signal and reducing the signal to a 485 differential signal with steep edges. Next, a DMX512 signal amplification circuit according to an embodiment of the present application will be briefly described.

As shown in fig. 1, the DMX512 signal amplification 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, and the second RS-485 chip 112 is configured to receive a third differential signal and a fourth differential signal, and convert a differential signal pair formed by the third differential signal and the fourth differential signal into a corresponding TTL signal. It should be noted that the RS-485 chip includes a TTL signal output terminal (the RO terminal shown in fig. 1), a TTL signal input terminal (the DI terminal shown in fig. 1), a forward terminal (the a terminal shown in fig. 1) of a differential signal, and a reverse terminal (the B terminal shown in fig. 1) of the differential signal. Optionally, the third differential signal is input to a positive end of the differential signal of the second RS-485 chip, and the fourth differential signal is input to a negative end 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 typically ± 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. And when the difference between the third differential signal and the fourth differential signal is less 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 R1, a resistor R2, and a transient diode (TVS tube) D1. It should be noted that the resistor R1 and the resistor R2 are used to fix a level in the case of no signal input, so that the output of the second RS-485 chip is fixed to 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 the surge voltage of the 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. Optionally, 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 terminal of the isolation circuit 120. The first RS-485 chip 132 is configured to convert the TTL signals into first differential signals and second differential signals corresponding to the TTL signals. The TTL signal is input to a TTL signal input end of the first RS-485 chip, a positive end of a differential signal of the first RS-485 chip outputs a first differential signal, and a 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 the TVS tube D2 may be used to suppress a surge voltage 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, converts the differential signal pair formed by the third differential signal and the fourth differential signal into the TTL signal, inputs the TTL signal to the signal output circuit through the isolation circuit, and converts the TTL signal into the first differential signal and the second differential signal, so that the DMX512 signal amplifying circuit shapes 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.

As can be seen from the above description, although the DMX512 signal amplifying circuit can shape 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 DMX512 signal amplifying circuit cannot indicate whether an error occurs in the output signal thereof at present.

In view of this, the embodiments of the present application provide a DMX512 signal amplifying circuit, which can indicate whether a signal of the DMX512 signal amplifying circuit is erroneous, 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: signal input circuit 110, isolation circuit 120, signal output circuit 130, and detection device 210 of the DMX512 signal amplification circuit.

The descriptions of the signal input circuit 110, the isolation circuit 120 and the signal output circuit 130 refer to the above embodiments, and are not repeated herein.

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 end of the differential signal of the first RS-485 chip, and the second protection element is electrically connected to the reverse output end 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-recovery fuse F1, and the second protection element is a self-recovery fuse F2. The first protection element and the second protection element provided by the above embodiment can be used for protecting the DMX512 signal amplification circuit, and avoiding the DMX512 signal amplification circuit from being burned out due to external miswiring or excessive external voltage. When a circuit connected with the output end of the DMX512 signal amplifying circuit is in short circuit or overload, the polymer resin is melted by heat generated by large current flowing through the self-recovery fuse, 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 eliminated, the self-recovery fuse is cooled and crystallized again, the volume shrinks, the conductive particles form a conductive path again, and the self-recovery fuse is recovered to be in a low-resistance state, so that the DMX512 signal amplifying circuit is protected without manual replacement.

Next, a detection device of the DMX512 signal amplification circuit provided in the embodiment of the present application will be explained.

With continued reference to fig. 2, the detection device 210 of the DMX512 signal amplification circuit includes a controller 212 and an indication module 214. Specifically, the controller 212 is electrically connected to a TTL signal input terminal of a first RS-485 chip of the DMX512 signal amplifying circuit, a forward output terminal of a differential signal of the first RS-485 chip, and a reverse output terminal 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 from the forward output end of the first RS-485 chip, and a second differential signal output from the reverse output end of the first RS-485 chip, determine whether an output signal of the DMX512 signal amplifying circuit is erroneous 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 performs indication 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, it is proved that the output signal of the DMX512 signal amplifying circuit is incorrect. 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 carries out indication according to the indication signal, so that the DMX512 signal amplification circuit is indicated to output signal errors, and the reliability of the DMX512 signal amplification circuit is improved.

The detection device of the DMX512 signal amplification circuit provided in the above 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 amplification circuit, a forward output end of a differential signal, and a reverse output end of the differential signal, respectively, and is configured to receive the TTL signal input to the TTL signal input end, a first differential signal output from the forward output end, and a second differential signal output from the reverse output end, and determine, according to the TTL signal, the first differential signal, and the second differential signal, whether an error occurs in an output signal of the DMX512 signal amplification circuit chip, and output an indication signal according to a determination result; the indicating module indicates according to the indicating signal, namely the indicating module is under the control of the controller, and the state when the output signal of the DMX512 signal amplifying circuit is wrong is different from the state when the output signal of the DMX512 signal amplifying circuit is correct, so as to indicate whether the output signal of the DMX512 signal amplifying circuit is wrong or not, thereby improving the reliability of the circuit.

In an alternative embodiment of the present application, the controller provided in the above embodiment is a Micro Control Unit (MCU). Optionally, the indication module may include an indication lamp. In the embodiment, the Micro Control Unit (MCU) is used as the controller to not load the output circuit of the DMX512 signal amplification circuit, the MCU is used to monitor the output signal of the DMX512 signal amplification circuit in real time and output the indication signal according to the output signal of the DMX512 signal amplification circuit to control the indicator light, and the control signal (i.e., the indication signal) of the indicator light is a digital signal, so that the state of the output signal of the DMX512 signal amplification circuit can be observed more conveniently compared with an analog signal.

Referring to fig. 3, a schematic structural diagram of a DMX512 signal amplifying circuit according to an embodiment of the present disclosure is shown, where the DMX512 signal amplifying circuit may include: signal input circuit 110, isolation circuit 120, signal output circuit 130, and detection device 210 of the DMX512 signal amplification circuit. The descriptions of the signal input circuit 110, the isolation circuit 120, the signal output circuit 130, and the detection device 210 of the DMX512 signal amplification circuit refer to the above embodiments, and are not repeated herein. The controller 212 of the detection device 210 of the DMX512 signal amplification circuit is an MCU with a supply voltage of 3.3V, and the first RS-485 chip 132 is an RS-485 chip with a supply voltage of 5V. In 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 amplification circuit can be improved, and the MCU with the voltage of 3.3V is used as the controller, so that the loss of the DMX512 signal amplification circuit can be reduced. As shown in fig. 3, the supply voltage of the second RS-485 chip is optionally 5V. Optionally, the power supply voltage of the magnetic isolation chip is 5V.

In an optional embodiment of the present application, the detection apparatus of the DMX512 signal amplification circuit provided in the foregoing embodiment may further include a first voltage division module 310 and a second voltage division module 320. Specifically, the first voltage division module 310 is electrically connected to the forward output end of the differential signal of the first RS-485 chip 132 and the controller 212, respectively, and is configured to perform voltage division processing on the first differential signal and output the first voltage division signal to the controller 212. The second voltage dividing module 320 is electrically connected to the inverted output terminal of the differential signal of the first RS-485 chip 132 and the controller 212, and is configured to divide the voltage of the second differential signal and output the second voltage divided 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 erroneous according to the TTL signal, the first divided signal, and the second divided signal, and output an indication signal according to the determination result.

It is understood that the voltage of the first divided-voltage signal is smaller than the voltage of the first differential signal, and the voltage of the second divided-voltage signal is smaller than the voltage of the second differential signal. With continued reference to fig. 3, MCU212 may alternatively be an MCU of the AT32F421 series. The first voltage division module 310 is electrically connected with a first analog-to-digital conversion terminal (ADC1 terminal) of the MCU212, the second voltage division module 320 is electrically connected with a second analog-to-digital conversion terminal (ADC2) of the MCU212, a TTL signal input terminal of the first RS-485 chip 132 is electrically connected with a receive data terminal (RXD terminal) of the MCU212, and a general output terminal (GPIO terminal) of the MCU212 is electrically connected with 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 reference to fig. 3, the first voltage divider module 310 may optionally 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 divided voltage signal. Optionally, the other end (the 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 end electrically connected to the controller) of the resistor R4 is used for being connected to the ground. Optionally, the second voltage dividing 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 divided voltage signal. Optionally, the other end (the 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 end electrically connected to the controller) of the resistor R6 is used for being connected to the ground.

In an optional embodiment of the present application, a controller of a detection device of the DMX512 signal amplification circuit is an MCU with a supply voltage of 3.3V, and the first RS-485 chip is an RS-485 chip with a supply voltage of 5V. Optionally, the ratio of the resistance of the resistor R3 to the resistance of the resistor R4 isOptionally, the ratio of the resistance of the resistor R5 to the resistance of the resistor R6 isOptionally, the resistance of the resistor R3 is 1K Ω, and the resistance of the resistor R4 is 2K Ω. Alternatively to this, the first and second parts may,the resistance of the resistor R5 is 1K omega, and the resistance of the resistor R6 is 2K omega. Optionally, with continued reference to fig. 3, the indication module 330 includes an indication lamp L1 and a resistor R7. Specifically, one end of the indicator lamp L1 is electrically connected to the controller 212, and the other end of the indicator lamp L1 is grounded via a resistor R7. Optionally, the resistance of the resistor R7 is 1K Ω.

It is understood that the first voltage dividing module and the second voltage dividing module may also take other forms, not limited to the forms mentioned in the above embodiments, as long as they can achieve the voltage division so that the voltage received by the controller does not impair the function of the controller.

Please refer to fig. 4, which shows a flowchart of a detection method of a DMX512 signal amplifying circuit according to an embodiment of the present application. As shown in fig. 4, the detection method of the DMX512 signal amplifying circuit may include: s402 to S406.

S402: the method comprises the steps of obtaining a TTL signal received by a TTL signal input end of a first RS-485 chip of a 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 details of the DMX512 signal amplifying circuit and the indicating module refer to the above embodiments, and are not repeated 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 erroneous 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, 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 is judged, and if not, it is determined that the output signal of the DMX512 signal amplifying circuit is wrong. If the TTL signal is a low-level signal, 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 or not is judged, and if not, it is determined that the output signal of the DMX512 signal amplifying circuit is wrong.

Referring to fig. 5, an exemplary technical process of determining whether the output signal of the DMX512 signal amplifying circuit is erroneous according to the TTL signal, the first differential signal, and the second differential signal is shown in fig. 5, where the technical process may include: s502 to S506.

S502: and judging whether the TTL signal is a high level signal or a low level signal.

Judging that a TTL signal input end of a first RS-485 chip of the DMX512 signal amplifying circuit is logic 1 or logic 0, and when the TTL signal is logic 1, the TTL signal is a high level signal; when the TTL signal is logic 0, the TTL signal is a low level signal.

S504: if the TTL signal is a high-level signal, 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 is judged, and if not, it is determined that the output signal of 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, 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 or not is judged, and if not, it is determined that the output signal of the DMX512 signal amplifying circuit is wrong.

Please refer to fig. 6, which illustrates another technical process of determining whether the output signal of the DMX512 signal amplifying circuit is erroneous according to the TTL signal, the first differential signal, and the second differential signal according to the embodiment of the present application. The technical process is applied to a DMX512 signal amplifying circuit shown in FIG. 3. Specifically, the controller is an MCU with a power supply voltage of 3.3V, the power supply voltage of the first RS-485 chip is 5V, R3 ═ R5 ═ 1K Ω, and R4 ═ R6 ═ 2K Ω. The indicating module comprises an indicating lamp. As shown in fig. 6, the detection method of the DMX512 signal amplifying circuit may include: s502 and S602 to S608.

S502: and judging whether the TTL signal is a high level signal or a low level signal.

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, performing S606; if not, go to S608.

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, performing S606; if not, go to S608.

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 various steps in the flowcharts of fig. 4-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 4-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the 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 determination 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 erroneous 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 perform indication.

For specific limitations of the detection device of the DMX512 signal amplification circuit, reference may be made to the above limitations on the detection method of the DMX512 signal amplification circuit, and details are not repeated here. All or part of each module in the detection device of the DMX512 signal amplification circuit can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner 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 in the above-described detection method embodiments of the DMX512 signal amplification circuit.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

In the description herein, references to the description of "some embodiments," "other embodiments," "desired embodiments," etc., mean 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 invention. In this specification, a schematic description of the above terminology may not necessarily refer to the same embodiment or example.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种用于近电预警的光源控制电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!