Port circuit compatible with multiple communication protocols
By designing a port circuit that is compatible with multiple communication protocols and using common mode filter modules, multi-protocol transceiver modules and isolation modules to achieve flexible protocol configuration, it solves the problem of connecting devices with different communication protocols, improves device interoperability and operational convenience, and reduces costs. Communication costs.
Patent Information
- Application Number
- CN202323560750.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2033-12-26
AI Technical Summary
Existing technology is difficult to realize flexible connections between devices with different communication protocols, resulting in reduced device interoperability and operational convenience, and high communication costs.
Design a port circuit that is compatible with multiple communication protocols, including a common mode filter module, a multi-protocol transceiver module, an SPI to multi-serial port transfer module and an isolation module. The protocol can be flexibly configured through the logic switching function to adapt to RS232, RS422, RS485 and other protocols. needs.
It effectively improves the communication compatibility and convenience between different external devices and the host computer, reduces communication costs, and enables flexible adaptation to multiple protocols.
Smart Images

Figure CN221804696U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of communication interfaces, in particular to a port circuit compatible with multiple communication protocols. Background Art
[0002] The RS232 interface complies with the interface standard for serial data communication established by the Electronic Industries Alliance (EIA) of the United States. It is widely used in computer serial interface peripheral connections and is still a common communication interface.
[0003] RS422 is a series of data transmission protocols that stipulate the use of 4-wire, full-duplex, differential transmission, and multi-point communication.
[0004] The RS485 bus transmission protocol is a serial bus communication protocol standard. The RS485 bus adopts a balanced transmission and differential reception structure design, so it has the ability to suppress common-mode interference. RS485 is an improvement on RS-422. It increases the number of devices from 10 to 32, and defines the electrical characteristics under the maximum number of devices. You can use one RS485 interface to establish a device network. With its excellent noise resistance and multi-device capabilities, RS485 can be used to form a distributed system. In industrial applications, when establishing a distributed device network connected to a PC, other data collection controllers, HMI or other operations, RS-485 is usually selected for serial connections.
[0005] RS232, RS422, and RS485 are all commonly used communication interface standards, and their applications are very extensive. In general, RS232 has a short communication distance and supports full-duplex one-to-one communication; RS485 has a long communication distance and supports half-duplex one-to-many or many-to-many communication; RS422 can work in full-duplex through two pairs of twisted pairs without affecting each other, and its advantages are better noise resistance and longer transmission distance in industrial environments. These protocols cover almost most industrial equipment. However, with the development of new generation networking technologies such as central control and the Internet of Things, more and more external devices need to communicate with the host computer. When external devices using different protocols communicate with the same host computer, they often specify and identify the interface type, and design a set of interface circuits for conversion corresponding to a protocol interface. This method cannot flexibly communicate and connect during network communication, which reduces the compatibility and operation convenience of device intercommunication, and the communication cost is relatively high. Therefore, designing a set of port circuits suitable for the above-mentioned multiple external device port protocols will help improve the convenience of communication between external devices and the host computer. Summary of the invention
[0006] The utility model provides a port circuit compatible with multiple communication protocols, which is used for solving the problem of connecting communication ports with different communication protocols with external devices.
[0007] In order to solve the above-mentioned technical problems, the technical solution of the utility model is:
[0008] A port circuit compatible with multiple communication protocols includes multiple common-mode filter modules for connecting to the communication interface of an external device, each of the common-mode filter modules is connected to a multi-protocol transceiver module, and each group of the multi-protocol transceiver modules is connected to the communication port of a CPU via an SPI to multi-serial port adapter module.
[0009] Further, each multi-protocol transceiver module is connected to the SPI to multi-serial port adapter module through an isolation module, the multi-protocol transceiver module includes a multi-protocol transceiver of model MAX3160, the control pin of the CPU outputting the DE485 signal is connected to an eighteenth resistor via the SPI to multi-serial port adapter module and the isolation module, the eighteenth resistor is connected to the base of a transistor, a nineteenth resistor is connected between the base and the emitter of the transistor, the collector of the transistor is connected to the twelfth pin of the multi-protocol transceiver, the emitter of the transistor is grounded, and the collector is also connected to the positive power supply through the sixteenth resistor;
[0010] The control pin for the CPU to output DE485 signals is connected to the 15th pin of the multi-protocol transceiver after passing through the SPI to multi-serial port adapter module and the isolation module; the control pin for the CPU to output RS232 / RS485 signals is connected to the 11th pin of the multi-protocol transceiver after passing through the SPI to multi-serial port adapter module and the isolation module; the communication pins for the CPU to output RXD signals and TXD signals are connected to the 18th pin and the 15th pin of the multi-protocol transceiver respectively after passing through the SPI to multi-serial port adapter module and the isolation module;
[0011] The common-mode filtering module includes a first common-mode inductor filter and a second common-mode inductor filter; a fifteenth resistor is connected between the fourth pin and the third pin of the multi-protocol transceiver, the fifteenth resistor is connected in parallel with two series-connected twenty-third and twenty-fourth capacitors, two ends of the fifteenth resistor are connected to the first common-mode inductor filter, a sixteenth and a seventeenth zener diode are connected in series between two ends of one side of the first common-mode inductor filter, and two ends of the other side of the first common-mode inductor filter are used to connect to the communication interface of an external device;
[0012] A seventeenth resistor is connected between the fifth pin and the sixth pin of the multi-protocol transceiver, and the seventeenth resistor is connected in parallel with two series-connected twenty-fifth and twenty-sixth capacitors. Both ends of the seventeenth resistor are connected to a second common-mode inductor filter, and an eighteenth and a nineteenth Zener diode are connected in series between both ends of one side of the second common-mode inductor filter, and both ends of the other side of the second common-mode inductor filter are used to connect to the communication interface of an external device.
[0013] Further, the isolation module includes a first digital isolator with a model number of SCM3728ASA and a second digital isolator with a model number of SCM3725ASA;
[0014] The second pin of the first digital isolator is used to connect the RS232 / RS485 signal output by the CPU, the third pin of the first digital isolator is used to connect the DE485 signal output by the CPU, the seventh pin of the first digital isolator is connected to the eleventh pin of the multi-protocol transceiver, and the sixth pin of the first digital isolator is connected to the fifteenth pin of the multi-protocol transceiver;
[0015] The second pin of the second digital isolator is used to connect the RXD signal output by the CPU, the third pin of the second digital isolator is used to connect the TXD signal output by the CPU, the seventh pin of the second digital isolator is connected to the eighth pin of the multi-protocol transceiver, and the sixth pin of the second digital isolator is connected to the sixteenth pin of the multi-protocol transceiver.
[0016] Further, the SPI to multi-serial port adapter module includes a four-serial port chip of model CH9434, and the 21st pin, 48th pin, 17th pin, and 20th pin of the four-serial port chip form a group connected to one of the isolation modules; the 7th pin, 12th pin, 6th pin, and 5th pin of the four-serial port chip form a group connected to another isolation module; the 8th pin, 14th pin, 4th pin, and 33rd pin of the four-serial port chip form a group connected to another isolation module; the 15th pin, 16th pin, 37th pin, and 36th pin of the four-serial port chip form a group connected to another isolation module.
[0017] Furthermore, the port circuit includes two layers of printed circuit boards, the first layer of which includes two SPI to multi-serial port adapter modules, and the two SPI to multi-serial port adapter modules are connected to the CPU via a serial bus; the second layer includes eight isolation modules, eight multi-protocol transceiver modules and eight common-mode filtering modules, and the eight common-mode filtering modules provide eight ports for communication with external devices.
[0018] The utility model is based on the logic switching function of the communication protocol of the multi-protocol transceiver module. Through the definition of the port protocol by the CPU, the purpose of flexibly configuring the port protocol connected to the communication interface of the external device is realized to adapt to the RS232, RS422, and RS485 protocol requirements that may exist from different external devices, and can effectively solve the communication compatibility problem between external devices of various communication types and the host computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 The present invention is a circuit diagram of a multi-protocol transceiver module in a specific embodiment of the present invention.
[0020] Figure 2 The following is a circuit schematic diagram of a common mode filtering module in a specific embodiment of the utility model.
[0021] Figure 3 The figure is a circuit schematic diagram of an isolation module in a specific embodiment of the utility model.
[0022] Figure 4 The present invention is a circuit diagram of a SPI to multiple serial port adapter module in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0023] The specific implementation methods of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the description of these implementation methods is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in each implementation method of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0024] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0025] A port circuit compatible with multiple communication protocols includes multiple common-mode filter modules for connecting to the communication interface of an external device to avoid electromagnetic interference caused by connecting to the external device; each common-mode filter module is connected to a multi-protocol transceiver module, and each group of the multi-protocol transceiver modules is connected to the communication port of the CPU through an SPI to multi-serial port adapter module after grouping to achieve the unification of the level signal. According to the communication protocol specification of the external device, the CPU defines the port protocol, and the control signal finally implements the port protocol setting in the multi-protocol transceiver module to adapt to the RS232, RS422, and RS485 protocol requirements that may exist from different external devices.
[0026] like Figure 1 to Figure 4As shown, each multi-protocol transceiver module is connected to the SPI to multi-serial port adapter module through an isolation module, and the multi-protocol transceiver module includes a multi-protocol transceiver U2_1 of model MAX3160. The control pin of the CPU outputting the DE485 signal is connected to an eighteenth resistor R18_1 via the SPI to multi-serial port adapter module and the isolation module. The eighteenth resistor R18_1 is connected to the base of a transistor Q1_1, and a nineteenth resistor R19_1 is connected between the base and the emitter of the transistor Q1_1. The collector of the transistor Q1_1 is connected to the twelfth pin of the multi-protocol transceiver U2_1, and the emitter of the transistor Q1_1 is grounded, and the collector is also connected to the positive power supply through the sixteenth resistor R16_1.
[0027] The control pin of the CPU outputting DE485 signal is connected to the 15th pin of the multi-protocol transceiver U2_1 after passing through the SPI to multi-serial port adapter module and the isolation module. The control pin of the CPU outputting RS232 / RS485 signal is connected to the 11th pin of the multi-protocol transceiver U2_1 after passing through the SPI to multi-serial port adapter module and the isolation module; the communication pins of the CPU outputting RXD signal and TXD signal are connected to the 18th pin and the 15th pin of the multi-protocol transceiver U2_1 respectively after passing through the SPI to multi-serial port adapter module and the isolation module. It should be noted that the RS232 / RS485 signal referred to in this case is a signal defined as "RS232 / RS485", which does not mean RS232 signal or RS485 signal. The signal level output by the CPU is 0 or 1.
[0028] The common-mode filtering module includes a first common-mode inductor filter LC1_1 and a second common-mode inductor filter LC2_1; a fifteenth resistor R15_1 is connected between the fourth pin and the third pin of the multi-protocol transceiver U2_1, the fifteenth resistor R15_1 is connected in parallel with two series-connected twenty-third capacitors C23_1 and twenty-fourth capacitors C24_1, both ends of the fifteenth resistor R15_1 are connected to the first common-mode inductor filter LC1_1, a sixteenth Zener diode TD16_1 and a seventeenth Zener diode TD17_1 are connected in series between both ends of one side of the first common-mode inductor filter LC1_1, and two ends PAB_N and PAB_P on the other side of the first common-mode inductor filter LC1_1 are connected to the communication interface of an external device for external device data transmission.
[0029] A seventeenth resistor R17_1 is connected between the fifth pin and the sixth pin of the multi-protocol transceiver U2_1, and the seventeenth resistor R17_1 is connected in parallel with two series-connected twenty-fifth capacitors C25_1 and twenty-sixth capacitors C26_1, and two ends of the seventeenth resistor R17_1 are connected to a second common-mode inductor filter LC2_1, and eighteenth voltage-stabilizing diodes TD18_1 and nineteenth voltage-stabilizing diodes TD19_1 are connected in series between two ends of one side of the second common-mode inductor filter LC2_1, and two ends PYZ_N and PYZ_P on the other side of the second common-mode inductor filter LC2_1 are connected to the communication interface of the external device for external device data reception. PAB_N, PAB_P, PYZ_N, and PYZ_P are two groups of transceivers, which can realize duplex mode communication.
[0030] The multi-protocol transceiver U2_1 has a logic operation function, and the internal logic of the present embodiment is designed as follows: when the level combination of the 11th pin, the 12th pin, and the 15th pin of the multi-protocol transceiver U2_1 is '011', the communication type is RS232; when the level combination is '110', the communication type is RS485; when the level combination is '101', the communication type is RS422. The levels of the 11th pin, the 12th pin, and the 15th pin of the multi-protocol transceiver U2_1 come from the control output of the CPU.
[0031] The isolation module described in the present application is to isolate the connection between the CPU end and the external device to prevent possible noise, interference, voltage fluctuation and other problems from interfering with or damaging the CPU. The isolation module includes a first digital isolator U3_1 with a model number of SCM3728ASA and a second digital isolator U4_1 with a model number of SCM3725ASA, as shown in an embodiment of the accompanying drawings:
[0032] The second pin of the first digital isolator U3_1 is used to connect the RS232 / RS485 signal output by the CPU, the third pin of the first digital isolator U3_1 is used to connect the DE485 signal output by the CPU, the seventh pin of the first digital isolator U3_1 is connected to the eleventh pin of the multi-protocol transceiver U2_1, and the sixth pin of the first digital isolator U3_1 is connected to the fifteenth pin of the multi-protocol transceiver U2_1;
[0033] The second pin of the second digital isolator U4_1 is used to connect the RXD signal output by the CPU, the third pin of the second digital isolator U4_1 is used to connect the TXD signal output by the CPU, the seventh pin of the second digital isolator U4_1 is connected to the eighth pin of the multi-protocol transceiver U2_1, and the sixth pin of the second digital isolator U4_1 is connected to the sixteenth pin of the multi-protocol transceiver U2_1.
[0034] The SPI to multi-serial port adapter module includes a four-serial port chip U12 of model CH9434, which provides four groups of full-duplex 9-wire asynchronous serial ports, which can be used for CPU to expand asynchronous serial ports. The twenty-first pin, the forty-eighth pin, the seventeenth pin, and the twentieth pin of the four-serial port chip U12 form a group connected to one of the isolation modules; the seventh pin, the twelfth pin, the sixth pin, and the fifth pin of the four-serial port chip U12 form a group connected to another isolation module; the eighth pin, the fourteenth pin, the fourth pin, and the thirty-third pin of the four-serial port chip U12 form a group connected to another isolation module; the fifteenth pin, the sixteenth pin, the thirty-seventh pin, and the thirty-sixth pin of the four-serial port chip U12 form a group connected to another isolation module.
[0035] Taking into account the circuit board size and crosstalk issues when printing circuits, preferably, the printed board connected to the CPU is separated from the printed board connected to external devices, that is, the port circuit includes two layers of printed circuit boards, the first layer of which includes two SPI to multi-serial port adapter modules, and the two SPI to multi-serial port adapter modules are connected to the CPU through a serial bus; the second layer includes eight isolation modules, eight multi-protocol transceiver modules and eight common-mode filter modules, and the eight common-mode filter modules provide eight ports for communication with external devices.
[0036] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.
Claims
1. A port circuit compatible with multiple communication protocols, characterized in that: It includes multiple common-mode filter modules for connecting to the communication interface of external devices, each of which is connected to a multi-protocol transceiver module, and each group of the multi-protocol transceiver modules is connected to the communication port of the CPU via an SPI to multi-serial port adapter module.
2. The port circuit compatible with multiple communication protocols according to claim 1, characterized in that: Each multi-protocol transceiver module is connected to the SPI to multi-serial port adapter module through an isolation module, the multi-protocol transceiver module includes a multi-protocol transceiver (U2_1) of model MAX3160, the control pin of the CPU outputting the DE485 signal is connected to an eighteenth resistor (R18_1) via the SPI to multi-serial port adapter module and the isolation module, the eighteenth resistor (R18_1) is connected to the base of a transistor (Q1_1), a nineteenth resistor (R19_1) is connected between the base and the emitter of the transistor (Q1_1), the collector of the transistor (Q1_1) is connected to the twelfth pin of the multi-protocol transceiver (U2_1), the emitter of the transistor (Q1_1) is grounded, and the collector is also connected to a positive power supply through a sixteenth resistor (R16_1); The control pin for the CPU to output DE485 signals is connected to the 15th pin of the multi-protocol transceiver (U2_1) after passing through the SPI to multi-serial port adapter module and the isolation module; the control pin for the CPU to output RS232 / RS485 signals is connected to the 11th pin of the multi-protocol transceiver (U2_1) after passing through the SPI to multi-serial port adapter module and the isolation module; the communication pins for the CPU to output RXD signals and TXD signals are connected to the 18th pin and the 15th pin of the multi-protocol transceiver (U2_1) respectively after passing through the SPI to multi-serial port adapter module and the isolation module; The common-mode filtering module comprises a first common-mode inductor filter (LC1_1) and a second common-mode inductor filter (LC2_1); a fifteenth resistor (R15_1) is connected between the fourth pin and the third pin of the multi-protocol transceiver (U2_1); the fifteenth resistor (R15_1) is connected in parallel with two series-connected twenty-third capacitors (C23_1) and twenty-fourth capacitors (C24_1); two ends of the fifteenth resistor (R15_1) are connected to the first common-mode inductor filter (LC1_1); a sixteenth voltage-stabilizing diode (TD16_1) and a seventeenth voltage-stabilizing diode (TD17_1) are connected in series between two ends of one side of the first common-mode inductor filter (LC1_1); and two ends of the other side of the first common-mode inductor filter (LC1_1) are used to connect to the communication interface of an external device; A seventeenth resistor (R17_1) is connected between the fifth pin and the sixth pin of the multi-protocol transceiver (U2_1), the seventeenth resistor (R17_1) is connected in parallel with two series-connected twenty-fifth capacitors (C25_1) and twenty-sixth capacitors (C26_1), two ends of the seventeenth resistor (R17_1) are connected to a second common-mode inductor filter (LC2_1), an eighteenth Zener diode (TD18_1) and a nineteenth Zener diode (TD19_1) are connected in series between two ends of one side of the second common-mode inductor filter (LC2_1), and two ends of the other side of the second common-mode inductor filter (LC2_1) are used to connect to a communication interface of an external device.
3. The port circuit compatible with multiple communication protocols according to claim 2, characterized in that: The isolation module includes a first digital isolator (U3_1) with a model number of SCM3728ASA and a second digital isolator (U4_1) with a model number of SCM3725ASA; The second pin of the first digital isolator (U3_1) is used to connect the RS232 / RS485 signal output by the CPU, the third pin of the first digital isolator (U3_1) is used to connect the DE485 signal output by the CPU, the seventh pin of the first digital isolator (U3_1) is connected to the eleventh pin of the multi-protocol transceiver (U2_1), and the sixth pin of the first digital isolator (U3_1) is connected to the fifteenth pin of the multi-protocol transceiver (U2_1); The second pin of the second digital isolator (U4_1) is used to connect the RXD signal output by the CPU, the third pin of the second digital isolator (U4_1) is used to connect the TXD signal output by the CPU, the seventh pin of the second digital isolator (U4_1) is connected to the eighth pin of the multi-protocol transceiver (U2_1), and the sixth pin of the second digital isolator (U4_1) is connected to the sixteenth pin of the multi-protocol transceiver (U2_1).
4. The port circuit compatible with multiple communication protocols according to claim 3, characterized in that: The SPI to multi-serial port conversion module comprises a four-serial port chip (U12) of model CH9434, wherein the twenty-first pin, the forty-eighth pin, the seventeenth pin and the twentieth pin of the four-serial port chip (U12) form a group connected to one of the isolation modules; the seventh pin, the twelfth pin, the sixth pin and the fifth pin of the four-serial port chip (U12) form a group connected to another of the isolation modules; the eighth pin, the fourteenth pin, the fourth pin and the thirty-third pin of the four-serial port chip (U12) form a group connected to another of the isolation modules; the fifteenth pin, the sixteenth pin, the thirty-seventh pin and the thirty-sixth pin of the four-serial port chip (U12) form a group connected to yet another of the isolation modules.
5. The port circuit compatible with multiple communication protocols according to claim 4, characterized in that: The port circuit comprises two layers of printed circuit boards, the first layer of which comprises two SPI to multi-serial port adapter modules, and the two SPI to multi-serial port adapter modules are connected to the CPU via a serial bus; The second layer includes eight isolation modules, eight multi-protocol transceiver modules and eight common-mode filter modules. The eight common-mode filter modules provide eight ports for communication connection with external devices.
Citation Information
Cited By
Data acquisition device for lipid nanoparticle preparation system
CN119828530A
