CN102143238A - Communication interface, switching circuit and switching method of communication interfaces - Google Patents

Communication interface, switching circuit and switching method of communication interfaces Download PDF

Info

Publication number
CN102143238A
CN102143238A CN2010106232019A CN201010623201A CN102143238A CN 102143238 A CN102143238 A CN 102143238A CN 2010106232019 A CN2010106232019 A CN 2010106232019A CN 201010623201 A CN201010623201 A CN 201010623201A CN 102143238 A CN102143238 A CN 102143238A
Authority
CN
China
Prior art keywords
interface circuit
port
pin
interface
circuit
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
CN2010106232019A
Other languages
Chinese (zh)
Other versions
CN102143238B (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.)
Inner Mongolia Kuaiwei Technology Co ltd
Suzhou Yudeshui Electric Technology Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201010623201.9A priority Critical patent/CN102143238B/en
Publication of CN102143238A publication Critical patent/CN102143238A/en
Application granted granted Critical
Publication of CN102143238B publication Critical patent/CN102143238B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a communication interface, a switching circuit and a switching method of the communication interfaces. The communication interface comprises a port, a switching circuit and at least two interface circuits, wherein the switching circuit is coupled to the port and both of the two interface circuits, used for connecting one interface circuit to the port, and further used for detecting whether the communication between the interface circuit and the port is successful, so as to initiate to switch the other interface circuit to the port when detecting that the communication between the interface circuit and the port is not successful. According to the technical scheme provided by the embodiment of the invention, the switching circuit can be used for implementing the automatic switching of the connection between the two interface circuits and the port, thereby facilitating the maintenance and management of the communication interface.

Description

The changing method of communication interface, commutation circuit and communication interface
Technical field
The embodiment of the invention relates to communication technical field, relates in particular to the changing method of a kind of communication interface, commutation circuit and communication interface.
Background technology
Along with the mechanics of communication development, be used for and the upper layer network equipment that is provided with on the underlay network device communicates the communication interface that is connected and progressively is upgraded to network interface such as Fast Ethernet (Fast Ethernet from early stage serial communication interface such as RS232/RS485 interface; Hereinafter to be referred as FE) interface.For the various upper layer network equipment of compatibility, underlay network device requires to provide simultaneously serial communication interface such as RS232/RS485 interface and network interface such as FE interface.During work, select wherein a kind of interface incoming communication according to the interface of upper layer network equipment.
For normalization stube cable type selecting, serial line interface and network interface between the network equipment are set together usually.Along with device miniaturization, panel space is more and more littler, and the quantity that can supply the layout terminal wishes that as all communication interfaces that are connected with upper layer network equipment layout is in same terminal also reducing.For example in the prior art, adopt usually serial communication interface such as RS232/RS485 interface and network interface such as FE interface are integrated on the RJ45 terminal.Under the scene of using serial communication interface, the communication signal pin that serial interface circuit is provided is connected on the RJ45 terminal by cable mode; In the scene of using network interface, the signal pin that network interface circuit is provided is connected on the RJ45 terminal by cable mode.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art: the scheme of prior art need be used in difference and revise the cable connection mode under the scene, causes the maintenance and management of communication interface extremely inconvenient.
Summary of the invention
The embodiment of the invention provides the changing method of a kind of communication interface, commutation circuit and communication interface, in order to the automatic switchover that realizes that communication interface connects.
The embodiment of the invention provides a kind of communication interface, comprises port, commutation circuit and at least two interface circuits;
Described commutation circuit, be coupled to each interface circuit in described port and described at least two interface circuits, be used for an interface circuit of described at least two interface circuits is connected to described port, and be further used for detecting the whether success of communicating by letter between a described interface circuit and the described port, when detecting communicating by letter when unsuccessful between a described interface circuit and the described port, initiate to switch another interface circuit in described at least two interface circuits is connected on the described port.
The embodiment of the invention also provides a kind of the realization in communication interface to connect the commutation circuit of switching, and comprises switch unit and control unit;
Described control unit is connected with at least two interface circuits respectively, be used for state according to an interface circuit of described at least two interface circuits, judge the whether success of communicating by letter between a described interface circuit and the port, when detecting communicating by letter unsuccessful time the between a described interface circuit and the described port, control described switch unit and switch;
Described switch unit, be used for a described interface circuit is connected to described port, when accepting the control of described control unit, with being connected between another interface circuit of switching in described at least two interface circuits being connected between a described interface circuit and the described port and the described port.
The embodiment of the invention also provides a kind of changing method of communication interface, comprising:
Commutation circuit detects the whether success of communicating by letter between current interface circuit and the port at least two interface circuits;
When communicating by letter between described current interface circuit and the described port is unsuccessful, with being connected between another interface circuit of switching in described at least two interface circuits being connected between described current interface circuit and the described port and the described port.
The changing method of the communication interface of the embodiment of the invention, commutation circuit and communication interface, by adopting commutation circuit that an interface circuit at least two interface circuits is connected on the port, commutation circuit and being further used for detects the whether success of communicating by letter between an interface circuit and the port, when detecting communicating by letter when unsuccessful between an interface circuit and the port, initiate to switch will at least two another interface circuit in the interface circuits be connected on the described port.Adopt the technical scheme of the embodiment of the invention, can realize the automatic switchover that is connected between two interface circuits and the port by adopting commutation circuit; Be convenient to the maintenance and management of communication interface.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The structural representation of the communication interface that Fig. 1 provides for the embodiment of the invention one.
The structural representation of the communication interface that Fig. 2 provides for the embodiment of the invention two.
Fig. 3 is the structural representation of the RJ45 port of the embodiment of the invention.
The circuit diagram of the communication interface that Fig. 4 provides for the embodiment of the invention three.
The circuit diagram of the communication interface that Fig. 5 provides for the embodiment of the invention four.
The structural representation of in communication interface, realizing connecting the commutation circuit of switching that Fig. 6 provides for the embodiment of the invention six.
The flow chart of the changing method of the communication interface that Fig. 7 provides for the embodiment of the invention seven.
The flow chart of the changing method of the communication interface that Fig. 8 provides for the embodiment of the invention eight.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The structural representation of the communication interface that Fig. 1 provides for the embodiment of the invention one.As shown in Figure 1, the communication interface of present embodiment can comprise port one 0, commutation circuit 11 and at least two interface circuits 12.Commutation circuit 11 is coupled to each interface circuit 12 in port one 0 and at least two interface circuits 12.
Commutation circuit 11 is used for an interface circuit 12 of at least two interface circuits 12 is connected to port one 0 in the present embodiment.Commutation circuit 11 and further also being used to detects whether successfully communicating by letter between a described interface circuit 12 and the port one 0, when detecting communicating by letter when unsuccessful between a described interface circuit 12 and the port one 0, initiate to switch will at least two another interface circuit 12 in the interface circuits 12 be connected on the port one 0.
When the communication interface of present embodiment uses, be connected with upper layer network equipment by port one 0, and can automatically switch according to commutation circuit 11 and to be connected between at least two interface circuits 12 and the port one 0, and can switch to and the corresponding interface circuit 12 of upper layer network interface that equipment adopts.
The communication interface of present embodiment, by adopting commutation circuit that an interface circuit at least two interface circuits is connected on the port, commutation circuit and being further used for detects the whether success of communicating by letter between an interface circuit and the port, when detecting communicating by letter when unsuccessful between an interface circuit and the port, initiate to switch will at least two another interface circuit in the interface circuits be connected on the described port.Adopt the technical scheme of present embodiment, can realize the automatic switchover that is connected between two interface circuits and the port by adopting commutation circuit; Be convenient to the maintenance and management of communication interface.
The structural representation of the communication interface that Fig. 2 provides for the embodiment of the invention two.As shown in Figure 2, the interface circuit of present embodiment is on above-mentioned basis embodiment illustrated in fig. 1, and wherein commutation circuit 11 specifically can comprise switch unit 111 and control unit 112.
Wherein control unit 112 is connected with at least two interface circuits 12 respectively, and this control unit 112 is used for the state according at least two interface circuits 12 1 interface circuits 12, judges whether successfully communicating by letter between an interface circuit 12 and the port one 0.That is to say, when between this interface circuit 12 and the port one 0 communicate by letter successfully the time, this interface circuit 12 just is in normal communications status.Otherwise be in its unaccessed state.Therefore, just can be according to the state of this interface circuit 12, judge the whether success of communicating by letter between this interface circuit 12 and the port one 0.Control unit 112 is further used for controlling switch unit 111 and switching when detecting communicating by letter unsuccessful time the between this interface circuit 12 and the port one 0.
Switch unit 111 is connected with control unit 112, switch unit 111 is used to accept the control of control unit 112, with being connected between another interface circuit 12 of switching at least two interface circuits 12 being connected between this interface circuit 12 and the port one 0 and the port one 0.
Alternatively, the switch unit in the present embodiment 111 can adopt relay or other electric switching devices.For example this switch unit 111 can comprise the relay of at least one dpdt double-pole double-throw (DPDT).
Alternatively, in the present embodiment, at least two interface circuits 12 are underlay network device and the upper layer network equipment relative interface circuit that intercoms mutually.For example interface circuit 12 can be for the serial interface circuit of serial communication correspondence such as RS232 interface circuit or as the RS485 interface circuit, because RS232 interface circuit and the transmitting terminal of RS485 interface circuit and each pin of receiving terminal can not be re-used, the RS232/485 interface circuit that can also integrate for RS232 interface circuit and RS485 interface circuit; Receiving terminal and the transmitting terminal of four pins as RS485 wherein arranged in the RS232/485 interface circuit, can get receiving terminal, transmitting terminal and the earth terminal of three pins in addition as RS232.Perhaps interface circuit 12 can also be the network interface circuit by the netting twine communication such as FE interface circuit or the like.
Alternatively, in the present embodiment, control unit 112 is specifically as follows the equipment with measuring ability, particularly, can have central processing unit (Central Processing Unit for one; Hereinafter to be referred as CPU) equipment, as computer or the like, can abbreviate CPU equipment as.
Alternatively, the port in the foregoing description can adopt port of the prior art, for example the RJ45 port.
Adopt the technical scheme of present embodiment, can realize the automatic switchover that is connected between two interface circuits and the port by adopting commutation circuit; Be convenient to the maintenance and management of communication interface.
Description below in conjunction with above-mentioned communication interface, introduce the communication interface that is connected between RS232/485 interface circuit that two kinds of can automatically switch RS232 interface circuit and RS485 interface circuits integrate and FE interface circuit and the RJ45 port, this for example only for ease of describing, be not used in qualification the present invention.
The structural representation of RJ45 port as shown in Figure 3, the RJ45 port comprises 8 pins.Serial signal and FE signal that 8 pins of RJ45 port are corresponding respectively in detail can be with reference to following tables 1.
Table 1
The pin sequence number of RJ45 port Serial signal The FE signal
1 TX+ T+
2 TX- T-
3 RXD R+
4 RX+
5 RX-
6 GND R-
7 TXD
8
TX+ represents the signal of RS485 interface circuit transmitting terminal positive pole in the above-mentioned table 1; TX-represents the signal of RS485 interface circuit transmitting terminal negative pole.RX+ represents the signal of RS485 interface circuit receiving terminal positive pole; RX-represents the signal of RS485 interface circuit receiving terminal negative pole.RXD represents the signal of RS232 interface circuit receiving terminal; TXD represents the signal of RS232 interface circuit transmitting terminal.GND represents the signal of RS232 interface circuit earth terminal.T+ represents the signal of the transmitting terminal positive pole of FE interface circuit; T-represents the signal of the transmitting terminal negative pole of FE interface circuit.R+ represents the signal of FE interface circuit receiving terminal positive pole; R-represents the signal of FE interface circuit receiving terminal negative pole.
The circuit diagram of the communication interface that Fig. 4 provides for the embodiment of the invention three.As shown in Figure 4, present embodiment is on the basis of the foregoing description two, switch unit comprises the relay K 1 and the K2 of two dpdt double-pole double-throw (DPDT), control unit adopts a CPU equipment to represent, at least two interface circuits of present embodiment comprise RS232/485 interface circuit that a serial interface circuit such as RS232 interface circuit and RS485 interface circuit integrate and network interface circuit such as FE interface circuit.Port in the present embodiment adopts the RJ45 port.
As shown in Figure 4, the pin one of RJ45 port is (as Fig. 4, can abbreviate RJ45-1 as) and pin two (as Fig. 4, can be called for short RJ45-2) each links to each other with an output pin of the relay K 1 of dpdt double-pole double-throw (DPDT), two the corresponding input pins of an output pin that link to each other with the pin one of RJ45 port on the relay K 1 of dpdt double-pole double-throw (DPDT), respectively with the RS232/485 interface circuit in the pin of the anodal TX+ holding wire of transmitting terminal and the pin of the anodal T+ holding wire of the transmitting terminal in the FE interface circuit be electrically connected.Two the corresponding input pins of another output pin that link to each other with the pin two of RJ45 port on the relay K 1 of dpdt double-pole double-throw (DPDT), respectively with the RS485 interface circuit in the pin of the anodal TX-holding wire of transmitting terminal and the pin of the anodal T-holding wire of the transmitting terminal in the FE interface circuit be electrically connected.Thereby realize that the pin one of controlling the RJ45 port by the relay K 1 of dpdt double-pole double-throw (DPDT) is to be connected with the RS232/485 interface circuit with pin two, still be connected with the FE interface circuit.
The pin 3 of RJ45 port is (as Fig. 4, can be called for short RJ45-3) and pin 6 (as Fig. 4, can be called for short RJ45-6) each links to each other with an output pin of the relay K 2 of dpdt double-pole double-throw (DPDT), two the corresponding input pins of an output pin that link to each other with the pin 3 of RJ45 port on the relay K 2 of dpdt double-pole double-throw (DPDT), respectively with the RS232 interface circuit in the pin of receiving terminal RXD holding wire and the pin of the anodal R+ holding wire of the receiving terminal in the FE interface circuit be electrically connected.Two the corresponding input pins of another output pin that link to each other with the pin 6 of RJ45 port on the relay K 2 of dpdt double-pole double-throw (DPDT), respectively with the RS232 interface circuit in the pin of earth terminal GND holding wire and the pin of the receiving terminal negative pole R-holding wire in the FE interface circuit be electrically connected.Thereby realize that the pin 3 of controlling the RJ45 ports by the relay K 2 of dpdt double-pole double-throw (DPDT) is to be connected with the RS232/485 interface circuit with pin 6, still be connected with the FE interface circuit.
Wherein the pin 4 of RJ45 port (as Fig. 4, can be called for short RJ45-4) directly is electrically connected with the pin of receiving terminal positive pole RX+ holding wire in the RS485 interface circuit; The pin 5 of RJ45 port (as Fig. 4, can be called for short RJ45-5) directly is electrically connected with the pin of receiving terminal negative pole RX-holding wire in the RS485 interface circuit.The pin 7 of RJ45 port (as Fig. 4, can be called for short RJ45-7) directly is electrically connected with the pin of transmitting terminal TXD holding wire in the RS232 interface circuit; Wherein the pin 8 of RJ45 port (as Fig. 4, can be called for short RJ45-8) is unsettled need not.
The concrete use of the communication interface of present embodiment is as follows: the relay K 1 of two dpdt double-pole double-throw (DPDT) and a kind of default connected mode of K2 at first can be set, the CPU equipment that serves as control unit is connected with the FE interface circuit with the RS232/485 interface circuit respectively, the state of CPU Equipment Inspection RS232/485 interface circuit and FE interface circuit, when detecting RS232/485 interface circuit and FE interface circuit one of them and RJ45 port and communicate to connect, CPU equipment is not carried out any operation.When CPU Equipment Inspection any one and RJ45 port in RS232/485 interface circuit and FE interface circuit all do not communicate to connect, CPU equipment is to the relay K 1 of dpdt double-pole double-throw (DPDT) and K2 output switch-over control signal Switch, is connected with different input pin respectively with the relay K 1 of control dpdt double-pole double-throw (DPDT) and K2.In the present embodiment since the RS232/485 interface circuit be that RS232 interface circuit and RS484 interface circuit integrate formation.CPU equipment is equivalent to detect RS232 interface circuit, RS484 interface circuit and the FE interface circuit state of totally three interface circuits.
For example: when two input pins of the relay K 1 of CPU Equipment Control dpdt double-pole double-throw (DPDT) respectively with the RS485 interface circuit in pin and the RS485 interface circuit of the anodal TX+ holding wire of transmitting terminal in the pin of transmitting terminal negative pole TX-holding wire link to each other, two input pins of the relay K 2 of control dpdt double-pole double-throw (DPDT) respectively with the RS232 interface circuit in pin and the RS232 interface circuit of receiving terminal RXD holding wire in the pin of earth terminal GND holding wire when linking to each other, think that the upper layer network equipment that is connected with the RJ45 port by RS232/RS485 interface and this communication interface communication, can also can adopt the RS484 interface by the RS232 interface particularly.It is adaptive to carry out corresponding protocol then on employing software on the CPU equipment, if detect the communication success, then handover success is preserved the relay K 1 and the current output state of K2 of dpdt double-pole double-throw (DPDT).Otherwise proceed to switch.
When two input pins of the relay K 1 of CPU Equipment Control dpdt double-pole double-throw (DPDT) respectively with the FE interface circuit in the pin of the anodal T+ holding wire of transmitting terminal and the pin of the transmitting terminal negative pole T-holding wire in the FE interface circuit be electrically connected, two input pins of the relay K 2 of control dpdt double-pole double-throw (DPDT) respectively with the FE interface circuit in the pin of the anodal R+ holding wire of receiving terminal and the pin of the receiving terminal negative pole R-holding wire in the FE interface circuit when being electrically connected, think that the upper layer network equipment that is connected with the RJ45 port passes through FE interface and this communication interface communication.It is adaptive to carry out corresponding protocol then on employing software on the CPU equipment, if detect the communication success, then handover success is preserved the relay K 1 and the current output state of K2 of dpdt double-pole double-throw (DPDT).Otherwise proceed to switch.
The communication interface of present embodiment can automatically switch in use with the adaptive interface circuit that is connected with the RJ45 port, is convenient to the maintenance and management of communication interface.Can on the panel of reduced size, realize more multi-functional demand, bring convenience for enhancing product performance.
The circuit diagram of the communication interface that Fig. 5 provides for the embodiment of the invention four.As shown in Figure 5, present embodiment is on the basis of the foregoing description two, switch unit comprises the relay K 1 of a dpdt double-pole double-throw (DPDT), control unit adopts a CPU equipment to represent, at least two interface circuits of present embodiment comprise RS232/485 interface circuit that a serial interface circuit such as RS232 interface circuit and RS485 interface circuit integrate and network interface circuit such as FE interface circuit.Port in the present embodiment adopts the RJ45 port.The abbreviation of each pin of RJ45 can be with reference to the foregoing description three in the present embodiment.
As shown in Figure 5, in the present embodiment pin two of RJ45 port respectively with the RS485 interface circuit in the pin of transmitting terminal negative pole TX-holding wire and the pin of the transmitting terminal negative pole T-holding wire in the FE interface circuit be electrically connected; The pin 3 of RJ45 port respectively with the RS232 interface circuit in the pin of receiving terminal RXD holding wire and the pin of the anodal R+ holding wire of the receiving terminal in the FE interface circuit be electrically connected; The pin of the anodal RX+ holding wire of the receiving terminal in the pin 4 of RJ45 port and the RS485 interface circuit is electrically connected; The pin of the receiving terminal negative pole RX-holding wire in the pin 5 of RJ45 port and the RS485 interface circuit is electrically connected; The pin of the transmitting terminal TXD holding wire in the pin 7 of RJ45 port and the RS232 interface circuit is electrically connected; The pin 8 of RJ45 port is unsettled, temporarily need not.
As shown in Figure 5, the pin one of RJ45 port links to each other with an output pin of the relay K of dpdt double-pole double-throw (DPDT) 1, two the corresponding input pins of output pin that link to each other with the pin one of RJ45 port on the relay K 1 of dpdt double-pole double-throw (DPDT), respectively with the RS485 interface circuit in the pin of the anodal TX+ holding wire of transmitting terminal and the pin of the anodal T+ holding wire of the transmitting terminal in the FE interface circuit be electrically connected.The pin 6 of RJ45 port links to each other with another output pin of the relay K 1 of dpdt double-pole double-throw (DPDT), two the corresponding input pins of output pin that link to each other with the pin 6 of RJ45 port on the relay K 1 of dpdt double-pole double-throw (DPDT), respectively with the RS232 interface circuit in the pin of earth terminal GND holding wire and the pin of the receiving terminal negative pole R-holding wire in the FE interface circuit be electrically connected.Thereby realize that the pin one of controlling the RJ45 port by the relay K 1 of dpdt double-pole double-throw (DPDT) is to be connected with the RS232/485 interface circuit with pin 6, still be connected with the FE interface circuit.
The concrete use of the communication interface of present embodiment is as follows: a kind of default connected mode that the relay K 1 of dpdt double-pole double-throw (DPDT) at first can be set, the CPU equipment that serves as control unit is connected with the FE interface circuit with the RS232/485 interface circuit respectively, the state of CPU Equipment Inspection RS232/485 interface circuit and FE interface circuit, when detecting RS232/485 interface circuit and FE interface circuit one of them and RJ45 port and communicate to connect, CPU equipment is not carried out any operation.When CPU Equipment Inspection any one and RJ45 port in RS232/485 interface circuit and FE interface circuit all do not communicate to connect, CPU equipment is to the relay K 1 output switch-over control signal Switch of dpdt double-pole double-throw (DPDT), with the relay K 1 of control dpdt double-pole double-throw (DPDT) and different input pin connections.In the present embodiment since the RS232/485 interface circuit be that RS232 interface circuit and RS484 interface circuit integrate formation.CPU equipment is equivalent to detect RS232 interface circuit, RS484 interface circuit and the FE interface circuit state of totally three interface circuits.
For example: when two input pins of the relay K 1 of CPU Equipment Control dpdt double-pole double-throw (DPDT) respectively with the RS485 interface circuit in pin and the RS232/485 interface circuit of the anodal TX+ holding wire of transmitting terminal in the pin of GND holding wire when linking to each other, the pin one of promptly having realized the RJ45 port links to each other with the anodal TX+ holding wire of the transmitting terminal in the RS485 interface circuit, and the pin 6 of RJ45 port links to each other with earth terminal GND holding wire in the RS232/485 interface circuit.Think that the upper layer network equipment that is connected with the RJ45 port is by RS232/RS485 interface and this communication interface communication this moment.It is adaptive to carry out corresponding protocol then on employing software on the CPU equipment, if detect the communication success, then handover success is preserved the relay K 1 current output state of dpdt double-pole double-throw (DPDT).Otherwise proceed to switch.
When two input pins of the relay K 1 of CPU Equipment Control dpdt double-pole double-throw (DPDT) respectively with the FE interface circuit in the pin of the anodal T+ holding wire of transmitting terminal and the pin of the R-holding wire in the FE interface circuit when being electrically connected, the pin of the anodal T+ holding wire of transmitting terminal in the pin one of promptly having realized the RJ45 port and the FE interface circuit links to each other, and the pin of the receiving terminal negative pole R-holding wire in the pin two of RJ45 port and the FE interface circuit links to each other.At this moment, owing to disconnect the anodal TX+ of the transmitting terminal of RS485 interface circuit, the transmission of RS485 interface circuit forbids that therefore transmission is in high-impedance state.The RJ45 port serves as the FE communication interface and sends the influence that differential signal just is not subjected to the differential signal of RS485 interface circuit; Owing to disconnect the earth terminal GND of RS232 interface circuit, the RJ45 port serves as the FE communication interface and receives the restriction that differential signal also can not be subjected to the serial ports incoming level.Therefore the transmitting-receiving of network interface also can normally move.Can think that the upper layer network equipment that is connected with the RJ45 port is by FE interface and this communication interface communication this moment.It is adaptive to carry out corresponding protocol then on employing software on the CPU equipment, if detect the communication success, then handover success is preserved the relay K 1 current output state of dpdt double-pole double-throw (DPDT).Otherwise proceed to switch.
The communication interface of present embodiment can automatically switch in use with the adaptive interface circuit that is connected with the RJ45 port, is convenient to the maintenance and management of communication interface.Can on the panel of reduced size, realize more multi-functional demand, bring convenience for enhancing product performance.Can there be how different implementations in the connection of port, and those skilled in the art can carry out accommodation to annexation according to the port type and the circuit types of reality, and do not break away from essence of the present invention.
Need to prove that the relay of the dpdt double-pole double-throw (DPDT) in the foregoing description can adopt other electric switching devices to replace.
The structural representation of in communication interface, realizing connecting the commutation circuit of switching that Fig. 6 provides for the embodiment of the invention six.As shown in Figure 6, the commutation circuit that realizes connecting switching in communication interface of present embodiment comprises switch unit 20 and control unit 21.
Wherein control unit 21 is connected with at least two interface circuits respectively, be used for state according to an interface circuit of at least two interface circuits, judge the whether success of communicating by letter between this interface circuit and the port, when detecting communicating by letter unsuccessful time the between this interface circuit and the port, control switch unit 20 switches.Switch unit 20 is used for this interface circuit is connected to port, when accepting the control of control unit 21, with being connected between another interface circuit of switching at least two interface circuits being connected between this interface circuit and the port and the port.
Switch unit 20 in the commutation circuit that realizes the connection switching in communication interface of present embodiment can comprise the relay of at least one dpdt double-pole double-throw (DPDT), perhaps also can adopt other electric switching devices to replace the relay of dpdt double-pole double-throw (DPDT).
Commutation circuit 11 in the communication interface in the commutation circuit of realize to connect switching in communication interface of present embodiment and the foregoing description two is identical, can not repeat them here with reference to the relevant record of the foregoing description two in detail.
The commutation circuit that in communication interface, realizes connecting switching of present embodiment, control unit is used for the state according to an interface circuit of at least two interface circuits, judge the whether success of communicating by letter between an interface circuit and the port, when detecting communicating by letter unsuccessful time the between an interface circuit and the port, the control switch unit switches.Switch unit is used for an interface circuit is connected to port, when accepting the control of control unit, with being connected between another interface circuit of switching at least two interface circuits being connected between an interface circuit and the port and the port.Adopt the technical scheme of present embodiment, can realize the automatic switchover that is connected between two interface circuits and the port by adopting commutation circuit; Be convenient to the maintenance and management of communication interface.
The flow chart of the changing method of the communication interface that Fig. 7 provides for the embodiment of the invention seven.As shown in Figure 7, the changing method of the communication interface of present embodiment comprises:
Step 100, commutation circuit detect the whether success of communicating by letter between current interface circuit and the port at least two interface circuits;
Step 101, when communicating by letter between current interface circuit and the port is unsuccessful, with being connected between another interface circuit of switching at least two interface circuits being connected between current interface circuit and the port and the port.
When between current interface circuit and the port communicate by letter successfully the time, commutation circuit is not carried out any operation, keeps communicating by letter between current interface circuit and the port.
The changing method of realizing communication interface in the present embodiment is identical with the use of above-mentioned communication interface, can not repeat them here with reference to the record of above-mentioned relevant communication interface embodiment in detail.
The changing method of the communication interface of present embodiment detects the whether success of communicating by letter between current interface circuit and the port at least two interface circuits by commutation circuit; When communicating by letter between current interface circuit and the port was unsuccessful, commutation circuit was with being connected between another interface circuit of switching at least two interface circuits being connected between current interface circuit and the port and the port.Adopt the technical scheme of present embodiment, can realize the automatic switchover that is connected between two interface circuits and the port by adopting commutation circuit; Be convenient to the maintenance and management of communication interface.
The flow chart of the changing method of the communication interface that Fig. 8 provides for the embodiment of the invention eight.As shown in Figure 8, the changing method of the communication interface of present embodiment comprises:
Control unit in step 200, the commutation circuit detects the whether success of communicating by letter between current interface circuit and the port; When detect deserve between front port circuit and the port communicate by letter successfully the time execution in step 201; Otherwise when detecting the execution in step 202 when unsuccessful of communicating by letter of deserving between front port circuit and the port;
Particularly, control unit can be according to the state of current interface circuit, judges the whether success of communicating by letter between current interface circuit and the port.
Control unit in step 201, the commutation circuit is not carried out any operation, keeps current state;
The control unit of step 202, commutation circuit transmits control signal to the switch unit of commutation circuit; Execution in step 203;
Step 203; Switch unit receives the control signal of control unit, will switch to being connected between another interface circuit and the port being connected between current interface circuit and the port.
Switch unit in the foregoing description comprises the relay of at least one electric switching device such as at least one dpdt double-pole double-throw (DPDT), being connected between another interface circuit that is used for being connected between current interface circuit and the port switched at least two interface circuits and the port.At least two interface circuits comprise serial interface circuit such as RS232/485 interface circuit and network interface circuit such as FE interface circuit.
The changing method of realizing communication interface in the present embodiment is identical with the use of above-mentioned communication interface, can not repeat them here with reference to the record of above-mentioned relevant communication interface embodiment in detail.
The changing method of the communication interface of present embodiment can automatically switch in use with the adaptive interface circuit that is connected with port, is convenient to the maintenance and management of communication interface.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a communication interface is characterized in that, comprises port, commutation circuit and at least two interface circuits;
Described commutation circuit, be coupled to each interface circuit in described port and described at least two interface circuits, be used for an interface circuit of described at least two interface circuits is connected to described port, and be further used for detecting the whether success of communicating by letter between a described interface circuit and the described port, when detecting communicating by letter when unsuccessful between a described interface circuit and the described port, initiate to switch another interface circuit in described at least two interface circuits is connected on the described port.
2. communication interface according to claim 1 is characterized in that described commutation circuit comprises switch unit and control unit;
Described control unit is connected with described two interface circuits respectively at least, be used for state according to a described interface circuit, judge the whether success of communicating by letter between a described interface circuit and the described port, when detecting communicating by letter unsuccessful time the between a described interface circuit and the described port, control described switch unit and switch;
Described switch unit is used to accept the control of described control unit, will switch to being connected between described another interface circuit and the described port being connected between a described interface circuit and the described port.
3. communication interface according to claim 2 is characterized in that described switch unit comprises the relay of at least one dpdt double-pole double-throw (DPDT).
4. communication interface according to claim 3 is characterized in that, described at least two interface circuits comprise serial interface circuit and network interface circuit.
5. communication interface according to claim 4, it is characterized in that, when described switch unit comprised the relay of two dpdt double-pole double-throw (DPDT), described serial interface circuit was the RS232/485 interface circuit that RS232 interface circuit and RS485 interface circuit integrate; And described port is the RJ45 port; The pin of the holding wire of the receiving terminal positive pole in the pin 4 of described RJ45 port and the described RS485 interface circuit is electrically connected; The pin of the holding wire of the receiving terminal negative pole in the pin 5 of described RJ45 port and the described RS485 interface circuit is electrically connected; The pin of the holding wire of the transmitting terminal in the pin 7 of described RJ45 port and the described RS232 interface circuit is electrically connected;
When the relay of described two dpdt double-pole double-throw (DPDT) switches to when described RS232/485 interface circuit is connected with described RJ45 port, the pin of the holding wire of the transmitting terminal positive pole in the pin one of described RJ45 port and the described RS485 interface circuit is electrically connected; The pin of the holding wire of the transmitting terminal negative pole in the pin two of described RJ45 port and the described RS485 interface circuit is electrically connected; The pin of the holding wire of the receiving terminal in the pin 3 of described RJ45 port and the described RS232 interface circuit is electrically connected; The pin of the holding wire of the earth terminal in the pin 6 of described RJ45 port and the described RS232 interface circuit is electrically connected;
When the relay of described two dpdt double-pole double-throw (DPDT) switches to when described network interface circuit is connected with described RJ45 port, the pin of the holding wire of the transmitting terminal positive pole in the pin one of described RJ45 port and the described network interface circuit is electrically connected; The pin of the holding wire of the transmitting terminal negative pole in the pin two of described RJ45 port and the described network interface circuit is electrically connected; The pin of the holding wire of the receiving terminal positive pole in the pin 3 of described RJ45 port and the described network interface circuit is electrically connected; The pin of the holding wire of the receiving terminal negative pole in the pin 6 of described RJ45 port and the described network interface circuit is electrically connected.
6. communication interface according to claim 4, it is characterized in that, when described switch unit comprised the relay of a dpdt double-pole double-throw (DPDT), described serial interface circuit was the RS232/485 interface circuit that RS232 interface circuit and RS485 interface circuit integrate; And described port is the RJ45 port; The pin two of described RJ45 port respectively with described RS485 interface circuit in the pin of holding wire of transmitting terminal negative pole and the pin of the holding wire of the transmitting terminal negative pole in the described network interface circuit be electrically connected; The pin 3 of described RJ45 port respectively with described RS232 interface circuit in the pin of holding wire of receiving terminal and the pin of the holding wire of the receiving terminal positive pole in the described network interface circuit be electrically connected; The pin of the holding wire of the receiving terminal positive pole in the pin 4 of described RJ45 port and the described RS485 interface circuit is electrically connected; The pin of the holding wire of the receiving terminal negative pole in the pin 5 of described RJ45 port and the described RS485 interface circuit is electrically connected; The pin of the holding wire of the transmitting terminal in the pin 7 of described RJ45 port and the described RS232 interface circuit is electrically connected;
When the relay of described dpdt double-pole double-throw (DPDT) switches to when described RS232/485 interface circuit is connected with described RJ45 port, the pin of the holding wire of the transmitting terminal positive pole in the pin one of described RJ45 port and the described RS485 interface circuit is electrically connected; The pin of the holding wire of the earth terminal in the pin 6 of described RJ45 port and the described RS232 interface circuit is electrically connected;
When the relay of described dpdt double-pole double-throw (DPDT) switches to when described network interface circuit is connected with described RJ45 port, the pin of the holding wire of the transmitting terminal positive pole in the pin one of described RJ45 port and the described network interface circuit is electrically connected; The pin of the holding wire of the receiving terminal negative pole in the pin 6 of described RJ45 port and the described network interface circuit is electrically connected.
7. in communication interface, realize connecting the commutation circuit of switching for one kind, it is characterized in that, comprise switch unit and control unit;
Described control unit is connected with at least two interface circuits respectively, be used for state according to an interface circuit of described at least two interface circuits, judge the whether success of communicating by letter between a described interface circuit and the port, when detecting communicating by letter unsuccessful time the between a described interface circuit and the described port, control described switch unit and switch;
Described switch unit, be used for a described interface circuit is connected to described port, when accepting the control of described control unit, with being connected between another interface circuit of switching in described at least two interface circuits being connected between a described interface circuit and the described port and the described port.
8. commutation circuit according to claim 7 is characterized in that, described switch unit comprises: the relay of at least one dpdt double-pole double-throw (DPDT).
9. the changing method of a communication interface is characterized in that, comprising:
Commutation circuit detects the whether success of communicating by letter between current interface circuit and the port at least two interface circuits;
When communicating by letter between described current interface circuit and the described port is unsuccessful, with being connected between another interface circuit of switching in described at least two interface circuits being connected between described current interface circuit and the described port and the described port.
10. the changing method of communication interface according to claim 9, it is characterized in that, described commutation circuit comprises the relay of at least one dpdt double-pole double-throw (DPDT), being connected between another interface circuit that is used for being connected between described current interface circuit and the described port switched to described at least two interface circuits and the described port; Described at least two interface circuits comprise serial interface circuit and network interface circuit.
CN201010623201.9A 2010-12-30 2010-12-30 Communication interface, switching circuit and switching method of communication interfaces Expired - Fee Related CN102143238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010623201.9A CN102143238B (en) 2010-12-30 2010-12-30 Communication interface, switching circuit and switching method of communication interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010623201.9A CN102143238B (en) 2010-12-30 2010-12-30 Communication interface, switching circuit and switching method of communication interfaces

Publications (2)

Publication Number Publication Date
CN102143238A true CN102143238A (en) 2011-08-03
CN102143238B CN102143238B (en) 2014-01-22

Family

ID=44410452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010623201.9A Expired - Fee Related CN102143238B (en) 2010-12-30 2010-12-30 Communication interface, switching circuit and switching method of communication interfaces

Country Status (1)

Country Link
CN (1) CN102143238B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497189A (en) * 2011-11-30 2012-06-13 华为技术有限公司 Signal sampling method, controllable switch and device
CN103257610A (en) * 2012-02-16 2013-08-21 西门子公司 Programmable logic controller (PLC) switching device and PLC thereof
CN103269298A (en) * 2013-05-23 2013-08-28 华为技术有限公司 Adaptive bus switching method and device
CN105592157A (en) * 2015-12-28 2016-05-18 上海博泰悦臻网络技术服务有限公司 Vehicle network signal access device and method, vehicle communication terminal and vehicle
CN106649178A (en) * 2016-12-29 2017-05-10 上海威惠智能科技有限公司 Equipment interface and equipment interface mode switching device and method
CN106814214A (en) * 2015-11-30 2017-06-09 江苏中海达海洋信息技术有限公司 A kind of new A DCP digital adaptation custom systems
WO2021037026A1 (en) * 2019-08-27 2021-03-04 中兴通讯股份有限公司 Communication device panel interface and communication device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1835700A1 (en) * 2004-12-28 2007-09-19 ZTE Corporation A method and a device for encapsulating the information twice inside the communication device
CN101674378A (en) * 2009-10-23 2010-03-17 中兴通讯股份有限公司 Wireless fixed terminal capable of switching talk lines automatically and switching method
CN201638145U (en) * 2010-01-12 2010-11-17 北京四方继保自动化股份有限公司 RS232/RS485 (Recommend Standard 232/Recommend Standard 485) integrated interface circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1835700A1 (en) * 2004-12-28 2007-09-19 ZTE Corporation A method and a device for encapsulating the information twice inside the communication device
CN101674378A (en) * 2009-10-23 2010-03-17 中兴通讯股份有限公司 Wireless fixed terminal capable of switching talk lines automatically and switching method
CN201638145U (en) * 2010-01-12 2010-11-17 北京四方继保自动化股份有限公司 RS232/RS485 (Recommend Standard 232/Recommend Standard 485) integrated interface circuit

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497189A (en) * 2011-11-30 2012-06-13 华为技术有限公司 Signal sampling method, controllable switch and device
CN103257610A (en) * 2012-02-16 2013-08-21 西门子公司 Programmable logic controller (PLC) switching device and PLC thereof
CN103269298A (en) * 2013-05-23 2013-08-28 华为技术有限公司 Adaptive bus switching method and device
CN103269298B (en) * 2013-05-23 2016-01-27 华为技术有限公司 A kind of bus adaptive method for switching and device
CN106814214A (en) * 2015-11-30 2017-06-09 江苏中海达海洋信息技术有限公司 A kind of new A DCP digital adaptation custom systems
CN105592157A (en) * 2015-12-28 2016-05-18 上海博泰悦臻网络技术服务有限公司 Vehicle network signal access device and method, vehicle communication terminal and vehicle
CN106649178A (en) * 2016-12-29 2017-05-10 上海威惠智能科技有限公司 Equipment interface and equipment interface mode switching device and method
CN106649178B (en) * 2016-12-29 2020-02-11 上海威惠智能科技有限公司 Equipment interface and equipment interface mode switching device and method
WO2021037026A1 (en) * 2019-08-27 2021-03-04 中兴通讯股份有限公司 Communication device panel interface and communication device
CN112448820A (en) * 2019-08-27 2021-03-05 中兴通讯股份有限公司 Communication equipment panel interface and communication equipment

Also Published As

Publication number Publication date
CN102143238B (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN102143238B (en) Communication interface, switching circuit and switching method of communication interfaces
CN101356764B (en) Integrated switch
US8829738B2 (en) Connecting apparatus with a combo port
US6912282B2 (en) Enabling Cisco legacy power to support IEEE 802.3 AF standard power
CN102025062B (en) Communication interface multiplexing method, device and network equipment
CA2528392A1 (en) Multi-functional port
CN102033833A (en) Serial port communication switching method and serial port communication system
CN101520763B (en) Method for switching serial ports and sharing device of serial ports
CN102318267A (en) Data communication method, communication equipment and communication system
CN101860439A (en) Interface board, communication device and method for configuring interface board
CN102164070B (en) Switchboard and network port and serial port multiplexing method thereof
US20150269110A1 (en) Cable with multiple functions
CN101752760A (en) Multiplex USB cable connector
CN103092793A (en) Switching method and electronic terminal
WO2014133864A2 (en) A machine communication system and a communication unit
CN108737673B (en) Network telephone equipment, external connection card and communication method of network telephone equipment
CN202795352U (en) Wiring method for recommend standard (RS) 232 interface and RS 485 interface
CN103269298B (en) A kind of bus adaptive method for switching and device
CN102098186A (en) QSFP (Quad Small Form-factor Pluggable) module detecting system and detecting method
CN211293741U (en) Control panel test fixture
CN209328015U (en) Multi-functional serial data interface arrangement and equipment
CN115277282A (en) CAN node, working method thereof and CAN bus
CN1185570C (en) Multipath display dignal intelligent switching device
CN101888649A (en) Serial interface communication testing system
CN101360292A (en) Method and system implementing dual SIM card interchanging supported by single Bluetooth in mobile phone

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
TR01 Transfer of patent right

Effective date of registration: 20230418

Address after: 017010 Room 914-020, 9th Floor, Headquarters Incubation Building, Kangbashi District, Ordos City, Inner Mongolia Autonomous Region

Patentee after: Inner Mongolia Kuaiwei Technology Co.,Ltd.

Address before: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu

Patentee before: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

Effective date of registration: 20230418

Address after: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu

Patentee after: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

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

Granted publication date: 20140122