CN103336755B - Program control multimode serial port distributor - Google Patents

Program control multimode serial port distributor Download PDF

Info

Publication number
CN103336755B
CN103336755B CN201310227171.3A CN201310227171A CN103336755B CN 103336755 B CN103336755 B CN 103336755B CN 201310227171 A CN201310227171 A CN 201310227171A CN 103336755 B CN103336755 B CN 103336755B
Authority
CN
China
Prior art keywords
module
serial port
port chip
max3160
control
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.)
Expired - Fee Related
Application number
CN201310227171.3A
Other languages
Chinese (zh)
Other versions
CN103336755A (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.)
92859 FORCES PLA
Original Assignee
92859 FORCES PLA
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 92859 FORCES PLA filed Critical 92859 FORCES PLA
Priority to CN201310227171.3A priority Critical patent/CN103336755B/en
Publication of CN103336755A publication Critical patent/CN103336755A/en
Application granted granted Critical
Publication of CN103336755B publication Critical patent/CN103336755B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of program control multimode serial port distributor, its technical characteristics is: comprise FPGA module, power module, multiple MAX232 serial port chip, multiple MAX3160 serial port chip and memory module, power module is connected to FPGA module, memory module, MAX232 serial port chip and MAX3160 serial port chip for its power supply, FPGA module is connected with MAX232 serial port chip, MAX3160 serial port chip, memory module, and one of them MAX232 serial port chip connects with host computer as control serial ports.The present invention is reasonable in design, any linkage function of Multi-serial port of two kinds of patterns is realized by FPGA module and be connected MAX232 serial port chip and MAX3160 serial port chip, the mode of operation of MAX3160 interface and the connected mode of any serial ports can be adjusted under the control of host computer, realize multiple serial equipment Mode change and free interconnecting function, there is easy for installation, dependable performance, the feature such as flexible and convenient to use.

Description

Program control multimode serial port distributor
Technical field
The invention belongs to serial port communication technology field, especially a kind of program control multimode serial port distributor.
Background technology
Serial communication is a kind of communication modes carrying out transmitting data by step-by-steps such as data signal line, ground wire, control lines.Because serial communication transmits information one by one on a transmission line, transmission line used is few, therefore, can be widely used in external unit that those and computing machine people-machine switching equipment not far from one another and serial store as terminal, printer, logic analyser, disk etc.Serial communication comprises RS232 serial ports and RS422 serial ports, a lot of communication facilities is included in some main equipments or system, these communication facilitiess need to carry out in real time having communicated data exchanging function by serial ports, the communication facilities of existing RS232 serial ports between above-mentioned communication facilities, there is again the communication facilities of RS422 serial ports, and data interaction complex forms, how making the communication facilities of their distinct interface carry out efficient communication is problem in the urgent need to address at present.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, propose a kind of reasonable in design, can effectively carry out multichannel interface conversion function program control multimode serial port distributor.
The present invention solves its technical matters and takes following technical scheme to realize:
A kind of program control multimode serial port distributor, comprise FPGA module, power module, multiple MAX232 serial port chip, multiple MAX3160 serial port chip and memory module, power module is connected to FPGA module, memory module, MAX232 serial port chip and MAX3160 serial port chip for its power supply, FPGA module is connected with MAX232 serial port chip, MAX3160 serial port chip, memory module, and one of them MAX232 serial port chip connects with host computer as control serial ports.
And, described FPGA module comprises bootstrap module, parsing of the data stream module, control register, interconnection network module, control pin and data pins, bootstrap module and control register are connected with the program storage in memory module and data-carrier store respectively, this bootstrap module is also connected with control register and parsing of the data stream module, this parsing of the data stream module respectively with control serial ports, control register and interconnection network module are connected, this control register is also connected with control pin and interconnection network module, this interconnection network module is also connected with data pins, control pin to be connected with MAX3160 serial port chip with MAX232 serial port chip respectively with data pins.
And the mode of operation that described host computer is connected for arranging FPGA with parsing of the data stream module by controlling serial ports, the mode of operation of described FPGA is operational mode or debugging mode.
And described host computer is by controlling the connected mode that is connected for arranging any serial ports with parsing of the data stream module of serial ports, and the connected mode of described any serial ports is interconnected, one-to-many connection between two or mutually connected in series.
And the mode of operation that described host computer is connected for arranging MAX3160 chip with parsing of the data stream module by controlling serial ports, the mode of operation of described MAX3160 chip is RS422 pattern or RS232 pattern.
And described memory module comprises program storage and data-carrier store.
Advantage of the present invention and good effect are:
The present invention realizes any linkage function of Multi-serial port of two kinds of patterns by FPGA module and be connected MAX232 serial port chip and MAX3160 serial port chip, under the control of host computer, the mode of operation of MAX3160 interface and the connected mode of any serial ports can be adjusted, multiple serial equipment Mode change and free interconnecting function can be realized, there is easy for installation, dependable performance, the feature such as flexible and convenient to use.
Accompanying drawing explanation
Fig. 1 is circuit block diagram of the present invention;
Fig. 2 is FPGA internal logic graph of a relation of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further described:
A kind of program control multimode serial port distributor, as shown in Figure 1, comprises FPGA module, power module, multiple MAX232 serial port chip, multiple MAX3160 serial port chip, memory module and arranges switch.Power module is connected to FPGA module, memory module and MAX232 serial port chip and MAX3160 serial port chip are its power supply, FPGA module and MAX232 serial port chip, MAX3160 serial port chip, memory module, control serial ports and arrange switch to be connected, FPGA module control MAX232X chip, MAX3160 serial port chip realizes the communication control function to each serial port chip, can distribute and distribute arbitrarily between serial ports an interconnected or serial ports between two and be connected with multiple serial ports, FPGA module can also arrange the mode of operation of MAX3160 serial port chip simultaneously, the mode of operation of MAX3160 serial port chip comprises 422 serial ports patterns or 232 serial ports patterns, each MAX232X chip is all connected with 9 pin RS232 serial ports to realize RS232 communication function, and each MAX3160 serial port chip all connects 25 pin RS422 serial ports to realize RS422 communication function or RS232 communication function.In the present embodiment, the quantity of 9 pin RS232 serial ports is 16, and corresponding MAX232 serial port chip is 16, and the quantity of 25 pin RS422 serial ports is 30, and corresponding MAX3160 serial port chip is 30.In above-mentioned MAX232 serial port chip, using one of them MAX232 serial port chip as control serial ports, FPGA module to be connected with host computer by this control serial ports and realizes the communication function with host computer, FPGA module can receive connection setting command and the order of serial ports Connection inquiring of host computer, arrange according to the mode of operation of setting command to each serial port chip of host computer on the one hand, according to the querying command of host computer, the duty of all for FPGA serial ports and annexation are sent to host computer on the other hand.FPGA module realizes program by memory module and stores and data storage function, this memory module comprises program storage and data-carrier store, wherein program storage is for storing FPGA control program, data-carrier store is for storing FPGA data, when program control multimode serial port distributor powers on, FPGA module reads data automatically to revert to the duty before power down from memory module.Arrange the mode of operation of switch for FPGA, can complete above-mentioned controlling functions in the operating mode, under debugging mode, host computer completes the debug function to program control multimode serial port distributor.
As shown in Figure 2, FPGA module comprises bootstrap module, parsing of the data stream module, control register, interconnection network module, control pin and data pins, bootstrap module and control register are connected with the program storage in memory module and data-carrier store respectively, this bootstrap module is also connected with control register and parsing of the data stream module, this parsing of the data stream module respectively with control serial ports, control register and interconnection network module are connected, this control register is also connected with control pin and interconnection network module, this interconnection network module is also connected with data pins, control pin to be connected with MAX3160 serial port chip with MAX232 serial port chip respectively with data pins.The principle of work of FPGA module is: FPGA module, as the process core of program control multimode serial ports, realizes the function such as control of interconnected and serial ports pattern of computer program-control, Multi-serial port.After system electrification, the program code be kept in program register is loaded in FPGA by bootstrap module automatically, with the operation of control data stream parsing module and control register.Serial communication between the continual maintenance of parsing of the data stream module and host computer: parsing of the data stream module receives the data that host computer transmits, carrying out analysis judgment is order or tune-up data, if order, sent into control register and preserved stored in data-carrier store; If tune-up data, sent into interconnection network module.Parsing of the data stream module collects the data from control register, interconnection network module simultaneously, is passed to host computer.Control register arranges according to the order that parsing of the data stream module transmits the level that FPGA controls pin, realizes the Schema control of work serial ports.Interconnection network module adjusts the mode of operation of MAX3160 interface and the connected mode of any serial ports according to the order that parsing of the data stream module transmits, and realizes multiple serial equipment Mode change and free interconnecting function.
It is emphasized that; embodiment of the present invention is illustrative; instead of it is determinate; therefore the present invention is not limited to the embodiment described in embodiment; every other embodiments drawn by those skilled in the art's technical scheme according to the present invention, belong to the scope of protection of the invention equally.

Claims (5)

1. a program control multimode serial port distributor, it is characterized in that: comprise FPGA module, power module, multiple MAX232 serial port chip, multiple MAX3160 serial port chip and memory module, power module is connected to FPGA module, memory module, MAX232 serial port chip and MAX3160 serial port chip for its power supply, FPGA module is connected with MAX232 serial port chip, MAX3160 serial port chip, memory module, and one of them MAX232 serial port chip connects with host computer as control serial ports;
Described FPGA module comprises bootstrap module, parsing of the data stream module, control register, interconnection network module, control pin and data pins, bootstrap module and control register are connected with the program storage in memory module and data-carrier store respectively, this bootstrap module is also connected with control register and parsing of the data stream module, this parsing of the data stream module respectively with control serial ports, control register and interconnection network module are connected, this control register is also connected with control pin and interconnection network module, this interconnection network module is also connected with data pins, control pin to be connected with MAX3160 serial port chip with MAX232 serial port chip respectively with data pins.
2. program control multimode serial port distributor according to claim 1, it is characterized in that: the mode of operation that described host computer is connected for arranging FPGA with parsing of the data stream module by controlling serial ports, the mode of operation of described FPGA is operational mode or debugging mode.
3. program control multimode serial port distributor according to claim 1, it is characterized in that: described host computer is by controlling the connected mode that is connected for arranging any serial ports with parsing of the data stream module of serial ports, and the connected mode of described any serial ports is interconnected, one-to-many connection between two or mutually connected in series.
4. program control multimode serial port distributor according to claim 1, it is characterized in that: the mode of operation that described host computer is connected for arranging MAX3160 chip with parsing of the data stream module by controlling serial ports, the mode of operation of described MAX3160 chip is RS422 pattern or RS232 pattern.
5. program control multimode serial port distributor according to claim 1, is characterized in that: described memory module comprises program storage and data-carrier store.
CN201310227171.3A 2013-06-08 2013-06-08 Program control multimode serial port distributor Expired - Fee Related CN103336755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310227171.3A CN103336755B (en) 2013-06-08 2013-06-08 Program control multimode serial port distributor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310227171.3A CN103336755B (en) 2013-06-08 2013-06-08 Program control multimode serial port distributor

Publications (2)

Publication Number Publication Date
CN103336755A CN103336755A (en) 2013-10-02
CN103336755B true CN103336755B (en) 2015-12-30

Family

ID=49244925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310227171.3A Expired - Fee Related CN103336755B (en) 2013-06-08 2013-06-08 Program control multimode serial port distributor

Country Status (1)

Country Link
CN (1) CN103336755B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339238B (en) * 2016-08-26 2020-03-24 卢军 Serial port multi-mode automatic multiplexing chip fast programming system
CN110704352A (en) * 2019-09-25 2020-01-17 苏州浪潮智能科技有限公司 Multi-serial port management equipment, method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0506136A2 (en) * 1991-03-29 1992-09-30 International Business Machines Corporation Broadcast/switching apparatus for executing broadcast/multi-cast transfers over unbuffered asynchronous switching networks
CN101799678A (en) * 2009-12-30 2010-08-11 北京宇航系统工程研究所 Three-way asynchronous serial-port data real-time synchronous transmitting system
CN202084028U (en) * 2011-06-03 2011-12-21 南京理工大学 Modularized multi-serial port expanding device
CN103136028A (en) * 2013-03-11 2013-06-05 西北工业大学 FLASH memorizer long-distance on-line upgrade method based on field programmable gate array (FPGA)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100518572B1 (en) * 2003-05-15 2005-10-04 삼성전자주식회사 Method and appartus for communicating in serial multi port, and recording medium
CN203376746U (en) * 2013-06-08 2014-01-01 中国人民解放军92859部队 Novel program control multi-mode serial port distributor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0506136A2 (en) * 1991-03-29 1992-09-30 International Business Machines Corporation Broadcast/switching apparatus for executing broadcast/multi-cast transfers over unbuffered asynchronous switching networks
CN101799678A (en) * 2009-12-30 2010-08-11 北京宇航系统工程研究所 Three-way asynchronous serial-port data real-time synchronous transmitting system
CN202084028U (en) * 2011-06-03 2011-12-21 南京理工大学 Modularized multi-serial port expanding device
CN103136028A (en) * 2013-03-11 2013-06-05 西北工业大学 FLASH memorizer long-distance on-line upgrade method based on field programmable gate array (FPGA)

Also Published As

Publication number Publication date
CN103336755A (en) 2013-10-02

Similar Documents

Publication Publication Date Title
CN104348673B (en) A kind of method of commissioning, master control borad and business board
CN105681145A (en) FPGA-based FlexRay communication module
CN103049052A (en) Modularized remote terminal unit (RTU) and rapid customization method thereof
CN107645310B (en) The data transmission device and data transmission method of breaker controller
CN104461660A (en) Multi-mode dynamic loading method of heterogeneous system
CN103336755B (en) Program control multimode serial port distributor
CN103067201A (en) Multi-protocol communication manager
CN202975723U (en) Household intelligent controller and remote household control system
CN104571942A (en) Data storage system and method analyzing non-signal
CN204166522U (en) A kind of high-speed high capacity FLASH veneer memory circuit plate
CN207869116U (en) A kind of handover control system of master/slave device
CN203376746U (en) Novel program control multi-mode serial port distributor
CN208954104U (en) Multichannel SIM card read-write equipment
CN204719748U (en) The intelligent management system of extensive USB device
CN209103281U (en) Integrated multi-bus interface module based on pci interface
CN207182023U (en) The network control board and modular instrument for being controlled and being communicated based on network
CN100421404C (en) Serial telecommunication server for monitoring equipment state by Ethernet
CN105426334A (en) Parallel type large-scale USB extension device, working method and system
CN205028212U (en) Add many serial server of stationary
CN205015883U (en) Multichannel serial ports debugging device
CN204256063U (en) A kind of based on photoelectricity mixed signal parallel testing device
CN204480237U (en) A kind of connector, universal serial bus device and intelligent terminal
CN105180383A (en) Communication mode control method and system and air conditioner debugging device
CN210804400U (en) Communication management machine and system
CN204302699U (en) A kind of control system being realized the control of touch-screen One screen multi-machine by short circuit port

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151230

Termination date: 20180608

CF01 Termination of patent right due to non-payment of annual fee