A high-speed communication system based on RS232 protocol
By designing a high-speed communication system based on the RS232 protocol, the problem that existing smart meters cannot meet the high-baud rate communication needs is solved, efficient and stable data transmission is achieved, and baud rate communication is supported 19200 and above.
Patent Information
- Application Number
- CN202421266086.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2034-06-05
AI Technical Summary
The RS232 communication of existing smart meters can only meet the maximum 9600 baud rate, and cannot meet the market's demand for high-speed RS232 communications with 19200 baud rate or higher baud rate.
A high-speed communication system based on the RS232 protocol is designed, including a power supply unit, a communication receiving unit, a communication sending unit and a communication processing unit. It is powered by an LDO circuit and uses specific circuit components (such as capacitors, resistors, diodes and chips) to realize the processing and transmission of data signals.
It realizes the completion of large-scale data transmission in a short time, improves data transmission efficiency, supports baud rate communication of 19200 and above, has strong anti-interference ability and high stability, and is suitable for different products.
Smart Images

Figure CN222706583U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electric meter communication, in particular to a high-speed communication system based on RS232 protocol. Background Art
[0002] Smart meters are an indispensable part of the power system and need to collect and transmit key data such as power, voltage, and current in real time. In overseas markets, smart meters usually need to communicate with concentrators to upload the collected data to the management system. In some specific areas overseas, there is a market demand for high-speed RS232 communication with a baud rate of 19200 or higher to ensure that data between the meter and the concentrator can be transmitted accurately and quickly. The RS232 communication in the current energy meter can only meet the highest baud rate of 9600, which cannot meet the actual needs of the market. Utility Model Content
[0003] The utility model aims to solve the above problems and provides a high-speed communication system based on RS232 protocol. The technical solution adopted is as follows:
[0004] A high-speed communication system based on RS232 protocol, comprising a power supply unit, a communication receiving unit, a communication sending unit and a communication processing unit.
[0005] The power supply unit supplies power to the communication system through the LDO circuit; the communication receiving unit is connected to the electric energy meter and the communication processing unit, and sends the same and opposite levels to the communication processing unit according to the level of the signal sent by the electric energy meter data; the communication sending unit is connected to the electric energy meter and the communication processing unit, and sends the same and opposite levels to the electric energy meter according to the level of the signal sent by the communication processing unit.
[0006] On the basis of the above scheme, the communication processing unit includes capacitor CX1, capacitor CX2, capacitor CX3, capacitor CX4, capacitor CX5, resistor RX7, resistor RX10, diode DX3, diode DX5 and chip UX1, wherein the two ends of capacitor CX2 are respectively connected to the 1-pin C1+ port and the 3-pin C1- port of chip UX1, the two ends of capacitor CX5 are respectively connected to the 4-pin C2+ port and the 5-pin C2- port of chip UX1, the 10-pin T2IN port of chip UX1 is connected to the communication processing unit data receiving signal MD_RXD, the 9-pin R2OUT port of chip UX1 is connected to the communication processing unit data sending signal MD_TXD, one end of capacitor CX1 is connected to the 2-pin VS+ port of chip UX1, and the other end is connected to the communication system reference ground MGND, and one end of capacitor CX3 is connected to the 6-pin VS- port of chip UX1. , the other end is connected to the communication system reference ground MGND, one end of the capacitor CX4 and the 16-pin VCC port of the chip UX1 are connected to the communication system operating voltage M+5V, the other end of the capacitor CX4 is connected to the communication system reference ground MGND, the 15-pin GND port of the chip UX1 is connected to the communication system reference ground MGND, one end of the resistor RX7 is connected to the 7-pin T2OUT port of the chip UX1, the other end and one end of the diode DX3 are connected to the RS232 communication receiving signal Module_RXD, the other end of the diode DX3 is connected to the communication system reference ground MGND, one end of the resistor RX10 is connected to the 8-pin R2IN port of the chip UX1, the other end and one end of the diode DX5 are connected to the RS232 communication sending signal Module_TXD, and the other end of the diode DX5 is connected to the communication system reference ground MGND.
[0007] On the basis of the above scheme, the communication receiving unit includes a resistor RX13, a resistor RX14, a resistor RX16, a resistor RX18, a resistor RX19, a capacitor CX11, an optocoupler DX6 and a transistor QX3, wherein the anode of the internal diode of the optocoupler DX6 is connected to the working voltage DVDD of the electric energy meter, the cathode is connected to one end of the resistor RX18, and the other end of the resistor RX18 is connected to the electric energy meter data sending signal M_Module_TXD, the collector of the internal transistor of the optocoupler DX6 is connected to the working voltage M+5V of the communication system and one end of the resistor RX13, the other end of the resistor RX13 and one end of the resistor RX14 are commonly connected to the collector of the transistor QX3, the other end of the resistor RX14 is connected to the communication processing unit data receiving signal MD_RXD, the resistor RX16 and the capacitor CX11 are connected in parallel and then connected in series between the emitter of the internal transistor of the optocoupler DX6 and the base of the transistor QX3, one end of the resistor RX19 is connected to the emitter of the internal transistor of the optocoupler DX6, and the other end is commonly connected to the communication system reference ground MGND with the emitter of the transistor QX1.
[0008] Preferably, the communication sending unit includes a resistor RX5, a resistor RX6, a resistor RX8, a resistor RX9, a resistor RX12, a capacitor CX7, an optocoupler DX4 and a transistor QX1, wherein one end of the resistor RX5 is connected to the electric energy meter data receiving signal M_Module_RXD, the other end of the resistor RX5 and one end of the resistor RX6 are commonly connected to the collector of the transistor QX1, the other end of the resistor RX6 and the collector of the internal transistor of the optocoupler DX4 are commonly connected to the electric energy meter working voltage DVDD, the resistor RX9 and the capacitor CX7 are connected in parallel and then connected in series between the base of the transistor QX1 and the emitter of the internal transistor of the optocoupler DX4, one end of the resistor RX12 is connected to the emitter of the internal transistor of the optocoupler DX4, and the other end and the emitter of the transistor QX1 are commonly connected to the electric energy meter system reference ground GND, one end of the resistor RX8 is connected to the communication system working voltage M+5V, and the other end is connected to the positive electrode of the internal diode of the optocoupler DX4, and the negative electrode of the diode is connected to the communication processing unit data sending signal MD_TXD.
[0009] Preferably, the power supply unit includes a capacitor CX9, a capacitor CX10 and an LDO chip UX2, wherein the capacitor CX9 is connected in parallel between the 3-pin VIN port and the 2-pin GND port of the chip UX2, the 3-pin VIN port of the chip UX2 is connected to the communication system power supply voltage V+12V, the 2-pin GND port of the chip UX2 is connected to the communication system reference ground MGND, the capacitor CX10 is connected in parallel between the 1-pin VOUT port and the 2-pin GND of the chip UX2, and the 1-pin VOUT port of the chip UX2 is connected to the communication system working voltage M+5V.
[0010] Preferably, the model of the chip UX1 is TP3232N-SR.
[0011] The beneficial effects of the utility model are: it can complete the transmission of a large amount of data in a short time, effectively improve the data transmission efficiency, and support 19200 and higher baud rate communications; it has strong anti-interference ability, isolates and partitions signals to avoid signal mixing; it has excellent stability, and can ensure the accuracy and reliability of data transmission even in harsh working environments, reducing data transmission errors and packet loss; it has a simple structure and a wide range of applications, and can be applied to different products. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 : Circuit diagram of the communication processing unit of the utility model;
[0013] Figure 2 : Circuit diagram of the communication receiving unit of the utility model;
[0014] Figure 3 : Circuit diagram of the communication sending unit of the utility model;
[0015] Figure 4 : Circuit diagram of the power supply unit of the utility model. DETAILED DESCRIPTION
[0016] The utility model is further described below in conjunction with the accompanying drawings and embodiments:
[0017] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0018] like Figures 1 to 4 As shown, a high-speed communication system based on RS232 protocol includes a power supply unit, a communication receiving unit, a communication sending unit and a communication processing unit.
[0019] The power supply unit supplies power to the communication system through the LDO circuit; the communication receiving unit is connected to the electric energy meter and the communication processing unit, and sends the same and opposite levels to the communication processing unit according to the level of the signal sent by the electric energy meter data; the communication sending unit is connected to the electric energy meter and the communication processing unit, and sends the same and opposite levels to the electric energy meter according to the level of the signal sent by the communication processing unit.
[0020] like Figure 1As shown, the communication processing unit includes capacitor CX1, capacitor CX2, capacitor CX3, capacitor CX4, capacitor CX5, resistor RX7, resistor RX10, diode DX3, diode DX5 and chip UX1, and the model of chip UX1 is TP3232N-SR. The two ends of capacitor CX2 are respectively connected to the 1-pin C1+ port and the 3-pin C1- port of chip UX1, the two ends of capacitor CX5 are respectively connected to the 4-pin C2+ port and the 5-pin C2- port of chip UX1, the 10-pin T2IN port of chip UX1 is connected to the communication processing unit data receiving signal MD_RXD, the 9-pin R2OUT port of chip UX1 is connected to the communication processing unit data sending signal MD_TXD, one end of capacitor CX1 is connected to the 2-pin VS+ port of chip UX1, and the other end is connected to the communication system reference ground MGND, one end of capacitor CX3 is connected to the 6-pin VS- port of chip UX1, and the other end is connected to the communication system reference ground MGND, one end of capacitor CX4 is connected to the 16-pin VCC port of chip UX1 Commonly connected to the communication system working voltage M+5V, the other end of the capacitor CX4 is connected to the communication system reference ground MGND, the 15-pin GND port of the chip UX1 is connected to the communication system reference ground MGND, one end of the resistor RX7 is connected to the 7-pin T2OUT port of the chip UX1, and the other end and one end of the diode DX3 are connected to the RS232 communication receiving signal Module_RXD, the other end of the diode DX3 is connected to the communication system reference ground MGND, one end of the resistor RX10 is connected to the 8-pin R2IN port of the chip UX1, and the other end and one end of the diode DX5 are connected to the RS232 communication sending signal Module_TXD, and the other end of the diode DX5 is connected to the communication system reference ground MGND.
[0021] like Figure 2 As shown, the communication receiving unit includes a resistor RX13, a resistor RX14, a resistor RX16, a resistor RX18, a resistor RX19, a capacitor CX11, an optocoupler DX6 and a transistor QX3, wherein the anode of the internal diode of the optocoupler DX6 is connected to the working voltage DVDD of the electric energy meter, the cathode is connected to one end of the resistor RX18, and the other end of the resistor RX18 is connected to the data sending signal M_Module_TXD of the electric energy meter, the collector of the internal transistor of the optocoupler DX6 is connected to the working voltage M+5V of the communication system and one end of the resistor RX13, the other end of the resistor RX13 and one end of the resistor RX14 are commonly connected to the collector of the transistor QX3, the other end of the resistor RX14 is connected to the communication processing unit data receiving signal MD_RXD, the resistor RX16 and the capacitor CX11 are connected in parallel and then connected in series between the emitter of the internal transistor of the optocoupler DX6 and the base of the transistor QX3, one end of the resistor RX19 is connected to the emitter of the internal transistor of the optocoupler DX6, and the other end and the emitter of the transistor QX1 are commonly connected to the reference ground MGND of the communication system.
[0022] like Figure 3 As shown, the communication sending unit includes a resistor RX5, a resistor RX6, a resistor RX8, a resistor RX9, a resistor RX12, a capacitor CX7, an optocoupler DX4 and a transistor QX1, wherein one end of the resistor RX5 is connected to the electric energy meter data receiving signal M_Module_RXD, the other end of the resistor RX5 and one end of the resistor RX6 are commonly connected to the collector of the transistor QX1, the other end of the resistor RX6 and the collector of the internal transistor of the optocoupler DX4 are commonly connected to the electric energy meter working voltage DVDD, the resistor RX9 and the capacitor CX7 are connected in parallel and then connected in series between the base of the transistor QX1 and the emitter of the internal transistor of the optocoupler DX4, one end of the resistor RX12 is connected to the emitter of the internal transistor of the optocoupler DX4, and the other end and the emitter of the transistor QX1 are commonly connected to the electric energy meter system reference ground GND, one end of the resistor RX8 is connected to the communication system working voltage M+5V, and the other end is connected to the positive electrode of the internal diode of the optocoupler DX4, and the negative electrode of the diode is connected to the communication processing unit data sending signal MD_TXD.
[0023] like Figure 4 As shown, the power supply unit includes a capacitor CX9, a capacitor CX10 and an LDO chip UX2, wherein the capacitor CX9 is connected in parallel between the 3-pin VIN port and the 2-pin GND port of the chip UX2, the 3-pin VIN port of the chip UX2 is connected to the communication system power supply voltage V+12V, the 2-pin GND port of the chip UX2 is connected to the communication system reference ground MGND, the capacitor CX10 is connected in parallel between the 1-pin VOUT port and the 2-pin GND of the chip UX2, and the 1-pin VOUT port of the chip UX2 is connected to the communication system working voltage M+5V.
[0024] In the power supply unit, the communication system power supply voltage V+12V is stepped down by the LDO circuit to obtain the communication system working voltage M+5V, which supplies power to the entire communication system. In the communication receiving unit, when the electric energy meter data transmission signal M_Module_TXD is at a high level, the optical coupler DX6 is not turned on, and the communication processing unit data receiving signal MD_RXD is at a high level. When the electric energy meter data transmission signal M_Module_TXD becomes a low level, the optical coupler DX6 is turned on, the base of the transistor QX3 becomes a high level, the transistor QX3 is turned on, and the communication processing unit data receiving signal MD_RXD becomes a low level. The resistor RX16, the resistor RX19 and the capacitor CX11 filter the data transmission signal to reduce the impact of high-speed signals during the transmission process. In the communication sending unit, when the communication processing unit data sending signal MD_TXD is at a high level, the optocoupler DX4 is not turned on, and the electric energy meter data receiving signal M_Module_RXD is at a high level. When the communication processing unit data sending signal MD_TXD becomes a low level, the optocoupler DX4 is turned on, the base of the transistor QX1 becomes a high level, the transistor QX1 is turned on, and the electric energy meter data receiving signal M_Module_RXD becomes a low level. The resistors RX9 and RX12 and the capacitor CX7 filter the data transmission signal to reduce the impact of the high-speed signal during the transmission process.
[0025] The present invention is described above by way of examples, but the present invention is not limited to the above specific embodiments, and any changes or modifications based on the present invention belong to the scope of protection required by the present invention.
Claims
1. A high-speed communication system based on RS232 protocol, characterized in that: It includes a power supply unit, a communication receiving unit, a communication sending unit and a communication processing unit. The power supply unit supplies power to the communication system through the LDO circuit; the communication receiving unit is connected to the electric energy meter and the communication processing unit, and sends the same level of the signal to the communication processing unit according to the level of the electric energy meter data; the communication sending unit is connected to the electric energy meter and the communication processing unit, and sends the same level of the signal to the electric energy meter according to the level of the signal sent by the communication processing unit.
2. A high-speed communication system based on RS232 protocol according to claim 1, characterized in that: The communication processing unit includes a capacitor CX1, a capacitor CX2, a capacitor CX3, a capacitor CX4, a capacitor CX5, a resistor RX7, a resistor RX10, a diode DX3, a diode DX5 and a chip UX1, wherein the two ends of the capacitor CX2 are respectively connected to the 1-pin C1+ port and the 3-pin C1- port of the chip UX1, the two ends of the capacitor CX5 are respectively connected to the 4-pin C2+ port and the 5-pin C2- port of the chip UX1, the 10-pin T2IN port of the chip UX1 is connected to the communication processing unit data receiving signal MD_RXD, the 9-pin R2OUT port of the chip UX1 is connected to the communication processing unit data sending signal MD_TXD, one end of the capacitor CX1 is connected to the 2-pin VS+ port of the chip UX1, and the other end is connected to the communication system reference ground MGND, one end of the capacitor CX3 is connected to the 6-pin VS- port of the chip UX1, and the other end is connected to the Connected to the communication system reference ground MGND, one end of the capacitor CX4 and the 16-pin VCC port of the chip UX1 are connected to the communication system working voltage M+5V, the other end of the capacitor CX4 is connected to the communication system reference ground MGND, the 15-pin GND port of the chip UX1 is connected to the communication system reference ground MGND, one end of the resistor RX7 is connected to the 7-pin T2OUT port of the chip UX1, and the other end and one end of the diode DX3 are connected to the RS232 communication receiving signal Module_RXD, the other end of the diode DX3 is connected to the communication system reference ground MGND, one end of the resistor RX10 is connected to the 8-pin R2IN port of the chip UX1, and the other end and one end of the diode DX5 are connected to the RS232 communication sending signal Module_TXD, and the other end of the diode DX5 is connected to the communication system reference ground MGND.
3. A high-speed communication system based on RS232 protocol according to claim 2, characterized in that, The communication receiving unit includes a resistor RX13, a resistor RX14, a resistor RX16, a resistor RX18, a resistor RX19, a capacitor CX11, an optocoupler DX6 and a transistor QX3, wherein the anode of the internal diode of the optocoupler DX6 is connected to the working voltage DVDD of the electric energy meter, the cathode is connected to one end of the resistor RX18, and the other end of the resistor RX18 is connected to the data sending signal M_Module_TXD of the electric energy meter, the collector of the internal transistor of the optocoupler DX6 is connected to the working voltage M+5V of the communication system and one end of the resistor RX13, the other end of the resistor RX13 and one end of the resistor RX14 are commonly connected to the collector of the transistor QX3, the other end of the resistor RX14 is connected to the communication processing unit data receiving signal MD_RXD, the resistor RX16 and the capacitor CX11 are connected in parallel and then connected in series between the emitter of the internal transistor of the optocoupler DX6 and the base of the transistor QX3, one end of the resistor RX19 is connected to the emitter of the internal transistor of the optocoupler DX6, and the other end and the emitter of the transistor QX1 are commonly connected to the reference ground MGND of the communication system.
4. A high-speed communication system based on RS232 protocol according to claim 2, characterized in that: The communication sending unit includes a resistor RX5, a resistor RX6, a resistor RX8, a resistor RX9, a resistor RX12, a capacitor CX7, an optocoupler DX4 and a transistor QX1, wherein one end of the resistor RX5 is connected to the electric energy meter data receiving signal M_Module_RXD, the other end of the resistor RX5 and one end of the resistor RX6 are commonly connected to the collector of the transistor QX1, the other end of the resistor RX6 and the collector of the internal transistor of the optocoupler DX4 are commonly connected to the electric energy meter working voltage DVDD, the resistor RX9 and the capacitor CX7 are connected in parallel and then connected in series between the base of the transistor QX1 and the emitter of the internal transistor of the optocoupler DX4, one end of the resistor RX12 is connected to the emitter of the internal transistor of the optocoupler DX4, and the other end and the emitter of the transistor QX1 are commonly connected to the electric energy meter system reference ground GND, one end of the resistor RX8 is connected to the communication system working voltage M+5V, and the other end is connected to the positive electrode of the internal diode of the optocoupler DX4, and the negative electrode of the diode is connected to the communication processing unit data sending signal MD_TXD.
5. A high-speed communication system based on RS232 protocol according to claim 1, characterized in that: The power supply unit includes a capacitor CX9, a capacitor CX10 and an LDO chip UX2, wherein the capacitor CX9 is connected in parallel between the 3-pin VIN port and the 2-pin GND port of the chip UX2, the 3-pin VIN port of the chip UX2 is connected to the communication system power supply voltage V+12V, the 2-pin GND port of the chip UX2 is connected to the communication system reference ground MGND, the capacitor CX10 is connected in parallel between the 1-pin VOUT port and the 2-pin GND of the chip UX2, and the 1-pin VOUT port of the chip UX2 is connected to the communication system working voltage M+5V.
6. A high-speed communication system based on RS232 protocol according to claim 2, characterized in that: The model of the chip UX1 is TP3232N-SR.