CN103268300B - A kind of serial interface circuit of serial communication management server - Google Patents

A kind of serial interface circuit of serial communication management server Download PDF

Info

Publication number
CN103268300B
CN103268300B CN201310184368.3A CN201310184368A CN103268300B CN 103268300 B CN103268300 B CN 103268300B CN 201310184368 A CN201310184368 A CN 201310184368A CN 103268300 B CN103268300 B CN 103268300B
Authority
CN
China
Prior art keywords
circuit
com1
network
msl
serial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310184368.3A
Other languages
Chinese (zh)
Other versions
CN103268300A (en
Inventor
黄永忠
沈学明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG ZHENGTAI ZHONGZI CONTROL ENGINEERING Co Ltd
Original Assignee
ZHEJIANG ZHENGTAI ZHONGZI CONTROL ENGINEERING Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHEJIANG ZHENGTAI ZHONGZI CONTROL ENGINEERING Co Ltd filed Critical ZHEJIANG ZHENGTAI ZHONGZI CONTROL ENGINEERING Co Ltd
Priority to CN201310184368.3A priority Critical patent/CN103268300B/en
Publication of CN103268300A publication Critical patent/CN103268300A/en
Application granted granted Critical
Publication of CN103268300B publication Critical patent/CN103268300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a kind of serial interface circuit of serial communication management server, comprise: MCU, RS485 circuit, RS422 circuit and RS232 circuit, two analog switches, dc-dc, described two analog switch U606 and U607, the network that wherein output X and the Y of U606 connects is n485_RE1,485_DE1; The network that output X and the Y of U607 connects is 485_TXD1 and 232_EN1, network n485_RE1 is the reception Enable Pin of 485 chips, network 485_DE1 is the transmission Enable Pin of 485 chips, network 485_TXD1 is 485 chip data transmitting terminals, network 232_EN1 is the Enable Pin of 232 chips, MCU exports control level MSL_A_COM1, MSL_B_COM1, to realize different communication interface types.

Description

A kind of serial interface circuit of serial communication management server
Technical field
The present invention relates to a kind of serial interface circuit of serial communication management server, specifically a kind of RS485/RS422/RS232 commutation circuit.
Background technology
Intelligent distribution system Communication Gateway server, as the access device of third party device, can realize grid to the controller of third party with ModbusRTU agreement, and the protocol conversion of instrument and meter lamp, the Real-time Collection of data, controls the functions such as centralized management.But because the communication interface circuit of field instrument and other equipment generally has 485 circuit and 422 circuit and 232 circuit etc.Therefore need to provide a kind of equipment, this communication interface circuit can be switched and be connected with the better communication of field instrument and even equipment better to provide.When the bus connecting mode of known third party device, the connected mode of communicating circuit can be set by button.The correct coupling realizing communication interface circuit, and the quantity of serial port, type, address, baud rate, the communications parameters such as agreement can be arranged.
Along with the development in market.Communication Gateway server will as the access device of third party device, is connected and the conversion of agreement with the communication of better serving between equipment with equipment.Therefore market is in the urgent need to a kind of implementation that automatically can realize RS485/RS422/RS232 commutation circuit.
Summary of the invention
In order to solve the above-mentioned technical matters existed in prior art, the invention provides a kind of serial interface circuit of serial communication management server, comprise: MCU, RS485 circuit, RS422 circuit and RS232 circuit, two analog switches, dc-dc, described two analog switch U606 and U607, the network that wherein output X and the Y of U606 connects is n485_RE1,485_DE1; The network that output X and the Y of U607 connects is 485_TXD1 and 232_EN1, network n485_RE1 is the reception Enable Pin of 485 chips, network 485_DE1 is the transmission Enable Pin of 485 chips, network 485_TXD1 is 485 chip data transmitting terminals, network 232_EN1 is the Enable Pin of 232 chips, MCU exports control level MSL_A_COM1, MSL_B_COM1, to realize different communication interface types.
Further, arrange control level MSL_A_COM1, MSL_B_COM1 is 0, when 0, and this communication interface type is RS-232.
Further, arrange control level MSL_A_COM1, MSL_B_COM1 is 1, when 0, and this communication interface type is RS-485.
Further, arrange control level MSL_A_COM1, MSL_B_COM1 is 0, when 1, and this communication interface type is RS-422.
Further, now n485_RE1 is level Isosorbide-5-Nitrae 85_DE1 be level 0,485_TXD1 is unsettled level, and 232_EN1 is level 0.
The present invention adopts the switching of Single-chip Controlling signal, and coordinates 2 analog switch devices for selecting the communication interface circuit communicated as third party.Utilize the conductive channel of Single-chip Controlling analog switch, select corresponding communication interface circuit, the interface shape of communication interface circuit can need sets itself according to user, and without the need to increasing other interface conversion circuit, the realization of this circuit, makes the cost of product significantly reduce.
Accompanying drawing explanation
Fig. 1 is the theory diagram of serial interface circuit of serial communication management server of the present invention;
Fig. 2 is the analog switch commutation circuit schematic diagram of this serial interface circuit of serial communication management server;
Fig. 3 is the circuit theory diagrams Part I of this serial interface circuit of serial communication management server;
Fig. 4 is the circuit theory diagrams Part II of this serial interface circuit of serial communication management server;
Fig. 5 is the circuit theory diagrams Part III of this serial interface circuit of serial communication management server;
Fig. 6 is the circuit theory diagrams Part IV of this serial interface circuit of serial communication management server;
Fig. 7 is the signal behavior truth table of this serial interface circuit of serial communication management server;
Fig. 8 is the RS-485 communicating circuit figure after this serial interface circuit of serial communication management server simplifies;
Fig. 9 is the RS-422 communicating circuit figure after this serial interface circuit of serial communication management server simplifies.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
As shown in Figure 1, serial interface circuit of serial communication management server of the present invention comprises: MCU, RS485 circuit, RS422 circuit and RS232 circuit, two analog switches, dc-dc.
As shown in Figure 2-5, U604 is the dc-dc of an isolation, the isolation of what this converter mainly realized is power supply.Input VDD5 by the voltage of a generation same polarity, powers for carrying out isolation to communication part after this converter.U606 and U607 is 2 analog switches.MSL_A_COM1, MSL_B_COM1 are control signal.The various combination of MSL_A_COM1, MSL_B_COM1 level correspond to different communication modes.
As shown in Figure 2, the passage X0 of U606, the passage X0 of X1, X2, X3, Y0, Y1, Y2, Y3 and U607, the signal of X1, X2, X3, Y0, Y1, Y2, Y3 access, the network that wherein output X and the Y of U606 connects is n485_RE1,485_DE1.The network that output X and the Y of U607 connects is 485_TXD1 and 232_EN1.Network n485_RE1 is the reception Enable Pin of 485 chips, and network 485_DE1 is the transmission Enable Pin of 485 chips, and network 485_TXD1 is 485 chip data transmitting terminals, and network 232_EN1 is the Enable Pin of 232 chips.
Signal RXD_U1, TXD_U1, CTS_U1, RTS_U1, MSL_A_U1, MSL_B_U1, by after U601, U602, U603, do not have an impact to signal itself, just improve antijamming capability and the electrostatic prevention grade of signal.As shown in Figure 6, the signal condition under each interface type of serial interface circuit of serial communication management server of the present invention.
Embodiment one:
When needing the communication interface type selected to be RS-232.Only need arrange MSL_A_COM1, MSL_B_COM1 control level is 0,0.When MCU control output MSL_A_COM1, MSL_B_COM1 level is 0, when 0.Internal simulation switch X0 and the X of U606 connects.Y0 and Y connects.Internal simulation switch X0 and the X of U607 connects, and Y0 and Y connects.Namely n485_RE1 is level 1.485_DE1 is level 0.485_TXD1 is unsettled level.232_EN1 is in this situation of level 0..485 chips are prohibited.232 chips are enabled.Transistor-Transistor Logic level TX_COM1, RX_COM1 convert 232 level to by 232 chips.Circuit forms 232 communicating circuits.
Embodiment two:
When needing the communication interface type selected to be that RS-485. only needs to arrange MSL_A_COM, MSL_B_COM1 control level is 1,0.When MCU control output MSL_A_COM1, MSL_B_COM1 level is 1, when 0.Internal simulation switch X1 and the X of U606 connects.Y1 and Y connects.Internal simulation switch X1 and the X of U607 connects.Y1 and Y connects.Now, network 232_EN1 is high level, and 232T_OFF1 is that low level 232 chip enable is forbidden.Owing to this wire jumper resistance of J602 being disconnected above actual track plate.Therefore nTX_COM1 network is direct and n485_RE1,485_DE connect.And this two network just connects together with the transmitting-receiving Enable Pin of 485 chips.
As shown in Figure 7, now serial interface circuit of serial communication management server of the present invention is reduced to this figure, and the transmitting-receiving Enable Pin of 485 chips connects together by this 485 receiving circuit.The control signal of transmitting-receiving Enable Pin is that data send signal TXD_U1, is controlled by Schmidt's reverser.This circuit can realize certainly controlling of data transmit-receive.TTL electric signal is changed into 485 level signals by this circuit realiration.
Embodiment three:
When needing the communication interface type arranged to be RS-422, only need to arrange MSL_A_COM1, MSL_B_COM1 control level is 0,1.When MCU control output MSL_A_COM1, MSL_B_COM1 level is 0.1.Internal simulation switch X2 and the X of U606 connects.Y2 and Y connects.Internal simulation switch X2 and the X of U607 connects.Y2 and Y connects.Because in actual track plate, the short-circuit resistance of J606 does not weld, therefore, network 485_DE1 is unsettled, n485_RE1 is low level, therefore chip U608 is only responsible for the reception of 422 circuit parts, network 422_DE1 (232_EN1) is high level, and therefore the transmission of U609 is enabled, and U611 (232 communication chips are enabled and forbid).As shown in Figure 8, now serial interface circuit of serial communication management server of the present invention is reduced to receiving circuit and the transtation mission circuit that this figure, U608 and U609 constitute RS-422 circuit respectively.
Patent of the present invention is compared with background technology, has following advantage:
1. adopt the switching of Single-chip Controlling signal, when communication server runs into the third party device of different communication forms, the communication form adopted can be selected arbitrarily.
2. with a kind of omnipotent circuit, realize the circuit structure of three kinds of communication forms, namely save hardware cost, and facilitate integrated, and this circuit is applicable to various communication protocol and multiple communication baud rate.
3. circuit is simple, and convenient test, is convenient to large-scale production and debugging.

Claims (2)

1. a serial interface circuit of serial communication management server, comprise: MCU, RS485 circuit, RS422 circuit and RS232 circuit, two analog switches, dc-dc, it is characterized in that: described two analog switch U606 and U607, the network that wherein output X and the Y of U606 connects is n485_RE1,485_DE1; The network that output X and the Y of U607 connects is 485_TXD1 and 232_EN1, network n485_RE1 is the reception Enable Pin of 485 chips, network 485_DE1 is the transmission Enable Pin of 485 chips, network 485_TXD1 is 485 chip data transmitting terminals, network 232_EN1 is the Enable Pin of 232 chips, MCU exports control level MSL_A_COM1, MSL_B_COM1, to realize different communication interface types; Arrange control level MSL_A_COM1, MSL_B_COM1 is 0, when 0, and this communication interface type is RS-232; Arrange control level MSL_A_COM1, MSL_B_COM1 is 1, when 0, and this communication interface type is RS-485; Arrange control level MSL_A_COM1, MSL_B_COM1 is 0, when 1, and this communication interface type is RS-422.
2. serial interface circuit of serial communication management server as claimed in claim 1, is characterized in that: now n485_RE1 is level Isosorbide-5-Nitrae 85_DE1 be level 0,485_TXD1 is unsettled level, and 232_EN1 is level 0.
CN201310184368.3A 2013-05-17 2013-05-17 A kind of serial interface circuit of serial communication management server Active CN103268300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310184368.3A CN103268300B (en) 2013-05-17 2013-05-17 A kind of serial interface circuit of serial communication management server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310184368.3A CN103268300B (en) 2013-05-17 2013-05-17 A kind of serial interface circuit of serial communication management server

Publications (2)

Publication Number Publication Date
CN103268300A CN103268300A (en) 2013-08-28
CN103268300B true CN103268300B (en) 2016-04-20

Family

ID=49011931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310184368.3A Active CN103268300B (en) 2013-05-17 2013-05-17 A kind of serial interface circuit of serial communication management server

Country Status (1)

Country Link
CN (1) CN103268300B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451078A (en) * 2017-08-08 2017-12-08 深圳市三旺通信技术有限公司 A kind of compound serial port circuit
CN107818067B (en) * 2017-10-20 2020-01-10 广州视源电子科技股份有限公司 Interface multiplexing system
CN110134627B (en) * 2019-05-15 2021-09-03 浙江中控技术股份有限公司 IO control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200979736Y (en) * 2006-10-27 2007-11-21 天津市亚安科技电子有限公司 A bus preemptive warning linkage controller
CN201303348Y (en) * 2008-10-29 2009-09-02 中国海洋大学 Universal multi-serial bus converter
CN102567238A (en) * 2010-12-13 2012-07-11 联想(北京)有限公司 Interface switching control method, portable terminal, portable mobile equipment, and input equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200979736Y (en) * 2006-10-27 2007-11-21 天津市亚安科技电子有限公司 A bus preemptive warning linkage controller
CN201303348Y (en) * 2008-10-29 2009-09-02 中国海洋大学 Universal multi-serial bus converter
CN102567238A (en) * 2010-12-13 2012-07-11 联想(北京)有限公司 Interface switching control method, portable terminal, portable mobile equipment, and input equipment

Also Published As

Publication number Publication date
CN103268300A (en) 2013-08-28

Similar Documents

Publication Publication Date Title
CN102183928A (en) Method, device and intelligent household appliance controller for controlling running mode of household appliance
CN204929366U (en) DALI interface circuit
CN103152183A (en) Electric modem switching device and method for mutual switching of electric signals and network signals
CN103268300B (en) A kind of serial interface circuit of serial communication management server
CN201957037U (en) Testing device for power receiving end equipment in Ethernet power supply system
CN209708119U (en) A kind of half-duplex RS 232-RS485 automatic switching circuit and communication equipment
CN209343163U (en) A kind of general acquisition and control module based on LoRa wireless communication technique
CN205749617U (en) Intelligent electric energy meter polarized RS485 and nonpolarity RS485 compatibility interface circuit
CN106357495A (en) Smart home control system compatible with wireless coverage
CN206350008U (en) Interface circuit compatible with RS232/RS485/RS422 communication
CN209388297U (en) A kind of expansion equipment and communicating circuit
CN205091733U (en) Communication interface conversion device
CN205015883U (en) Multichannel serial ports debugging device
CN205304589U (en) Power source control circuit
CN107707365A (en) A kind of radio station remote control switch controller and control method
CN209417541U (en) Power line carrier signal conversion equipment and smart home multimachine interacted system
CN204168006U (en) A kind of hardware structure of the power automatic device based on LVDS switching system
CN202906930U (en) POE power supply system based on multi-network distribution of cat5 cables
CN208506592U (en) A kind of smart home wireless switch controller
CN201623714U (en) Two-way communication circuit
CN203149564U (en) Serial-port automatic switching device
CN201750227U (en) Intelligent household power management system
CN105159266A (en) Center control host of smart home control system
CN202058301U (en) Intelligent controller of household electrical appliance
CN218526469U (en) Intelligent switch based on PoE technology and ESP32 main control chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant