CN107204992A - A kind of multifunctional serial port server and data transmission method - Google Patents

A kind of multifunctional serial port server and data transmission method Download PDF

Info

Publication number
CN107204992A
CN107204992A CN201710567900.8A CN201710567900A CN107204992A CN 107204992 A CN107204992 A CN 107204992A CN 201710567900 A CN201710567900 A CN 201710567900A CN 107204992 A CN107204992 A CN 107204992A
Authority
CN
China
Prior art keywords
data
serial
matrix switch
vice
external equipment
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.)
Granted
Application number
CN201710567900.8A
Other languages
Chinese (zh)
Other versions
CN107204992B (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.)
Xian University of Science and Technology
Original Assignee
Xian University of Science and Technology
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 Xian University of Science and Technology filed Critical Xian University of Science and Technology
Priority to CN201710567900.8A priority Critical patent/CN107204992B/en
Publication of CN107204992A publication Critical patent/CN107204992A/en
Application granted granted Critical
Publication of CN107204992B publication Critical patent/CN107204992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/028Subscriber network interface devices
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of multifunctional serial port server and data transmission method, the serial server includes microcontroller, matrix switch de-vice and the serial interface circuit for connecting external equipment being sequentially connected, the network interface for being communicated with subscriber computer is connected with microcontroller, multiple UART modules built in microcontroller, the quantity of external equipment is equal with the quantity of serial interface circuit and external equipment is corresponded with serial interface circuit;The data transmission method includes:Directional data is transmitted;Serial ports Monitoring Data is transmitted;Data broadcasting.The present invention quickly realizes data transfer and subscriber computer between multiple external equipments to the data broadcasting of each external equipment, complete function by setting matrix switch de-vice on the basis of realizing that data orientation is mutually passed.

Description

A kind of multifunctional serial port server and data transmission method
Technical field
The invention belongs to technical field of data transmission, and in particular to a kind of multifunctional serial port server and transmission side data Method.
Background technology
Serial server is a kind of serial data for sending serial equipment transmitted by Ethernet to host computer it is conventional Protocol conversion device, the data double-way that serial equipment and Ethernet interface equipment can be achieved transparent mutual passes.It is existing most of Serial server is all that can only realize the mutual biography of data orientation between serial equipment and host computer, and function is single, multiple serial equipments Between data mutually pass be required to by host computer transfer, data transfer redundancy, and poor real.Therefore, one kind is nowadays lacked It is reasonable in design, data transfer flexibly easily multifunctional serial port server and data transmission method, by serial server Matrix switch de-vice is set, using the on off state of the input/output port of microprocessor control matrix switch de-vice, realized outer Directional data transmission between portion's equipment and subscriber computer;Realize the data transfer and user's meter between multiple external equipments Monitoring of the calculation machine to each external equipment;Realize subscriber computer to the data broadcasting of each external equipment, complete function, matrix switch The on off state control of the input/output port of device is simple, and data transfer path is short, and data transmission efficiency is high.
The content of the invention
In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is that providing a kind of multi-functional serial Mouth server, by setting matrix switch de-vice, realizes that multiple external equipments are mutually passed with subscriber computer data respectively, and matrix Switching device can the path that mutually passes of any switching laws external equipment and subscriber computer data, complete function is easy to promote the use of.
In order to solve the above technical problems, the technical solution adopted by the present invention is:A kind of multifunctional serial port server, its feature It is, including microcontroller, matrix switch de-vice and the serial interface circuit for connecting external equipment being sequentially connected, micro-control The network interface for being communicated with subscriber computer, multiple UART modules, the matrix built in microcontroller are connected with device processed Switching device is the matrix switch de-vice with 2N signal input port and 2N signal output port, serial interface circuit Quantity is not more than N, wherein, N is positive integer not less than 2, the quantity of external equipment it is equal with the quantity of serial interface circuit and External equipment is corresponded with serial interface circuit.
A kind of above-mentioned multifunctional serial port server, it is characterised in that:The matrix switch de-vice switchs for analog matrix Or FPGA module.
A kind of above-mentioned multifunctional serial port server, it is characterised in that:The analog matrix switch includes MAX456 chips.
A kind of above-mentioned multifunctional serial port server, it is characterised in that:The serial interface circuit is RS232 serial ports moulds Block, RS422 serial port modules or RS485 serial port modules.
A kind of above-mentioned multifunctional serial port server, it is characterised in that:The network interface supports udp protocol or TCP associations View.
A kind of above-mentioned multifunctional serial port server, it is characterised in that:The network interface is ethernet communication module.
A kind of above-mentioned multifunctional serial port server, it is characterised in that:The subscriber computer passes through gigabit network cable and institute State the connection of ethernet communication module.
Meanwhile, the invention also discloses a kind of data transfer flexibly, complete function, it is reasonable in design, realizing data orient The data of data transfer and subscriber computer between multiple external equipments to each external equipment are quickly realized on the basis of mutually passing The data transmission method of the serial server of broadcast, it is characterised in that this method includes:
Directional data is transmitted, and subscriber computer controls UART modules to be sent out data by network interface, data warp Cross the signal input port that the UART modules send matrix switch de-vice to, then the signal output part for passing through matrix switch de-vice Mouthful send to serial interface circuit, finally send to the external equipment being connected with serial interface circuit, realize subscriber computer to External equipment sends data;The data that external equipment is sent, by the signal of serial interface circuit transmission to matrix switch de-vice Input port, then sent by the signal output port of matrix switch de-vice into the UART modules of microcontroller, finally by Network interface transfers realize that external equipment sends data to subscriber computer to subscriber computer;
Serial ports Monitoring Data is transmitted, and the data that an external equipment is sent pass through the serial interface being connected with the external equipment Circuit transmission to matrix switch de-vice signal input port, then by the signal output port of matrix switch de-vice point two-way, Riches all the way delivers to the serial interface circuit being connected with another external equipment, and another road is sent to UART modules to be calculated with user Machine communicates, and realizes the data transfer between two external equipments, and realize monitoring of the subscriber computer to external equipment;
Data broadcasting, subscriber computer controls a UART module in microcontroller to be sent out number by network interface According to the data are sent to the signal input port of matrix switch de-vice, then are sent out by the signal output port of matrix switch de-vice Serial interface circuit is delivered to, is finally transmitted to external equipment, data broadcasting of the subscriber computer to external equipment is realized;Outside is set Data are sent to the signal input port of matrix switch de-vice for by the serial interface circuit being connected with external equipment, matrix is opened The signal output port for closing device sends data to microcontroller by multiple UART modules, and microcontroller is by the data of reception By network interface transfers to subscriber computer, the information exchange of subscriber computer and external equipment is realized.
The present invention has advantages below compared with prior art:
1st, the serial server that the present invention is used is by setting matrix switch de-vice, by the letter for adjusting matrix switch de-vice The on off state of number input port or signal output port, the data transfer between control microcontroller and multiple external equipments, Using flexible, control simply, to be easy to promote the use of.
2nd, each external equipment is connected to serial interface circuit by the data transmission method that the present invention is used one by one, and will string The signal sending end and signal receiving end of mouth interface circuit are respectively connecting to matrix switch de-vice, realize external equipment and microcontroller The signal of device is mutually passed, and can be used as serial server;Pass through the signal input port of microprocessor control matrix switch de-vice Or the on off state of signal output port, the data transfer between different external equipments is realized, while being received by microcontroller The data of external equipment transmission, realize the data transfer monitoring of external equipment, can be used as serial port debugger;In addition, passing through The port status of matrix switch de-vice is controlled, data broadcasting of the microcontroller to multiple external equipments can be achieved, microcontroller is reduced The volume of transmitted data of device, it is low in energy consumption, it is reliable and stable.
3rd, multiple external equipments that the present invention is connected are not limited by serial ports standard, meet the number of a variety of serial ports type equipments According to mutual biography, scalability is strong, and the mutual transfer efficiency of data between multiple external equipments is high, reduces microcontroller or subscriber computer Data computing redundancy amount, using effect is good.
In summary, the present invention is quick real on the basis of realizing that data orientation is mutually passed by setting matrix switch de-vice Data transfer and subscriber computer between existing multiple external equipments is to the data broadcasting of each external equipment, and complete function is easy to Promote the use of.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Fig. 1 is the schematic block circuit diagram of multifunctional serial port server of the present invention.
Fig. 2 is circuit theory schematic block diagram of the invention.
Fig. 3 is the simple circuit schematic block diagram that directional data of the present invention is transmitted.
Fig. 4 is the simple circuit schematic block diagram that serial ports Monitoring Data of the present invention is transmitted.
Fig. 5 is the simple circuit schematic block diagram of data broadcasting of the present invention.
Description of reference numerals:
1-subscriber computer;3-external equipment;3-1-external equipment one;
3-2-external equipment two;3-3-external equipment three;3-4-external equipment four;
4-network interface;5-microcontroller;6-matrix switch de-vice;
7-serial interface circuit;7-1-serial interface circuit one;7-2-serial interface circuit two;
7-3-serial interface circuit three;7-4-serial interface circuit four.
Embodiment
As shown in figure 1, a kind of multifunctional serial port server of the present invention, including the microcontroller 5, the matrix that are sequentially connected are opened Closing to be connected with device 6 and the serial interface circuit 7 for connecting external equipment 3, microcontroller 5 is used for and subscriber computer 1 The network interface 4 of communication, multiple UART modules built in microcontroller 5, the matrix switch de-vice 6 is with 2N signal input Port and the matrix switch de-vice of 2N signal output port, the quantity of serial interface circuit 7 are not more than N, wherein, N is not small In 2 positive integer, the quantity of external equipment 3 is equal with the quantity of serial interface circuit 7 and external equipment 3 and serial interface circuit 7 correspond.
It should be noted that the setting of matrix switch de-vice 6 be in order to realize multiple external equipments 3 respectively with user calculate The data of machine 1 are mutually passed, and matrix switch de-vice 6 can the path that mutually passes of any switching laws external equipment 3 and the data of subscriber computer 1, work( Can be complete.
In the present embodiment, the matrix switch de-vice 6 is that analog matrix is switched or FPGA module.
In the present embodiment, the analog matrix switch includes MAX456 chips.
It should be noted that as shown in Fig. 2 in the present embodiment, N takes 4, with 8 signal input ports and 8 signals Exemplified by the matrix switch de-vice 6 of output port, matrix switch de-vice 6 is additionally provided with a control end being connected with microcontroller 5 Mouthful, 4 serial interface circuits of connection, 7,4 serial interface circuits 7 are respectively the 7- of serial interface circuit one in matrix switch de-vice 6 1st, the 7-2 of serial interface circuit two, the 7-3 of serial interface circuit three, the 7-4 of serial interface circuit four, due to external equipment 3 quantity with The quantity of serial interface circuit 7 is equal and multiple external equipments 3 are corresponded with multiple serial interface circuits 7, therefore, actually connects The quantity for connecing external equipment 3 is 4, and 4 external equipments 3 are respectively the external equipment one being connected with the 7-1 of serial interface circuit one 3-1, the 3-2 of external equipment two being connected with the 7-2 of serial interface circuit two, the external equipment being connected with the 7-3 of serial interface circuit three Three 3-3, the 3-4 of external equipment four being connected with the 7-4 of serial interface circuit four, in actual use, using built-in in microcontroller 5 4 UART modules, 4 UART modules are respectively UART1, UART2, UART3, UART4.
In physical cabling, the I/O port of microcontroller 5 is connected with the control port ctrl of matrix switch de-vice 6, UART1's Transmission interface tx01 is connected with the 5th signal input port in05 of matrix switch de-vice 6, UART2 transmission interface tx02 and square The of 6th signal input port in06 connections of battle array switching device 6, UART3 transmission interface tx03 and matrix switch de-vice 6 Seven signal input port in07 connections, UART4 transmission interface tx04 and the 8th signal input port of matrix switch de-vice 6 In08 connections, UART1 receiving interface rx01 is connected with the 5th signal output port out05 of matrix switch de-vice 6, UART2 Receiving interface rx02 be connected with the 6th signal output port out06 of matrix switch de-vice 6, UART3 receiving interface rx03 It is connected with the 7th signal output port out07 of matrix switch de-vice 6, UART4 receiving interface rx04 and matrix switch de-vice 6 The 8th signal output port out08 connections, the 7-1 of serial interface circuit one transmission interface tx11 and matrix switch de-vice 6 First signal input port in01 connections, the 7-2 of serial interface circuit two transmission interface tx12 and the second of matrix switch de-vice 6 Signal input port in02 connections, the 7-3 of serial interface circuit three transmission interface tx13 and the 3rd signal of matrix switch de-vice 6 Input port in03 connections, the 7-4 of serial interface circuit one transmission interface tx14 is inputted with the 4th signal of matrix switch de-vice 6 Port in04 connections, the 7-1 of serial interface circuit one receiving interface rx11 and the first signal output port of matrix switch de-vice 6 Out01 connections, the 7-2 of serial interface circuit two receiving interface rx12 and the secondary signal output port of matrix switch de-vice 6 Out02 connections, the 7-3 of serial interface circuit three receiving interface rx13 and the 3rd signal output port of matrix switch de-vice 6 Out03 connections, the 7-4 of serial interface circuit four receiving interface rx14 and the 4th signal output port of matrix switch de-vice 6 Out04 connections.
In the present embodiment, the serial interface circuit 7 is RS232 serial port modules, RS422 serial port modules or RS485 serial ports Module.
It should be noted that multiple external equipments 3 of connection are not limited by serial ports standard, meet a variety of serial ports types and set Standby data are mutually passed, and scalability is strong, and the mutual transfer efficiency of the data between multiple external equipments is high, reduce microcontroller or user's meter The data computing redundancy amount of calculation machine, using effect is good.
In the present embodiment, the network interface 4 supports udp protocol or Transmission Control Protocol.
In the present embodiment, the network interface 4 is ethernet communication module.
In the present embodiment, the subscriber computer 1 is connected by gigabit network cable with the ethernet communication module.
A kind of data transmission method of multifunctional serial port server as shown in Figures 3 to 5, including:
Directional data is transmitted, and subscriber computer 1 controls UART modules to be sent out data by network interface 4, the data Send the signal input port of matrix switch de-vice 6 to by the UART modules, then it is defeated by the signal of matrix switch de-vice 6 Exit port is sent to serial interface circuit 7, is finally sent to the external equipment 3 being connected with serial interface circuit 7, realizes that user counts Calculation machine 1 sends data to external equipment 3;The data that external equipment 3 is sent, are transmitted to matrix switch by serial interface circuit 7 The signal input port of device 6, then sent by the signal output port of matrix switch de-vice 6 to the UART moulds of microcontroller 5 In block, transmitted finally by network interface 4 to subscriber computer 1, realize that external equipment 3 sends data to subscriber computer 1;
During actual orientation data transfer, the 5th signal input port of matrix switch de-vice 6 is controlled by microcontroller 5 In05 and the first signal output port out01 is turned on, the 6th signal input port in06 and secondary signal output port out02 are led Logical, the 7th signal input port in07 and the 3rd signal output port out03 conductings, the 8th signal input port in08 and the 4th Signal output port out04 is turned on;Subscriber computer 1 controlled respectively by network interface 4 UART1 transmission interface tx01, UART2 transmission interface tx02, UART3 transmission interface tx03, UART4 transmission interface tx04 are sent out data, the number According to the 5th signal input port in05, the 6th signal input port in06, the 7th signal being respectively transmitted to matrix switch de-vice 6 Input port in07, the 8th signal input port in08, then the first signal output port out01 by matrix switch de-vice 6, Secondary signal output port out02, the 3rd signal output port out03, the 4th signal output port out04 are respectively sent to string Mouth interface circuit one 7-1 receiving interface rx11, the 7-2 of serial interface circuit two receiving interface rx12, serial interface circuit three 7-3 receiving interface rx13, the 7-4 of serial interface circuit four receiving interface rx14, is finally respectively sent to the 3- of external equipment one 1st, the 3-2 of external equipment two, the 3-3 of external equipment three, the 3-4 of external equipment four, realize that subscriber computer 1 is sent to each external equipment 3 Data;
When external equipment 3 is to the transmission data of subscriber computer 1, pass through microcontroller 5 controls matrix switch de-vice 6 first Signal input port in01 and the 5th signal output port out05 is turned on, secondary signal input port in02 and the 6th signal are defeated Exit port out06 conductings, the 3rd signal input port in03 and the 7th signal output port out07 conductings, the 4th signal are inputted Port in04 and the 8th signal output port out08 is turned on;The 3-1 of external equipment one, the 3-2 of external equipment two, the 3- of external equipment three 3rd, the 3-4 of external equipment four passes through the 7-1 of serial interface circuit one transmission interface tx11, the 7-2 of serial interface circuit two hair respectively Send interface tx12, the 7-3 of serial interface circuit three transmission interface tx13, the 7-4 of serial interface circuit four transmission interface tx14 to Outer transmission data, the data are respectively transmitted the first signal input port in01, secondary signal input to matrix switch de-vice 6 Mouth in02, the 3rd signal input port in03, the 4th signal input port in04, then pass through the 5th letter of matrix switch de-vice 6 Number output port out05, the 6th signal output port out06, the 7th signal output port out07, the 8th signal output port Out08 be respectively sent to UART1 receiving interface rx01, UART2 receiving interface rx02, UART3 receiving interface rx03, UART4 receiving interface rx04, is most transmitted to subscriber computer 1 through microcontroller 5 by network interface 4 afterwards;Directional data is passed When defeated, realize that the signal of external equipment 3 and microcontroller 5 is mutually passed, can be used as serial server.
It should be noted that also can control the 5th signal input port of matrix switch de-vice 6 by microcontroller 5 In05, the 6th signal input port in06, the 7th signal input port in07, the 8th signal input port in08 are respectively with first Signal output port out01, secondary signal output port out02, the 3rd signal output port out03, the 4th signal output part Mouth out04 arbitrary arrangement built-up sequence realizes conducting, is used as the serial server that can switch in real time.
Serial ports Monitoring Data is transmitted, and the data that an external equipment 3 is sent are passed through the serial ports being connected with the external equipment 3 and connect Mouth circuit 7 is transmitted to the signal input port of matrix switch de-vice 6, then passes through the signal output port point of matrix switch de-vice 6 Two-way, riches all the way delivers to the serial interface circuit 7 being connected with another external equipment 3, another road send to UART modules with Subscriber computer 1 communicates, and realizes the data transfer between two external equipments 3, and realize subscriber computer 1 to external equipment 3 Monitoring;
It should be noted that as shown in figure 4, controlling the first signal input part of matrix switch de-vice 6 by microcontroller 5 Mouth in01 is both turned on the 3rd signal output port out03 and the 5th signal output port out05, is controlled by microcontroller 5 The 3rd signal input port in03 and the first signal output port out01 and the 7th signal output port of matrix switch de-vice 6 Out07 is both turned on;The data that the 3-1 of external equipment one is sent, are transferred to by the 7-1 of serial interface circuit one transmission interface tx11 First signal input port in01 of matrix switch de-vice 6, then the 3rd signal output port for passing through matrix switch de-vice 6 Out03 is sent to the 7-3 of serial interface circuit three receiving interface rx13, and then is sent to the 3-3 of external equipment three, while also passing through The receiving interface rx01 that 5th signal output port out05 of matrix switch de-vice 6 is sent to UART1 is passed to subscriber computer 1 Transmission of data;The data that the 3-3 of external equipment three is sent, matrix is transferred to by the 7-3 of serial interface circuit three transmission interface tx13 3rd signal input port in03 of switching device 6, then sent out by the first signal output port out01 of matrix switch de-vice 6 The 7-1 of serial interface circuit one receiving interface rx11 is given, and then is sent to the 3-1 of external equipment one, while also being opened by matrix The receiving interface rx03 that 7th signal output port out07 of pass device 6 is sent to UART3 transmits data to subscriber computer 1; Realize realizes subscriber computer 1 to the 3- of external equipment one while the 3-1 of the external equipment one and 3-3 of external equipment three signal is mutually passed The monitoring and debugging of data are transmitted between 1 and the 3-3 of external equipment three, can be used as serial port debugger.
It should be noted that also can control the first signal input port of matrix switch de-vice 6 by microcontroller 5 In01, secondary signal input port in02, the 3rd signal input port in03, the 4th signal input port in04 are respectively with first Signal output port out01, secondary signal output port out02, the 3rd signal output port out03, the 4th signal output part Mouthful out04 arbitrary arrangement built-up sequence realizes conducting, and the data before realizing any two external equipment 3 are mutually passed, as can Used with the serial port debugger switched in real time.
Data broadcasting, subscriber computer 1 controls a UART module in microcontroller 5 to outgoing by network interface 4 Data are sent, the data are sent to the signal input port of matrix switch de-vice 6, then pass through the signal output of matrix switch de-vice 6 Port is sent to serial interface circuit 7, is finally transmitted to external equipment 3, realizes subscriber computer 1 to the data of external equipment 3 Broadcast;External equipment 3 by signal input port from the serial interface circuit 7 that is connected with external equipment 3 to matrix switch de-vice 6 Data are sent, the signal output port of matrix switch de-vice 6 sends data to microcontroller 5 by multiple UART modules, micro- Controller 5 transmits the data of reception to subscriber computer 1 by network interface 4, realizes subscriber computer 1 and external equipment 3 Information exchange.
It should be noted that as shown in figure 5, controlling the 5th signal input part of matrix switch de-vice 6 by microcontroller 5 Mouthful in05 and the first signal output port out01, secondary signal output port out02, the 3rd signal output port out03 and the Four signal output port out04 are both turned on, and the first signal input port of matrix switch de-vice 6 is controlled by microcontroller 5 In01 and the 5th signal output port out05 is turned on, secondary signal input port in02 and the 6th signal output port out06 is led Logical, the 3rd signal input port in03 and the 7th signal output port out07 conductings, the 4th signal input port in04 and the 8th Signal output port out08 is turned on;Subscriber computer 1 controls UART1 transmission interface tx01 to be sent out by network interface 4 Data, the data be sent to matrix switch de-vice 6 the 5th signal input port in05 and the first signal output port out01, Secondary signal output port out02, the 3rd signal output port out03 and the 4th signal output port out04, then send respectively Receiving interface rx11, the 7-2 of serial interface circuit two receiving interface rx12, serial interface electricity to the 7-1 of serial interface circuit one The 7-3 of road three receiving interface rx13, the 7-4 of serial interface circuit four receiving interface rx14, is finally transmitted to each external equipment 3, realize subscriber computer 1 to the data broadcasting of multiple external equipments 3;
The 3-1 of external equipment one, the 3-2 of external equipment two, the 3-3 of external equipment three, the 3-4 of external equipment four are connect by serial ports respectively Mouthful circuit one 7-1 transmission interface tx11, the 7-2 of serial interface circuit two transmission interface tx12, the 7-3 of serial interface circuit three Transmission interface tx13, the 7-4 of serial interface circuit four transmission interface tx14 are sent out data, and the data are respectively transmitted to matrix First signal input port in01 of switching device 6, secondary signal input port in02, the 3rd signal input port in03, Four signal input port in04, then the 5th signal output port out05, the 6th signal output part for passing through matrix switch de-vice 6 Mouth out06, the 7th signal output port out07, the 8th signal output port out08 are respectively sent to UART1 receiving interface Rx01, UART2 receiving interface rx02, UART3 receiving interface rx03, UART4 receiving interface rx04, most afterwards through microcontroller Device 5 is transmitted to subscriber computer 1 by network interface 4, realizes the information exchange of subscriber computer 1 and external equipment 3, can be achieved Subscriber computer 1 reduces volume of transmitted data to the data broadcasting of multiple external equipments 3, low in energy consumption.
It should be noted that by microcontroller 5 control matrix switch de-vice 6 the 5th signal input port in05, the Any one signal in six signal input port in06, the 7th signal input port in07 or the 8th signal input port in08 Input port and the first signal output port out01, secondary signal output port out02, the 3rd signal output port out03 and 4th signal output port out04 is both turned on, and the first signal input port of matrix switch de-vice 6 is controlled by microcontroller 5 In01 and the 5th signal output port out05 is turned on, secondary signal input port in02 and the 6th signal output port out06 is led Logical, the 3rd signal input port in03 and the 7th signal output port out07 conductings, the 4th signal input port in04 and the 8th Signal output port out08 arbitrary arrangement built-up sequence realizes conducting.
It is described above, only it is presently preferred embodiments of the present invention, not the present invention is imposed any restrictions, it is every according to the present invention Any simple modification, change and equivalent structure change that technical spirit is made to above example, still fall within skill of the present invention In the protection domain of art scheme.

Claims (8)

1. a kind of multifunctional serial port server, it is characterised in that including be sequentially connected microcontroller (5), matrix switch de-vice (6) and for connecting to be connected with the serial interface circuit (7) of external equipment (3), microcontroller (5) it is used for and subscriber computer (1) network interface (4) of communication, multiple UART modules built in microcontroller (5), the matrix switch de-vice (6) is with 2N The matrix switch de-vice of individual signal input port and 2N signal output port, the quantity of serial interface circuit (7) is not more than N, Wherein, N is positive integer not less than 2, and the quantity of external equipment (3) is equal with the quantity of serial interface circuit (7) and outside sets Standby (3) are corresponded with serial interface circuit (7).
2. according to a kind of multifunctional serial port server described in claim 1, it is characterised in that:The matrix switch de-vice (6) For analog matrix switch or FPGA module.
3. according to a kind of multifunctional serial port server described in claim 2, it is characterised in that:The analog matrix switch includes MAX456 chips.
4. according to a kind of multifunctional serial port server described in claim 1, it is characterised in that:The serial interface circuit (7) For RS232 serial port modules, RS422 serial port modules or RS485 serial port modules.
5. according to a kind of multifunctional serial port server described in claim 1, it is characterised in that:The network interface (4) is supported Udp protocol or Transmission Control Protocol.
6. according to a kind of multifunctional serial port server described in claim 1, it is characterised in that:The network interface (4) be with Too Network Communication module.
7. according to a kind of multifunctional serial port server described in claim 6, it is characterised in that:The subscriber computer (1) is led to Gigabit network cable is crossed to be connected with the ethernet communication module.
8. a kind of method carried out data transmission using serial server as claimed in claim 1, it is characterised in that this method bag Include:
Directional data is transmitted, and subscriber computer (1) controls UART modules to be sent out data by network interface (4), the data Send the signal input port of matrix switch de-vice (6) to by the UART modules, then pass through the letter of matrix switch de-vice (6) Number output port is sent to serial interface circuit (7), is finally sent to the external equipment (3) being connected with serial interface circuit (7), Realize that subscriber computer (1) sends data to external equipment (3);The data that external equipment (3) is sent, by serial interface circuit (7) transmit to the signal input port of matrix switch de-vice (6), then sent out by the signal output port of matrix switch de-vice (6) In the UART modules for delivering to microcontroller (5), transmitted finally by network interface (4) to subscriber computer (1), realize outside set Standby (3) send data to subscriber computer (1);
Serial ports Monitoring Data is transmitted, and the data that an external equipment (3) sends are passed through the serial ports being connected with the external equipment (3) and connect Mouth circuit (7) is transmitted to the signal input port of matrix switch de-vice (6), then passes through the signal output of matrix switch de-vice (6) Port point two-way, riches all the way delivers to the serial interface circuit (7) being connected with another external equipment (3), another road send to Communicated after UART modules with subscriber computer (1), realize the data transfer between two external equipments (3), and realize that user counts Monitoring of the calculation machine (1) to external equipment (3);
Data broadcasting, subscriber computer (1) controls a UART module in microcontroller (5) outside by network interface (4) Data are sent, the data are sent to the signal input port of matrix switch de-vice (6), then pass through the letter of matrix switch de-vice (6) Number output port is sent to serial interface circuit (7), is finally transmitted to external equipment (3), is realized subscriber computer (1) to outside The data broadcasting of equipment (3);External equipment (3) is by the serial interface circuit (7) that is connected with external equipment (3) to matrix switch The signal input port of device (6) sends data, and the signal output port of matrix switch de-vice (6) will by multiple UART modules Data transfer to microcontroller (5), microcontroller (5) transmits the data of reception to subscriber computer by network interface (4) (1) information exchange of subscriber computer (1) and external equipment (3), is realized.
CN201710567900.8A 2017-07-13 2017-07-13 Multifunctional serial server and data transmission method Active CN107204992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710567900.8A CN107204992B (en) 2017-07-13 2017-07-13 Multifunctional serial server and data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710567900.8A CN107204992B (en) 2017-07-13 2017-07-13 Multifunctional serial server and data transmission method

Publications (2)

Publication Number Publication Date
CN107204992A true CN107204992A (en) 2017-09-26
CN107204992B CN107204992B (en) 2023-04-14

Family

ID=59911090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710567900.8A Active CN107204992B (en) 2017-07-13 2017-07-13 Multifunctional serial server and data transmission method

Country Status (1)

Country Link
CN (1) CN107204992B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911372A (en) * 2017-11-24 2018-04-13 杭州迪普科技股份有限公司 The method and apparatus that a kind of logic-based device realizes serial equipment access network based on ethernet
CN108073535A (en) * 2017-12-05 2018-05-25 山东超越数控电子股份有限公司 A kind of reinforcement type portable notebook Multi-serial port system
CN110830285A (en) * 2018-08-09 2020-02-21 塔塔咨询服务有限公司 Message-based communication and failure recovery method and system for FPGA middleware framework
CN113377698A (en) * 2021-06-30 2021-09-10 四川湖山电器股份有限公司 Novel RS-485 physical interface

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000209622A (en) * 1998-11-10 2000-07-28 Toshiba Corp Serial transmission line switch system
US20080112140A1 (en) * 2006-11-09 2008-05-15 King Wai Wong I/o module with configurable asics that include a matrix switch
CN102394117A (en) * 2011-08-04 2012-03-28 北京广利核系统工程有限公司 Multifunctional driving module
CN203745974U (en) * 2014-03-11 2014-07-30 上海卓岚信息科技有限公司 Multi-serial port server
CN106339048A (en) * 2016-08-31 2017-01-18 安徽康海时代科技股份有限公司 Serial port server with terminal-type interface
CN206133369U (en) * 2016-08-18 2017-04-26 四川灵通电讯有限公司 Support type serial server of multicast mode
CN206894690U (en) * 2017-07-13 2018-01-16 西安科技大学 A kind of multifunctional serial port server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000209622A (en) * 1998-11-10 2000-07-28 Toshiba Corp Serial transmission line switch system
US20080112140A1 (en) * 2006-11-09 2008-05-15 King Wai Wong I/o module with configurable asics that include a matrix switch
CN102394117A (en) * 2011-08-04 2012-03-28 北京广利核系统工程有限公司 Multifunctional driving module
CN203745974U (en) * 2014-03-11 2014-07-30 上海卓岚信息科技有限公司 Multi-serial port server
CN206133369U (en) * 2016-08-18 2017-04-26 四川灵通电讯有限公司 Support type serial server of multicast mode
CN106339048A (en) * 2016-08-31 2017-01-18 安徽康海时代科技股份有限公司 Serial port server with terminal-type interface
CN206894690U (en) * 2017-07-13 2018-01-16 西安科技大学 A kind of multifunctional serial port server

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘凤新;赵坚固;: "基于FPGA的多路并行独立串口的实现" *
喻少林等: "基于FPGA的飞控计算机多路串行通信设计", 《计算机工程》 *
沈克宇等: "基于SC28L198的多串口服务器设计", 《武汉理工大学学报(信息与管理工程版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911372A (en) * 2017-11-24 2018-04-13 杭州迪普科技股份有限公司 The method and apparatus that a kind of logic-based device realizes serial equipment access network based on ethernet
CN108073535A (en) * 2017-12-05 2018-05-25 山东超越数控电子股份有限公司 A kind of reinforcement type portable notebook Multi-serial port system
CN110830285A (en) * 2018-08-09 2020-02-21 塔塔咨询服务有限公司 Message-based communication and failure recovery method and system for FPGA middleware framework
CN110830285B (en) * 2018-08-09 2022-03-25 塔塔咨询服务有限公司 Message-based communication and failure recovery method and system for FPGA middleware framework
CN113377698A (en) * 2021-06-30 2021-09-10 四川湖山电器股份有限公司 Novel RS-485 physical interface

Also Published As

Publication number Publication date
CN107204992B (en) 2023-04-14

Similar Documents

Publication Publication Date Title
CN107204992A (en) A kind of multifunctional serial port server and data transmission method
CN207083094U (en) A kind of train real-time ethernet network interface card based on TRDP agreements
CN109120624A (en) A kind of more plane loose coupling high band wide data exchange systems
CN106021152A (en) Master-slave serial device concentrator and asynchronous duplex one-to-many serial communication method
CN206894690U (en) A kind of multifunctional serial port server
CN108809864A (en) A kind of multi-thread card high density TAP interchangers based on FPGA
CN103972909B (en) TSC systems and its RS485 communication means based on FPGA
CN101493806B (en) Data-transmission method of communication adapter
CN201204574Y (en) Circuit for switching RS232 signal level
CN203982366U (en) Based on ARM and FPGA serial port device flexibly at a high speed
CN208781210U (en) A kind of data transmission interactive device
CN204887006U (en) Switch with modularization interface
CN101505257B (en) Hardware structure for high speed multi-link loop network system
CN204216911U (en) A kind of Ethernet photoelectric receiving device
CN201622783U (en) LED module communication circuit and LED display screen
CN204706166U (en) A kind of telepilot with multiple communication interface
CN209472629U (en) RS422 communication and CAN communication equipment based on PCIE bus
CN201623714U (en) Two-way communication circuit
CN201663653U (en) Hybrid module type high-definition matrix system
CN208905029U (en) Multichannel single-direction and dual-direction data transmission set
CN201910814U (en) General data quick exchange device for serial port communication and CAN (controller area network) bus communication
CN205959192U (en) Communication connects converting circuit
CN110147339A (en) A kind of plant control unit of the communication conversion based on wireless router
CN201234270Y (en) High-speed InfiniBand switch blade
CN205594424U (en) Numerical control apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant