CN106168935A - A kind of serial ports conversion equipment and the method obtaining equipment bi-directional data - Google Patents
A kind of serial ports conversion equipment and the method obtaining equipment bi-directional data Download PDFInfo
- Publication number
- CN106168935A CN106168935A CN201610514077.XA CN201610514077A CN106168935A CN 106168935 A CN106168935 A CN 106168935A CN 201610514077 A CN201610514077 A CN 201610514077A CN 106168935 A CN106168935 A CN 106168935A
- Authority
- CN
- China
- Prior art keywords
- pass
- needle
- serial ports
- equipment
- conversion 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0002—Serial port, e.g. RS232C
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/38—Universal adapter
- G06F2213/3852—Converter between protocols
Abstract
It is an object of the invention to provide a kind of serial ports conversion equipment and the method obtaining equipment bi-directional data.Serial ports conversion equipment includes at least one needle-like RS 232 and the combination of multiple pass RS 232;Or, including the combination of multiple needle-like RS 232 and at least one pass RS 232, wherein, needle-like RS 232 and the receiving terminal of pass RS 232 and transmitting terminal are interconnected by least two junction point respectively, and it is all signally connected together.Compared with prior art, the serial ports conversion equipment of the present invention uses needle-like RS 232 and the pass RS 232 of varying number, and the mutual contact mode of wherein each stitch, it is combined into this serial ports conversion equipment, thus meet the demand of dissimilar equipment interface, solve the problem that Serial Port Line interface type does not mates, connected mode is single of existing single kind.Additionally, in main frame communicates with equipment, utilize above-mentioned serial ports conversion equipment, will interconnect between COM1, COM2 and the serial ports of equipment of main frame, so that main frame can seize bi-directional data when equipment works.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to the technology of a kind of serial ports conversion.
Background technology
Along with developing rapidly of information technology, in the control system of many modernization centralized management, need to use monolithic
Machine is to realize various test and to control function, and single-chip microcomputer is a wide in range address, and it includes many types, much series, its
Feature is the attribute that one piece of IC chip has computer, is widely used in every field.The overwhelming majority is single
Sheet machine all has the peripheral hardware with external device communication so that it is can carry out information very easily mutual, and these equipment major parts are used
Serial Port Line is attached, and Serial Port Line uses the most universal in equipment communication.
Serial ports is the abbreviation of serial line interface, also referred to as serial communication interface (being often referred to com interface), is to use serial communication side
The expansion interface of formula.Serial line interface is divided by electrical standard and agreement and includes RS-232, RS-422, RS485 etc., wherein, and RS-
232 serial ports are the most frequently used a kind of serial communication interfaces, also referred to as standard serial port.Its full name is " data terminal equipment (DTE, Data
Terminal Equipment) and data communications equipment (DCE, Data Communicate Equipment) between serial two enter
Data exchange interface technical standard processed ".
When using serial communication, the information receiving end (RXD) of an equipment will be with the information transmitting terminal (TXD) of another equipment
Being connected, information transmitting terminal (TXD) to be connected with the information receiving end (RXD) of another equipment, and the most so-called the intersection connects
Connect.For serial ports in actual use, the serial ports type of distinct device have needle-like (male), pass (female) point, such as Fig. 1 and
Needle-like RS-232DB9 and pass RS-232DB9 schematic diagram it is respectively shown in Fig. 2.
Serial Port Line the most used has direct-connected line and reticule two kinds, is respectively applied to different demand scenes, the most not
Having needle-like (male) and pass (female) two kinds with the serial ports of equipment, therefore conversion head or data line group have 6 kinds of lists altogether
The Serial Port Line of one kind: male-male direct-connected, male-public transport fork, female-female direct-connected, female-female intersection, male-female intersection direct-connected, male-female.?
When carrying out debugging or the communication between devices of distinct device, may use certain conversion head in above-mentioned 6 kinds or data wire, this wants
Depending on field apparatus.
At present, conversion head or data wire on the market are all single, and existing equipment is of a great variety, various kinds of equipment interface
Type-Inconsistencies, the serial communication connected mode that each producer uses is the most different, has the direct-connected connection of employing, has employing to intersect even
Connecing, the Serial Port Line of existing single kind cannot meet on-the-spot needs.User needs to buy according to actual demand, the most standby many
The Serial Port Line of class single kind, relatively costly.Or, a Serial Port Line can be cut off by user in centre, finds out holding wire,
During debugging, direct-connected or intersect and carry out manual wiring etc. under both of which, but, so need to consume a longer time choosing
With or transformation Serial Port Line with matching unit, inefficiency.When variety classes equipment debugging, above procedure is loaded down with trivial details, efficiency is low, non-
The most not convenient, and need to be known a priori by the interface type of equipment to be debugged.And the Serial Port Line of single kind cannot get simultaneously
The reception data of equipment and transmission data, if to obtain whole communication informations of certain equipment, need more or more complicated
Data wire.
Therefore, how to realize a kind of serial ports conversion equipment, utilize this serial ports conversion equipment to facilitate user in time, effectively connect
Connect all kinds of equipment possessing different interface type, and utilize this this serial ports conversion equipment to obtain equipment bi-directional data, become this
One of skilled person's problem needing solution badly.
Summary of the invention
It is an object of the invention to provide a kind of serial ports conversion equipment and the method obtaining equipment bi-directional data.
According to an aspect of the invention, it is provided a kind of serial ports conversion equipment, wherein, described serial ports conversion equipment includes
Needle-like RS-232 and the combination of pass RS-232, wherein, the receiving terminal of described needle-like RS-232 and described pass RS-232 and send out
Sending end is interconnected by least two junction point respectively, described needle-like RS-232 and whole signal grounds of described pass RS-232
Link together;Wherein, described combination includes following any one:
At least one described needle-like RS-232 and the combination of multiple described pass RS-232;
Multiple described needle-like RS-232 and the combination of at least one described pass RS-232.
Preferably, described serial ports conversion equipment includes pass described in needle-like RS-232 described at least three and at least three
The combination of RS-232.
Preferably, the receiving terminal of pass RS-232 described in needle-like RS-232 described at least three and at least three and transmitting terminal
Interconnected by two junction points respectively, including:
The receiving terminal of at least two needle-like RS-232, the transmitting terminal of at least one needle-like RS-232, at least two pass RS-
The transmitting terminal of 232, the receiving terminal of at least one pass RS-232 are interconnected by a junction point;
The transmitting terminal of at least two needle-like RS-232, the receiving terminal of at least one needle-like RS-232, at least two pass RS-
Receiving terminal, the transmitting terminal of at least one pass RS-232 of 232 are interconnected by another junction point.
Preferably, the type of described needle-like RS-232 or described pass RS-232 includes following at least any one:
DB9 type;
DB25 type.
According to another aspect of the present invention, additionally providing one utilizes above-mentioned serial ports to change in main frame communicates with equipment
Device obtains the method for equipment bi-directional data, and wherein, the method comprises the following steps:
Main frame passes through COM1 thereon, obtains the data that corresponding equipment is sent;
Described main frame passes through COM2 thereon, obtains the data being sent to described equipment via the COM1 of described main frame;
Wherein, carried out by described serial ports conversion equipment between COM1, COM2 and the serial ports of described equipment of described main frame
Interconnection.
Preferably, described serial ports conversion equipment includes needle-like RS-232 and the combination of pass RS-232, wherein, described combination
Including following any one:
The combination of pass RS-232 described at least one described needle-like RS-232 and at least two;
Needle-like RS-232 described at least two and the combination of at least one described pass RS-232.
Preferably, described serial ports conversion equipment includes pass described at least one described needle-like RS-232 and at least two
The combination of RS-232, receiving terminal and the transmitting terminal of pass RS-232 described at least one described needle-like RS-232 and at least two divide
Do not interconnected by two junction points, including:
The receiving terminal of at least one needle-like RS-232, the transmitting terminal of at least one pass RS-232, at least one pass RS-
The receiving terminal of 232 is interconnected by a junction point;
The transmitting terminal of at least one needle-like RS-232, the receiving terminal of at least one pass RS-232, at least one pass RS-
The transmitting terminal of 232 is interconnected by another junction point.
Preferably, described serial ports conversion equipment includes needle-like RS-232 described at least two and at least one described pass
The combination of RS-232, needle-like RS-232 described at least two and the receiving terminal of at least one described pass RS-232 and transmitting terminal divide
Do not interconnected by two junction points, including:
The receiving terminal of at least one described needle-like RS-232, the transmitting terminal of at least one described needle-like RS-232, at least one
The receiving terminal of individual described pass RS-232 is interconnected by a junction point;
The transmitting terminal of at least one described needle-like RS-232, the receiving terminal of at least one described needle-like RS-232, at least one
The transmitting terminal of individual described pass RS-232 is interconnected by another junction point.
Compared with prior art, the serial ports conversion equipment of the present invention covers except only including needle-like RS-232 and one
Whole compound modes beyond pass RS-232.According to the actual requirements, can be according to needle-like RS-232 of varying number and pass
RS-232, and the mutual contact mode of wherein each stitch, be combined into this serial ports conversion equipment, thus meet dissimilar equipment and connect
The demand of mouth, solves the problem that Serial Port Line interface type does not mates, connected mode is single of existing single kind.
Further, this serial ports conversion equipment includes three needle-like RS-232 and three pass RS-232, comprises altogether 15
Group data splitting line, comprises the Serial Port Line of existing six class single kind, and male-public transport fork, female-female intersect, male-female direct-connected,
Male-female intersection these four line more than one set, can make standby.The numbering difference of all of male and female head, user can be according on equipment
Interface quickly finds oneself required Serial Port Line.
Further, in main frame communicates with equipment, utilize above-mentioned serial ports conversion equipment, by COM1, COM2 of main frame
And interconnect between the serial ports of equipment, so that main frame can seize whole communication interaction information when equipment works,
This checks, decodes, debugs and bring great convenience to the serial ports of equipment.
Accompanying drawing explanation
By the detailed description that non-limiting example is made made with reference to the following drawings of reading, other of the present invention
Feature, purpose and advantage will become more apparent upon:
Fig. 1 illustrates the schematic diagram of a kind of needle-like RS-232DB9 of prior art;
Fig. 2 illustrates the schematic diagram of a kind of pass RS-232DB9 of prior art;
Fig. 3 illustrates a kind of mother-female direct-connected line of prior art;
Fig. 4 illustrates a kind of female-female reticule of prior art;
Fig. 5 illustrates the schematic diagram of serial ports conversion equipment in accordance with a preferred embodiment of the present invention;
Fig. 6 illustrates the schematic diagram obtaining equipment bi-directional data according to a further aspect of the present invention;
Fig. 7 illustrates the schematic diagram obtaining equipment bi-directional data according to another preferred embodiment of the present invention.
In accompanying drawing, same or analogous reference represents same or analogous parts.
Detailed description of the invention
It should be mentioned that, some exemplary embodiments are described as before being discussed in greater detail exemplary embodiment
The process described as flow chart or method.Although flow chart operations is described as order process, but therein permitted
Multioperation can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of operations can be rearranged.When it
When having operated, described process can be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process
Can correspond to method, function, code, subroutine, subprogram etc..
Alleged " computer equipment " within a context, also referred to as " computer ", refer to by running preset program or to refer to
Order performs the intelligent electronic device of the predetermined process process such as numerical computations and/or logical calculated, its can include processor with
Memorizer, processor the survival performing to prestore in memory instruction performs predetermined process process, or by ASIC,
The hardware such as FPGA, DSP performs predetermined process process, or is combined by said two devices and realize.Computer equipment includes but does not limits
In server, PC, notebook computer, panel computer, smart mobile phone etc..
Described computer equipment includes subscriber equipment and the network equipment.Wherein, described subscriber equipment includes but not limited to electricity
Brain, smart mobile phone, PDA etc.;The described network equipment includes but not limited to what single network server, multiple webserver formed
Server group or the cloud being made up of a large amount of computers or the webserver based on cloud computing (Cloud Computing), wherein,
Cloud computing is the one of Distributed Calculation, the super virtual machine being made up of a group loosely-coupled computer collection.Its
In, described computer equipment isolated operation can realize the present invention, it is possible to access network and by with in network other calculate
The interactive operation of machine equipment realizes the present invention.Wherein, the network residing for described computer equipment include but not limited to the Internet,
Wide area network, Metropolitan Area Network (MAN), LAN, VPN etc..
It should be noted that described subscriber equipment, the network equipment and network etc. are only for example, other are existing or from now on may be used
Computer equipment or the network that can occur such as are applicable to the present invention, within also should being included in scope, and to draw
It is incorporated herein by mode.
Method (some of them are illustrated by flow chart) discussed hereafter can pass through hardware, software, firmware, centre
Part, microcode, hardware description language or its combination in any are implemented.When implementing by software, firmware, middleware or microcode
Time, program code or code segment in order to implement necessary task can be stored in machine or computer-readable medium (is such as deposited
Storage media) in.(one or more) processor can implement the task of necessity.
Concrete structure disclosed herein and function detail are the most representational, and are for describing showing of the present invention
The purpose of example embodiment.But the present invention can be implemented by many alternative forms, and is not interpreted as
It is limited only by the embodiments set forth herein.
Although it should be appreciated that here may have been used term " first ", " second " etc. to describe unit,
But these unit should not be limited by these terms.These terms are used to be only used to a unit and another unit
Make a distinction.For example, in the case of without departing substantially from the scope of exemplary embodiment, it is single that first module can be referred to as second
Unit, and second unit can be referred to as first module similarly.Term "and/or" used herein above include one of them or
Any and all combination of more listed associated item.
It should be appreciated that when a unit is referred to as " connection " or during " coupled " to another unit, and it can directly connect
Connect or be coupled to another unit described, or temporary location can be there is.On the other hand, it is referred to as " directly connecting when a unit
Connect " or " direct-coupling " to another unit time, the most there is not temporary location.Should explain in a comparable manner and be used for retouching
State the relation between unit other words (such as " and be in ... between " compared to " and be directly in ... between ", " with ... adjacent
Closely " compared to " with ... be directly adjacent to " etc.).
Term used herein above is only used to describe specific embodiment and be not intended to limit exemplary embodiment.Unless
Context refers else clearly, and singulative the most used herein above " ", " one " also attempt to include plural number.Also should
When being understood by, term used herein above " include " and/or " comprising " specify stated feature, integer, step, operation,
Unit and/or the existence of assembly, and do not preclude the presence or addition of other features one or more, integer, step, operation, unit,
Assembly and/or a combination thereof.
It should further be mentioned that in some replace implementation, the function/action being previously mentioned can be attached according to being different from
The order indicated in figure occurs.For example, depending on involved function/action, the two width figures in succession illustrated actually may be used
Substantially simultaneously to perform or sometimes can perform in a reverse order.
Below in conjunction with the accompanying drawings the present invention is described in further detail.
According to an aspect of the invention, it is provided a kind of serial ports conversion equipment, wherein, described serial ports conversion equipment includes
Needle-like RS-232 and the combination of pass RS-232, wherein, the receiving terminal of described needle-like RS-232 and described pass RS-232 and send out
Sending end is interconnected by least two junction point respectively, described needle-like RS-232 and whole signal grounds of described pass RS-232
Link together;Wherein, described combination includes following any one:
At least one described needle-like RS-232 and the combination of multiple described pass RS-232;
Multiple described needle-like RS-232 and the combination of at least one described pass RS-232.
Specifically, owing to existing serial ports conversion head or data wire are all the Serial Port Lines of single kind, and or only include
Two needle-like RS-232, or only include two pass RS-232, or only include needle-like RS-232 and a pass RS-
232, once can only realize the Serial Port Line of a kind of single kind, such as male-male direct-connected, male-public transport fork, female-female direct-connected, female-female friendship
Fork, male-female intersection direct-connected, male-female.And this needle-like RS-232 included by serial ports conversion equipment and the combination bag of pass RS-232
Include: at least one needle-like RS-232 and the combination of multiple pass RS-232, or, multiple needle-like RS-232 and at least one pass
The combination of RS-232.Such as, this serial ports conversion equipment includes needle-like RS-232 and multiple pass RS-232, or, including
Multiple needle-like RS-232 and a pass RS-232, or, including multiple needle-like RS-232 and multiple pass RS-232.These pins
Type RS-232 and the receiving terminal of pass RS-232 and transmitting terminal are interconnected by least two junction point respectively, and, these
Together with needle-like RS-232 and pass RS-232 whole are signally connected.
Such as, this serial ports conversion equipment includes needle-like RS-232 and two pass RS-232, wherein, this needle-like
The receiving terminal of RS-232, the transmitting terminal of a pass RS-232, the receiving terminal of a pass RS-232 are clicked on by a connection
Row interconnection;The transmitting terminal of this needle-like RS-232, the receiving terminal of a pass RS-232, the transmitting terminal of a pass RS-232
Being interconnected by another junction point, three of this needle-like RS-232 and two pass RS-232 are signally connected one
Rise.Here, this serial ports conversion equipment achieves the Serial Port Line of three kinds of single kind, female-female intersection, male-female friendship direct-connected, male-female
Fork.
And for example, this serial ports conversion equipment includes two needle-like RS-232 and a pass RS-232, wherein, this needle-like
The receiving terminal of RS-232, the transmitting terminal of needle-like RS-232, the receiving terminal of a pass RS-232 are clicked on by a connection
Row interconnection;The transmitting terminal of one needle-like RS-232, the receiving terminal of needle-like RS-232, the transmitting terminal of a pass RS-232 lead to
Crossing another junction point to interconnect, three of these two needle-like RS-232 and a pass RS-232 are signally connected one
Rise.Here, this serial ports conversion equipment achieves the Serial Port Line of three kinds of single kind, public affairs-public transport fork, male-female friendship direct-connected, male-female
Fork.
For another example, this serial ports conversion equipment includes three needle-like RS-232 and three pass RS-232, wherein, two needle-like
The receiving terminal of RS-232, the transmitting terminal of needle-like RS-232, the transmitting terminal of two pass RS-232, pass RS-232
Receiving terminal is interconnected by a junction point;The transmitting terminal of two needle-like RS-232, the receiving terminal of needle-like RS-232, two
The receiving terminal of individual pass RS-232, the transmitting terminal of a pass RS-232 are interconnected by another junction point, these three pins
Six of type RS-232 and three pass RS-232 are signally connected together.Here, this serial ports conversion equipment achieves all
The Serial Port Line of six kinds of single kind, male-male direct-connected, male-public transport fork, female-female is direct-connected, female-female to intersect, male-female direct-connected, male-female
Intersect.
Those skilled in the art will be understood that needle-like RS-232 included by above-mentioned serial ports conversion equipment and pass RS-232
Quantity and stitch mutual contact mode be only for example, and the present invention should not caused restriction.
Here, this serial ports conversion equipment covers in addition to only including needle-like RS-232 and a pass RS-232
All compound modes.According to the actual requirements, can be according to needle-like RS-232 of varying number and pass RS-232 and the most each
The mutual contact mode of individual stitch, is combined into this serial ports conversion equipment, thus meets the demand of dissimilar equipment interface, solve existing
The problem that Serial Port Line interface type does not mates, connected mode is single of single kind.
Preferably, the type of described needle-like RS-232 or described pass RS-232 includes following at least any one:
DB9 type;
DB25 type.
Here, traditional RS-232 interface standard has 22 lines, use standard 25 core D type connector assembly (DB25), made later
With being reduced to D type socket (DB9) of 9 cores, at present, major applications uses 9 core plug seats.RS-232DB9 and RS-
232DB25, though the definition of its stitch is different, but what operation principle was just as, most crucial problem is all that RXD (receives
End), TXD (transmitting terminal) and the connection of GND (signal ground) three stitch.
Therefore, it is described in detail as a example by DB9 type RS-232 below.
Here, RS-232DB9 stitch is defined as follows table 1:
Table 1 RS-232DB9 stitch defines
Stitch is write a Chinese character in simplified form | Needle-like stitch | Pass stitch | Function describes (English) | Function describes (Chinese) |
DCD | 1 | 1 | Data Carrier Detect | Carrier wave detects |
RXD | 2 | 3 | Received Data | Receive data |
TXD | 3 | 2 | Transmit Data | Send data |
DTR | 4 | 4 | Data Terminal Ready | DTR |
GND | 5 | 5 | Signal Ground | Signal ground |
DSR | 6 | 6 | Data Set Ready | DSR |
RTS | 7 | 7 | Require to Send | Request sends |
CTS | 8 | 8 | Clear to Send | Clear to send is asked |
RI | 9 | 9 | Ring Indicator | Ring indicates |
Owing to Serial Port Line the most used has direct-connected line and reticule two kinds, it is respectively applied to different demand scenes, with
Time, the serial ports of distinct device has needle-like (male) and pass (female) two kinds, and therefore conversion head or data line group have 6 altogether
The Serial Port Line of kind of single kind: male-male direct-connected, male-public transport fork, female-female direct-connected, female-mother's intersection, male-female friendship direct-connected, male-female
Fork.
Existing serial ports conversion head or data wire are all the Serial Port Lines of single kind, and if Fig. 3 is mother-female direct-connected line, Fig. 4 is
Female-female reticule.Additionally, according to the type (needle-like or pass) of serial ports and connected mode (direct-connected line or the intersection of Serial Port Line
Line), also there are other four kinds: public-public direct-connected, public affairs-public transport fork, male-female intersection direct-connected, male-female, wherein, most crucial is exactly
The connection of tri-lines of RXD, TXD and GND.
Therefore, at least one needle-like RS-232DB9 and multiple pass RS-232DB9 are combined into a serial ports conversion dress
Put, or, multiple needle-like RS-232DB9 and at least one pass RS-232DB9 are combined into a serial ports conversion equipment, its
In, needle-like RS-232DB9 and the receiving terminal of pass RS-232DB9 and transmitting terminal are carried out by least two junction point respectively mutually
Connection, needle-like RS-232DB9 and pass RS-232DB9 whole are signally connected together with, i.e. can change at a serial ports
Realize in above-mentioned six kinds of single kind Serial Port Lines in device is multiple simultaneously.
Preferably, described serial ports conversion equipment includes pass described in needle-like RS-232 described at least three and at least three
The combination of RS-232.
Specifically, at least three needle-like RS-232 and the group of at least three pass RS-232 are included when serial ports conversion equipment
Close, then this serial ports conversion equipment can realize above-mentioned whole six kinds of single kind Serial Port Lines simultaneously.Here, serial ports conversion equipment is only
Ensure three needle-like RS-232 and the combination of three pass RS-232, i.e. can realize above-mentioned whole six kinds of single kind simultaneously
Serial Port Line, by use more RS-232 and or more junction point also can realize above-mentioned whole six kinds of single kind serial ports
Line.
Preferably, the receiving terminal of pass RS-232 described in needle-like RS-232 described at least three and at least three and transmitting terminal
Interconnected by two junction points respectively, including:
The receiving terminal of at least two needle-like RS-232, the transmitting terminal of at least one needle-like RS-232, at least two pass RS-
The transmitting terminal of 232, the receiving terminal of at least one pass RS-232 are interconnected by a junction point;
The transmitting terminal of at least two needle-like RS-232, the receiving terminal of at least one needle-like RS-232, at least two pass RS-
Receiving terminal, the transmitting terminal of at least one pass RS-232 of 232 are interconnected by another junction point.
Specifically, as long as owing to serial ports conversion equipment ensures three needle-like RS-232 and the combination of three pass RS-232,
I.e. can realize above-mentioned whole six kinds of single kind Serial Port Lines simultaneously, therefore, include three needle-like with serial ports conversion equipment below
Being described in detail as a example by RS-232 and three pass RS-232, those skilled in the art will be understood that by using more
RS-232 and or more junction point also can realize above-mentioned whole six kinds of single kind Serial Port Lines, its particular number can basis
Actual demand is adjusted.
Fig. 5 illustrates that this includes the signal of the serial ports conversion equipment of three needle-like RS-232DB9 and three pass RS-232DB9
Figure.
Wherein, three needle-like RS-232DB9 are respectively A, D, E, and it is with data wire, and three pass RS-232DB9 are respectively
For B, C, F, it is again with data wire.Every data line has nine lines, completes basic communication and has only to three therein
Line, is RXD, TXD and GND respectively.The direct-connected line of data wire and the main distinction of reticule are also in the connection of these three lines
On.As it is shown in figure 5, by these three needle-like RS-232DB9 and the TXD line of three pass RS-232DB9 and RXD line by two companies
Contact realizes interconnection, specifically, by the RXD of two needle-like RS-232, the TXD of needle-like RS-232, two pass RS-232
TXD, the RXD of a pass RS-232 interconnected by a junction point;By the TXD of two needle-like RS-232, a pin
The RXD of type RS-232, the RXD of two pass RS-232, the TXD of a pass RS-232 are carried out by another junction point mutually
Connection, and, by all of signal ground GND line (No. 5 lines), link together (not shown).Here, this serial ports conversion equipment comprises
The Serial Port Line of all six kinds of single kind:
Public-public direct-connected (1 group): D-E
Public affairs-public transport fork (2 groups): A-E, A-D
Female-female direct-connected (1 group): B-C
Female-female intersection (2 groups): B-F, C-F
Male-female direct-connected (4 groups): A-B, A-C, D-F, E-F
Male-female intersection (5 groups): A-F, B-D, B-E, C-D, C-E
This serial ports conversion equipment comprises 15 groups of data splitting lines altogether, comprises the Serial Port Line of existing six class single kind,
And male-public transport fork, female-female intersection, male-female intersection these four line more than one set direct-connected, male-female, can make standby.All of male and female
Head numbering difference, user can quickly find oneself required Serial Port Line according to the interface on equipment.
According to another aspect of the present invention, additionally providing one utilizes above-mentioned serial ports to change in main frame communicates with equipment
Device obtains the method for equipment bi-directional data, and wherein, the method comprises the following steps:
Main frame passes through COM1 thereon, obtains the data that corresponding equipment is sent;
Described main frame passes through COM2 thereon, obtains the data being sent to described equipment via the COM1 of described main frame;
Wherein, carried out by described serial ports conversion equipment between COM1, COM2 and the serial ports of described equipment of described main frame
Interconnection.
Specifically, in prior art, such as single-chip microcomputer etc., by main frame, communicate with corresponding equipment, to this equipment
Send data, such as operational order, and receive the data that this equipment is sent.But, prior art utilizes the serial ports of single kind
Line realizes communicating between equipment with main frame, is only capable of the transmission data of the equipment that obtains from host side, and the equipment that cannot get receives
Data or instruction.And here, in main frame communicates with equipment, utilize above-mentioned serial ports conversion equipment, by the COM1 (string of this main frame
Mouthful 1), being interconnected by this serial ports conversion equipment between COM2 (serial ports 2) and the serial ports of this equipment, this main frame can obtain and set
Standby bi-directional data, i.e. both can obtain this equipment and be sent to the data of this main frame, it is also possible to obtain this main frame and be sent to this equipment
Data, such as operational order etc..
Here, this main frame for example, computer equipment, such as single-chip microcomputer etc. realize the communication with equipment by this main frame, logical
Crossing and use this serial ports conversion equipment, main frame can be obtained single-chip microcomputer and is sent to the number such as such as operational order of equipment by this main frame
According to, check to the serial ports of equipment, decode, debug and bring great convenience.
Fig. 6 is shown in during main frame communicates the signal utilizing above-mentioned serial ports conversion equipment to obtain equipment bi-directional data with equipment
Figure.
Wherein, interconnected by aforementioned serial ports conversion equipment between COM1, COM2 and the serial ports of corresponding device of main frame,
Thus, main frame both can pass through COM1 thereon, obtains the data that corresponding equipment is sent;Main frame can also be by thereon
COM2, obtains the data being sent to described equipment via the COM1 of described main frame.
Preferably, described serial ports conversion equipment includes needle-like RS-232 and the combination of pass RS-232, wherein, described combination
Including following any one:
The combination of pass RS-232 described at least one described needle-like RS-232 and at least two;
Needle-like RS-232 described at least two and the combination of at least one described pass RS-232.
Specifically, according to this equipment and the interface type of main frame, as according to the interface of equipment and main frame be respectively needle-like also
It is pass, determines the serial ports conversion equipment using which kind of combination.Such as, when the interface of this equipment is pass, two of main frame connect
Mouth is needle-like, then use and include at least one needle-like RS-232 and the serial ports conversion equipment of at least two pass RS-232;When this
The interface of equipment is needle-like, and two interfaces of main frame are passes, then use include at least two needle-like RS-232 and at least one
The serial ports conversion equipment of pass RS-232.
It is preferred that when this serial ports conversion equipment includes at least three needle-like RS-232 and at least three pass RS-232, then
From this serial ports conversion equipment, directly find the RS-232 of correspondence, by the COM1 (serial ports 1) of this main frame, COM2 (serial ports 2) with should
Interconnected by this serial ports conversion equipment between the serial ports of equipment.Such as, directly use the serial ports conversion equipment shown in Fig. 5,
Therefrom find the RS-232 of correspondence, the serial ports of COM1, COM2 of this main frame with this equipment is interconnected.
Here, no matter use the serial ports conversion equipment which kind of mode combines, as long as making the serial ports of main frame and equipment
Connection with data wire meets Fig. 7.In the figure 7, the TXD of the COM1 of main frame is connected to the RXD of the serial ports of equipment, main frame
The RXD of COM1 is connected to the TXD of the serial ports of equipment so that main frame by COM1 to equipment sending data, connect by COM1
The data that receiving unit sends;Additionally, the RXD of the COM2 of main frame is respectively connecting to the TXD of the COM1 of main frame and the serial ports of equipment
RXD, so that main frame can obtain, by COM2, the data that this main frame is sent to equipment by COM1, such as, operation refers to
Order.
Preferably, described serial ports conversion equipment includes pass described at least one described needle-like RS-232 and at least two
The combination of RS-232, receiving terminal and the transmitting terminal of pass RS-232 described at least one described needle-like RS-232 and at least two divide
Do not interconnected by two junction points, including:
The receiving terminal of at least one needle-like RS-232, the transmitting terminal of at least one pass RS-232, at least one pass RS-
The receiving terminal of 232 is interconnected by a junction point;
The transmitting terminal of at least one needle-like RS-232, the receiving terminal of at least one pass RS-232, at least one pass RS-
The transmitting terminal of 232 is interconnected by another junction point.
Specifically, the serial ports conversion equipment being used for connecting the serial ports of COM1, COM2 of main frame and equipment can include at least
One needle-like RS-232 and at least two pass RS-232, such as, when the interface of this equipment is pass, two interfaces of main frame are
Needle-like, as long as then serial ports conversion equipment ensures to include needle-like RS-232 and two pass RS-232, i.e. can be by this main frame
The serial ports of COM1, COM2 and equipment interconnect, certainly, by use more RS-232 and or more junction point also
Equally realize.
Include being described as a example by needle-like RS-232 and two pass RS-232 by serial ports conversion equipment below, example
As, this serial ports conversion equipment includes RS-232DB9C, D, F as shown in Figure 5, wherein, needle-like RS-232 receiving terminal,
The transmitting terminal of one pass RS-232, the receiving terminal of a pass RS-232 are interconnected by a junction point;One needle-like
The transmitting terminal of RS-232, the receiving terminal of a pass RS-232, the transmitting terminal of a pass RS-232 pass through another junction point
Interconnect.
Preferably, described serial ports conversion equipment includes needle-like RS-232 described at least two and at least one described pass
The combination of RS-232, needle-like RS-232 described at least two and the receiving terminal of at least one described pass RS-232 and transmitting terminal divide
Do not interconnected by two junction points, including:
The receiving terminal of at least one described needle-like RS-232, the transmitting terminal of at least one described needle-like RS-232, at least one
The receiving terminal of individual described pass RS-232 is interconnected by a junction point;
The transmitting terminal of at least one described needle-like RS-232, the receiving terminal of at least one described needle-like RS-232, at least one
The transmitting terminal of individual pass RS-232 is interconnected by another junction point.
Specifically, the serial ports conversion equipment being used for connecting the serial ports of COM1, COM2 of main frame and equipment can include at least
Two needle-like RS-232 and at least one pass RS-232, such as, when the interface of this equipment is needle-like, two interfaces of main frame are
Pass, as long as then serial ports conversion equipment ensures to include two needle-like RS-232 and a pass RS-232, i.e. can be by this main frame
The serial ports of COM1, COM2 and equipment interconnect, certainly, by use more RS-232 and or more junction point also
Equally realize.
Include being described as a example by two needle-like RS-232 and a pass RS-232 by serial ports conversion equipment below, example
As, this serial ports conversion equipment includes RS-232DB9A, B, D as shown in Figure 5, wherein, needle-like RS-232 receiving terminal,
The transmitting terminal of one described needle-like RS-232, the receiving terminal of a described pass RS-232 are interconnected by a junction point;
The transmitting terminal of one described needle-like RS-232, the receiving terminal of described needle-like RS-232, the transmitting terminal of a pass RS-232
Interconnected by another junction point.
It should be noted that the present invention can be carried out in the assembly of hardware at software and/or software, such as, this
Each bright device can use special IC (ASIC) or any other similar hardware device to realize.An embodiment
In, the software program of the present invention can perform to realize steps described above or function by processor.Similarly, the present invention
Software program (including the data structure being correlated with) can be stored in computer readable recording medium storing program for performing, such as, and RAM memory,
Magnetically or optically driver or floppy disc and similar devices.It addition, some steps of the present invention or function can employ hardware to realize, example
As, perform the circuit of each step or function as coordinating with processor.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of the spirit or essential attributes of the present invention, it is possible to realize the present invention in other specific forms.Therefore, no matter
From the point of view of which point, all should regard embodiment as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit requires rather than described above limits, it is intended that all by fall in the implication of equivalency and scope of claim
Change is included in the present invention.Should not be considered as limiting involved claim by any reference in claim.This
Outward, it is clear that " including ", a word was not excluded for other unit or step, and odd number is not excluded for plural number.In system claims, statement is multiple
Unit or device can also be realized by software or hardware by a unit or device.The first, the second word such as grade is used for table
Show title, and be not offered as any specific order.
Claims (8)
1. a serial ports conversion equipment, wherein, described serial ports conversion equipment includes needle-like RS-232 and the combination of pass RS-232,
Wherein, described needle-like RS-232 and the receiving terminal of described pass RS-232 and transmitting terminal are carried out by least two junction point respectively
Interconnection, together with described needle-like RS-232 and described pass RS-232 whole are signally connected;Wherein, described combination include with
Lower any one:
At least one described needle-like RS-232 and the combination of multiple described pass RS-232;
Multiple described needle-like RS-232 and the combination of at least one described pass RS-232.
Serial ports conversion equipment the most according to claim 1, described serial ports conversion equipment includes needle-like RS-described at least three
232 and at least three described in the combination of pass RS-232.
Serial ports conversion equipment the most according to claim 2, wherein, needle-like RS-232 described at least three and at least three institute
Receiving terminal and the transmitting terminal of stating pass RS-232 are interconnected by two junction points respectively, including:
The receiving terminal of at least two needle-like RS-232, the transmitting terminal of at least one needle-like RS-232, at least two pass RS-232
Transmitting terminal, the receiving terminal of at least one pass RS-232 interconnected by a junction point;
The transmitting terminal of at least two needle-like RS-232, the receiving terminal of at least one needle-like RS-232, at least two pass RS-232
Receiving terminal, the transmitting terminal of at least one pass RS-232 interconnected by another junction point.
Serial ports conversion equipment the most according to any one of claim 1 to 3, wherein, described needle-like RS-232 or described hole
The type of type RS-232 includes following at least any one:
DB9 type;
DB25 type.
5. the method utilizing above-mentioned serial ports conversion equipment acquisition equipment bi-directional data with equipment in main frame communicates, wherein,
The method comprises the following steps:
Main frame passes through COM1 thereon, obtains the data that corresponding equipment is sent;
Described main frame passes through COM2 thereon, obtains the data being sent to described equipment via the COM1 of described main frame;
Wherein, interconnected by described serial ports conversion equipment between COM1, COM2 and the serial ports of described equipment of described main frame.
Method the most according to claim 5, wherein, described serial ports conversion equipment includes needle-like RS-232 and pass RS-232
Combination, wherein, described combination includes following any one:
The combination of pass RS-232 described at least one described needle-like RS-232 and at least two;
Needle-like RS-232 described at least two and the combination of at least one described pass RS-232.
Method the most according to claim 6, wherein, described serial ports conversion equipment includes at least one described needle-like RS-232
With the combination of pass RS-232 described at least two, pass RS-232 described at least one described needle-like RS-232 and at least two
Receiving terminal and transmitting terminal interconnected by two junction points respectively, including:
The receiving terminal of at least one described needle-like RS-232, the transmitting terminal of at least one described pass RS-232, at least one institute
The receiving terminal stating pass RS-232 is interconnected by a junction point;
The transmitting terminal of at least one described needle-like RS-232, the receiving terminal of at least one described pass RS-232, at least one institute
The transmitting terminal stating pass RS-232 is interconnected by another junction point.
Method the most according to claim 6, wherein, described serial ports conversion equipment includes needle-like RS-232 described at least two
With the combination of pass RS-232 at least one described, needle-like RS-232 described at least two and at least one described pass RS-232
Receiving terminal and transmitting terminal interconnected by two junction points respectively, including:
The receiving terminal of at least one described needle-like RS-232, the transmitting terminal of at least one described needle-like RS-232, at least one institute
The receiving terminal stating pass RS-232 is interconnected by a junction point;
The transmitting terminal of at least one described needle-like RS-232, the receiving terminal of at least one described needle-like RS-232, at least one institute
The transmitting terminal stating pass RS-232 is interconnected by another junction point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610514077.XA CN106168935A (en) | 2016-06-30 | 2016-06-30 | A kind of serial ports conversion equipment and the method obtaining equipment bi-directional data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610514077.XA CN106168935A (en) | 2016-06-30 | 2016-06-30 | A kind of serial ports conversion equipment and the method obtaining equipment bi-directional data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106168935A true CN106168935A (en) | 2016-11-30 |
Family
ID=58066149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610514077.XA Pending CN106168935A (en) | 2016-06-30 | 2016-06-30 | A kind of serial ports conversion equipment and the method obtaining equipment bi-directional data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106168935A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108462508A (en) * | 2018-02-09 | 2018-08-28 | 深圳市元征软件开发有限公司 | A kind of data transmission method and equipment |
CN112948301A (en) * | 2021-02-25 | 2021-06-11 | 浪潮电子信息产业股份有限公司 | Multifunctional conversion interface device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201199349Y (en) * | 2008-04-11 | 2009-02-25 | 福建升腾资讯有限公司 | Serial port level changer |
CN202084028U (en) * | 2011-06-03 | 2011-12-21 | 南京理工大学 | Modularized multi-serial port expanding device |
CN202308699U (en) * | 2011-09-30 | 2012-07-04 | 哈尔滨今星微电子科技有限公司 | Multifunctional serial port connecting device |
CN202534912U (en) * | 2012-03-31 | 2012-11-14 | 深圳市中兴新地通信器材有限公司 | Practical multifunctional serial-port debugging converter |
CN104572556A (en) * | 2014-12-31 | 2015-04-29 | 上海玮舟微电子科技有限公司 | Multistage serial port expansion circuit |
-
2016
- 2016-06-30 CN CN201610514077.XA patent/CN106168935A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201199349Y (en) * | 2008-04-11 | 2009-02-25 | 福建升腾资讯有限公司 | Serial port level changer |
CN202084028U (en) * | 2011-06-03 | 2011-12-21 | 南京理工大学 | Modularized multi-serial port expanding device |
CN202308699U (en) * | 2011-09-30 | 2012-07-04 | 哈尔滨今星微电子科技有限公司 | Multifunctional serial port connecting device |
CN202534912U (en) * | 2012-03-31 | 2012-11-14 | 深圳市中兴新地通信器材有限公司 | Practical multifunctional serial-port debugging converter |
CN104572556A (en) * | 2014-12-31 | 2015-04-29 | 上海玮舟微电子科技有限公司 | Multistage serial port expansion circuit |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108462508A (en) * | 2018-02-09 | 2018-08-28 | 深圳市元征软件开发有限公司 | A kind of data transmission method and equipment |
CN112948301A (en) * | 2021-02-25 | 2021-06-11 | 浪潮电子信息产业股份有限公司 | Multifunctional conversion interface device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105051706A (en) | Device, method and system for operation of a low power PHY with a PCIe protocol stack | |
CN103975304A (en) | Method and a portable computing device (pcd) for exposing a peripheral component interface express (pcie) coupled device to an operating system operable on the pcd | |
CN102301356A (en) | Universal Serial Bus Host To Host Communications | |
CN103294525A (en) | Method and system for inquiring database with user defined function | |
CN204065979U (en) | One exempts from instrument dismounting PCIE adapter | |
CN104516434B (en) | Server system | |
US9900382B2 (en) | Promotion of internet-of-things (IOT) connectivity | |
CN201845275U (en) | Main board with expansion function | |
CN103346982B (en) | Star structure RapidIO interconnection system and exchange configuration method thereof | |
CN106168935A (en) | A kind of serial ports conversion equipment and the method obtaining equipment bi-directional data | |
CN105068955A (en) | Local bus structure and data interaction method | |
CN108780430A (en) | It is connected by alternate mode and sends universal serial bus (USB) data | |
CN101521680A (en) | Dual-mode wireless thin terminal device and method for utilizing external computing resources | |
CN105045740A (en) | Conversion method and circuit for communication interfaces | |
CN205983462U (en) | Serial ports conversion equipment | |
CN105700986A (en) | Server system for monitoring operational information | |
CN205139769U (en) | Interface expanding unit and mainboard | |
CN116401065A (en) | Server, heterogeneous equipment and data processing device thereof | |
CN104994040A (en) | Ethernet switch and port multiplexing method applied to Ethernet switch | |
CN102081455A (en) | Multicomputer switcher and adapter thereof | |
CN210270889U (en) | Intelligent analysis expansion equipment and server | |
WO1994024800A1 (en) | Portable adapter for portable pc | |
CN209860929U (en) | Communication bus structure | |
CN105703975A (en) | Network card and server communication method and system | |
CN204189089U (en) | A kind of server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination |