CN116506378B - Switch equipment, serial communication interface switching method and device thereof - Google Patents

Switch equipment, serial communication interface switching method and device thereof Download PDF

Info

Publication number
CN116506378B
CN116506378B CN202310767752.XA CN202310767752A CN116506378B CN 116506378 B CN116506378 B CN 116506378B CN 202310767752 A CN202310767752 A CN 202310767752A CN 116506378 B CN116506378 B CN 116506378B
Authority
CN
China
Prior art keywords
serial communication
gating
signal
module
communication interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310767752.XA
Other languages
Chinese (zh)
Other versions
CN116506378A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310767752.XA priority Critical patent/CN116506378B/en
Publication of CN116506378A publication Critical patent/CN116506378A/en
Application granted granted Critical
Publication of CN116506378B publication Critical patent/CN116506378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/111Switch interfaces, e.g. port details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Abstract

The embodiment of the application relates to the field of computers, in particular to a switch device, a switching method of a serial communication interface and a device thereof, wherein the switch device comprises a substrate, a serial unit, a processor, a resistor unit and a gating unit, wherein the processor, the resistor unit and the gating unit are arranged on the substrate, and the switching method comprises the following steps: the serial port unit comprises a plurality of serial communication interfaces, and each serial communication interface comprises a signal input end and a signal output end; the gating unit is electrically connected with the processor and the resistance unit respectively and is used for controlling a serial communication interface to be communicated with the processor under the condition of receiving the control signal. The application solves the problem of high cost for producing and managing the switch equipment in the related technology, thereby achieving the effect of greatly reducing the cost for producing and managing the switch equipment.

Description

Switch equipment, serial communication interface switching method and device thereof
Technical Field
The embodiment of the application relates to the field of computers, in particular to a switch device, a serial communication interface switching method and a serial communication interface switching device.
Background
With the large-scale expansion of internet data center infrastructure and the development of switch technology, the modularization trend of switch hardware design is obvious. The modular hardware design may help switch hardware vendors push out higher speed and larger switching capacity iterative products at lower cost and faster speeds. And how to make the modularization more versatile becomes a key measure of the hardware design of the switch.
In order to be compatible with the two requirements of a central processing unit (Central Processing Unit, CPU) for debugging a serial port on a front panel and a rear panel, the universal base plate of the current switch in a modularized design makes serial resistance selection matching of a signal path, namely, the selection matching resistor is jumped to the front panel for the product design of the serial port on the front panel. For the product design of the serial port on the back panel, the matching resistor is jumped to the back panel. The design method is simple, but requires maintenance of a Bill of materials (BOM) of a general substrate corresponding to the two designs, i.e., sorting and controlling of the Material numbers of the printed circuit board processes (Printed Circuit Board Assembly, PCBA) corresponding to the two designs in a database of the Bill of materials, which greatly increases the production and management costs.
Disclosure of Invention
The embodiment of the application provides a switch device, a switching method of a serial communication interface and a device thereof, which are used for at least solving the problem of high cost for producing and managing the switch device in the related technology.
According to an embodiment of the present application, there is provided a switch device including a substrate, a serial port unit, and a processor, a resistor unit, and a gate unit disposed on the substrate, wherein: the serial port unit comprises a plurality of serial communication interfaces, and each serial communication interface comprises a signal input end and a signal output end; the gating unit is electrically connected with the processor and the resistance unit respectively and is used for controlling a serial communication interface to be communicated with the processor under the condition of receiving the control signal.
In one exemplary embodiment, the switch device further comprises: the serial port unit is arranged on the interface board, the interface board comprises a first interface board and/or a second interface board, and the first interface board and the second interface board are two panels of the switch equipment, which are positioned at different positions; at least one switch board card is electrically connected with the interface board.
In an exemplary embodiment, the interface boards are plural, and the switch device further includes a data switch for electrically connecting the at least one switch board card with the at least one interface board.
In one exemplary embodiment, the switch device further comprises: the serial port position detection module is arranged in at least one exchange board card and is used for detecting the setting positions of a plurality of serial communication interfaces and outputting serial port position detection signals, wherein the setting positions comprise a first interface board and/or a second interface board; the signal triggering module is electrically connected with the serial port position detection module and is used for outputting a first control signal to the gating unit when the serial port position detection signal indicates that a first serial communication interface arranged on the first interface board is arranged in the plurality of serial communication interfaces, so that the gating unit controls the first serial communication interface to be communicated with the processor according to the first control signal, and outputting a second control signal to the gating unit when the serial port position detection signal indicates that a second serial communication interface arranged on the second interface board is arranged in the plurality of serial communication interfaces, so that the gating unit controls the second serial communication interface to be communicated with the processor according to the second control signal.
In an exemplary embodiment, the serial port position detection signal is a level signal, and the signal triggering module is configured to: when the serial port position detection signal indicates that a first serial communication interface arranged on the first interface board is arranged in the plurality of serial communication interfaces, the level signal is pulled up, and the output first control signal is a first logic signal, so that the gating unit controls the first serial communication interface to be communicated with the processor according to the first logic signal; and under the condition that the serial port position detection signals indicate that the plurality of serial communication interfaces are provided with the second serial communication interfaces arranged on the second interface board, the level signals are pulled down, and the output first control signals are second logic signals, so that the gating unit controls the second serial communication interfaces to be communicated with the processor according to the second logic signals.
In one exemplary embodiment, where the interface board comprises a first interface board, the first interface board is a front panel of the switch device.
In one exemplary embodiment, the plurality of serial communication interfaces has a front serial communication interface disposed on the front panel.
In one exemplary embodiment, where the interface board includes a second interface board, the first interface board is a back panel of the switch device.
In one exemplary embodiment, the plurality of serial communication interfaces has a rear serial communication interface disposed on the rear panel.
In one exemplary embodiment, the gating unit includes a plurality of gating modules, each gating module having a plurality of gating branches, wherein: the multiple gating branches are respectively used for communicating the processor with different resistor modules; the resistor module is electrically connected with the same gating module and is used for being electrically connected with different serial communication interfaces; the gating unit is used for switching one gating branch in each gating module into a passage according to the control signal.
In one exemplary embodiment, each of the resistor modules has a first end electrically connected to the serial communication interface and a second end electrically connected to the gating unit, the second end of the resistor module electrically connected to the signal input of the target serial communication interface being connected to the first gating module, the second end of the resistor module electrically connected to the signal output of the target serial communication interface being connected to the second gating module, the target serial communication interface being any one of the plurality of serial communication interfaces.
In one exemplary embodiment, the switch device further comprises: the panel connectors are electrically connected with the serial communication interfaces in a one-to-one correspondence manner, and each resistor module is electrically connected with the serial communication interfaces through the panel connectors.
In one exemplary embodiment, the plurality of panel connectors includes: a first panel connector for electrically connecting with the first interface board; the second panel connector is used for being electrically connected with the second interface board.
In one exemplary embodiment, the gating unit includes a first gating module and a second gating module, wherein: the first gating module is provided with a first gating branch and a second gating branch, wherein a first end of the first gating branch is used for being electrically connected with a signal input end of a first serial communication interface on the first interface board through a first panel connector, a first end of the second gating branch is used for being electrically connected with a signal input end of a second serial communication interface on the second interface board through a second panel connector, and a second end of the first gating branch and a second end of the second gating branch are used for being electrically connected with the processor; the second gating module is provided with a third gating branch and a fourth gating branch, the first end of the third gating branch is used for being electrically connected with the signal output end of the first serial communication interface on the first interface board through the first panel connector, the first end of the fourth gating branch is used for being electrically connected with the signal output end of the second serial communication interface on the second interface board through the second panel connector, and the second end of the third gating branch and the second end of the fourth gating branch are used for being electrically connected with the processor.
In one exemplary embodiment, the plurality of resistive modules includes a first resistive module, a second resistive module, a third resistive module, and a fourth resistive module, wherein: the first end of the first resistor module is electrically connected with the first end of the first gating branch, and the second end of the first resistor module is electrically connected with the first panel connector; the first end of the second resistor module is electrically connected with the first end of the second gating branch, and the second end of the second resistor module is electrically connected with the second panel connector; the first end of the third resistor module is electrically connected with the first end of the third gating branch, and the second end of the third resistor module is electrically connected with the first panel connector; the first end of the fourth resistor module is electrically connected with the first end of the fourth gating branch, and the second end of the fourth resistor module is electrically connected with the second panel connector.
According to another embodiment of the present application, there is provided a switching method of a serial communication interface, applied to the switch device, the switching method including: acquiring serial port position detection signals of a plurality of serial communication interfaces in a serial port unit in the switch equipment, wherein the serial port position detection signals are used for indicating setting positions of the plurality of serial communication interfaces; the serial port position detection signal is converted into a control signal, and the control signal is output to a gating unit in the switch equipment, so that the gating unit controls at least one first serial communication interface to be communicated with a processor in the switch equipment according to the control signal.
In an exemplary embodiment, the switch device includes a first interface board and/or a second interface board, where the first interface board and the second interface board are two panels of the switch device that are located at different positions, and a serial port unit in the switch device is disposed on the interface board, converts a serial port position detection signal into a control signal, and outputs the control signal to a gating unit in the switch device, and includes: under the condition that the serial port position detection signals indicate that a plurality of serial communication interfaces are provided with first serial communication interfaces arranged on a first interface board, converting the serial port position detection signals into first control signals and outputting the first control signals to a gating unit, so that the gating unit controls the first serial communication interfaces to be communicated with a processor according to the first control signals; under the condition that the serial port position detection signals indicate that the plurality of serial communication interfaces are provided with the second serial communication interfaces arranged on the second interface board, the serial port position detection signals are converted into second control signals, and the second control signals are output to the gating unit, so that the gating unit controls the second serial communication interfaces to be communicated with the processor according to the second control signals.
In one exemplary embodiment, the serial port position detection signal is a level signal, converts the serial port position detection signal into a first control signal, and outputs the first control signal to the gating unit, so that the gating unit controls the first serial communication interface to communicate with the processor according to the first control signal, including: and outputting a pull-up signal to a signal trigger module in the switch equipment, so that the signal trigger module pulls up a level signal, outputting a first logic signal, and controlling the first serial communication interface to be communicated with the processor by the gating unit according to the first logic signal.
In one exemplary embodiment, the serial port position detection signal is a level signal, converts the serial port position detection signal into a second control signal, and outputs the second control signal to the gating unit, so that the gating unit controls the second serial communication interface to communicate with the processor according to the second control signal, including: and outputting a pull-down signal to a signal triggering module in the switch equipment, so that the signal triggering module pulls down a level signal, outputting a second logic signal, and controlling the second serial communication interface to be communicated with the processor by the gating unit according to the second logic signal.
According to another embodiment of the present application, there is provided a switching device for a serial communication interface, which is applied to the above switch device, and the switching device includes: the device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring serial port position detection signals of a plurality of serial communication interfaces in a serial port unit, wherein the serial port position detection signals are used for indicating setting positions of the serial communication interfaces; the conversion module is used for converting the serial port position detection signal into a control signal and outputting the control signal to a gating unit in the switch equipment, so that the gating unit controls at least one first serial communication interface to be communicated with a processor in the switch equipment according to the control signal.
According to a further embodiment of the application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application there is also provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the application, as the serial port unit in the switch equipment comprises a plurality of serial communication interfaces, each resistor module is electrically connected with one serial communication interface and is different from the resistor module electrically connected with the signal input end and the signal output end of the same serial communication interface, one serial communication interface is controlled to be communicated with the processor under the condition that the gating unit receives a control signal, and the automatic switching of each serial communication interface in the plurality of serial communication interfaces can be realized. Therefore, the problem of high cost for producing and managing the switch equipment in the related technology can be solved, and the effect of greatly reducing the cost for producing and managing the switch equipment is achieved.
Drawings
Fig. 1 is a block diagram of a switch device according to the related art;
fig. 2 is a block diagram of a switch device according to an embodiment of the present application;
fig. 3 is a block diagram of another switch device according to an embodiment of the present application;
FIG. 4 is a flow chart of a method of switching a serial communication interface according to an embodiment of the present application;
fig. 5 is a block diagram of a switching device of a serial communication interface according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, in order to be compatible with the requirements of a central processing unit (Central Processing Unit, CPU) for debugging a serial port on a front panel and a rear panel, a universal substrate for modular design of a current switch is provided with serial resistance matching of a signal path, that is, for product design of the serial port on the front panel, a matching resistor is jumped to the front panel. For the product design of the serial port on the back panel, the matching resistor is jumped to the back panel. Specifically, as shown in fig. 1, the exchanger apparatus has a general-purpose substrate 100 ', on which a CPU 10', a front panel connector 20 ', and a rear panel connector 30' are provided, and also has opposite front and rear panels, on which a front serial communication interface 40 '(front serial port) is provided, and on which a rear serial communication interface 50' (rear serial port) is provided, the front serial communication interface 40 'and the UART0 signal line of the CPU 10' are turned on when UART0 signal lines (uart0_tx signal line and uart0_rx signal line) of the CPU are connected to the front panel connector 20 ', and the rear serial communication interface 50' and the UART0 signal line of the CPU10 'are turned on when UART0 signal lines (uart0_tx signal line and uart0_rx signal line) of the CPU are connected to the rear panel connector 30'. For front panel serial design products, R1 'and R3' are resistance welded, and R2 'and R4' are resistance unwelded. For the rear panel serial design product, R1 'and R3' are resistance unwelded, and R2 'and R4' are resistance welded. The design method needs to maintain a Bill of materials (BOM) of the universal substrate corresponding to the two designs, i.e. the Material numbers of the printed circuit board processes (Printed Circuit Board Assembly, PCBA) corresponding to the two designs in the database of the Bill of materials are required to be classified and controlled, which greatly increases the production and management costs.
In order to solve the problem of high cost of producing and managing switch equipment in the related art, the embodiment of the application provides switch equipment, a switching method of a serial communication interface and a device thereof.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
For convenience of description, the following will describe some terms or terminology involved in the embodiments of the present application:
switch device (Switch): is a network device for electrical (optical) signal forwarding. It can provide an unshared electrical signal path for any two network nodes of the access switch. The most common switch is an ethernet switch. Other common are voice over phone switches, fiber optic switches, etc.
Exchange plate: the system comprises an exchange chip and a processor, wherein the exchange chip provides an external optical module and receives state information of each interface board of the switch; the processor acquires the port state of the board card and the board card state sent by the interface board through the Ethernet protocol stack, acquires the power supply and temperature state data of the board card through the two-wire serial bus (I2C bus), packages the state data (including the port state, the power supply state of the board, the temperature and the like) of the board card into an Ethernet message, and sends the Ethernet message to the network management terminal.
Interface board: the device comprises an exchange chip and a processor, wherein the exchange chip is externally connected with an optical module and sends the state information of the board card to an exchange board; the processor obtains the port state of the board through the Ethernet protocol stack, and simultaneously obtains the power supply and temperature state data of the board card through the two-wire serial bus (I2C bus), encapsulates the state data of the board card into an Ethernet message, sends the Ethernet message to the exchange chip, and then forwards the Ethernet message to the exchange board through the exchange chip.
In this embodiment, a switch device is provided, fig. 2 is a block diagram of a switch device according to an embodiment of the present application, and as shown in fig. 2, the switch device includes a substrate 100, a serial port unit 200, and a processor 300, a resistor unit 400, and a strobe unit 500 disposed on the substrate 100, where:
serial port unit 200 includes a plurality of serial communication interfaces, each serial communication interface including a signal input and a signal output;
the gating unit 500 is electrically connected to the processor 300 and the resistor unit 400, respectively, for controlling a serial communication interface to communicate with the processor 300 upon receipt of a control signal.
According to the embodiment, since the serial port unit in the switch device comprises a plurality of serial communication interfaces, each resistor module is electrically connected with one serial communication interface and is different from the resistor module electrically connected with the signal input end and the signal output end of the same serial communication interface, the serial communication interface is controlled to be communicated with the processor under the condition that the gating unit receives the control signal, and automatic switching of each serial communication interface in the plurality of serial communication interfaces can be realized. Therefore, the problem of high cost for producing and managing the switch equipment in the related technology can be solved, and the effect of greatly reducing the cost for producing and managing the switch equipment is achieved.
In some optional implementations, the switch device in this embodiment further includes at least one interface board and at least one switch board card, where: the serial port unit is arranged on the interface board, and the interface board comprises a first interface board and/or a second interface board, wherein the first interface board and the second interface board are two panels of the switch equipment, which are positioned at different positions; at least one switch board card is electrically connected with the interface board. By arranging a plurality of serial communication interfaces on the same or different interface boards, the serial communication interfaces on the same or different interface boards can be switched through the gating unit, and the interface board or boards are electrically connected with at least one exchange board card so as to complete the data exchange function of the exchange board.
The first interface board and the second interface board are respectively a front panel and a rear panel opposite to each other of the switch device, at least one serial port unit is arranged on each of the front panel and the rear panel, and the serial communication interfaces on the front panel and/or the rear panel are controlled to be communicated with the processor under the condition that the gating unit receives the control signal, so that automatic switching of the serial communication interfaces on the front panel and the rear panel is realized.
In some optional embodiments, the plurality of interface boards, the switch device further includes a data switch, where the data switch is configured to electrically connect at least one switch board card with at least one interface board. In the case of multiple interface boards, the multiple interface boards can be connected to the main switch board through the data switch, so as to complete the data exchange function of the switch.
The switch board card includes a main switch board (Master) and a standby switch board (slave), for receiving status information of each interface board of the switch device. When the switch equipment works normally, the data switch connects the interface board to the main switch board to complete the data exchange function of the switch. If the main exchange board fails, a plurality of interface boards are connected to the new main exchange board by controlling the data change-over switch so as to use the standby exchange board as the new main exchange board.
In some optional implementations, the switch device in this embodiment further includes a serial port location detection module and a signal triggering module, where: the serial port position detection module is arranged in at least one exchange board card and is used for detecting the setting positions of a plurality of serial communication interfaces and outputting serial port position detection signals, wherein the setting positions comprise a first interface board and/or a second interface board; the signal triggering module is electrically connected with the serial port position detection module and is used for outputting a first control signal to the gating unit when the serial port position detection signal indicates that a first serial communication interface arranged on the first interface board is arranged in the plurality of serial communication interfaces, so that the gating unit controls the first serial communication interface to be communicated with the processor according to the first control signal, and outputting a second control signal to the gating unit when the serial port position detection signal indicates that a second serial communication interface arranged on the second interface board is arranged in the plurality of serial communication interfaces, so that the gating unit controls the second serial communication interface to be communicated with the processor according to the second control signal.
In the above alternative embodiments, since the design of the switch board is generally different, by designing the position signal source that displays the serial communication interface on the front panel or on the rear panel on the board, and performing the circuit design of pulling up or pulling down on the board, only the switch board needs to be designed and produced, and the general substrate of the existing stock is directly used for system level assembly and function verification.
According to the embodiment of the application, the serial port position detection signal for the switch design is introduced, and the serial communication interface of the universal substrate is switched by controlling the gating unit, so that the positions of the serial communication interfaces on different panels can be correctly corresponding to each other, and the universality of the universal substrate is ensured, so that the design of the universal substrate can be kept unchanged in the iterative design process of the switch, only one PCBA material number is maintained in the production library, and for new switch equipment, only a main switch board is required to be designed and produced, and the universal substrate in the existing stock is directly utilized to perform system level assembly and function verification.
In the above alternative embodiment, the serial port position detection signal may be a level signal, and the signal triggering module is configured to: when the serial port position detection signal indicates that a first serial communication interface arranged on the first interface board is arranged in the plurality of serial communication interfaces, the level signal is pulled up, and the output first control signal is a first logic signal, so that the gating unit controls the first serial communication interface to be communicated with the processor according to the first logic signal; and under the condition that the serial port position detection signals indicate that the plurality of serial communication interfaces are provided with the second serial communication interfaces arranged on the second interface board, the level signals are pulled down, and the output first control signals are second logic signals, so that the gating unit controls the second serial communication interfaces to be communicated with the processor according to the second logic signals.
In the above alternative embodiment, where the interface board includes a first interface board, the first interface board may be a front panel of the switch device. In this case, the plurality of serial communication interfaces may have a front serial communication interface provided on the front panel.
In the above alternative embodiment, where the interface board includes a second interface board, the first interface board may be a back panel of the switch device. In this case, the plurality of serial communication interfaces may have a rear serial communication interface provided on the rear panel.
The serial port position detection signal front_abs is from a main switch board in the switch device, the first interface board and the second interface board are respectively a FRONT panel and a rear panel opposite to the switch device, for the serial port position detection signal front_abs, for the design that a serial communication interface is arranged on the FRONT panel, a front_abs level signal is pulled up; for designs where no serial communication interface is provided on the FRONT panel, the FRONT_ABS level signal is pulled down to Ground (GND). When the switch equipment designs a serial communication interface on the FRONT panel, the FRONT serial communication interface on the FRONT panel is communicated with a central processing unit (Central Processing Unit, CPU) on the universal substrate by the gating unit according to the logic value of the FRONT_ABS signal, wherein the FRONT_ABS signal level is high and the corresponding logic is 1; when the serial communication interface is not detected to be arranged on the FRONT panel, namely the switch equipment is designed to be arranged on the rear panel, the FRONT_ABS signal is pulled down to GND on the main switch board, the FRONT_ABS signal level is low, the corresponding logic is 0, and the gating unit enables the rear serial communication interface on the rear panel to be communicated with the central processing unit (Central Processing Unit, CPU) on the universal substrate according to the logic value of the FRONT_ABS signal.
In some alternative embodiments, the gating unit includes a plurality of gating modules, each gating module having a plurality of gating branches, wherein: the multiple gating branches are respectively used for communicating the processor with different resistor modules; the resistor module is electrically connected with the same gating module and is used for being electrically connected with different serial communication interfaces; the gating unit is used for switching one gating branch in each gating module into a passage according to the control signal. For the substrate in the switch device, besides the gating unit, the resistor can be welded on the substrate in a consistent manner, so that the general substrate design corresponding to the substrate can only have one bill of materials, namely, only the serial numbers of the printed circuit board manufacturing processes (Printed Circuit Board Assembly, PCBA) corresponding to the design in the database of the bill of materials need to be classified and managed, and the production and management cost is greatly increased.
In the above-mentioned alternative embodiment, since each strobe module has a plurality of strobe branches, each strobe branch communicates one serial communication interface with the processor through the resistor module, and different strobe branches in the same strobe module communicate with different serial communication interfaces, so that under the condition that the strobe unit receives the control signal, the strobe unit can control any serial communication interface in the plurality of serial communication interfaces to communicate with the processor on the substrate according to the control signal, and further under the condition that the plurality of serial communication interfaces are respectively located in different interface boards, automatic switching of the serial communication interfaces on the plurality of boards is realized.
In the above alternative embodiment, each of the resistor modules has a first end electrically connected to the serial communication interface and a second end electrically connected to the strobe unit, the second end of the resistor module electrically connected to the signal input end of the target serial communication interface is connected to the first strobe module, the second end of the resistor module electrically connected to the signal output end of the target serial communication interface is connected to the second strobe module, and the target serial communication interface is any one of the plurality of serial communication interfaces.
As shown in fig. 3, the gating unit includes two gating modules, namely a switch controller-T60 and a switch controller-R70, wherein the CPU10 is connected to a uart0_tx signal line and a uart0_rx signal line, and the logic relationship between the signal lines and the switch controller is as follows:
specifically, as shown in the above table, the switch controller-T has two gating branches a and B, the gating branch a is electrically connected with R1, the gating branch B is electrically connected with R2, the switch controller-R has two gating branches C and D, the gating branch C is electrically connected with R3, and the gating branch D is electrically connected with R4, wherein:
the switch controller-T is used for switching the gating branches A and B in general, when the input signal of the switch controller-T is logic '1', the switch is switched to be conducted in the A path so as to communicate the UART 0-TX signal line connected with the CPU with the front serial communication interface through the resistor R1, and when the input signal of the switch controller-T is logic '0', the switch is switched to be conducted in the B path so as to communicate the UART 0-TX signal line connected with the CPU with the rear serial communication interface through the resistor R2;
The switch controller-R is used for switching the gating branches C and D in common, when the input signal of the switch controller-R is logic '1', the switch is switched to be conducted in the C path so as to communicate the UART0_RX signal line connected with the CPU with the front serial communication interface through the resistor R3, and when the input signal of the switch controller-R is logic '0', the switch is switched to be conducted in the D path so as to communicate the UART0_RX signal line connected with the CPU with the rear serial communication interface through the resistor R4.
In some optional implementations, the switch device in this embodiment further includes a plurality of panel connectors electrically connected to the plurality of serial communication interfaces in a one-to-one correspondence, and each of the resistor modules is electrically connected to the serial communication interfaces through the panel connectors.
In the above alternative embodiment, the plurality of panel connectors may include a first panel connector and a second panel connector, wherein: the first panel connector is used for being electrically connected with the first interface board; the second panel connector is used for being electrically connected with the second interface board. Specifically, when the first interface board is a front panel, the first panel connector is a front panel connector, and when the second interface board is a rear panel, the second panel connector is a rear panel connector.
As shown in fig. 3, the serial port position detection signal front_abs is from a main switch board (not shown in the figure) in the switch device, and the first interface board and the second interface board are respectively a FRONT panel and a rear panel opposite to the switch device, for the serial port position detection signal front_abs:
when the switch device designs the serial communication interface on the FRONT panel, the FRONT panel connector 20 is connected with UART0 signal lines (UART 0 TX signal lines and UART0 RX signal lines) of the CPU10, and the FRONT serial communication interface 40 and the UART0 signal lines of the CPU10 are connected;
when the switch device designs the serial communication interface on the back panel, the front_abs signal is pulled down to the Ground (GND) on the main switch board, the front_abs signal level is low, the corresponding logic is "0", the B-way in the switch controller-T60 and the D-way in the switch controller-R70 are turned on, the UART0 signal line (uart0_tx signal line and uart0_rx signal line) of the CPU10 is connected to the back panel connector 30, and the rear serial communication interface 50 and the UART0 signal line of the CPU10 are turned on.
In some alternative embodiments, the gating unit includes a first gating module and a second gating module, wherein: the first gating module is provided with a first gating branch and a second gating branch, wherein a first end of the first gating branch is used for being electrically connected with a signal input end of a first serial communication interface on the first interface board through a first panel connector, a first end of the second gating branch is used for being electrically connected with a signal input end of a second serial communication interface on the second interface board through a second panel connector, and a second end of the first gating branch and a second end of the second gating branch are used for being electrically connected with the processor; the second gating module is provided with a third gating branch and a fourth gating branch, the first end of the third gating branch is used for being electrically connected with the signal output end of the first serial communication interface on the first interface board through the first panel connector, the first end of the fourth gating branch is used for being electrically connected with the signal output end of the second serial communication interface on the second interface board through the second panel connector, and the second end of the third gating branch and the second end of the fourth gating branch are used for being electrically connected with the processor.
In the above alternative embodiment, the plurality of resistance modules includes a first resistance module, a second resistance module, a third resistance module, and a fourth resistance module, wherein: the first end of the first resistor module is electrically connected with the first end of the first gating branch, and the second end of the first resistor module is electrically connected with the first panel connector; the first end of the second resistor module is electrically connected with the first end of the second gating branch, and the second end of the second resistor module is electrically connected with the second panel connector; the first end of the third resistor module is electrically connected with the first end of the third gating branch, and the second end of the third resistor module is electrically connected with the first panel connector; the first end of the fourth resistor module is electrically connected with the first end of the fourth gating branch, and the second end of the fourth resistor module is electrically connected with the second panel connector.
The first resistor module, the second resistor module, the third resistor module, and the fourth resistor module may be single resistor elements with the same resistance value, may be a plurality of resistor elements connected in series, may be a plurality of resistor elements connected in parallel, and the number of resistor elements in each resistor module and the resistance value of the single resistor element are not particularly limited.
Illustratively, as shown in fig. 3, the first and second gating modules are a switch controller-T60 and a switch controller-R70, respectively, the serial port position detection signal front_abs is from a main switch board (not shown) in the switch device, the first and second interface boards are FRONT and rear panels opposite to the switch device, respectively, the first panel connector is a FRONT panel connector 20, the second panel connector is a rear panel connector 30, the switch controller-T60 has two gating branches a and B, the switch controller-T60 is used for general switching of the gate branches a and B therein, the switch controller-R70 has two gate branches C and D, the switch controller-R70 is used for general switching of the gate branches C and D therein, the first, second, third and fourth resistance modules are resistors R1, R2, R3 and R4, respectively, and at this time, the CPU10, the FRONT panel connector 20, the rear panel connector 30, the switch controller-T60, the switch controller-R70, the resistor R1, the resistor R2, the resistor R3 and the resistor R4 are provided on the substrate 100, wherein:
When the input signal of the switch controller-T60 is logic '1', the switch is switched to be conducted in the A path, the UART 0-TX signal line of the CPU10 is connected to the front panel connector 20 through the resistor R1, and the front serial communication interface 40 and the UART 0-TX signal line of the CPU10 are conducted through the front panel connector 20;
when the input signal of the switch controller-T70 is logic 0, the switch is switched to B-path conduction, the UART 0-TX signal line of the CPU10 is connected to the rear panel connector 30 through the resistor R2, and the rear serial communication interface 50 and the UART 0-TX signal line of the CPU10 are conducted through the rear panel connector 30;
when the input signal of the switch controller-R70 is logic '1', the switch is switched to be turned on in the C path, the UART0_RX signal line of the CPU10 is connected to the front panel connector 20 through a resistor R3, and the front serial communication interface 40 is turned on with the UART0 signal line of the CPU 10;
when the input signal of the switch controller-R70 is logic "0", the switch is switched to the D-path conduction, the uart0_rx signal line of the CPU10 is connected to the rear panel connector 30 through the resistor R4, and the rear serial communication interface 50 and the UART0 signal line of the CPU10 are conducted.
For the switch device in the above example, except for the switch controller-T and the switch controller-R, the resistor R1, the resistor R2, the resistor R3 and the resistor R4 may be soldered on the substrate in a consistent manner, so that the general substrate design corresponding to the substrate may have only one bill of materials, that is, only the material numbers of the printed circuit board processes (Printed Circuit Board Assembly, PCBA) corresponding to the above one design in the database of the bill of materials need to be classified and managed, which greatly increases the production and management costs.
In this embodiment, a method for switching a serial communication interface is provided, which is applied to the switch device in the foregoing embodiment, and fig. 4 is a flowchart of a method for switching a serial communication interface according to an embodiment of the present application, as shown in fig. 4, where the flowchart includes the following steps:
step S102, serial port position detection signals of a plurality of serial communication interfaces in a serial port unit in the switch equipment are obtained, wherein the serial port position detection signals are used for indicating setting positions of the plurality of serial communication interfaces;
step S104, converting the serial port position detection signal into a control signal and outputting the control signal to a gating unit in the switch equipment, so that the gating unit controls at least one first serial communication interface to be communicated with a processor in the switch equipment according to the control signal.
Through the steps, after the serial port position detection signals of the serial port units in the switch equipment are obtained, the serial port position detection signals are converted into control signals, so that the gating unit can control at least one first serial communication interface to be communicated with a processor in the switch equipment according to the control signals, automatic switching of each serial communication interface in the serial communication interfaces is realized, and compared with the prior art that the bill of materials of two substrates needs to be maintained for meeting the serial port in front and back panels, the bill of materials of one substrate only needs to be maintained, and the bill of materials of one design substrate in a database of the bill of materials only needs to be classified and managed. Therefore, the problem of high cost for producing and managing the switch equipment in the related technology can be solved, and the effect of greatly reducing the cost for producing and managing the switch equipment is achieved.
In some optional embodiments, the switch device in this embodiment includes a first interface board and/or a second interface board, where the first interface board and the second interface board are two panels of the switch device that are located at different positions, and a serial port unit in the switch device is disposed on the interface board, converts a serial port position detection signal into a control signal, and outputs the control signal to a gating unit in the switch device, where the switch device includes: under the condition that the serial port position detection signals indicate that a plurality of serial communication interfaces are provided with first serial communication interfaces arranged on a first interface board, converting the serial port position detection signals into first control signals and outputting the first control signals to a gating unit, so that the gating unit controls the first serial communication interfaces to be communicated with a processor according to the first control signals; under the condition that the serial port position detection signals indicate that the plurality of serial communication interfaces are provided with the second serial communication interfaces arranged on the second interface board, the serial port position detection signals are converted into second control signals, and the second control signals are output to the gating unit, so that the gating unit controls the second serial communication interfaces to be communicated with the processor according to the second control signals.
The first interface board and the second interface board are respectively a front panel and a rear panel opposite to each other of the switch device, at least one serial port unit is arranged on each of the front panel and the rear panel, and the serial communication interfaces on the front panel and/or the rear panel are controlled to be communicated with the processor under the condition that the gating unit receives the control signal, so that automatic switching of the serial communication interfaces on the front panel and the rear panel is realized.
In the above alternative embodiments, since the design of the switch board is generally different, by designing the position signal source that displays the serial communication interface on the front panel or on the rear panel on the board, and performing the circuit design of pulling up or pulling down on the board, only the switch board needs to be designed and produced, and the general substrate of the existing stock is directly used for system level assembly and function verification.
According to the embodiment of the application, the serial port position detection signal for the switch design is introduced, and the serial communication interface of the universal substrate is switched by controlling the gating unit, so that the positions of the serial communication interfaces on different panels can be correctly corresponding to each other, and the universality of the universal substrate is ensured, so that the design of the universal substrate can be kept unchanged in the iterative design process of the switch, only one PCBA material number is maintained in the production library, and for new switch equipment, only a main switch board is required to be designed and produced, and the universal substrate in the existing stock is directly utilized to perform system level assembly and function verification.
In the above optional embodiment, the serial port position detection signal may be a level signal, convert the serial port position detection signal into a first control signal, and output the first control signal to the gating unit, so that the gating unit controls the first serial communication interface to communicate with the processor according to the first control signal, and may include: and outputting a pull-up signal to a signal trigger module in the switch equipment, so that the signal trigger module pulls up a level signal, outputting a first logic signal, and controlling the first serial communication interface to be communicated with the processor by the gating unit according to the first logic signal.
In the above optional embodiment, the serial port position detection signal may be a level signal, convert the serial port position detection signal into a second control signal, and output the second control signal to the gating unit, so that the gating unit controls the second serial communication interface to communicate with the processor according to the second control signal, and may include: and outputting a pull-down signal to a signal triggering module in the switch equipment, so that the signal triggering module pulls down a level signal, outputting a second logic signal, and controlling the second serial communication interface to be communicated with the processor by the gating unit according to the second logic signal.
The serial port position detection signal front_abs is from a main switch board in the switch device, the first interface board and the second interface board are respectively a FRONT panel and a rear panel opposite to the switch device, for the serial port position detection signal front_abs, for the design that a serial communication interface is arranged on the FRONT panel, a front_abs level signal is pulled up; for designs where no serial communication interface is provided on the FRONT panel, the FRONT_ABS level signal is pulled down to Ground (GND). When the switch equipment designs a serial communication interface on the FRONT panel, the FRONT serial communication interface on the FRONT panel is communicated with a central processing unit (Central Processing Unit, CPU) on the universal substrate by the gating unit according to the logic value of the FRONT_ABS signal, wherein the FRONT_ABS signal level is high and the corresponding logic is 1; when the serial communication interface is not detected to be arranged on the FRONT panel, namely the switch equipment is designed to be arranged on the rear panel, the FRONT_ABS signal is pulled down to GND on the main switch board, the FRONT_ABS signal level is low, the corresponding logic is 0, and the gating unit enables the rear serial communication interface on the rear panel to be communicated with the central processing unit (Central Processing Unit, CPU) on the universal substrate according to the logic value of the FRONT_ABS signal.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiment also provides a switching device of a serial communication interface, which is applied to the switch device in the foregoing embodiment, and the device is used for implementing the foregoing embodiment and a preferred implementation, and is not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a switching device of a serial communication interface according to an embodiment of the present application, and as shown in fig. 5, the device includes:
an obtaining module 22, configured to obtain serial port position detection signals of a plurality of serial communication interfaces in the serial port unit, where the serial port position detection signals are used to indicate setting positions of the plurality of serial communication interfaces;
the conversion module 24 is configured to convert the serial port position detection signal into a control signal, and output the control signal to the gating unit in the switch device, so that the gating unit controls the at least one first serial communication interface to communicate with the processor in the switch device according to the control signal.
It should be noted that, the above-mentioned obtaining module 22 and the converting module 24 may correspond to the step S102 and the step S104 in the foregoing embodiments, and the plurality of modules are the same as the examples and the application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the foregoing embodiments.
By the above device, since the obtaining module 22 obtains the serial port position detection signals of the plurality of serial communication interfaces in the serial port unit in the switch device, and converts the serial port position detection signals into the control signals through the converting module 24, the gating unit can control at least one first serial communication interface to communicate with the processor in the switch device according to the control signals, and automatic switching of each serial communication interface in the plurality of serial communication interfaces is realized, so that compared with the related art that the serial ports need to maintain the bill of materials of two substrates in front and rear panels, only the bill of materials of one substrate needs to be maintained, and then only the serial numbers of materials of one design substrate in the database of the bill of materials need to be classified and managed. Therefore, the problem of high cost for producing and managing the switch equipment in the related technology can be solved, and the effect of greatly reducing the cost for producing and managing the switch equipment is achieved.
In some optional embodiments, the switch device in this embodiment includes a first interface board and/or a second interface board, where the first interface board and the second interface board are two panels of the switch device that are located at different positions, and a serial port unit in the switch device is disposed on the interface board, where the conversion module 24 includes: the first sub-conversion module is used for converting the serial port position detection signal into a first control signal and outputting the first control signal to the gating unit when the serial port position detection signal indicates that a first serial communication interface arranged on the first interface board is arranged in the plurality of serial communication interfaces, so that the gating unit controls the first serial communication interface to be communicated with the processor according to the first control signal; the second sub-conversion module is used for converting the serial port position detection signal into a second control signal and outputting the second control signal to the gating unit when the serial port position detection signal indicates that a second serial communication interface arranged on the second interface board is arranged in the plurality of serial communication interfaces, so that the gating unit controls the second serial communication interface to be communicated with the processor according to the second control signal.
In the above optional embodiment, the serial port position detection signal may be a level signal, and the first sub-conversion module may include: and the pull-up sub-module is used for outputting a pull-up signal to a signal trigger module in the switch equipment, so that the signal trigger module pulls up a level signal and outputs a first logic signal, and the gating unit controls the first serial communication interface to be communicated with the processor according to the first logic signal.
In the above alternative embodiment, the serial port position detection signal may be a level signal, and the second sub-conversion module may include: and the pull-down sub-module is used for outputting a pull-down signal to a signal triggering module in the switch equipment, so that the signal triggering module pulls down a level signal and outputs a second logic signal, and the gating unit controls the second serial communication interface to be communicated with the processor according to the second logic signal.
In the above alternative embodiments, since the design of the switch board is generally different, by designing the position signal source that displays the serial communication interface on the front panel or on the rear panel on the board, and performing the circuit design of pulling up or pulling down on the board, only the switch board needs to be designed and produced, and the general substrate of the existing stock is directly used for system level assembly and function verification.
According to the embodiment of the application, the serial port position detection signal for the switch design is introduced, and the serial communication interface of the universal substrate is switched by controlling the gating unit, so that the positions of the serial communication interfaces on different panels can be correctly corresponding to each other, and the universality of the universal substrate is ensured, so that the design of the universal substrate can be kept unchanged in the iterative design process of the switch, only one PCBA material number is maintained in the production library, and for new switch equipment, only a main switch board is required to be designed and produced, and the universal substrate in the existing stock is directly utilized to perform system level assembly and function verification.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic device may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (20)

1. The utility model provides a switch equipment which characterized in that includes base plate, serial ports unit and set up in treater, resistance unit and the gating unit on the base plate, wherein:
the serial port unit comprises a plurality of serial communication interfaces, and each serial communication interface comprises a signal input end and a signal output end;
the resistance unit comprises a plurality of resistance modules, and each resistance module is electrically connected with one serial communication interface and is different from the resistance module electrically connected with the signal input end and the signal output end of the same serial communication interface;
the gating unit is respectively and electrically connected with the processor and the resistance unit and is used for controlling one serial communication interface to be communicated with the processor under the condition of receiving a control signal;
the serial port unit is arranged on the interface board, the interface board comprises a first interface board and a second interface board, and the first interface board and the second interface board are two panels of the switch equipment, which are positioned at different positions;
At least one exchange board card, at least one exchange board card is electrically connected with the interface board;
the serial port position detection module is arranged in at least one exchange board card and is used for detecting the setting positions of the plurality of serial communication interfaces and outputting serial port position detection signals, wherein the setting positions comprise the first interface board and the second interface board;
the signal triggering module is electrically connected with the serial port position detection module and is used for outputting a first control signal to the gating unit when the serial port position detection signal indicates that a first serial communication interface arranged on the first interface board is arranged in the serial communication interfaces, so that the gating unit controls the first serial communication interface to be communicated with the processor according to the first control signal, and outputting a second control signal to the gating unit when the serial port position detection signal indicates that a second serial communication interface arranged on the second interface board is arranged in the serial communication interfaces, so that the gating unit controls the second serial communication interface to be communicated with the processor according to the second control signal.
2. The switch device of claim 1, wherein the interface boards are a plurality, the switch device further comprising a data switch for electrically connecting at least one of the switch boards to the at least one interface board.
3. The switch device of claim 1, wherein the serial port location detection signal is a level signal, and wherein the signal triggering module is configured to:
when the serial port position detection signal indicates that a first serial communication interface arranged on the first interface board is arranged in the plurality of serial communication interfaces, the level signal is pulled up, and the output first control signal is a first logic signal, so that the gating unit controls the first serial communication interface to be communicated with the processor according to the first logic signal;
and under the condition that the serial port position detection signals indicate that a second serial communication interface arranged on the second interface board is arranged in the plurality of serial communication interfaces, the level signals are pulled down, and the output first control signals are second logic signals, so that the gating unit controls the second serial communication interface to be communicated with the processor according to the second logic signals.
4. A switch apparatus according to any one of claims 1 to 3, wherein in the case where the interface board comprises the first interface board, the first interface board is a front panel of the switch apparatus.
5. The switch device of claim 4, wherein the plurality of serial communication interfaces has a front serial communication interface disposed on the front panel.
6. A switch apparatus according to any one of claims 1 to 3, wherein in the case where the interface board comprises the second interface board, the second interface board is a rear panel of the switch apparatus.
7. The switch device of claim 6, wherein the plurality of serial communication interfaces have a rear serial communication interface disposed on the rear panel.
8. A switch apparatus according to any one of claims 1 to 3, wherein the gating unit comprises a plurality of gating modules, each gating module having a plurality of gating branches, wherein:
the multiple gating branches are respectively used for communicating the processor with different resistor modules;
the resistor module electrically connected with the same gating module is used for electrically connecting with different serial communication interfaces;
The gating unit is used for switching one gating branch in each gating module into a passage according to the control signal.
9. The switch device of claim 8, wherein each of the resistor modules has a first end electrically connected to the serial communication interface and a second end electrically connected to the gating cell, the second end of the resistor module electrically connected to the signal input of the target serial communication interface being connected to the first gating module, the second end of the resistor module electrically connected to the signal output of the target serial communication interface being any one of the plurality of serial communication interfaces being connected to the second gating module.
10. The switch device of claim 8, further comprising:
the panel connectors are electrically connected with the serial communication interfaces in a one-to-one correspondence manner, and each resistor module is electrically connected with the serial communication interfaces through the panel connectors.
11. The switch device of claim 10, wherein the plurality of panel connectors comprises:
a first panel connector for electrically connecting with the first interface board;
And the second panel connector is used for being electrically connected with the second interface board.
12. The switch device of claim 11, wherein the gating unit comprises a first gating module and a second gating module, wherein:
the first gating module is provided with a first gating branch and a second gating branch, a first end of the first gating branch is used for being electrically connected with a signal input end of a first serial communication interface on the first interface board through the first panel connector, a first end of the second gating branch is used for being electrically connected with a signal input end of a second serial communication interface on the second interface board through the second panel connector, and a second end of the first gating branch and a second end of the second gating branch are used for being electrically connected with the processor;
the second gating module is provided with a third gating branch and a fourth gating branch, the first end of the third gating branch is used for being electrically connected with the signal output end of the first serial communication interface on the first interface board through the first panel connector, the first end of the fourth gating branch is used for being electrically connected with the signal output end of the second serial communication interface on the second interface board through the second panel connector, and the second end of the third gating branch and the fourth end of the second gating branch are used for being electrically connected with the processor.
13. The switch device of claim 12, wherein the plurality of resistance modules comprises a first resistance module, a second resistance module, a third resistance module, and a fourth resistance module, wherein:
the first end of the first resistor module is electrically connected with the first end of the first gating branch, and the second end of the first resistor module is electrically connected with the first panel connector;
the first end of the second resistor module is electrically connected with the first end of the second gating branch, and the second end of the second resistor module is electrically connected with the second panel connector;
the first end of the third resistor module is electrically connected with the first end of the third gating branch, and the second end of the third resistor module is electrically connected with the first panel connector;
the first end of the fourth resistor module is electrically connected with the first end of the fourth gating branch, and the second end of the fourth resistor module is electrically connected with the second panel connector.
14. A switching method of a serial communication interface, applied to the switch device of any one of claims 1 to 13, the switching method comprising:
acquiring serial port position detection signals of a plurality of serial communication interfaces in a serial port unit in the switch equipment, wherein the serial port position detection signals are used for indicating the setting position of at least one serial communication interface;
And converting the serial port position detection signal into a control signal, and outputting the control signal to a gating unit in the switch equipment, so that the gating unit controls at least one serial communication interface to be communicated with a processor in the switch equipment according to the control signal.
15. The switching method according to claim 14, wherein the switch device includes a first interface board and/or a second interface board, the first interface board and the second interface board are two panels of the switch device located at different positions, a serial port unit in the switch device is disposed on the interface board, the converting the serial port position detection signal into a control signal, and outputting the control signal to a gating unit in the switch device, including:
converting the serial port position detection signal into a first control signal and outputting the first control signal to the gating unit when the serial port position detection signal indicates that a first serial communication interface arranged on the first interface board is arranged in the plurality of serial communication interfaces, so that the gating unit controls the first serial communication interface to be communicated with the processor according to the first control signal;
And under the condition that the serial port position detection signals indicate that the plurality of serial communication interfaces are provided with the second serial communication interfaces arranged on the second interface board, converting the serial port position detection signals into second control signals and outputting the second control signals to the gating unit, so that the gating unit controls the second serial communication interfaces to be communicated with the processor according to the second control signals.
16. The switching method according to claim 15, wherein the serial port position detection signal is a level signal, the converting the serial port position detection signal into a first control signal, and outputting the first control signal to the gating unit, so that the gating unit controls the first serial communication interface to communicate with the processor according to the first control signal, includes:
and outputting a pull-up signal to a signal trigger module in the switch equipment, so that the signal trigger module pulls up the level signal and outputs a first logic signal, and the gating unit controls the first serial communication interface to be communicated with the processor according to the first logic signal.
17. The switching method according to claim 15, wherein the serial port position detection signal is a level signal, the converting the serial port position detection signal into a second control signal, and outputting the second control signal to the gating unit, so that the gating unit controls the second serial communication interface to communicate with the processor according to the second control signal, includes:
and outputting a pull-down signal to a signal triggering module in the switch equipment, so that the signal triggering module pulls down the level signal and outputs a second logic signal, and the gating unit controls the second serial communication interface to be communicated with the processor according to the second logic signal.
18. A switching device of a serial communication interface, applied in the switch device of any one of claims 1 to 13, the switching device comprising:
the serial port unit comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring serial port position detection signals of a plurality of serial communication interfaces in the serial port unit, wherein the serial port position detection signals are used for indicating the setting position of at least one serial communication interface;
the conversion module is used for converting the serial port position detection signal into a control signal and outputting the control signal to a gating unit in the switch equipment, so that the gating unit controls at least one serial communication interface to be communicated with a processor in the switch equipment according to the control signal.
19. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method of any of claims 14 to 17.
20. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any of claims 14 to 17 when the computer program is executed.
CN202310767752.XA 2023-06-27 2023-06-27 Switch equipment, serial communication interface switching method and device thereof Active CN116506378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310767752.XA CN116506378B (en) 2023-06-27 2023-06-27 Switch equipment, serial communication interface switching method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310767752.XA CN116506378B (en) 2023-06-27 2023-06-27 Switch equipment, serial communication interface switching method and device thereof

