CN209044590U - Multiple serial communication switching device - Google Patents
Multiple serial communication switching device Download PDFInfo
- Publication number
- CN209044590U CN209044590U CN201822062025.0U CN201822062025U CN209044590U CN 209044590 U CN209044590 U CN 209044590U CN 201822062025 U CN201822062025 U CN 201822062025U CN 209044590 U CN209044590 U CN 209044590U
- Authority
- CN
- China
- Prior art keywords
- data
- conversion chip
- mcu
- door
- control terminal
- 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
Links
Landscapes
- Communication Control (AREA)
Abstract
The utility model provides a kind of multiple serial communication switching device, including MCU, data input-switching circuit, data transmit-receive control circuit, RS232 conversion chip U5, RS485/422 conversion chip U3 and U4;Each input terminal of data input-switching circuit is separately connected the RXD data output end of the RXD data output end of RS232 conversion chip U5, RS485/422 conversion chip U3;The RXD data port of the output end connection MCU of data input-switching circuit;MCU realizes the received switching of RS232/RS485/RS422 serial port communication data by the control to data input-switching circuit;RS485/422 conversion chip U3 is used for the data transmit-receive of RS485 serial communication, and U3 doubles as the data receiver of RS422 serial communication, and data of the RS485/422 conversion chip U4 for RS422 serial communication are sent;MCU realizes the control to RS485/422 conversion chip U3, U4 by control terminal and data transmit-receive control circuit.The utility model is flexible and convenient to use.
Description
Technical field
The utility model relates to industrial communication technical field, especially a kind of multiple serial communication switching device.
Background technique
In the prior art, multiple serial communication RS232, RS485, RS422 cannot access circuit and the RXD number of MCU simultaneously
Mutual serious interference when being communicated, while accessed according to port and TXD data port, data are unable to normal transmission, tradition
Method needs manual each serial communication route of off and on, inconvenient for operation and cumbersome.
Summary of the invention
The purpose of the utility model is to overcome the deficiencies in the prior art, provide a kind of multiple serial communication switching
Device can be realized the automatic switchover of multiple serial communication, and flexible and convenient to use, circuit is simple and practical.The utility model uses
Technical solution be:
A kind of multiple serial communication switching device, including MCU, data input-switching circuit, data transmit-receive control circuit,
RS232 conversion chip U5, RS485/422 conversion chip U3 and U4;
Each input terminal of data input-switching circuit be separately connected RS232 conversion chip U5 RXD data output end,
The RXD data output end of RS485/422 conversion chip U3;The RXD data terminal of the output end connection MCU of data input-switching circuit
Mouthful;MCU is realized that RS232/RS485/RS422 serial port communication data is received and is cut by the control to data input-switching circuit
It changes;
RS485/422 conversion chip U3 is used for the data transmit-receive of RS485 serial communication, and MCU is received by control terminal and data
Send out the data transmit-receive that control circuit control RS485/422 conversion chip U3 carries out RS485 serial communication;The TXD data port of MCU
Be separately connected the TXD data input pin of RS232 conversion chip U5, the TXD data input pin of RS485/422 conversion chip U3,
The TXD data input pin of RS485/422 conversion chip U4;
RS485/422 conversion chip U3 doubles as the data receiver of RS422 serial communication, and RS485/422 conversion chip U4 is used
It is sent in the data of RS422 serial communication;MCU is realized by control terminal and data transmit-receive control circuit and is converted to RS485/422
The control of chip U3, U4.
Specifically, data input-switching circuit includes and door U1A, U1B or door U2A, U2B;
With the RXD data output end of the A input termination RS232 conversion chip U5 of door U1A, inputs and terminate with the B of door U1A
The RS232 control terminal of MCU, with the Y output termination of door U1A or the A input terminal of door U2A;Or the A input terminal and B input terminal of door U2B
The enable end EN485 of MCU and the A input terminal of RS422 control terminal or Y the output termination and door U1B of door U2B are connect respectively, with door
The RXD data output end of the B input termination RS485/422 conversion chip U3 of U1B, with the Y output termination of door U1B or the B of door U2A
Input terminal;Or the RXD data port of the Y output termination MCU of door U2A.
Specifically, data transmit-receive control circuit includes and door U1C;It is controlled with the RS485 of the A input termination MCU of door U1C
End, the enable end EN485 with the B input termination MCU of door U1C, with the output termination RS485/422 conversion chip U3's of door U1C
It receives control terminal and sends control terminal;
The reception control terminal of RS485/422 conversion chip U4 meets high level, RS485/422 conversion chip U4 by resistance R2
Transmission control termination MCU RS422 control terminal;
The reception control terminal of RS485/422 conversion chip U3, U4 are all that low level is effective, and sending control terminal is all high level
Effectively.
Further,
When the RS232 control terminal of MCU, RS485 control terminal, RS422 control terminal, the enable end EN485 signal be respectively 1,
0,0,0 when, be switched to RS232 serial communication;
When the signal of the RS232 control terminal of MCU, RS422 control terminal, the enable end EN485 is respectively 0,0,1, it is switched to
RS485 serial communication;The data transmit-receive of the signal control RS485 serial communication of the RS485 control terminal of MCU;
When the RS232 control terminal of MCU, RS485 control terminal, RS422 control terminal, the enable end EN485 signal be respectively 0,
0,1,0 when, be switched to RS422 serial communication.
Utility model has the advantages that
1) facilitate the intelligence for carrying out tri- kinds of signals of RS232, RS485, RS422 to automatically switch, can also be set as by MCU
Single communication mode, it is flexible and convenient to use.
2) circuit is simple and practical, at low cost.
Detailed description of the invention
Fig. 1 is the electrical diagram of the utility model.
Fig. 2 is the principles of the present invention figure.
Specific embodiment
Below with reference to specific drawings and examples, the utility model is described in further detail.
As shown in Figure 1, the utility model proposes a kind of multiple serial communication switching device, including MCU, data input cut
Change circuit, data transmit-receive control circuit, RS232 conversion chip U5, RS485/422 conversion chip U3 and U4;
Each input terminal of data input-switching circuit be separately connected RS232 conversion chip U5 RXD data output end,
The RXD data output end of RS485/422 conversion chip U3;The RXD data terminal of the output end connection MCU of data input-switching circuit
Mouthful;MCU is realized that RS232/RS485/RS422 serial port communication data is received and is cut by the control to data input-switching circuit
It changes;
RS485/422 conversion chip U3 is used for the data transmit-receive of RS485 serial communication, and MCU is received by control terminal and data
Send out the data transmit-receive that control circuit control RS485/422 conversion chip U3 carries out RS485 serial communication;The TXD data port of MCU
Be separately connected the TXD data input pin of RS232 conversion chip U5, the TXD data input pin of RS485/422 conversion chip U3,
The TXD data input pin of RS485/422 conversion chip U4;
RS485/422 conversion chip U3 doubles as the data receiver of RS422 serial communication, and RS485/422 conversion chip U4 is used
It is sent in the data of RS422 serial communication;MCU is realized by control terminal and data transmit-receive control circuit and is converted to RS485/422
The control of chip U3, U4.
As shown in Fig. 2, data input-switching circuit includes and door U1A, U1B or door U2A, U2B;
With the RXD data output end of the A input termination RS232 conversion chip U5 of door U1A, inputs and terminate with the B of door U1A
The RS232 control terminal of MCU, with the Y output termination of door U1A or the A input terminal of door U2A;Or the A input terminal and B input terminal of door U2B
The enable end EN485 of MCU and the A input terminal of RS422 control terminal or Y the output termination and door U1B of door U2B are connect respectively, with door
The RXD data output end of the B input termination RS485/422 conversion chip U3 of U1B, with the Y output termination of door U1B or the B of door U2A
Input terminal;Or the RXD data port of the Y output termination MCU of door U2A;
Data transmit-receive control circuit includes and door U1C;The RS485 control terminal that MCU is terminated with the A input of door U1C, with door
The enable end EN485 of the B input termination MCU of U1C, the reception with the output termination RS485/422 conversion chip U3 of door U1C control
End and transmission control terminal;
The reception control terminal of RS485/422 conversion chip U4 meets high level, RS485/422 conversion chip U4 by resistance R2
Transmission control termination MCU RS422 control terminal;
The reception control terminal (2 feet of U3, U4 in Fig. 2) of RS485/422 conversion chip U3, U4 are all that low level is effective,
Sending control terminal (3 feet of U3, U4 in Fig. 2) is all that high level is effective;The A of RS485/422 conversion chip U3, B interface end can
As the sending and receiving end of RS485 serial communication, the receiving end of RS422 serial communication also can be used as;RS485/422 conversion chip U4's
A, transmitting terminal of the B interface end as RS422 serial communication;
In foregoing circuit, RS232 conversion chip U5 uses MAX232, and RS485/422 conversion chip U3, U4 are all made of
SP485EEN;
When the RS232 control terminal of MCU, RS485 control terminal, RS422 control terminal, the enable end EN485 signal be respectively 1,
0,0,0 when (1 represents high level, and 0 represents low level), be switched to RS232 serial communication;Or door U2B output 0, it is also defeated with door U1B
Out 0, at this time or door U2A only receive by with the received RXD data output end from RS232 conversion chip U5 of door U1A
Data;The transmission data of the TXD data port of MCU enter the TXD data input pin of RS232 conversion chip U5;
When the signal of the RS232 control terminal of MCU, RS422 control terminal, the enable end EN485 is respectively 0,0,1, it is switched to
RS485 serial communication;The data transmit-receive of the signal control RS485 serial communication of the RS485 control terminal of MCU, as the RS485 of MCU
The signal of control terminal is 1, then is that the data of RS485 serial communication are sent, and the signal of the RS485 control terminal of MCU is 0, then for
The data receiver of RS485 serial communication realizes the data transmit-receive of RS485 serial communication by RS485/422 conversion chip U3;
High level that the data receiver function of RS485/422 conversion chip U4 is connect by resistance R2 shutdown, since 3 feet of U4 at this time connect
Low level is so its data sending function is also switched off;The data receiver of RS232 serial communication has also been cut off with the shutdown of door U1A;
When the RS232 control terminal of MCU, RS485 control terminal, RS422 control terminal, the enable end EN485 signal be respectively 0,
0,1,0 when, be switched to RS422 serial communication;RS485/422 conversion chip U3 is responsible for data receiver at this time, and RS485/422 turns
It changes chip U4 and is responsible for data transmission.
The utility model proposes multiple serial communication switching device, facilitate progress tri- kinds of RS232, RS485, RS422 letter
Number intelligence automatically switch, single communication mode can also be set as by MCU;Data input-switching circuit, data transmit-receive control
Circuit processed is made of simple common logical AND gate and logic sum gate chip, and circuit is simple and practical, and wide usage is good, solves multichannel
The problem of serial communication carries out simultaneously.
It should be noted last that the above specific embodiment is only to illustrate the technical solution of the utility model rather than limits
System, although the utility model is described in detail referring to example, those skilled in the art should understand that, it can be right
The technical solution of the utility model is modified or replaced equivalently, without departing from the spirit and model of technical solutions of the utility model
It encloses, should all cover in the scope of the claims of the utility model.
Claims (4)
1. a kind of multiple serial communication switching device, which is characterized in that including MCU, data input-switching circuit, data transmit-receive control
Circuit processed, RS232 conversion chip U5, RS485/422 conversion chip U3 and U4;
Each input terminal of data input-switching circuit is separately connected RXD data output end, the RS485/ of RS232 conversion chip U5
The RXD data output end of 422 conversion chip U3;The RXD data port of the output end connection MCU of data input-switching circuit;MCU
By the control to data input-switching circuit, the received switching of RS232/RS485/RS422 serial port communication data is realized;
RS485/422 conversion chip U3 is used for the data transmit-receive of RS485 serial communication, and MCU passes through control terminal and data transmit-receive control
Circuit control RS485/422 conversion chip U3 processed carries out the data transmit-receive of RS485 serial communication;The TXD data port of MCU is distinguished
Connect the TXD data input pin of RS232 conversion chip U5, TXD data input pin, the RS485/ of RS485/422 conversion chip U3
The TXD data input pin of 422 conversion chip U4;
RS485/422 conversion chip U3 doubles as the data receiver of RS422 serial communication, and RS485/422 conversion chip U4 is used for
The data of RS422 serial communication are sent;MCU is realized by control terminal and data transmit-receive control circuit converts core to RS485/422
The control of piece U3, U4.
2. multiple serial communication switching device as described in claim 1, which is characterized in that
Data input-switching circuit includes and door U1A, U1B or door U2A, U2B;
With the RXD data output end of the A input termination RS232 conversion chip U5 of door U1A, the B input with door U1A terminates MCU's
RS232 control terminal, with the Y output termination of door U1A or the A input terminal of door U2A;Or A input terminal and B the input terminal difference of door U2B
Meet the enable end EN485 of MCU and the A input terminal of RS422 control terminal or Y the output termination and door U1B of door U2B, the B with door U1B
The RXD data output end of input termination RS485/422 conversion chip U3 is inputted with the Y output termination of door U1B or the B of door U2A
End;Or the RXD data port of the Y output termination MCU of door U2A.
3. multiple serial communication switching device as claimed in claim 1 or 2, which is characterized in that
Data transmit-receive control circuit includes and door U1C;The RS485 control terminal that MCU is terminated with the A input of door U1C, the B with door U1C
The enable end EN485 of input termination MCU, reception control terminal and hair with the output termination RS485/422 conversion chip U3 of door U1C
Send control terminal;
The reception control terminal of RS485/422 conversion chip U4 connects high level, the hair of RS485/422 conversion chip U4 by resistance R2
Send the RS422 control terminal of control termination MCU;
The reception control terminal of RS485/422 conversion chip U3, U4 are all that low level is effective, and sending control terminal is all that high level has
Effect.
4. multiple serial communication switching device as claimed in claim 3, which is characterized in that
When the signal of the RS232 control terminal of MCU, RS485 control terminal, RS422 control terminal, the enable end EN485 is respectively 1,0,0,0
When, it is switched to RS232 serial communication;
When the signal of the RS232 control terminal of MCU, RS422 control terminal, the enable end EN485 is respectively 0,0,1, it is switched to RS485 string
Port communications;The data transmit-receive of the signal control RS485 serial communication of the RS485 control terminal of MCU;
When the signal of the RS232 control terminal of MCU, RS485 control terminal, RS422 control terminal, the enable end EN485 is respectively 0,0,1,0
When, it is switched to RS422 serial communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201822062025.0U CN209044590U (en) | 2018-12-10 | 2018-12-10 | Multiple serial communication switching device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201822062025.0U CN209044590U (en) | 2018-12-10 | 2018-12-10 | Multiple serial communication switching device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209044590U true CN209044590U (en) | 2019-06-28 |
Family
ID=67044086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201822062025.0U Active CN209044590U (en) | 2018-12-10 | 2018-12-10 | Multiple serial communication switching device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN209044590U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376109A (en) * | 2018-12-10 | 2019-02-22 | 无锡路通视信网络股份有限公司 | Multiple serial communication switching device |
CN112783819A (en) * | 2021-01-27 | 2021-05-11 | 杭州爱科科技股份有限公司 | Serial data interface of digital signal processing board and digital signal processing circuit board |
-
2018
- 2018-12-10 CN CN201822062025.0U patent/CN209044590U/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376109A (en) * | 2018-12-10 | 2019-02-22 | 无锡路通视信网络股份有限公司 | Multiple serial communication switching device |
CN112783819A (en) * | 2021-01-27 | 2021-05-11 | 杭州爱科科技股份有限公司 | Serial data interface of digital signal processing board and digital signal processing circuit board |
CN112783819B (en) * | 2021-01-27 | 2022-08-12 | 杭州爱科科技股份有限公司 | Serial data interface of digital signal processing board and digital signal processing circuit board |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103064815B (en) | A kind of single spi bus controls the control method of many CAN interface | |
CN209044590U (en) | Multiple serial communication switching device | |
CN201674496U (en) | Power line carrier and wireless communication conversion device and power line carrier meter reading system | |
CN101834624B (en) | Data transmission module based on radio frequency chip | |
CN109376109A (en) | Multiple serial communication switching device | |
CN205486072U (en) | Many interface signals conversion equipment | |
CN205038637U (en) | RS232 and RS485422 interface converter based on microprocessor | |
CN106383800A (en) | Intelligent serial interface equipment switching device and method | |
CN216596246U (en) | Self-adaptive circuit compatible with multi-serial port protocol and communication equipment | |
CN201072550Y (en) | Selection circuit suitable for duplex data transmission interface | |
CN101110159A (en) | Method for receiving infrared remote control signal through serial port | |
CN205942295U (en) | Intelligence house infrared control system based on STM32 | |
CN202649998U (en) | RS232/RS485/RS422 comprehensive test interface circuit | |
CN207425095U (en) | A kind of live handheld device communication module of metering | |
CN109120295A (en) | A kind of wireless vehicle microscope carrier master functionality module and its implementation | |
CN207908886U (en) | Intelligent domestic control device | |
CN206773499U (en) | A kind of hydrometric cableway flow measurement control system | |
CN201904923U (en) | GPRS data transmission module | |
CN215867844U (en) | Serial port communication isolation circuit | |
CN204044808U (en) | The device that a kind of RS232 of realization, RS485 and USB turn mutually | |
CN101882124A (en) | RS422/485 double-use signal converter capable of automatically judging connector | |
CN101888649B (en) | Serial interface communication testing system | |
CN209311880U (en) | A kind of switch acquisition control device | |
CN207148827U (en) | A kind of device that RS232 and RS485 interface standard group equipment is supported based on SoC | |
CN203606824U (en) | Circuit achieving intelligent serial port multiplexing through multi-way switch |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |