Signal communication module with multipath signal input and multiple signal output
By designing the signal communication module with a variety of signal output output by designing multi -way signals, the problem of wiring complexity and signal transmission unstable caused by different types of signal types caused by sensor output signals, realizing the streamlined collection and multiple outputs of the signal, reducing costs and increasing costs and increasing The accuracy of signal transmission.
Patent Information
- Application Number
- CN202420878640.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2034-04-25
AI Technical Summary
In the prior art, the output signal types of various types of sensors are different, resulting in cumbersome wiring and excessive interfaces, which increases system complexity and maintenance costs. At the same time, analog signals are easily disturbed during transmission, resulting in a decrease in signal accuracy.
Design a multi -channel signal input signal communication module with multiple signal output, including input control circuit and output control circuit. The multi -way analog and switching signal is collected through the total input interface. Interfaces (such as RS232, RS485, CAN, USB) output signals to achieve stability and long -distance transmission of signals.
The streamlined collection and multiple signal outputs of multi -way signals are implemented, reducing the cost of wiring, improving the stability of the system and the transmission accuracy of the signal, and facilitating subsequent signal processing.
Smart Images

Figure CN222423902U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of communication, in particular to a signal communication module with multi-channel signal input and multi-signal output. Background Art
[0002] With the rapid advancement of science and technology, our daily life and working environment are undergoing unprecedented changes. The concepts of automation, informatization, digitization, and intelligence have moved from theory to practice, profoundly changing all aspects of our work and life. In the practical application of these concepts, the status of sensors has become increasingly important.
[0003] Sensors, as the "nerve endings" of the modern information society, are playing a vital role in various fields. They can sense and convert various physical quantities such as temperature, humidity, pressure, light, etc. in real time, providing accurate data support for automated control and decision-making. Whether it is industrial production, environmental monitoring, smart home, or medical health, the application of sensors is everywhere.
[0004] However, in practical applications, we also face some challenges. A complex project often requires multiple sensors of different types to work together, and the output signal types of these sensors are different, including switch signals, analog signals, and digital signals. This leads to cumbersome wiring and too many interfaces, which not only increases the complexity of the system, but also increases maintenance costs.
[0005] In addition, analog output signals are susceptible to various interferences during transmission, such as electromagnetic interference, temperature drift, etc., which leads to a decrease in signal accuracy. Especially in long-distance transmission, the attenuation and distortion of analog signals are more prominent, which limits the use of analog sensors in some special application scenarios.
[0006] To solve these problems, we need to constantly explore new technologies and methods. Utility Model Content
[0007] In view of the problems existing in the prior art, the utility model provides a signal communication module with multi-channel signal input and multiple signal output, comprising:
[0008] Input control circuit, including:
[0009] An input circuit, wherein a signal input end of the input circuit collects multi-channel analog signals and multi-channel switch signals input by external sensors through a total input interface, and a signal output end of the input circuit is connected to a signal receiving end of a single-chip microcomputer circuit;
[0010] A power supply circuit, wherein the power supply circuit is connected to an external power supply, and the power supply end of the power supply circuit is respectively connected to the input circuit and the working power supply end of the single-chip circuit;
[0011] Output control circuit, including:
[0012] a first output circuit, wherein an internal signal transceiver end of the first output circuit is connected to a first signal transceiver end of the single-chip circuit, and an external output end of the first output circuit is connected to an external signal receiving device through a first output interface;
[0013] a second output circuit, wherein an internal signal transceiver end of the second output circuit is connected to a second signal transceiver end of the single-chip circuit, and an external output end of the second output circuit is connected to an external signal receiving device through a second output interface;
[0014] The third output circuit has an internal signal transceiver end connected to the third signal transceiver end of the single-chip circuit, and an external output end of the third output circuit is connected to an external signal receiving device through a third output interface.
[0015] Preferably, the input circuit includes a multi-channel analog input circuit and a multi-channel switch input circuit, and the signal input end of the single-chip circuit includes a plurality of analog signal input ends and a plurality of switch signal input ends;
[0016] The signal input end of each analog input circuit is connected to the analog input pin of the total input interface, and the signal output end of each analog input circuit is correspondingly connected to one of the analog signal input ends of the single-chip circuit;
[0017] The signal input end of each switch input circuit is connected to the switch input pin of the total input interface, and the signal output end of each switch input circuit is correspondingly connected to one of the switch signal input ends of the single-chip circuit.
[0018] Preferably, the analog input circuit comprises:
[0019] an operational amplifier, wherein the second pin of the operational amplifier is connected to the first pin, the third pin of the operational amplifier is connected to one end of a first capacitor and one end of a first resistor, the other end of the first capacitor is grounded, and the other end of the first resistor serves as a signal input end of the analog input circuit;
[0020] a first diode, wherein an anode of the first diode is grounded, a cathode of the first diode is connected to an anode of a second diode and one end of the first resistor, and a pin of the second diode is connected to a power supply end of the power supply circuit;
[0021] A second resistor, one end of the second resistor is connected to the first pin of the operational amplifier, the other end of the second resistor is connected to the analog signal input end of the single-chip circuit and one end of the third resistor, and the other end of the third resistor is grounded.
[0022] Preferably, the switch input circuit includes:
[0023] A fourth resistor, one end of the fourth resistor serves as the signal input end of the switch input circuit, the other end of the fourth resistor is connected to the switch signal input end of the single-chip circuit, the other end of the fourth resistor is also connected to one end of the fifth resistor and the cathode of the third diode and the anode of the fourth diode, the other end of the fifth resistor is connected to the anode of the third diode and grounded, and the cathode of the fourth diode is connected to the power supply end of the power supply circuit.
[0024] Preferably, the power supply end of the power supply circuit includes a first power supply end and a second power supply end, and the power supply circuit includes:
[0025] a fifth diode, wherein the anode of the fifth diode is connected to the power supply, the cathode of the fifth diode is connected to one end of the first resettable fuse, the other end of the first resettable fuse is respectively connected to the cathode of the transient voltage suppression diode and the seventh pin of the DC step-down chip, the ninth pin of the DC step-down chip is connected to the sixth pin of the DC step-down chip and the anode of the transient voltage suppression diode, and a first polarized capacitor, a second capacitor, a third capacitor and a fourth capacitor are connected in parallel between the seventh pin and the ninth pin of the DC step-down chip;
[0026] a fifth capacitor, one end of the fifth capacitor being connected to the first pin of the DC step-down chip, the other end of the fifth capacitor being respectively connected to the eighth pin of the DC step-down chip, the cathode of the Schottky diode and one end of the first inductor, the other end of the first inductor being connected to one end of the sixth resistor, the positive electrode of the second polarized capacitor and the positive electrode of the third polarized capacitor, the other end of the sixth resistor being connected to one end of the seventh resistor and the fourth pin of the DC step-down chip, the other end of the seventh resistor being respectively connected to the negative electrode of the second polarized capacitor and the negative electrode of the third polarized capacitor and grounded;
[0027] A linear regulator, wherein a first pin of the linear regulator is grounded, a second pin of the linear regulator is connected to the other end of the first inductor and one end of a sixth capacitor, the other end of the sixth capacitor is grounded, and a third pin of the linear regulator is connected to one end of a seventh capacitor, the other end of the seventh capacitor is grounded;
[0028] The second pin of the linear regulator serves as the first power supply end, and the third pin of the linear regulator serves as the second power supply end.
[0029] Preferably, the first output circuit includes an RS232 interface circuit or a first RS485 interface circuit, the internal signal transceiver end of the first output circuit includes an internal signal sending end and an internal signal receiving end, and the first signal transceiver end includes a first signal receiving end and a first signal sending end;
[0030] The RS232 interface circuit comprises:
[0031] An RS232 interface chip, wherein the eleventh pin of the RS232 interface chip is connected to the first signal receiving end as the internal signal sending end, the twelfth pin of the RS232 interface chip is connected to the cathode of the sixth diode, and the anode of the sixth diode is connected to the first signal sending end as the internal signal receiving end;
[0032] a fourth polarized capacitor, wherein a positive electrode of the fourth polarized capacitor is connected to the first pin of the RS232 interface chip, and a negative electrode of the fourth polarized capacitor is connected to the third pin of the RS232 interface chip;
[0033] a fifth polarized capacitor, wherein a positive electrode of the fifth polarized capacitor is connected to a fourth pin of the RS232 interface chip, and a negative electrode of the fifth polarized capacitor is connected to a fifth pin of the RS232 interface chip;
[0034] a sixth polarized capacitor, wherein a positive electrode of the sixth polarized capacitor is connected to the second pin of the RS232 interface chip, and a negative electrode of the sixth polarized capacitor is connected to the power supply end of the power supply circuit;
[0035] a seventh polarized capacitor, wherein a positive electrode of the seventh polarized capacitor is grounded, and a negative electrode of the seventh polarized capacitor is connected to a sixth pin of the RS232 interface chip;
[0036] an eighth polarized capacitor, wherein a positive electrode of the eighth polarized capacitor is respectively connected to the sixteenth pin of the RS232 interface chip and the power supply end of the power supply circuit, and a negative electrode of the eighth polarized capacitor is grounded;
[0037] A second resettable fuse and a third resettable fuse, one end of the second resettable fuse is connected to the fourteenth pin of the RS232 interface chip and one end of the first bidirectional breakdown diode, one end of the third resettable fuse is respectively connected to the thirteenth pin of the RS232 interface chip and one end of the second bidirectional breakdown diode, and the other end of the second bidirectional diode is connected to the other end of the first bidirectional breakdown diode;
[0038] The other end of the second resettable fuse, the other end of the third resettable fuse and the other end of the first bidirectional diode are connected to the third pin, the second pin and the fifth pin of the first output interface as the external output end respectively;
[0039] The first RS485 interface circuit comprises:
[0040] A first RS485 interface chip, a fourth pin of the first RS485 interface chip being connected to the first signal receiving end as the internal signal transmitting end, a first pin of the first RS485 interface chip being connected to the cathode of a seventh diode, an anode of the seventh diode being connected to the first signal transmitting end as the internal signal receiving end, and a fifth pin of the first RS485 interface chip being grounded;
[0041] an eighth resistor, one end of the eighth resistor being connected to the second and third pins of the first RS485 interface chip, and the other end of the eighth resistor being connected to the power supply end of the power supply circuit;
[0042] an eighth capacitor, one end of the eighth capacitor being connected to the eighth pin of the first RS485 interface chip and the power supply end of the power supply circuit, and the other end of the eighth capacitor being grounded;
[0043] A ninth resistor, one end of the ninth resistor is connected to the sixth pin of the first RS485 interface chip and one end of the tenth resistor, the other end of the tenth resistor is connected to the power supply end of the power supply circuit, one end of the eleventh resistor is connected to the other end of the ninth resistor and the seventh pin of the first RS485 interface chip, and the other end of the eleventh resistor is grounded;
[0044] A fourth resettable fuse and a fifth resettable fuse, one end of the fourth resettable fuse is connected to the sixth pin of the first RS485 interface chip and one end of the third bidirectional breakdown diode, one end of the fifth resettable fuse is respectively connected to the seventh pin of the first RS485 interface chip and one end of the fourth bidirectional breakdown diode, and the other end of the third bidirectional diode is connected to the other end of the fourth bidirectional breakdown diode;
[0045] The other end of the fourth resettable fuse and the other end of the fifth resettable fuse serve as the external output end of the first output circuit.
[0046] Preferably, the second output circuit includes an RS422 interface circuit or a second RS485 interface circuit, the internal signal transceiver end of the second output circuit includes an internal signal sending end and an internal signal receiving end, and the second signal transceiver end includes a second signal receiving end and a second signal sending end;
[0047] The second RS485 interface circuit comprises:
[0048] A second RS485 interface chip, a fourth pin of the second RS485 interface chip being connected to the second signal receiving end as the internal signal transmitting end, a first pin of the second RS485 interface chip being connected to the cathode of an eighth diode, an anode of the eighth diode being connected to the second signal transmitting end as the internal signal receiving end, and a fifth pin of the second RS485 interface chip being grounded;
[0049] A twelfth resistor, one end of the twelfth resistor is connected to the second and third pins of the second RS485 interface chip, and the other end of the twelfth resistor is connected to the power supply end of the power supply circuit;
[0050] a ninth capacitor, one end of which is connected to the eighth pin of the second RS485 interface chip and the power supply end of the power supply circuit, and the other end of which is grounded;
[0051] A thirteenth resistor, one end of the thirteenth resistor is connected to the sixth pin of the second RS485 interface chip and one end of the fourteenth resistor, the other end of the fourteenth resistor is connected to the power supply end of the power supply circuit, one end of the fifteenth resistor is connected to the other end of the thirteenth resistor and the seventh pin of the second RS485 interface chip, and the other end of the fifteenth resistor is grounded;
[0052] A sixth resettable fuse and a seventh resettable fuse, one end of the sixth resettable fuse is connected to the sixth pin of the second RS485 interface chip and one end of the fifth bidirectional breakdown diode, one end of the seventh resettable fuse is respectively connected to the seventh pin of the second RS485 interface chip and one end of the sixth bidirectional breakdown diode, and the other end of the fifth bidirectional diode is connected to the other end of the sixth bidirectional breakdown diode;
[0053] The other end of the sixth resettable fuse and the other end of the seventh resettable fuse serve as the external output end of the second output circuit;
[0054] The RS422 interface circuit comprises:
[0055] A third RS485 interface chip, wherein a first pin of the third RS485 interface chip is connected to a cathode of a ninth diode, an anode of the ninth diode is connected to the second signal transmitting end as the internal signal receiving end, and a fifth pin of the third RS485 interface chip is grounded;
[0056] a sixteenth resistor, one end of the sixteenth resistor being connected to the third pin of the third RS485 interface chip, and the other end of the sixteenth resistor being connected to the power supply end of the power supply circuit;
[0057] A tenth capacitor, one end of the tenth capacitor is connected to the eighth pin of the third RS485 interface chip and the power supply end of the power supply circuit, and the other end of the tenth capacitor is grounded;
[0058] A seventeenth resistor, one end of the seventeenth resistor is connected to the sixth pin of the third RS485 interface chip and one end of the eighteenth resistor, the other end of the eighteenth resistor is connected to the power supply end of the power supply circuit, one end of the nineteenth resistor is connected to the other end of the seventeenth resistor and the seventh pin of the third RS485 interface chip, and the other end of the nineteenth resistor is grounded;
[0059] An eighth resettable fuse and a ninth resettable fuse, one end of the eighth resettable fuse is connected to the sixth pin of the third RS485 interface chip and one end of the seventh bidirectional breakdown diode, one end of the ninth resettable fuse is respectively connected to the seventh pin of the third RS485 interface chip and one end of the eighth bidirectional breakdown diode, and the other end of the seventh bidirectional breakdown diode is connected to the other end of the eighth bidirectional breakdown diode;
[0060] The other end of the eighth resettable fuse and the other end of the ninth resettable fuse serve as the external output end of the second output circuit.
[0061] Preferably, the second output interface is an RJ45 connector corresponding to the second RS485 interface circuit, the other end of the sixth resettable fuse is connected to the fourth pin of the RJ45 connector, the other end of the seventh resettable fuse is connected to the fifth pin of the RJ45 connector, and the sixth pin of the RJ45 connector is grounded;
[0062] Or the second output interface is a plug-in terminal corresponding to the RS422 interface circuit, the other end of the eighth resettable fuse is connected to the first pin of the plug-in terminal, and the other end of the ninth resettable fuse is connected to the second pin of the plug-in terminal.
[0063] Preferably, the third output circuit includes a CAN output circuit or a USB output circuit, the internal signal transceiver end of the third output circuit includes an internal signal sending end and an internal signal receiving end, and the third signal transceiver end includes a third signal receiving end and a third signal sending end;
[0064] The CAN output circuit comprises:
[0065] A CAN transceiver, wherein the first pin of the CAN transceiver is connected to the third signal receiving end as the internal signal sending end of the third output circuit, the fourth pin of the CAN transceiver is connected to the third signal sending end as the internal signal receiving end, the third pin of the CAN transceiver is connected to the power supply end of the power supply circuit and one end of an eleventh capacitor, and the other end of the eleventh capacitor is grounded;
[0066] A twentieth resistor, one end of the twentieth resistor is connected to the eighth pin of the CAN transceiver, and the other end of the twentieth resistor is connected to the second pin of the CAN transceiver and is grounded;
[0067] a tenth resettable fuse and an eleventh resettable fuse, wherein one end of the tenth resettable fuse is connected to the seventh pin of the CAN transceiver, one end of the ninth bidirectional breakdown diode and one end of the twelfth capacitor, and the other end of the twelfth capacitor is grounded; one end of the eleventh resettable fuse is respectively connected to the sixth pin of the CAN transceiver, one end of the tenth bidirectional breakdown diode and one end of the thirteenth capacitor, and the other end of the thirteenth capacitor is grounded; and the other end of the ninth bidirectional breakdown diode is connected to the other end of the tenth bidirectional breakdown diode;
[0068] The other end of the tenth resettable fuse and the other end of the eleventh resettable fuse serve as the external output end of the third output circuit;
[0069] The USB output circuit comprises:
[0070] An electrostatic surge protector, wherein the fifth pin of the electrostatic surge protector is connected to one end of a second inductor, the other end of the second inductor is respectively connected to one end of a fourteenth capacitor, one end of a fifteenth capacitor and a power supply end of a power supply circuit, and the other ends of the fourteenth capacitor and the fifteenth capacitor are grounded;
[0071] A common mode filter, wherein the first pin of the common mode filter is connected to the third signal sending end as an internal signal receiving end of the third output circuit, the fourth pin of the common mode filter is connected to the third signal receiving end as an internal signal sending end of the third output circuit, the second pin of the common mode filter is connected to the third pin of the electrostatic surge protector, and the third pin of the common mode filter is connected to the first pin of the electrostatic surge protector;
[0072] The fourth pin, the fifth pin and the sixth pin of the common mode filter serve as external output terminals of the third output circuit.
[0073] Preferably, the third output interface is a plug-in pin corresponding to the CAN output circuit, a first pin of the plug-in pin is connected to the other end of the tenth resettable fuse through a twenty-first resistor, and a second pin of the plug-in pin is connected to the other end of the eleventh resettable fuse;
[0074] Or the third output interface is a USB connector corresponding to the USB output circuit, the first pin of the USB connector is connected to one end of a twelfth resettable fuse, the other end of the twelfth resettable fuse is connected to one end of a sixteenth capacitor and the fifth pin of the electrostatic surge protector, the third pin of the USB connector is connected to the sixth pin of the electrostatic surge protector, the second pin of the USB connector is connected to the fourth pin of the electrostatic surge protector, and the fourth pin of the USB connector is connected to the fifth and sixth pins of the USB connector through a third inductor and is grounded.
[0075] The above technical solution has the following advantages or beneficial effects:
[0076] An input circuit is set up to collect analog signals and switch signals from multiple sensors, which can simplify the wiring of multiple sensors in actual application and reduce wiring costs. In addition, multiple output circuits are set up to convert them into multiple serial signal outputs, thereby achieving more stable and longer-distance transmission, and facilitating subsequent further processing of the signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 This is a structural schematic diagram of a signal communication module with multiple signal inputs and multiple signal outputs in a preferred embodiment of the utility model;
[0078] Figure 2 This is a pin diagram of the main input interface in a preferred embodiment of the utility model;
[0079] Figure 3 In a preferred embodiment of the utility model, the pin diagram of the single-chip microcomputer chip of the single-chip microcomputer circuit;
[0080] Figure 4 A circuit diagram of an analog input circuit in a preferred embodiment of the utility model;
[0081] Figure 5 The circuit diagram of the switch input circuit in the preferred embodiment of the utility model;
[0082] Figure 6 A circuit diagram of a power supply circuit in a preferred embodiment of the present utility model;
[0083] Figure 7 The circuit diagram of the RS232 output circuit in the preferred embodiment of the utility model;
[0084] Figure 8 In a preferred embodiment of the utility model, a circuit diagram of a first RS485 output circuit;
[0085] Fig. 9 This is a pin diagram of the first output interface in a preferred embodiment of the utility model;
[0086] Fig.10 In a preferred embodiment of the utility model, a circuit diagram of a second RS485 output circuit;
[0087] Fig.11 The circuit diagram of the second RS422 output circuit in the preferred embodiment of the utility model;
[0088] Fig.12 In a preferred embodiment of the present utility model, the pin diagram of the RJ45 connector;
[0089] Fig.13 This is a pin diagram of a pluggable terminal block in a preferred embodiment of the utility model;
[0090] Fig.14 A circuit diagram of a CAN output circuit in a preferred embodiment of the utility model;
[0091] Fig.15 A circuit diagram of a USB output circuit in a preferred embodiment of the present utility model;
[0092] Fig.16 This is a pin diagram of a USB connector in a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0093] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The present invention is not limited to the implementation mode, and other implementation modes may also fall within the scope of the present invention as long as they meet the purpose of the present invention.
[0094] In a preferred embodiment of the present utility model, based on the above problems existing in the prior art, a signal communication module with multiple signal inputs and multiple signal outputs is provided, such as Figure 1 Shown include:
[0095] The input control circuit 1 comprises:
[0096] Input circuit 11, the signal input end of the input circuit 11 collects the multi-channel analog signals and multi-channel switch signals input by the external sensor 001 through the main input interface J, and the signal output end of the input circuit 11 is connected to the signal receiving end of the single-chip circuit 13;
[0097] A power supply circuit 12, the power supply circuit 12 is connected to an external power supply VCC, and a power supply end of the power supply circuit 12 is respectively connected to a working power supply end of the input circuit 11 and the single-chip computer circuit 13;
[0098] The output control circuit 2 comprises:
[0099] A first output circuit 21, wherein an internal signal transceiver end of the first output circuit 21 is connected to a first signal transceiver end of the single-chip circuit 13, and an external output end of the first output circuit 21 is connected to an external signal receiving device 002 via a first output interface J1;
[0100] A second output circuit 22, wherein the internal signal transceiver end of the second output circuit 22 is connected to the second signal transceiver end of the single-chip circuit 13, and the external output end of the second output circuit 21 is connected to the external signal receiving device 002 through the second output interface J2;
[0101] The third output circuit 23, the internal signal receiving and transmitting end of the third output circuit 23 is connected to the third signal receiving and transmitting end of the single chip circuit 13, and the external output end of the third output circuit 23 is connected to the external signal receiving device 002 through the third output interface J3.
[0102] In a preferred embodiment of the present utility model, the input circuit 11 includes a multi-channel analog quantity input circuit 111 and a multi-channel switch quantity input circuit 112, and the signal input end of the single chip computer circuit 13 includes a plurality of analog quantity signal input ends and a plurality of switch quantity signal input ends;
[0103] The signal input end of each analog input circuit 111 is connected to the analog input pin of the main input interface J, and the signal output end of each analog input circuit 111 is correspondingly connected to an analog signal input end of the single-chip circuit 13;
[0104] The signal input end of each switching input circuit 112 is connected to the switching input pin of the main input interface J, and the signal output end of each switching input circuit 112 is correspondingly connected to a switching signal input end of the single-chip circuit 13 .
[0105] Specifically, in this embodiment, in order to realize the reception and collection of analog signals and switch signals of multiple sensors 001, we respectively set up a multi-channel analog input circuit 111 and a multi-channel switch input circuit 112. In this embodiment, six-channel analog input circuit 111 and ten-channel switch input circuit 112 are preferably used.
[0106] like Figure 2As shown, it is a structural schematic diagram of the total input interface J in this embodiment, the fourth to ninth pins of the total input interface J are analog input pins marked as S1 to S10 respectively, the sixteenth to twenty-fifth pins of the total input interface J are switch input pins marked as AD1 to AD6 respectively, and the first and fourteenth pins of the total input interface J are connected to the first power supply terminal 5V of the power supply circuit 12, the second and fifteenth pins of the total input interface J are connected to the second power supply terminal 3.3V of the power supply circuit 12, and the tenth to twelfth pins of the total input interface J are grounded.
[0107] like Figure 3 As shown, it is a pin diagram of the single-chip microcomputer chip U1 of the single-chip microcomputer circuit 13 in this embodiment, wherein the tenth to seventeenth pins of the single-chip microcomputer chip U1 are used as analog signal input terminals, respectively marked as ADC_0 to ADC_7, and the eighteenth to twentieth and thirty-ninth to forty-sixth pins of the single-chip microcomputer chip U1 are used as switch signal input terminals, respectively marked as SW1 to SW10. In addition, a plurality of common electronic components are provided on the single-chip microcomputer chip U1 to protect the normal operation of the chip, such as protection resistors, protection capacitors, etc. For the sake of simplicity of the diagram and easy viewing of the pins, these electronic components such as resistors and capacitors are not shown.
[0108] In a preferred embodiment of the present invention, the analog input circuit 111 includes:
[0109] An operational amplifier OP, wherein the second pin of the operational amplifier OP is connected to the first pin, the third pin of the operational amplifier OP is connected to one end of the first capacitor C1 and one end of the first resistor R1, the other end of the first capacitor C1 is grounded, and the other end of the first resistor 41 serves as a signal input terminal AD1 of the analog input circuit 111;
[0110] A first diode D1, an anode of the first diode D1 is grounded, a cathode of the first diode D1 is connected to an anode of a second diode D2 and one end of a first resistor R1, and a pin of the second diode D2 is connected to a power supply terminal 5V of a power supply circuit 12;
[0111] The second resistor R2 has one end connected to the first pin of the operational amplifier OP, the other end connected to the analog signal input terminal ADC_0 of the single chip circuit 13 and one end of the third resistor R3, and the other end of the third resistor R3 is grounded.
[0112] Specifically, Figure 4 The circuit diagram of the analog input circuit 111 in this embodiment is shown, and the analog input part is collected by the operational amplifier OP followed by the resistors R1, R2, and R3 for voltage division. In terms of input protection, a switching diode (composed of a first diode D1 and a second diode D2) is added for voltage limiting protection.
[0113] In a preferred embodiment of the present invention, the switch input circuit 112 includes:
[0114] The fourth resistor R4, one end of the fourth resistor R4 serves as the signal input terminal S1 of the switch input circuit, the other end of the fourth resistor R4 is connected to the switch signal input terminal SW1 of the single-chip circuit 13, the other end of the fourth resistor R4 is also connected to one end of the fifth resistor R5 and the cathode of the third diode D3 and the anode of the fourth diode D4, the other end of the fifth resistor R5 is connected to the anode of the third diode D3 and grounded, and the cathode of the fourth diode D4 is connected to the power supply terminal 3.3V of the power supply circuit.
[0115] Specifically, Figure 5 The circuit diagram of the switch input circuit 112 in this embodiment is shown, and the switch input part is collected by voltage division through resistors R4 and R5. In terms of input protection, a switching diode (composed of a third diode D3 and a fourth diode D4) is added for voltage limiting protection.
[0116] In a preferred embodiment of the present invention, the power supply end of the power supply circuit 13 includes a first power supply end and a second power supply end. Figure 6 As shown, the power supply circuit 13 includes:
[0117] A fifth diode D5, an anode of the fifth diode D5 is connected to the power supply VCC, a cathode of the fifth diode D5 is connected to one end of the first self-recovery fuse F1, the other end of the first self-recovery fuse F1 is respectively connected to the cathode of the transient voltage suppression diode TVS1 and the seventh pin of the DC step-down chip U2, a ninth pin of the DC step-down chip U2 is connected to the sixth pin of the DC step-down chip U2 and the anode of the transient voltage suppression diode TVS, and a first polarized capacitor CP1, a second capacitor C2, a third capacitor C3 and a fourth capacitor C4 are connected in parallel between the seventh pin and the ninth pin of the DC step-down chip U2;
[0118] A fifth capacitor C5, one end of the fifth capacitor C5 is connected to the first pin of the DC buck chip U2, the other end of the fifth capacitor C5 is respectively connected to the eighth pin of the DC buck chip U2, the cathode of the Schottky diode SBD and one end of the first inductor L1, the other end of the first inductor L1 is connected to one end of the sixth resistor R6, the positive electrode of the second polar capacitor CP2 and the positive electrode of the third polar capacitor CP3, the other end of the sixth resistor R6 is connected to one end of the seventh resistor R7 and the fourth pin of the DC buck chip U2, the other end of the seventh resistor R7 is respectively connected to the negative electrode of the second polar capacitor CP2 and the negative electrode of the third polar capacitor CP3 and grounded;
[0119] A linear regulator LDO, wherein a first pin of the linear regulator LDO is grounded, a second pin of the linear regulator LD0 is connected to the other end of the first inductor L1 and one end of a sixth capacitor C6, the other end of the sixth capacitor C6 is grounded, and a third pin of the linear regulator LDO is connected to one end of a seventh capacitor C7, the other end of the seventh capacitor C7 is grounded;
[0120] The second pin of the linear regulator LDO is used as a first power supply terminal 5V, and the third pin of the linear regulator LDO is used as a second power supply terminal 3.3V.
[0121] Specifically, in this embodiment, the power supply circuit 12 can realize wide voltage power supply (9V-36V), output +5V and +3.3V. In terms of power supply protection, a fifth diode D5 for anti-reverse connection and an overvoltage protection device transient voltage suppression diode (TVS) and a self-recovery fuse F1 are added (a PTC self-recovery fuse in the self-recovery fuse, i.e., a self-recovery fuse, is used in this embodiment). The DC step-down chip U2 is a DC-DC step-down power supply chip, which is stabilized to +5V output through the voltage regulating resistors R6 and R7, wherein the first polarized capacitor CP1, the second capacitor C2, the third capacitor C3, the fourth capacitor C4, the second polarized capacitor CP2, and the third polarized capacitor CP3 are respectively the input and output filter capacitors of U2. It also includes a linear regulator LDO, and the +5V input is directly stabilized to +3.3V output, wherein C6 and C7 are respectively the input and output filter capacitors of LDO.
[0122] In a preferred embodiment of the present utility model, the first output circuit 11 includes an RS232 interface circuit or a first RS485 interface circuit, the internal signal transceiver of the first output circuit includes an internal signal transmitting end USART1_TX and an internal signal receiving end USART1_RX, and the first signal transceiver includes a first signal receiving end (the 30th pin USART1_TX of the single-chip microcomputer chip U1) and a first signal transmitting end (the 31st pin USART1_RX of the single-chip microcomputer chip U1) because of corresponding connections, so the marks are the same;
[0123] like Figure 7 As shown, the RS232 interface circuit includes:
[0124] RS232 interface chip U3, the eleventh pin of the RS232 interface chip U3 is connected to the first signal receiving end USART1_TX as the internal signal transmitting end USART1_TX, the twelfth pin of the RS232 interface chip U3 is connected to the cathode of the sixth diode D6, and the anode of the sixth diode D6 is connected to the first signal transmitting end USART1_RX as the internal signal receiving end USART1_RX;
[0125] a fourth polarized capacitor CP4, wherein the positive electrode of the fourth polarized capacitor CP4 is connected to the first pin of the RS232 interface chip U3, and the negative electrode of the fourth polarized capacitor CP4 is connected to the third pin of the RS232 interface chip U3;
[0126] A fifth polarized capacitor CP5, wherein the positive electrode of the fifth polarized capacitor CP5 is connected to the fourth pin of the RS232 interface chip U3, and the negative electrode of the fifth polarized capacitor CP5 is connected to the fifth pin of the RS232 interface chip U3;
[0127] A sixth polarized capacitor CP6, wherein the positive electrode of the sixth polarized capacitor CP6 is connected to the second pin of the RS232 interface chip U3, and the negative electrode of the sixth polarized capacitor CP6 is connected to the power supply terminal 5V of the power supply circuit 13;
[0128] A seventh polarized capacitor CP7, wherein the positive electrode of the seventh polarized capacitor CP7 is grounded, and the negative electrode of the seventh polarized capacitor CP8 is connected to the sixth pin of the RS232 interface chip U3;
[0129] an eighth polarized capacitor CP8, wherein the positive electrode of the eighth polarized capacitor CP8 is respectively connected to the sixteenth pin of the RS232 interface chip U3 and the power supply end of the power supply circuit 13, and the negative electrode of the eighth polarized capacitor CP8 is grounded;
[0130] A second resettable fuse F2 and a third resettable fuse F3, one end of the second resettable fuse is connected to the fourteenth pin of the RS232 interface chip and one end of the first bidirectional breakdown diode DIAC1, one end of the third resettable fuse is respectively connected to the thirteenth pin of the RS232 interface chip U3 and one end of the second bidirectional breakdown diode DIAC2, and the other end of the second bidirectional diode DIAC2 is connected to the other end of the first bidirectional breakdown diode DIAC1;
[0131] The other end RS232_TX of the second resettable fuse F2, the other end RS232_RX of the third resettable fuse F3 and the other end RS232_GND of the first bidirectional diode DIAC1 are connected to the third pin, the second pin and the fifth pin of the first output interface J10 as external output ends respectively;
[0132] like Figure 8 As shown, the first RS485 interface circuit includes:
[0133] A first RS485 interface chip U4, a fourth pin of the first RS485 interface chip U4 is connected to the first signal receiving end USART1_TX as an internal signal transmitting end USART1_TX, a first pin of the first RS485 interface chip U4 is connected to the cathode of the seventh diode D7, an anode of the seventh diode D7 is connected to the first signal transmitting end USART1_RX as an internal signal receiving end USART1_RX, and a fifth pin of the first RS485 interface chip U4 is grounded;
[0134] An eighth resistor R8, one end of the eighth resistor R8 is connected to the second and third pins of the first RS485 interface chip U3, and the other end of the eighth resistor R8 is connected to the power supply terminal 5V of the power supply circuit 12;
[0135] An eighth capacitor C8, one end of the eighth capacitor C8 is connected to the eighth pin of the first RS485 interface chip U4 and the power supply terminal 5V of the power supply circuit 12, and the other end of the eighth capacitor C8 is grounded;
[0136] A ninth resistor R9, one end of the ninth resistor R9 is connected to the sixth pin of the first RS485 interface chip U4 and one end of the tenth resistor R10, the other end of the tenth resistor R10 is connected to the power supply end 5V of the power supply circuit 12, one end of the eleventh resistor R11 is connected to the other end of the ninth resistor 9 and the seventh pin of the first RS485 interface chip U4, and the other end of the eleventh resistor R11 is grounded;
[0137] A fourth resettable fuse F4 and a fifth resettable fuse F5, one end of the fourth resettable fuse F4 is connected to the sixth pin of the first RS485 interface chip U4 and one end of the third bidirectional breakdown diode DIAC3, one end of the fifth resettable fuse F5 is respectively connected to the seventh pin of the first RS485 interface chip U4 and one end of the fourth bidirectional breakdown diode DIAC4, and the other end of the third bidirectional diode DIAC3 is connected to the other end of the fourth bidirectional breakdown diode DIAC4;
[0138] The other end RS485_A2 of the fourth resettable fuse F4 and the other end RS485_B2 of the fifth resettable fuse F5 serve as external output ends of the first output circuit.
[0139] Specifically, in this embodiment, the first output circuit 21 can be an RS232 or RS485 interface circuit, which can realize RS232 or RS485 signal output. The output part is added with resettable fuses F2, F3 / F4, F5 (the resettable fuses in the resettable fuses are used in this embodiment) and overvoltage protection devices (the bidirectional breakdown diodes DIAC1, DIAC2 / DIAC3, DIAC4 are used in this embodiment) for overvoltage protection. U3 is an RS232 interface chip, and U4 is an RS485 / RS422 interface chip. A group of serial ports are multiplexed through the two interface chips (that is, the internal transceiver ends of the RS232 or RS485 interface circuit are connected to the same first signal transceiver end USART1_TX, USART1_RX), and RS232 serial port signal or RS485 serial port signal output is realized. The first output interface J10 is as follows Fig. 9 shown.
[0140] In a preferred embodiment of the present utility model, the second output circuit 22 includes an RS422 interface circuit or a second RS485 interface circuit, the internal signal transceiver of the second output circuit includes an internal signal transmitting end USART3_TX and an internal signal receiving end USART1_RX, and the second signal transceiver includes a second signal receiving end (the 21st pin USART3_TX of the single-chip microcomputer chip U1) and a second signal transmitting end (the 22nd pin USART3_RX of the single-chip microcomputer chip U1) because of corresponding connections, so the labels are the same;
[0141] like Fig.10 As shown, the second RS485 interface circuit includes:
[0142] The second RS485 interface chip U5, the fourth pin of the second RS485 interface chip U5 is connected to the second signal receiving end USART3_TX as the internal signal transmitting end USART3_TX, the first pin of the second RS485 interface chip U5 is connected to the cathode of the eighth diode D8, the anode of the eighth diode D8 is connected to the second signal transmitting end USART3_RX as the internal signal receiving end USART3_RX, and the fifth pin of the second RS485 interface chip U5 is grounded;
[0143] A twelfth resistor R12, one end of the twelfth resistor R12 is connected to the second and third pins of the second RS485 interface chip U5, and the other end of the twelfth resistor R12 is connected to the power supply end 5V of the power supply circuit;
[0144] A ninth capacitor C9, one end of which is connected to the eighth pin of the second RS485 interface chip U5 and the power supply terminal 5V of the power supply circuit 12, and the other end of the ninth capacitor C9 is grounded;
[0145] A thirteenth resistor R13, one end of the thirteenth resistor R13 is connected to the sixth pin of the second RS485 interface chip U5 and one end of the fourteenth resistor R14, the other end of the fourteenth resistor R14 is connected to the power supply terminal 5V of the power supply circuit 13, one end of the fifteenth resistor R15 is connected to the other end of the thirteenth resistor R13 and the seventh pin of the second RS485 interface chip U5, and the other end of the fifteenth resistor R15 is grounded;
[0146] The sixth resettable fuse F6 and the seventh resettable fuse F7, one end of the sixth resettable fuse F6 is connected to the sixth pin of the second RS485 interface chip U5 and one end of the fifth bidirectional breakdown diode DIAC5, one end of the seventh resettable fuse R7 is respectively connected to the seventh pin of the second RS485 interface chip U5 and one end of the sixth bidirectional breakdown diode DIAC6, and the other end of the fifth bidirectional diode DIAC5 is connected to the other end of the sixth bidirectional breakdown diode DIAC6;
[0147] The other end RS485_A1 of the sixth resettable fuse F6 and the other end RS485_B1 of the seventh resettable fuse F7 serve as external output ends of the second output circuit 22;
[0148] like Fig.11 As shown, the RS422 interface circuit includes:
[0149] A third RS485 interface chip U6, wherein a first pin of the third RS485 interface chip U6 is connected to a cathode of a ninth diode D9, an anode of the ninth diode D9 is connected to a second signal transmitting end USART3_RX as an internal signal receiving end USART3_RX, and a fifth pin of the third RS485 interface chip U6 is grounded;
[0150] A sixteenth resistor R16, one end of the sixteenth resistor R16 is connected to the third pin of the third RS485 interface chip U6, and the other end of the sixteenth resistor R16 is connected to the power supply terminal 5V of the power supply circuit 12;
[0151] A tenth capacitor C10, one end of the tenth capacitor C10 is connected to the eighth pin of the third RS485 interface chip U6 and the power supply end of the power supply circuit 13, and the other end of the tenth capacitor C10 is grounded;
[0152] A seventeenth resistor R17, one end of the seventeenth resistor R17 is connected to the sixth pin of the third RS485 interface chip U6 and one end of an eighteenth resistor R18, the other end of the eighteenth resistor R18 is connected to the power supply terminal 5V of the power supply circuit 13, one end of a nineteenth resistor R19 is connected to the other end of the seventeenth resistor R17 and the seventh pin of the third RS485 interface chip U6, and the other end of the nineteenth resistor R19 is grounded;
[0153] An eighth resettable fuse F8 and a ninth resettable fuse F9, one end of the eighth resettable fuse F8 is connected to the sixth pin of the third RS485 interface chip U6 and one end of the seventh bidirectional breakdown diode DIAC7, one end of the ninth resettable fuse F9 is respectively connected to the seventh pin of the third RS485 interface chip U6 and one end of the eighth bidirectional breakdown diode DIAC8, and the other end of the seventh bidirectional breakdown diode DIAC7 is connected to the other end of the eighth bidirectional breakdown diode DIAC8;
[0154] The other end RS422_R+ of the eighth resettable fuse F8 and the other end RS422_R+ of the ninth resettable fuse F9 serve as external output ends of the second output circuit.
[0155] Specifically, in this embodiment, the second output circuit 22 is an RS485 or RS422 interface circuit, which can realize RS485 or RS422 signal output. The output part is added with resettable fuses F6, F7 / F8, F9 (the resettable fuse in the resettable fuse is used in this embodiment) and overvoltage protection devices (the bidirectional breakdown diodes DIAC5, DIAC6 / DIAC7, DIAC8 are used in this embodiment) for overvoltage protection. U5 and U6 are RS485 / RS422 interface chips respectively.
[0156] Second, a group of serial ports are multiplexed through two interface chips (i.e., the internal transceiver ends of the RS232 or RS485 interface circuit are connected to the same second signal transceiver end USART3_TX, USART3_RX), and RS422 serial port signal or RS485 serial port signal output is realized. In a preferred embodiment of the present utility model, the second output interface is an RJ45 connector corresponding to the second RS485 interface circuit, then the other end of the sixth resettable fuse is connected to the fourth pin of the RJ45 connector, the other end of the seventh resettable fuse is connected to the fifth pin of the RJ45 connector, and the sixth pin of the RJ45 connector is grounded;
[0157] Or the second output interface is a plug-in terminal corresponding to the RS422 interface circuit, the other end of the eighth resettable fuse is connected to the first pin of the plug-in terminal, and the other end of the ninth resettable fuse is connected to the second pin of the plug-in terminal.
[0158] Specifically, for the RS422 interface circuit and the second R485 interface circuit, the output interfaces used by the two are different. The second RS485 interface circuit corresponds to the RJ45 connector J11, and the RS422 interface circuit corresponds to the plug-in terminal J12;
[0159] like Fig.12As shown, it is a schematic diagram of the RJ45 connector J11. It can be seen that the fourth pin of the RJ45 connector J11 is connected to the other end RS485_A1 of the sixth resettable fuse F6, the fifth pin of the RJ45 connector J11 is connected to the other end RS485_B1 of the seventh resettable fuse F7, and the sixth pin of the RJ45 connector J11 is grounded; and the aforementioned first RS485 interface circuit can also use this RJ45 connector to connect to the external signal receiving device 002.
[0160] like Fig.13 As shown, it is a schematic diagram of the pluggable terminal J12. It can be seen that the second pin of the pluggable terminal J12 is connected to the other end RS422_R- of the ninth resettable fuse F9, and the first pin of the pluggable terminal J12 is connected to the other end RS422_R+ of the eighth resettable fuse F8.
[0161] The RS422 interface circuit and the second R485 interface circuit are connected to an external signal receiving device via the RJ45 connector J11 and the plug-in terminal J12 respectively.
[0162] In a preferred embodiment of the present utility model, the third output circuit 23 includes a CAN output circuit or a USB output circuit, the internal signal transceiver end of the third output circuit 23 includes an internal signal sending end CAN_TX USB_DP and an internal signal receiving end CAN_RX USB_DM, and the third signal transceiver end includes a third signal receiving end (the 32nd pin CAN_TX USB_DP of the single-chip microcomputer chip U1) and a third signal sending end (the 33rd pin CAN_RX USB_DM of the single-chip microcomputer chip U1), which are marked the same because of corresponding connections;
[0163] like Fig.14 As shown, the CAN output circuit includes:
[0164] CAN transceiver U7, the first pin of the CAN transceiver U7 is used as the internal signal sending end CAN_TX USB_DP of the third output circuit 23 to connect the third signal receiving end CAN_TX USB_DP, the fourth pin of the CAN transceiver U7 is used as the internal signal receiving end CAN_RX USB_DP to connect the third signal sending end CAN_RX USB_DP, the third pin of the CAN transceiver U7 is connected to the power supply end 3.3V of the power supply circuit 12 and one end of the eleventh capacitor C11, and the other end of the eleventh capacitor C11 is grounded;
[0165] A twentieth resistor R20, one end of the twentieth resistor R20 is connected to the eighth pin of the CAN transceiver U7, and the other end of the twentieth resistor R20 is connected to the second pin of the CAN transceiver U7 and is grounded;
[0166] a tenth resettable fuse F10 and an eleventh resettable fuse F11, one end of the tenth resettable fuse F10 is connected to the seventh pin of the CAN transceiver U7, one end of the ninth bidirectional breakdown diode DIAC9 and one end of the twelfth capacitor C12, the other end of the twelfth capacitor C12 is grounded, one end of the eleventh resettable fuse F11 is respectively connected to the sixth pin of the CAN transceiver U7, one end of the tenth bidirectional breakdown diode DIAC10 and one end of the thirteenth capacitor C13, the other end of the thirteenth capacitor C13 is grounded, and the other end of the ninth bidirectional breakdown diode DIAC9 is connected to the other end of the tenth bidirectional breakdown diode DIAC11;
[0167] The other end CAN+ of the tenth resettable fuse F10 and the other end CAN- of the eleventh resettable fuse F11 serve as external output ends of the third output circuit 23;
[0168] like Fig.15 As shown, the USB output circuit includes:
[0169] An electrostatic surge protector ESD, wherein a fifth pin of the electrostatic surge protector ESD is connected to one end of the second inductor L2, the other end of the second inductor L2 is respectively connected to one end of the fourteenth capacitor C14, one end of the fifteenth capacitor C15 and the power supply terminal 5V of the power supply circuit 12, and the other ends of the fourteenth capacitor C14 and the fifteenth capacitor C15 are grounded;
[0170] A common mode filter CMF, a first pin of the common mode filter is used as an internal signal receiving end CAN_RX USB_DP of the third output circuit 23 connected to the third signal sending end CAN_RX USB_DP, a fourth pin of the common mode filter CMF is used as an internal signal sending end CAN_TX USB_DP of the third output circuit 23 connected to the third signal receiving end CAN_TX USB_DP, a second pin of the common mode filter CMF is connected to a third pin DN of the electrostatic surge protector ESD, and a third pin of the common mode filter CMF is connected to a first pin DP of the electrostatic surge protector ESD;
[0171] The fourth pin D−, the fifth pin 5V1 and the sixth pin D+ of the electrostatic surge protector ESD serve as external output terminals of the third output circuit 23 .
[0172] In a preferred embodiment of the present utility model, the third output interface J13 is a direct-insertion pin corresponding to the CAN output circuit, the first pin of the direct-insertion pin is connected to the other end of the tenth self-resettable fuse F10 through the twenty-first resistor R21, and the second pin of the direct-insertion pin is connected to the other end of the eleventh self-resettable fuse F11;
[0173] Or the third output interface J13 is a USB connector corresponding to the USB output circuit, the first pin of the USB connector USB is connected to one end of the twelfth self-recovery fuse F12, the other end of the twelfth self-recovery fuse F12 is connected to one end of the sixteenth capacitor C16 and the third pin 5V1 of the electrostatic surge protector ESD, the third pin of the USB connector USB is connected to the sixth pin D+ of the electrostatic surge protector ESD, the second pin of the USB connector USB is connected to the fourth pin D- of the electrostatic surge protector ESD, and the fourth pin of the USB connector is connected to the fifth and sixth pins of the USB connector through the third inductor L3 and is grounded.
[0174] Specifically, in this embodiment, the third output circuit 23 is a CAN output circuit or a USB output circuit, which can realize the output of CAN serial port signals or USB signals. The CAN output part is added with self-recovery fuses F6, F7 and overvoltage protection devices (bidirectional breakdown diodes DIAC6, DIAC7) for overvoltage protection, and the USB signal part is added with ESD protection devices such as electrostatic surge protector and common mode filter CMF for protection. U7 is a CAN interface chip, such as Fig.16 As shown, USB is a USB connector corresponding to a USB output circuit.
[0175] The CAN output circuit and the USB output circuit can both be connected to the third signal receiving end (the 32nd pin CAN_TX USB_DP of the single-chip microcomputer chip U1) and the third signal sending end (the 33rd pin CAN_RX USB_DM of the single-chip microcomputer chip U1) by multiplexing a set of single-chip microcomputer interfaces, and realize the CAN serial port signal or USB signal output through the corresponding direct-insert square pin PIN or the signal receiving device outside the USB connector.
[0176] In general, the signal communication module with multiple signal inputs and multiple signal outputs involved in this utility model patent has the following beneficial effects:
[0177] First, it can realize multi-channel analog and switch signal input, as well as various serial signal output; second, it can realize the output of various communication protocols (SENTOP / MOUBUSRTU / USBFS / CANopen / CANbus corresponding to RS422, RS485, CAN, USB); third, it can realize the output of various optional interface types (output interfaces include DB9, plug-in terminal blocks, USB connectors, and RJ45 connectors); fourth, it is convenient to further process the converted input signals and reduce the wiring cost in actual applications.
[0178] The working principle of a signal communication module with multiple signal inputs and multiple signal outputs involved in this utility model patent includes:
[0179] 1. Collect 6-channel analog signals through the operational amplifier in the 6-channel analog signal input circuit combined with the voltage divider resistor;
[0180] 2. Collect 10-channel switch quantity signals through the voltage divider resistors in the 10-channel switch quantity signal input circuit;
[0181] 3 The collected 6-channel analog signals + 10-channel switch signals are read by the single-chip microcomputer chip U1 in the single-chip microcomputer circuit 13 and converted into a variety of serial signals (RS232 / RS485 / RS422 / USBFS / CAN) and corresponding multiple protocol formats (SENTOP / MOUBUSRTU / USBFS / CANopen / CANbus) for output in conjunction with the back-end output interface circuit.
[0182] The task thread flow of a signal communication module with multiple signal inputs and multiple signal outputs in the utility model when working is as follows:
[0183] 1. Collection thread: realize the collection of 6-channel analog data and 10-channel switch data. The 6-channel analog data adopts DMA mode for data collection and performs digital filtering on the collected data (processed by removing the maximum value, minimum value + mean filtering algorithm), and also sets the linear conversion of output calibration;
[0184] 2. Data preparation thread: put the collected data into the respective communication buffer for preparation and processing according to the selected protocol format;
[0185] 3 Protocol polling thread: Receives and processes communication commands according to the selected protocol.
[0186] The data processing process and task thread flow in this principle can be implemented by configuring the program in the prior art in the single-chip microcomputer. It is not the invention point of the present utility model, and the specific data processing process will not be repeated here.
[0187] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the contents of this specification and illustrations should be included in the protection scope of the present invention.
Claims
1. A signal communication module with multiple signal inputs and multiple signal outputs, characterized in that: include: Input control circuit, including: An input circuit, wherein a signal input end of the input circuit collects multi-channel analog signals and multi-channel switch signals input by external sensors through a total input interface, and a signal output end of the input circuit is connected to a signal receiving end of a single-chip microcomputer circuit; A power supply circuit, wherein the power supply circuit is connected to an external power supply, and the power supply end of the power supply circuit is respectively connected to the input circuit and the working power supply end of the single-chip circuit; an output control circuit, comprising: a first output circuit, wherein an internal signal transceiver end of the first output circuit is connected to a first signal transceiver end of the single-chip circuit, and an external output end of the first output circuit is connected to an external signal receiving device through a first output interface; a second output circuit, wherein an internal signal transceiver end of the second output circuit is connected to a second signal transceiver end of the single-chip circuit, and an external output end of the second output circuit is connected to an external signal receiving device through a second output interface; The third output circuit has an internal signal transceiver end connected to the third signal transceiver end of the single-chip circuit, and an external output end of the third output circuit is connected to an external signal receiving device through a third output interface.
2. The signal communication module according to claim 1, characterized in that: The input circuit includes a multi-channel analog input circuit and a multi-channel switch input circuit, and the signal input end of the single-chip microcomputer circuit includes a plurality of analog signal input ends and a plurality of switch signal input ends; The signal input end of each analog input circuit is connected to the analog input pin of the total input interface, and the signal output end of each analog input circuit is correspondingly connected to one of the analog signal input ends of the single-chip circuit; The signal input end of each switch input circuit is connected to the switch input pin of the total input interface, and the signal output end of each switch input circuit is correspondingly connected to one of the switch signal input ends of the single-chip circuit.
3. The signal communication module according to claim 2, characterized in that: The analog input circuit comprises: an operational amplifier, wherein the second pin of the operational amplifier is connected to the first pin, the third pin of the operational amplifier is connected to one end of a first capacitor and one end of a first resistor, the other end of the first capacitor is grounded, and the other end of the first resistor serves as a signal input end of the analog input circuit; a first diode, wherein an anode of the first diode is grounded, a cathode of the first diode is connected to an anode of a second diode and one end of the first resistor, and a pin of the second diode is connected to a power supply end of the power supply circuit; A second resistor, one end of the second resistor is connected to the first pin of the operational amplifier, the other end of the second resistor is connected to the analog signal input end of the single-chip circuit and one end of the third resistor, and the other end of the third resistor is grounded.
4. The signal communication module according to claim 2, characterized in that: The switch input circuit comprises: A fourth resistor, one end of the fourth resistor serves as the signal input end of the switch input circuit, the other end of the fourth resistor is connected to the switch signal input end of the single-chip circuit, the other end of the fourth resistor is also connected to one end of the fifth resistor and the cathode of the third diode and the anode of the fourth diode, the other end of the fifth resistor is connected to the anode of the third diode and grounded, and the cathode of the fourth diode is connected to the power supply end of the power supply circuit.
5. The signal communication module according to claim 1, characterized in that: The power supply end of the power supply circuit includes a first power supply end and a second power supply end, and the power supply circuit includes: a fifth diode, wherein the anode of the fifth diode is connected to the power supply, the cathode of the fifth diode is connected to one end of the first resettable fuse, the other end of the first resettable fuse is respectively connected to the cathode of the transient voltage suppression diode and the seventh pin of the DC step-down chip, the ninth pin of the DC step-down chip is connected to the sixth pin of the DC step-down chip and the anode of the transient voltage suppression diode, and a first polarized capacitor, a second capacitor, a third capacitor and a fourth capacitor are connected in parallel between the seventh pin and the ninth pin of the DC step-down chip; a fifth capacitor, one end of the fifth capacitor being connected to the first pin of the DC step-down chip, the other end of the fifth capacitor being respectively connected to the eighth pin of the DC step-down chip, the cathode of the Schottky diode and one end of the first inductor, the other end of the first inductor being connected to one end of the sixth resistor, the positive electrode of the second polarized capacitor and the positive electrode of the third polarized capacitor, the other end of the sixth resistor being connected to one end of the seventh resistor and the fourth pin of the DC step-down chip, the other end of the seventh resistor being respectively connected to the negative electrode of the second polarized capacitor and the negative electrode of the third polarized capacitor and grounded; A linear regulator, wherein a first pin of the linear regulator is grounded, a second pin of the linear regulator is connected to the other end of the first inductor and one end of a sixth capacitor, the other end of the sixth capacitor is grounded, and a third pin of the linear regulator is connected to one end of a seventh capacitor, the other end of the seventh capacitor is grounded; The second pin of the linear regulator serves as the first power supply end, and the third pin of the linear regulator serves as the second power supply end.
6. The signal communication module according to claim 2, characterized in that: The first output circuit includes an RS232 interface circuit or a first RS485 interface circuit, the internal signal transceiver end of the first output circuit includes an internal signal sending end and an internal signal receiving end, and the first signal transceiver end includes a first signal receiving end and a first signal sending end; The RS232 interface circuit comprises: An RS232 interface chip, wherein the eleventh pin of the RS232 interface chip is connected to the first signal receiving end as the internal signal sending end, the twelfth pin of the RS232 interface chip is connected to the cathode of the sixth diode, and the anode of the sixth diode is connected to the first signal sending end as the internal signal receiving end; a fourth polarized capacitor, wherein a positive electrode of the fourth polarized capacitor is connected to the first pin of the RS232 interface chip, and a negative electrode of the fourth polarized capacitor is connected to the third pin of the RS232 interface chip; a fifth polarized capacitor, wherein a positive electrode of the fifth polarized capacitor is connected to a fourth pin of the RS232 interface chip, and a negative electrode of the fifth polarized capacitor is connected to a fifth pin of the RS232 interface chip; a sixth polarized capacitor, wherein a positive electrode of the sixth polarized capacitor is connected to the second pin of the RS232 interface chip, and a negative electrode of the sixth polarized capacitor is connected to the power supply end of the power supply circuit; a seventh polarized capacitor, wherein a positive electrode of the seventh polarized capacitor is grounded, and a negative electrode of the seventh polarized capacitor is connected to a sixth pin of the RS232 interface chip; an eighth polarized capacitor, wherein a positive electrode of the eighth polarized capacitor is respectively connected to the sixteenth pin of the RS232 interface chip and the power supply end of the power supply circuit, and a negative electrode of the eighth polarized capacitor is grounded; A second resettable fuse and a third resettable fuse, one end of the second resettable fuse is connected to the fourteenth pin of the RS232 interface chip and one end of the first bidirectional breakdown diode, one end of the third resettable fuse is respectively connected to the thirteenth pin of the RS232 interface chip and one end of the second bidirectional breakdown diode, and the other end of the second bidirectional diode is connected to the other end of the first bidirectional breakdown diode; The other end of the second resettable fuse, the other end of the third resettable fuse and the other end of the first bidirectional diode are connected to the third pin, the second pin and the fifth pin of the first output interface as the external output end respectively; The first RS485 interface circuit comprises: A first RS485 interface chip, a fourth pin of the first RS485 interface chip being connected to the first signal receiving end as the internal signal transmitting end, a first pin of the first RS485 interface chip being connected to the cathode of a seventh diode, an anode of the seventh diode being connected to the first signal transmitting end as the internal signal receiving end, and a fifth pin of the first RS485 interface chip being grounded; an eighth resistor, one end of the eighth resistor being connected to the second and third pins of the first RS485 interface chip, and the other end of the eighth resistor being connected to the power supply end of the power supply circuit; an eighth capacitor, one end of the eighth capacitor being connected to the eighth pin of the first RS485 interface chip and the power supply end of the power supply circuit, and the other end of the eighth capacitor being grounded; A ninth resistor, one end of the ninth resistor is connected to the sixth pin of the first RS485 interface chip and one end of the tenth resistor, the other end of the tenth resistor is connected to the power supply end of the power supply circuit, one end of the eleventh resistor is connected to the other end of the ninth resistor and the seventh pin of the first RS485 interface chip, and the other end of the eleventh resistor is grounded; A fourth resettable fuse and a fifth resettable fuse, one end of the fourth resettable fuse is connected to the sixth pin of the first RS485 interface chip and one end of the third bidirectional breakdown diode, one end of the fifth resettable fuse is respectively connected to the seventh pin of the first RS485 interface chip and one end of the fourth bidirectional breakdown diode, and the other end of the third bidirectional diode is connected to the other end of the fourth bidirectional breakdown diode; The other end of the fourth resettable fuse and the other end of the fifth resettable fuse serve as the external output end of the first output circuit.
7. The signal communication module according to claim 1, characterized in that: The second output circuit includes an RS422 interface circuit or a second RS485 interface circuit, the internal signal transceiver end of the second output circuit includes an internal signal sending end and an internal signal receiving end, and the second signal transceiver end includes a second signal receiving end and a second signal sending end; The second RS485 interface circuit comprises: A second RS485 interface chip, a fourth pin of the second RS485 interface chip being connected to the second signal receiving end as the internal signal transmitting end, a first pin of the second RS485 interface chip being connected to the cathode of an eighth diode, an anode of the eighth diode being connected to the second signal transmitting end as the internal signal receiving end, and a fifth pin of the second RS485 interface chip being grounded; A twelfth resistor, one end of the twelfth resistor is connected to the second and third pins of the second RS485 interface chip, and the other end of the twelfth resistor is connected to the power supply end of the power supply circuit; a ninth capacitor, one end of which is connected to the eighth pin of the second RS485 interface chip and the power supply end of the power supply circuit, and the other end of which is grounded; A thirteenth resistor, one end of the thirteenth resistor is connected to the sixth pin of the second RS485 interface chip and one end of the fourteenth resistor, the other end of the fourteenth resistor is connected to the power supply end of the power supply circuit, one end of the fifteenth resistor is connected to the other end of the thirteenth resistor and the seventh pin of the second RS485 interface chip, and the other end of the fifteenth resistor is grounded; A sixth resettable fuse and a seventh resettable fuse, one end of the sixth resettable fuse is connected to the sixth pin of the second RS485 interface chip and one end of the fifth bidirectional breakdown diode, one end of the seventh resettable fuse is respectively connected to the seventh pin of the second RS485 interface chip and one end of the sixth bidirectional breakdown diode, and the other end of the fifth bidirectional diode is connected to the other end of the sixth bidirectional breakdown diode; The other end of the sixth resettable fuse and the other end of the seventh resettable fuse serve as the external output end of the second output circuit; The RS422 interface circuit comprises: A third RS485 interface chip, wherein a first pin of the third RS485 interface chip is connected to a cathode of a ninth diode, an anode of the ninth diode is connected to the second signal transmitting end as the internal signal receiving end, and a fifth pin of the third RS485 interface chip is grounded; a sixteenth resistor, one end of the sixteenth resistor being connected to the third pin of the third RS485 interface chip, and the other end of the sixteenth resistor being connected to the power supply end of the power supply circuit; A tenth capacitor, one end of the tenth capacitor is connected to the eighth pin of the third RS485 interface chip and the power supply end of the power supply circuit, and the other end of the tenth capacitor is grounded; A seventeenth resistor, one end of the seventeenth resistor is connected to the sixth pin of the third RS485 interface chip and one end of the eighteenth resistor, the other end of the eighteenth resistor is connected to the power supply end of the power supply circuit, one end of the nineteenth resistor is connected to the other end of the seventeenth resistor and the seventh pin of the third RS485 interface chip, and the other end of the nineteenth resistor is grounded; An eighth resettable fuse and a ninth resettable fuse, one end of the eighth resettable fuse is connected to the sixth pin of the third RS485 interface chip and one end of the seventh bidirectional breakdown diode, one end of the ninth resettable fuse is respectively connected to the seventh pin of the third RS485 interface chip and one end of the eighth bidirectional breakdown diode, and the other end of the seventh bidirectional breakdown diode is connected to the other end of the eighth bidirectional breakdown diode; The other end of the sixth resettable fuse, the other end of the seventh resettable fuse, the other end of the eighth resettable fuse, and the other end of the ninth resettable fuse serve as the external output end of the second output circuit.
8. The signal communication module according to claim 7, characterized in that: The second output interface is an RJ45 connector corresponding to the second RS485 interface circuit, the other end of the sixth resettable fuse is connected to the fourth pin of the RJ45 connector, the other end of the seventh resettable fuse is connected to the fifth pin of the RJ45 connector, and the sixth pin of the RJ45 connector is grounded; Or the second output interface is a plug-in terminal corresponding to the RS422 interface circuit, the other end of the sixth resettable fuse is connected to the first pin of the plug-in terminal, the other end of the seventh resettable fuse is connected to the second pin of the plug-in terminal, the other end of the eighth resettable fuse is connected to the third pin of the plug-in terminal, and the other end of the ninth resettable fuse is connected to the fourth pin of the plug-in terminal.
9. The signal communication module according to claim 1, characterized in that: The third output circuit includes a CAN output circuit or a USB output circuit, the internal signal transceiver end of the third output circuit includes an internal signal sending end and an internal signal receiving end, and the third signal transceiver end includes a third signal receiving end and a third signal sending end; The CAN output circuit comprises: A CAN transceiver, wherein the first pin of the CAN transceiver is connected to the third signal receiving end as the internal signal sending end of the third output circuit, the fourth pin of the CAN transceiver is connected to the third signal sending end as the internal signal receiving end, the third pin of the CAN transceiver is connected to the power supply end of the power supply circuit and one end of an eleventh capacitor, and the other end of the eleventh capacitor is grounded; A twentieth resistor, one end of the twentieth resistor is connected to the eighth pin of the CAN transceiver, and the other end of the twentieth resistor is connected to the second pin of the CAN transceiver and is grounded; a tenth resettable fuse and an eleventh resettable fuse, wherein one end of the tenth resettable fuse is connected to the seventh pin of the CAN transceiver, one end of the ninth bidirectional breakdown diode and one end of the twelfth capacitor, and the other end of the twelfth capacitor is grounded; one end of the eleventh resettable fuse is respectively connected to the sixth pin of the CAN transceiver, one end of the tenth bidirectional breakdown diode and one end of the thirteenth capacitor, and the other end of the thirteenth capacitor is grounded; and the other end of the ninth bidirectional breakdown diode is connected to the other end of the tenth bidirectional breakdown diode; The other end of the tenth resettable fuse and the other end of the eleventh resettable fuse serve as the external output end of the third output circuit; The USB output circuit comprises: An electrostatic surge protector, wherein the fifth pin of the electrostatic surge protector is connected to one end of a second inductor, the other end of the second inductor is respectively connected to one end of a fourteenth capacitor, one end of a fifteenth capacitor and a power supply end of a power supply circuit, and the other ends of the fourteenth capacitor and the fifteenth capacitor are grounded; A common mode filter, wherein the first pin of the common mode filter is connected to the third signal sending end as an internal signal receiving end of the third output circuit, the fourth pin of the common mode filter is connected to the third signal receiving end as an internal signal sending end of the third output circuit, the second pin of the common mode filter is connected to the third pin of the electrostatic surge protector, and the third pin of the common mode filter is connected to the first pin of the electrostatic surge protector; The fourth pin, the fifth pin and the sixth pin of the common mode filter serve as external output terminals of the third output circuit.
10. The signal communication module according to claim 9, characterized in that: The third output interface is a plug-in pin corresponding to the CAN output circuit, a first pin of the plug-in pin is connected to the other end of the tenth resettable fuse through a twenty-first resistor, and a second pin of the plug-in pin is connected to the other end of the eleventh resettable fuse; Or the third output interface is a USB connector corresponding to the USB output circuit, the first pin of the USB connector is connected to one end of a twelfth resettable fuse, the other end of the twelfth resettable fuse is connected to one end of a sixteenth capacitor and the fifth pin of the electrostatic surge protector, the third pin of the USB connector is connected to the sixth pin of the electrostatic surge protector, the second pin of the USB connector is connected to the fourth pin of the electrostatic surge protector, and the fourth pin of the USB connector is connected to the fifth and sixth pins of the USB connector through a third inductor and is grounded.