Publications (2)

Publication Number Publication Date
CN116506378A CN116506378A (en) 2023-07-28
CN116506378B true CN116506378B (en) 2023-09-15

Family

ID=87330518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310767752.XA Active CN116506378B (en) 2023-06-27 2023-06-27 Switch equipment, serial communication interface switching method and device thereof

Country Status (1)

Country Link
CN (1) CN116506378B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713599A (en) * 2004-06-22 2005-12-28 中兴通讯股份有限公司 Multi-mouth switching device and testing method for network exchanger
CN101770373A (en) * 2008-12-31 2010-07-07 广州市鸿芯微电子有限公司 Self-starting serial boot program loading and reading system and method thereof
US8638838B1 (en) * 2012-08-27 2014-01-28 Teradici Corporation Differential serial interface for supporting a plurality of differential serial interface standards
CN105305185A (en) * 2015-09-24 2016-02-03 上海斐讯数据通信技术有限公司 Connector base for multiplex serial interface and I2C interface
CN106301845A (en) * 2015-05-30 2017-01-04 四川泰瑞创通讯技术股份有限公司 Switch logger module
CN107196709A (en) * 2015-06-19 2017-09-22 安徽华速达电子科技有限公司 A kind of optical network apparatus for possessing multiplex roles transmission
CN115016360A (en) * 2022-06-30 2022-09-06 苏州浪潮智能科技有限公司 Data transmission control circuit, method, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713599A (en) * 2004-06-22 2005-12-28 中兴通讯股份有限公司 Multi-mouth switching device and testing method for network exchanger
CN101770373A (en) * 2008-12-31 2010-07-07 广州市鸿芯微电子有限公司 Self-starting serial boot program loading and reading system and method thereof
US8638838B1 (en) * 2012-08-27 2014-01-28 Teradici Corporation Differential serial interface for supporting a plurality of differential serial interface standards
CN106301845A (en) * 2015-05-30 2017-01-04 四川泰瑞创通讯技术股份有限公司 Switch logger module
CN107196709A (en) * 2015-06-19 2017-09-22 安徽华速达电子科技有限公司 A kind of optical network apparatus for possessing multiplex roles transmission
CN105305185A (en) * 2015-09-24 2016-02-03 上海斐讯数据通信技术有限公司 Connector base for multiplex serial interface and I2C interface
CN115016360A (en) * 2022-06-30 2022-09-06 苏州浪潮智能科技有限公司 Data transmission control circuit, method, equipment and storage medium

Also Published As

Publication number Publication date
CN116506378A (en) 2023-07-28

Similar Documents

Publication Publication Date Title
US7028125B2 (en) Hot-pluggable peripheral input device coupling system
US7275935B2 (en) Universal backplane connection or computer storage chassis
US7734858B2 (en) Fabric interposer for blade compute module systems
CN102724093B (en) A kind of ATCA machine frame and IPMB method of attachment thereof
US20110119424A1 (en) Server management system
EP2031884B1 (en) Communication device, advanced mezzanine card and power supply method thereof
CN108345562B (en) Multi-path server and signal processing method thereof
CN103092735A (en) Method for updating node states
CN203858506U (en) Card-inserting type automated test equipment based on network backplane bus
CN116506378B (en) Switch equipment, serial communication interface switching method and device thereof
CN111722149A (en) Cable detection equipment, method and system and computer readable storage medium
WO2023125108A1 (en) Controller, control system, and communication method for controller
CN101894091B (en) Method and system for single board I2C expansion and ID check
CN108415866A (en) Intelligent platform management controller
CN209895327U (en) Board card system compatible with different storage devices
CN103677152A (en) Storage server and rack system thereof
CN100595715C (en) Signal processing circuit
CN112560371B (en) Mainboard, onboard power supply and electronic equipment
CN210776487U (en) Rack rack management system
CN218124727U (en) Control device and control system
CN210721098U (en) Industrial PC (personal computer) level Ethernet controller for butting batch electronic tags
US8924602B2 (en) Rack server with a ground element having a plurality of protrusions for interconnecting a plurality of power supply backplanes
CN217333335U (en) Multi-cascade server system
CN210143009U (en) Fixed satellite communication equipment main control board
CN206833416U (en) Display module controls switching system

Legal Events

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