WO2012059066A1 - Method and system for locating fault in serial port - Google Patents

Method and system for locating fault in serial port Download PDF

Info

Publication number
WO2012059066A1
WO2012059066A1 PCT/CN2011/081786 CN2011081786W WO2012059066A1 WO 2012059066 A1 WO2012059066 A1 WO 2012059066A1 CN 2011081786 W CN2011081786 W CN 2011081786W WO 2012059066 A1 WO2012059066 A1 WO 2012059066A1
Authority
WO
WIPO (PCT)
Prior art keywords
serial port
boards
board
main control
control board
Prior art date
Application number
PCT/CN2011/081786
Other languages
French (fr)
Chinese (zh)
Inventor
蔡雪娟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012059066A1 publication Critical patent/WO2012059066A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults

Definitions

  • the present invention relates to the field of communications, and in particular to a method and system for fault diagnosis of a serial port.
  • the main control board is mainly located through the Ethernet interface on the backplane side or the HDLC bus.
  • each board has a serial port for debugging.
  • the serial port socket is connected to the board, and then the serial port cable is connected to the personal computer.
  • the HyperTerminal is used to log in to the board. Since the debugging serial port is only connected to the socket, when the device is running as a whole, the serial port information cannot be viewed.
  • the present invention provides a serial port positioning fault method and system to solve at least a serial port fault location problem after a fault occurs on a backplane side Ethernet port or a HDLC bus in a related art. The problem. According to an aspect of the present invention, a serial port location failure method is provided.
  • the method for locating a serial port includes: one or more boards use the serial port on the one or more boards to obtain serial port debugging commands from the main control board through the backplane; one or more boards send according to serial port debugging commands.
  • the serial port information is sent to the main control board to locate the serial port fault on one or more boards.
  • the method further includes: when one or more boards fail, the master control The board determines whether the Ethernet port or the advanced data link connected to one or more boards controls the HDLC.
  • the main control board sends the serial port to one or more boards through the backplane according to the received command.
  • Debug command Preferably, one or more boards use the serial port on the one or more boards to obtain serial port debugging commands from the main control board through the backplane. The one or more boards use the serial ports on the one or more boards.
  • the serial port debugging command is obtained from the bus of the main control board connected to the serial bus of the backboard through the serial bus of the backplane connected thereto.
  • one or more boards use the serial port on the one or more boards to obtain serial port debugging commands from the main control board through the backplane.
  • the one or more boards use the serial ports on the one or more boards.
  • the serial debugging command is obtained from the I2C of the main control board connected to the internal integrated circuit I2C of the backplane through the I2C of the backplane connected thereto.
  • one or more boards use the serial port of the one or more boards to obtain serial port debugging commands from the I2C of the main board connected to the I2C of the back board through the I2C of the backplane connected thereto: Multiple boards use the serial port on one or more boards to pass through the serial port switch chip on one or more boards.
  • the I2C that receives the backplane is forwarded by I2C of one or more boards connected to the I2C of the backplane. Give serial port debugging commands to the serial port switch chip.
  • a serial port location fault system includes: one or more boards, wherein one or more boards include: an acquisition module, configured to use the serial port on the board on which the board is located to obtain serial port debugging from the main control board through the back board
  • the positioning module is configured to send the corresponding serial port information to the main control board according to the serial port debugging command to perform serial port positioning fault on one or more boards.
  • the system further includes: a main control board, wherein: the main control board includes: a judging module, configured to determine, when one or more boards fail, determine an Ethernet port or an advanced port connected to one or more boards
  • the data link controls whether the HDLC is valid.
  • the sending module is configured to send a serial port debugging command to one or more boards through the backplane according to the received command when the determination result is no.
  • the obtaining module comprises: a first acquiring sub-module, configured to use a serial port bus of the backboard connected to the board through which the serial port on the board is located, and a bus of the main control board connected from the serial bus of the backboard Get serial debugging commands.
  • the obtaining module includes: a second acquiring sub-module, configured to obtain a serial port from the I2C of the main control board connected to the I2C of the backplane by using the serial port on the board on which the board is located through the I2C of the backplane connected to the board Debug command.
  • the second obtaining module further includes: a receiving unit configured to use the serial port on the board on which the board is located to pass through the serial port switch chip on the board where the board is located, and the I2C receiving the back board is connected to the I2C of the back board by one or more
  • the I2C of the board is forwarded to the serial port debugging command of the serial port switch chip.
  • the board uses the serial port to obtain the serial port debugging command from the main control board through the serial port, and sends the corresponding serial port information to the main control board to perform serial port positioning fault on the main board according to the command, which overcomes the related technology.
  • the port or HDLC can perform the fault of serial port positioning fault on the board, which improves the flexibility of serial port positioning faults.
  • FIG. 1 is a flow chart of a serial port positioning failure method according to an embodiment of the present invention
  • FIG. 2 is a serial port topology diagram according to an embodiment of the present invention
  • FIG. 4 is a block diagram of a method for detecting a serial port in accordance with a preferred embodiment of the present invention
  • FIG. 5 is a block diagram showing a structure of a board according to an embodiment of the present invention
  • FIG. 6 is a block diagram of a board according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of electrical connection between a main control board and a backboard according to an embodiment of the present invention
  • FIG. 8 is a structural block diagram of a serial port fault location system according to an embodiment of the present invention.
  • Step S102 Using one or more boards
  • the serial port of the one or more boards obtains the serial port debugging command from the main control board through the backplane.
  • Step S104 One or more boards send corresponding serial port information to the main control board for one or more according to the serial port debugging command.
  • the board is faulty in serial port positioning.
  • the HDLC can perform the fault of the serial port positioning fault on the board, which improves the flexibility of the serial port positioning fault.
  • the method further includes: when one or more boards fail, the main control board determines an Ethernet port or a high-level data link control (High-level Data Link) connected to one or more boards. Control, or HDLC for short, is valid. If the judgment is no, the main control board sends a serial debugging command to one or more boards through the backplane according to the received command.
  • the serial port debugging command it is first determined whether the Ethernet port or the HDLC is valid, and the accuracy of the serial port positioning fault is improved.
  • a preferred embodiment of step S104 is described below.
  • One or more boards use the serial port of the one or more boards to obtain serial debugging commands from the bus of the main control board connected to the serial port bus of the back board through the serial bus of the back board connected thereto.
  • the serial port debugging command is transmitted through the bus connected to the single board, the back board, and the main control board, which overcomes the defect of relying on the Ethernet port or the HDLC for fault location, and improves the flexibility of fault location. Reduced equipment costs.
  • a preferred embodiment of step S104 is described below.
  • One or more boards use the serial port of the one or more boards through the inter-integrated circuit (Inter-Integrated Circuit, I2C) of the backplane connected thereto, from the main control board connected to the I2C of the backplane.
  • I2C Inter-Integrated Circuit
  • I2C obtains serial debugging commands.
  • the transmission of the serial port debugging command is performed by using the existing bus, which overcomes the defect of relying on the Ethernet port or the HDLC for fault location, improves the flexibility of fault location, and reduces the equipment cost.
  • one or more boards use the serial port of the one or more boards to obtain serial port debugging commands from the I2C of the main board connected to the I2C of the back board through the I2C of the backplane connected thereto: Multiple boards use the serial port on one or more boards to pass through the serial port switch chip on one or more boards.
  • the I2C that receives the backplane is forwarded by I2C of one or more boards connected to the I2C of the backplane.
  • the first embodiment of the present invention provides a method for locating a serial port.
  • the serial port of all the boards in the subrack is connected to the CPU serial port of the main control board through a bus.
  • I2C Inter- Integrated Circuit
  • FIG. 2 is a serial port topology diagram according to an embodiment of the present invention.
  • the specific topology diagram is shown in FIG. 2 .
  • the common single board debugging serial port is connected to the back board through a switch chip, and the back board provides a serial port bus, and the main control board CPU provides a serial port and a back board serial port bus.
  • FIG. 3 is a schematic diagram of electrical connection between a serial port and a backplane serial bus in the board according to an embodiment of the present invention.
  • the serial port connection of the system in the ordinary board is shown in FIG. 3, including the following Aspects: 1: Design the main chip. Add a serial port switch chip to the board. This is a controllable serial port switch chip.
  • the CPU controls the on/off of the serial port transceiver by controlling the EN pin of the chip. By default, the serial port is closed.
  • the system serial port uses the main control board to communicate with the board through the interface manager I2C interface on the board, and sends the command to open the serial level chip.
  • the serial port on the board uses the interface manager on the board to communicate with the CPU, and sends the command to open the serial level chip to the CPU.
  • the CPU controls the serial port transceiver to turn on and off by controlling the enable pin of the serial port switch chip.
  • the main control board sends a serial port open debugging command to the board (via the interface manager I2C (Inter-Integrated Circuit) bus notification or direct backplane hard-wired control), the board The serial port information is output and controlled through the unified serial port of the main control board.
  • Embodiment 2 In this embodiment, a method for fault diagnosis of a serial port is provided.
  • FIG. 4 is a flowchart of a method for fault diagnosis of a serial port according to a preferred embodiment of the present invention.
  • Step S402 Determine if there is a malfunction. If the result of the determination is yes, step S404 is performed, otherwise, step S406 is performed. Step S404: Determine whether the Ethernet is valid. If the result of the determination is yes, step S408 is performed, otherwise, step S406 is performed. Step S406: Exit the process. Step S408: Determine whether it is necessary to open the board debugging serial port. If the result of the determination is yes, step S410 is performed, otherwise, step S406 is performed. Step S410: The host sends a serial port open command to the board through the main control board and the system I2C bus.
  • Step 412 The host passes the serial port. Read the fault information.
  • This embodiment provides a serial port location fault system, the system includes: one or more boards, and FIG. 5 is a structural block diagram of a board according to an embodiment of the present invention, where one or more boards include: an obtaining module 52 And the positioning module 54 is described in detail below.
  • the obtaining module 52 is configured to obtain a serial debugging command from the main control board through the backplane through the serial port on the board, and the positioning module 54 is connected to the obtaining module 52.
  • FIG. 6 is a block diagram of a preferred structure of a serial port location fault system according to an embodiment of the present invention.
  • the system includes: a main control board, the main control board includes: a judging module 62 and a sending module 64.
  • the acquiring module 52 in the board 2 includes The first obtaining sub-module 522, the second obtaining sub-module 524, and the second obtaining sub-module 524 further include: a receiving unit 5242, which is described in detail below.
  • the system further includes: a main control board 4, wherein, the main The control board includes: a judging module 62, configured to determine whether an Ethernet port or an HDLC connected to one or more boards is valid when one or more boards are faulty; and the sending module 64 is connected to the judging module 62, setting When the determination result of the determination module 62 is no, the serial port debugging command is sent to one or more boards through the backplane according to the received command.
  • the obtaining module 52 of the board 2 includes: a first acquiring sub-module 522, configured to use a serial port bus of the backboard connected to the board through which the serial port on the board is located, and a main bus connected from the serial port bus of the backboard The bus of the control board obtains serial debugging commands.
  • the obtaining module 52 of the board 2 includes: a second obtaining sub-module 524, configured to use the I2C of the backplane connected to the board where the board is located, and the main control board connected to the I2C of the backboard. I2C gets serial debugging commands.
  • the second obtaining module 524 further includes: a receiving unit 5242, configured to use the serial port on the board where the board is located to pass the serial port switch chip on the board where the board is located, and receive the I2C of the back board through one or more connected to the I2C of the back board.
  • the I2C of the board is forwarded to the serial port debugging command of the serial port switch chip.
  • Embodiment 3 In this embodiment, a serial port positioning fault system is provided.
  • the debug serial port on the board is connected to the serial port serial bus, and the serial port bus on the back board and the CPU serial port on the main control board are electrically connected. Connection;
  • the main control board interface manager I2C on the board is connected to the backplane I2C bus, and the backplane I2C bus is electrically connected to the I2C bus on the main control board.
  • the main control board controls the opening and closing of the serial port of the board through I2C.
  • FIG. 7 is a schematic diagram showing the electrical connection relationship between the main control board and the back board according to an embodiment of the present invention, as shown in FIG. 7.
  • the serial port is the main debugging channel of the CPU (Central Processing Unit).
  • the shell under the serial port is a very good channel for board debugging and fault location.
  • the serial port of the system not only the debug serial port on the board should be led to the debugging socket in the board, but also to the main control board through the back board, and the resistor is used as a compatible design.
  • the serial port design can be debugged in the board in the following manner:
  • the method for designing the compatibility between the debugging serial port and the system serial port by using the resistor is: the in-board CPU debugging serial port has an electrical connection relationship with the serial port switch chip;
  • the internal serial port switch chip has an electrical connection relationship with the backplane serial bus.
  • the serial port opening and closing design on the serial port switch chip in the board can be performed in the following manner.
  • the interface manager and the CPU in the board, the backplane I2C bus, and the three are enabled to control the design of the serial port switch chip:
  • the intra-board interface manager I2C has an electrical connection relationship with the backplane I2C bus;
  • the intra-board interface manager It has an electrical connection relationship with the CPU;
  • the CPU in the board has an I/O and an electrical connection relationship between the serial port switch chip enable pin;
  • the electrical connection relationship between the main control board and the back board can be designed as follows.
  • FIG. 8 is a block diagram of a serial port fault location system according to an embodiment of the present invention.
  • the system includes: a host 82, a network cable 84, and a system board 86 ( The main control board), the back board 88 and the single board 89 are described in detail below.
  • the host 82 cooperates with the network cable 84 to provide a network port.
  • the universal computer network port is connected to the network cable 84 for running the loading tool software, providing user operation and control, generating loading timing, and transmitting loading data.
  • the setting of the tool software is matched with the debugging serial port of the board 89.
  • the network cable 84 is used to connect the host 82 and the main control board 86. The signal levels of the two are the same, and no switching circuit is required on the cable.
  • the main control board 86 cooperates with the network cable 84 to provide a network port.
  • the host 82 communicates with the main control board 86 through the network cable 84.
  • the serial port of the main control board CPU is connected to the serial port bus of the backplane 88.
  • the CPU I2C interface on the main control board 86 is The backplane 88 I2C bus is connected.
  • the backplane 88, the I2C bus on the main control board 86 is connected to the I2C bus on the backplane 88, and the I2C bus on the backplane 88 is connected to the I2C on each board 89 for issuing a serial port switch command, the main control board.
  • Serial bus on 86 The serial bus on the backplane 88 is connected to the serial port on the backplane 88.
  • the main control board 86 and the single board 89 perform fault location communication.
  • the board 89, the debug serial port on the board 89 is connected to the serial bus on the back board 88, and the I2C on the board 89 is connected to the I2C bus on the back board 88.
  • the board is not limited to one single board, and may be multiple, depending on the specific conditions of the system.
  • the method for the serial port location fault is obtained by the above-mentioned embodiment.
  • the method uses the serial port to obtain a serial port debugging command from the main control board through the backplane, and sends corresponding serial port information to the main control board according to the command.
  • the board performs the serial port locating fault, which overcomes the defect that the Ethernet port or the HDLC can perform the serial port positioning fault on the board in the related art, improves the flexibility of the serial port positioning fault, and reduces the equipment cost of the system.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

Disclosed are a method and system for locating a fault in a serial port. The method includes: acquiring, by one or more single boards, a serial port debug command from a main control board via a backplane using a serial port on the one or more single boards; sending, by the one or more single boards, corresponding serial port information to the main control board according to the serial port debug command so as to carry out serial port fault location in the one or more single boards. The flexibility of locating fault in the serial port can be improved by way of the present invention.

Description

串口定位故障方法及系统 技术领域 本发明涉及通信领域, 具体而言, 涉及一种串口定位故障方法及系统。 背景技术 在通讯设备中, 当单板出现故障时, 主控板主要通过背板侧以太网口或 HDLC总 线进行故障定位, 默认情况下每块单板都会有一个调试用的串口, 这个串口与板内串 口插座相连, 再由串口缆线连接到个人电脑上, 在定位故障时, 通过操作超级终端登 陆到单板上。 由于这个调试串口只连接到插座, 所以当设备整体运行时无法看串口信 息, 当某块板出现问题时, 单独引出串口也需要拔去旁边的单板 (影响业务) 等, 破 坏环境, 很不方便, 而且串口插座不仅容易损坏, 更有甚者损坏焊盘, 破坏单板。 相关技术中, 当背板侧以太网口断链或 HDLC总线出现故障之后, 无法通过串口 对单板进行串口故障定位。 发明内容 针对相关技术中当背板侧以太网口断链或 HDLC总线出现故障之后, 无法通过串 口对单板进行串口故障定位问题, 本发明提供了一种串口定位故障方法及系统, 以至 少解决该问题。 根据本发明的一个方面, 提供了一种串口定位故障方法。 根据本发明的串口定位故障方法包括: 一个或多个单板使用该一个或多个单板上 的串口通过背板从主控板获取串口调试命令; 一个或多个单板根据串口调试命令发送 相应的串口信息至主控板对一个或多个单板进行串口定位故障。 优选地, 在一个或多个单板使用该一个或多个单板上的串口通过背板从主控板获 取串口调试命令之前, 还包括: 在一个或多个单板出现故障时, 主控板判断与一个或 多个单板相连的以太网口或高级数据链路控制 HDLC是否有效; 如果判断结果为否, 主控板根据接收到的指令通过背板向一个或多个单板发送串口调试命令。 优选地, 一个或多个单板使用该一个或多个单板上的串口通过背板从主控板获取 串口调试命令包括: 一个或多个单板使用该一个或多个单板上的串口通过与其连接的 背板的串口总线, 从与背板的串口总线连接的主控板的总线获取串口调试命令。 优选地, 一个或多个单板使用该一个或多个单板上的串口通过背板从主控板获取 串口调试命令包括: 一个或多个单板使用该一个或多个单板上的串口通过与其连接的 背板的 I2C, 从与背板的内部集成电路 I2C相连的主控板的 I2C获取串口调试命令。 优选地, 一个或多个单板使用该一个或多个单板上的串口通过与其连接的背板的 I2C, 从与背板的 I2C相连的主控板的 I2C获取串口调试命令包括: 一个或多个单板使 用该一个或多个单板上的串口通过一个或多个单板上的串口开关芯片, 接收背板的 I2C经由与背板的 I2C相连的一个或多个单板的 I2C转发给串口开关芯片的串口调试 命令。 根据本发明的另一方面, 提供了一种串口定位故障系统。 根据本发明的串口定位故障系统包括: 一个或多个单板, 其中, 一个或多个单板 包括: 获取模块, 设置为使用其所在单板上的串口通过背板从主控板获取串口调试命 令; 定位模块, 设置为根据串口调试命令发送相应的串口信息至主控板对一个或多个 单板进行串口定位故障。 优选地, 上述系统还包括: 主控板, 其中, 主控板包括: 判断模块, 设置为在一 个或多个单板出现故障时, 判断与一个或多个单板相连的以太网口或高级数据链路控 制 HDLC是否有效; 发送模块, 设置为在判断结果为否时, 根据接收到的指令通过背 板向一个或多个单板发送串口调试命令。 优选地, 获取模块包括: 第一获取子模块, 设置为使用其所在单板上的串口通过 与其所在单板连接的背板的串口总线, 从与背板的串口总线连接的主控板的总线获取 串口调试命令。 优选地, 获取模块包括: 第二获取子模块, 设置为使用其所在单板上的串口通过 与其所在单板连接的背板的 I2C, 从与背板的 I2C相连的主控板的 I2C获取串口调试 命令。 优选地, 第二获取模块还包括: 接收单元, 设置为使用其所在单板上的串口通过 其所在单板上的串口开关芯片, 接收背板的 I2C经由与背板的 I2C相连的一个或多个 单板的 I2C转发给串口开关芯片的串口调试命令。 通过本发明, 采用单板使用串口通过背板从主控板获取串口调试命令, 并根据该 命令发送相应的串口信息至主控板对单板进行串口定位故障, 克服了相关技术中依赖 以太网口或 HDLC才能对单板进行串口定位故障的缺陷, 提高了串口定位故障的灵活 性。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的串口定位故障方法的流程图; 图 2是根据本发明实施例的串口拓扑图; 图 3是根据本发明实施例的板内调设串口与背板串口总线电气连接示意图; 图 4是根据本发明优选实施例的串口定位故障方法的流程图; 图 5是根据本发明实施例单板的结构框图; 图 6是根据本发明实施例的串口定位故障系统的优选的结构框图; 图 7是根据本发明实施例的主控板与背板电气连接关系示意图; 以及 图 8是根据本发明实施例的串口故障定位系统结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本实施例提供了一种串口定位故障方法, 图 1是根据本发明实施例的串口定位故 障方法的流程图, 如图 1所示, 该方法包括: 步骤 S102: —个或多个单板使用该一个或多个单板上的串口通过背板从主控板获 取串口调试命令; 步骤 S104: —个或多个单板根据串口调试命令发送相应的串口信息至主控板对一 个或多个单板进行串口定位故障。 通过上述步骤, 单板使用串口通过背板从主控板获取串口调试命令, 并根据该命 令发送相应的串口信息至主控板对单板进行串口定位故障, 克服了相关技术中依赖以 太网口或 HDLC才能对单板进行串口定位故障的缺陷,提高了串口定位故障的灵活性。 优选地, 在步骤 S102之前, 还包括: 在一个或多个单板出现故障时, 主控板判断 与一个或多个单板相连的以太网口或高级数据链路控制(High-level Data Link Control, 简称为 HDLC) 是否有效; 如果判断结果为否, 主控板根据接收到的指令通过背板向 一个或多个单板发送串口调试命令。 通过该优选实施例, 在发送串口调试命令之前, 首先判断以太网口或 HDLC是否有效, 提高了串口定位故障的准确性。 优选地,下面对步骤 S104中一个优选的实施方式进行说明。一个或多个单板使用 该一个或多个单板上的串口通过与其连接的背板的串口总线, 从与背板的串口总线连 接的主控板的总线获取串口调试命令。 通过该优选实施例, 通过单板、 背板和主控板 相连接的总线进行串口调试命令的传输, 克服了依赖以太网口或 HDLC进行故障定位 的缺陷, 提高了故障定位的灵活性, 并降低了设备成本。 优选地,下面对步骤 S104中一个优选的实施方式进行说明。一个或多个单板使用 该一个或多个单板上的串口通过与其连接的背板的内部集成电路 (Inter-Integrated Circuit, 简称为 I2C), 从与背板的 I2C相连的主控板的 I2C获取串口调试命令。 通过 该优选实施例, 采用现有的总线进行串口调试命令的传输, 克服了依赖以太网口或 HDLC进行故障定位的缺陷, 提高了故障定位的灵活性, 并降低了设备成本。 优选地, 一个或多个单板使用该一个或多个单板上的串口通过与其连接的背板的 I2C, 从与背板的 I2C相连的主控板的 I2C获取串口调试命令包括: 一个或多个单板使 用该一个或多个单板上的串口通过一个或多个单板上的串口开关芯片, 接收背板的 I2C经由与背板的 I2C相连的一个或多个单板的 I2C转发给串口开关芯片的串口调试 命令。 通过该优选实施例, 采用串口开关芯片控制串口是否接受串口调试命令, 提高 了串口故障定位的灵活性。 实施例一 本实施例提供了一种串口定位故障方法, 在本实施例中, 子架内所有单板的串口 通过总线形式连接到主控板 CPU串口。 当需要获取某块单板的串口信息时, 只需要通 过主控板给这块单板发送一个串口打开的调试命令 (通过接口管理器的 I2C (Inter- Integrated Circuit)总线通知或是直接背板硬连线控制), 则此单板的串口信息就可以通 过主控板上的统一串口进行输出和控制, 图 2是根据本发明实施例的串口拓扑图, 具 体拓扑图如图 2所示。 优选地, 普通单板调试串口通过一个开关芯片连接到背板, 背板提供串口总线, 主控板 CPU提供一个串口与背板串口总线相连。 在本实施例中, 图 3是根据本发明实施例的板内调设串口与背板串口总线电气连 接示意图, 如图 3所示, 普通单板内系统串口连接见附图 3, 包括如下几个方面: 1:设计主要芯片。在单板上增加一个串口开关芯片,这是一个可控串口开关芯片,The present invention relates to the field of communications, and in particular to a method and system for fault diagnosis of a serial port. In a communication device, when a board fails, the main control board is mainly located through the Ethernet interface on the backplane side or the HDLC bus. By default, each board has a serial port for debugging. The serial port socket is connected to the board, and then the serial port cable is connected to the personal computer. When the positioning is faulty, the HyperTerminal is used to log in to the board. Since the debugging serial port is only connected to the socket, when the device is running as a whole, the serial port information cannot be viewed. When a problem occurs in a certain board, the serial port needs to be pulled out to remove the adjacent board (affecting the service), etc., and the environment is not damaged. Convenient, and the serial port is not only easy to damage, but also damages the pad and damages the board. In the related art, after the Ethernet interface on the backplane side is broken or the HDLC bus is faulty, the serial port fault location cannot be performed on the board through the serial port. SUMMARY OF THE INVENTION The present invention provides a serial port positioning fault method and system to solve at least a serial port fault location problem after a fault occurs on a backplane side Ethernet port or a HDLC bus in a related art. The problem. According to an aspect of the present invention, a serial port location failure method is provided. The method for locating a serial port according to the present invention includes: one or more boards use the serial port on the one or more boards to obtain serial port debugging commands from the main control board through the backplane; one or more boards send according to serial port debugging commands. The serial port information is sent to the main control board to locate the serial port fault on one or more boards. Preferably, before the one or more boards use the serial port of the one or more boards to obtain the serial port debugging command from the main control board through the backplane, the method further includes: when one or more boards fail, the master control The board determines whether the Ethernet port or the advanced data link connected to one or more boards controls the HDLC. If the judgment result is no, the main control board sends the serial port to one or more boards through the backplane according to the received command. Debug command. Preferably, one or more boards use the serial port on the one or more boards to obtain serial port debugging commands from the main control board through the backplane. The one or more boards use the serial ports on the one or more boards. The serial port debugging command is obtained from the bus of the main control board connected to the serial bus of the backboard through the serial bus of the backplane connected thereto. Preferably, one or more boards use the serial port on the one or more boards to obtain serial port debugging commands from the main control board through the backplane. The one or more boards use the serial ports on the one or more boards. The serial debugging command is obtained from the I2C of the main control board connected to the internal integrated circuit I2C of the backplane through the I2C of the backplane connected thereto. Preferably, one or more boards use the serial port of the one or more boards to obtain serial port debugging commands from the I2C of the main board connected to the I2C of the back board through the I2C of the backplane connected thereto: Multiple boards use the serial port on one or more boards to pass through the serial port switch chip on one or more boards. The I2C that receives the backplane is forwarded by I2C of one or more boards connected to the I2C of the backplane. Give serial port debugging commands to the serial port switch chip. According to another aspect of the present invention, a serial port location fault system is provided. The serial port location fault system according to the present invention includes: one or more boards, wherein one or more boards include: an acquisition module, configured to use the serial port on the board on which the board is located to obtain serial port debugging from the main control board through the back board The positioning module is configured to send the corresponding serial port information to the main control board according to the serial port debugging command to perform serial port positioning fault on one or more boards. Preferably, the system further includes: a main control board, wherein: the main control board includes: a judging module, configured to determine, when one or more boards fail, determine an Ethernet port or an advanced port connected to one or more boards The data link controls whether the HDLC is valid. The sending module is configured to send a serial port debugging command to one or more boards through the backplane according to the received command when the determination result is no. Preferably, the obtaining module comprises: a first acquiring sub-module, configured to use a serial port bus of the backboard connected to the board through which the serial port on the board is located, and a bus of the main control board connected from the serial bus of the backboard Get serial debugging commands. Preferably, the obtaining module includes: a second acquiring sub-module, configured to obtain a serial port from the I2C of the main control board connected to the I2C of the backplane by using the serial port on the board on which the board is located through the I2C of the backplane connected to the board Debug command. Preferably, the second obtaining module further includes: a receiving unit configured to use the serial port on the board on which the board is located to pass through the serial port switch chip on the board where the board is located, and the I2C receiving the back board is connected to the I2C of the back board by one or more The I2C of the board is forwarded to the serial port debugging command of the serial port switch chip. The board uses the serial port to obtain the serial port debugging command from the main control board through the serial port, and sends the corresponding serial port information to the main control board to perform serial port positioning fault on the main board according to the command, which overcomes the related technology. The port or HDLC can perform the fault of serial port positioning fault on the board, which improves the flexibility of serial port positioning faults. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a flow chart of a serial port positioning failure method according to an embodiment of the present invention; FIG. 2 is a serial port topology diagram according to an embodiment of the present invention; FIG. 4 is a block diagram of a method for detecting a serial port in accordance with a preferred embodiment of the present invention; FIG. 5 is a block diagram showing a structure of a board according to an embodiment of the present invention; FIG. 6 is a block diagram of a board according to an embodiment of the present invention; FIG. 7 is a schematic structural diagram of electrical connection between a main control board and a backboard according to an embodiment of the present invention; and FIG. 8 is a structural block diagram of a serial port fault location system according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. This embodiment provides a method for locating a serial port. FIG. 1 is a flowchart of a method for locating a serial port according to an embodiment of the present invention. As shown in FIG. 1 , the method includes: Step S102: Using one or more boards The serial port of the one or more boards obtains the serial port debugging command from the main control board through the backplane. Step S104: One or more boards send corresponding serial port information to the main control board for one or more according to the serial port debugging command. The board is faulty in serial port positioning. Through the above steps, the board uses the serial port to obtain the serial port debugging command from the main control board through the backplane, and sends the corresponding serial port information to the main control board to perform serial port positioning faults on the main board. This overcomes the related technology. Or the HDLC can perform the fault of the serial port positioning fault on the board, which improves the flexibility of the serial port positioning fault. Preferably, before step S102, the method further includes: when one or more boards fail, the main control board determines an Ethernet port or a high-level data link control (High-level Data Link) connected to one or more boards. Control, or HDLC for short, is valid. If the judgment is no, the main control board sends a serial debugging command to one or more boards through the backplane according to the received command. With the preferred embodiment, before the serial port debugging command is sent, it is first determined whether the Ethernet port or the HDLC is valid, and the accuracy of the serial port positioning fault is improved. Preferably, a preferred embodiment of step S104 is described below. One or more boards use the serial port of the one or more boards to obtain serial debugging commands from the bus of the main control board connected to the serial port bus of the back board through the serial bus of the back board connected thereto. With the preferred embodiment, the serial port debugging command is transmitted through the bus connected to the single board, the back board, and the main control board, which overcomes the defect of relying on the Ethernet port or the HDLC for fault location, and improves the flexibility of fault location. Reduced equipment costs. Preferably, a preferred embodiment of step S104 is described below. One or more boards use the serial port of the one or more boards through the inter-integrated circuit (Inter-Integrated Circuit, I2C) of the backplane connected thereto, from the main control board connected to the I2C of the backplane. I2C obtains serial debugging commands. Through the preferred embodiment, the transmission of the serial port debugging command is performed by using the existing bus, which overcomes the defect of relying on the Ethernet port or the HDLC for fault location, improves the flexibility of fault location, and reduces the equipment cost. Preferably, one or more boards use the serial port of the one or more boards to obtain serial port debugging commands from the I2C of the main board connected to the I2C of the back board through the I2C of the backplane connected thereto: Multiple boards use the serial port on one or more boards to pass through the serial port switch chip on one or more boards. The I2C that receives the backplane is forwarded by I2C of one or more boards connected to the I2C of the backplane. Give serial port debugging commands to the serial port switch chip. Through the preferred embodiment, the serial port switch chip is used to control whether the serial port accepts the serial port debugging command, thereby improving the flexibility of the serial port fault location. The first embodiment of the present invention provides a method for locating a serial port. In this embodiment, the serial port of all the boards in the subrack is connected to the CPU serial port of the main control board through a bus. When you need to obtain the serial port information of a board, you only need to send a serial port open debugging command to the board through the main control board (via the interface manager's I2C (Inter- Integrated Circuit) bus notification or direct backplane. The hard disk connection control, the serial port information of the board can be output and controlled through the unified serial port on the main control board. FIG. 2 is a serial port topology diagram according to an embodiment of the present invention. The specific topology diagram is shown in FIG. 2 . Preferably, the common single board debugging serial port is connected to the back board through a switch chip, and the back board provides a serial port bus, and the main control board CPU provides a serial port and a back board serial port bus. In this embodiment, FIG. 3 is a schematic diagram of electrical connection between a serial port and a backplane serial bus in the board according to an embodiment of the present invention. As shown in FIG. 3, the serial port connection of the system in the ordinary board is shown in FIG. 3, including the following Aspects: 1: Design the main chip. Add a serial port switch chip to the board. This is a controllable serial port switch chip.
CPU通过控制芯片 EN引脚, 控制芯片串口收发的开与关, 默认情况下关闭串口。 The CPU controls the on/off of the serial port transceiver by controlling the EN pin of the chip. By default, the serial port is closed.
2: 系统串口运用主控板利用单板上接口管理器 I2C接口与单板通讯, 下发打开串 口电平芯片的命令。 2: The system serial port uses the main control board to communicate with the board through the interface manager I2C interface on the board, and sends the command to open the serial level chip.
3: 板内串口运用单板上接口管理器通过与 CPU通讯, 将打开串口电平芯片的命 令送到 CPU; CPU通过控制串口开关芯片的使能引脚控制串口收发的开与关。 通过上述三个方面, 通过主控板给这块单板发送一个串口打开的调试命令 (通过 接口管理器的 I2C (Inter-Integrated Circuit)总线通知或是直接背板硬连线控制),单板 的串口信息通过主控板的统一串口进行输出和控制。 实施例二 在本实施例中, 提供了一种串口定位故障方法, 图 4是根据本发明优选实施例的 串口定位故障方法的流程图, 如图 4所示, 该方法包括如下步骤: 步骤 S402: 判断是否出现故障。 如果判断结果为是, 执行步骤 S404, 否则, 执 行步骤 S406。 步骤 S404: 判断以太网是否有效。 如果判断结果为是, 执行步骤 S408, 否则, 执行步骤 S406。 步骤 S406: 退出流程。 步骤 S408: 判断是否有需要打开单板调试串口。 如果判断结果为是, 执行步骤 S410, 否则, 执行步骤 S406。 步骤 S410: 主机通过主控板和系统 I2C总线, 对单板下发串口打开命令, 单板从 背板 I2C总线收到串口打开命令时, 打开单板上的调试串口; 步骤 412: 主机通过串口读取故障信息。 本实施例提供了一种串口定位故障系统, 该系统包括: 一个或多个单板, 图 5是 根据本发明实施例单板的结构框图, 其中, 一个或多个单板包括: 获取模块 52和定位 模块 54, 下面对上述结构进行详细描述: 获取模块 52, 设置为使用其所在单板上的串口通过背板从主控板获取串口调试命 令; 定位模块 54, 连接至获取模块 52, 设置为根据获取模块 52, 获取到的串口调试 命令发送相应的串口信息至主控板对一个或多个单板进行串口定位故障。 图 6是根据本发明实施例的串口定位故障系统的优选的结构框图, 该系统包括: 主控板, 该主控板包括: 判断模块 62和发送模块 64; 单板 2中的获取模块 52包括: 第一获取子模块 522、 第二获取子模块 524, 第二获取子模块 524还包括: 接收单元 5242, 下面对上述结构进行详细描述: 该系统还包括: 主控板 4, 其中, 主控板包括: 判断模块 62, 设置为在一个或多 个单板出现故障时, 判断与一个或多个单板相连的以太网口或 HDLC是否有效; 发送 模块 64, 连接至判断模块 62, 设置为在判断模块 62的判断结果为否时, 根据接收到 的指令通过背板向一个或多个单板发送串口调试命令。 单板 2中的获取模块 52包括: 第一获取子模块 522, 设置为使用其所在单板上的 串口通过与其所在单板连接的背板的串口总线, 从与背板的串口总线连接的主控板的 总线获取串口调试命令。 单板 2中的获取模块 52包括: 第二获取子模块 524, 设置为使用其所在单板上的 串口通过与其所在单板连接的背板的 I2C, 从与背板的 I2C相连的主控板的 I2C获取 串口调试命令。 第二获取模块 524还包括: 接收单元 5242, 设置为使用其所在单板上的串口通过 其所在单板上的串口开关芯片, 接收背板的 I2C经由与背板的 I2C相连的一个或多个 单板的 I2C转发给串口开关芯片的串口调试命令。 实施例三 本实施例中提供了一种串口定位故障系统, 在本实施例中, 将单板上的调试串口 连接到背板串口总线, 背板串口总线与主控板上的 CPU串口有电气连接; 单板上主控 板接口管理器 I2C连接到背板 I2C总线, 背板 I2C总线与主控板上 I2C总线有电器连 接。 主控板通过 I2C控制单板串口的开与关。 图 7是根据本发明实施例的主控板与背 板电气连接关系示意图, 如图 7所示。 在单板内, 串口作为 CPU ( Central Processing Unit) 的主要调试通道越来越重要, 尤其是使用 Linux操作系统后,串口下的 Shell是单板调试和故障定位的非常好的渠道。 作为系统串口, 不仅要将单板上的调试串口引到了板内调试插座, 也要通过背板引到 了主控板, 用电阻作兼容设计。 优选地, 可以采用如下方式在单板内调试串口设计: 在单板内, 采用电阻对调试 串口与系统串口进行兼容设计的方法为:板内 CPU调试串口与串口开关芯片有电气连 接关系; 板内串口开关芯片与背板串口总线有电气连接关系。 优选地, 可以采用如下方式进行板内串口开关芯片上串口开与关设计。 具体地, 单板内接口管理器和 CPU, 背板 I2C总线, 三者对串口开关芯片使能控制设计方式: 板内接口管理器 I2C与背板 I2C总线有电气连接关系;板内接口管理器与 CPU有电气 连接关系; 板内 CPU有一 I/O与串口开关芯片使能引脚有电气连接关系; 优选地, 可以采用如下方式进行主控板与背板电气连接关系设计。 具体地, 主控 板中 CPU、 串口插座与背板 I2C总线和串口总线设计方式: 主控板 CPU I2C接口与背 板 I2C总线有电气连接关系主控板 CPU串口与背板串口总线有电气连接关系; 实施例四 在本实施例中提供了一种系统串口故障定位系统, 图 8是根据本发明实施例的串 口故障定位系统结构框图, 该系统包括: 主机 82, 网线 84、 系统板 86 (主控板)、 背 板 88和单板 89, 下面对上述结构进行详细描述: 主机 82, 与网线 84相配合,提供一个网口。 以通用的计算机网口与网线 84连接, 用于运行加载工具软件, 提供用户操作和控制, 产生加载时序, 传送加载数据。 工具 软件的设置与单板 89的调试串口相配合。 网线 84, 用于将主机 82和主控板 86连接起来, 两者的信号电平相同, 电缆上不 需要开关电路。 主控板 86, 与网线 84配合, 提供一个网口, 主机 82通过网线 84与主控板 86通 讯; 主控板 CPU串口与背板 88串口总线相连; 主控板 86 上的 CPU I2C接口与背板 88 I2C总线相连。 背板 88,主控板 86上的 I2C总线与背板 88 上的 I2C总线相连,背板 88 上的 I2C 总线与各个单板 89上的 I2C相连, 用于下发串口开关命令, 主控板 86上的串口总线 与背板 88上的串口总线相连, 背板 88上的串口总线与各个单板 89上的串口线相连, 用于主控板 86与各个单板 89进行故障定位通讯。 单板 89,单板 89上的调试串口与背板 88上的串口总线相连接,单板 89 上的 I2C 与背板 88 上的 I2C总线相连。 需要说明的是, 这里的单板不限于一个单板, 可以是 多个, 视系统具体情况而定。 通过上述实施例, 提供了一种串口定位故障方法及系统, 该方法通过单板使用串 口通过背板从主控板获取串口调试命令, 并根据该命令发送相应的串口信息至主控板 对单板进行串口定位故障, 克服了相关技术中依赖以太网口或 HDLC才能对单板进行 串口定位故障的缺陷, 提高了串口定位故障的灵活性, 同时降低了系统的设备成本。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技术人 员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的任何 修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 3: The serial port on the board uses the interface manager on the board to communicate with the CPU, and sends the command to open the serial level chip to the CPU. The CPU controls the serial port transceiver to turn on and off by controlling the enable pin of the serial port switch chip. Through the above three aspects, the main control board sends a serial port open debugging command to the board (via the interface manager I2C (Inter-Integrated Circuit) bus notification or direct backplane hard-wired control), the board The serial port information is output and controlled through the unified serial port of the main control board. Embodiment 2 In this embodiment, a method for fault diagnosis of a serial port is provided. FIG. 4 is a flowchart of a method for fault diagnosis of a serial port according to a preferred embodiment of the present invention. As shown in FIG. 4, the method includes the following steps: Step S402 : Determine if there is a malfunction. If the result of the determination is yes, step S404 is performed, otherwise, step S406 is performed. Step S404: Determine whether the Ethernet is valid. If the result of the determination is yes, step S408 is performed, otherwise, step S406 is performed. Step S406: Exit the process. Step S408: Determine whether it is necessary to open the board debugging serial port. If the result of the determination is yes, step S410 is performed, otherwise, step S406 is performed. Step S410: The host sends a serial port open command to the board through the main control board and the system I2C bus. When the board receives the serial port open command from the backplane I2C bus, the debug serial port is opened on the board. Step 412: The host passes the serial port. Read the fault information. This embodiment provides a serial port location fault system, the system includes: one or more boards, and FIG. 5 is a structural block diagram of a board according to an embodiment of the present invention, where one or more boards include: an obtaining module 52 And the positioning module 54 is described in detail below. The obtaining module 52 is configured to obtain a serial debugging command from the main control board through the backplane through the serial port on the board, and the positioning module 54 is connected to the obtaining module 52. The serial port debugging command is sent according to the obtaining module 52, and the corresponding serial port information is sent to the main control board to perform serial port positioning fault on one or more boards. FIG. 6 is a block diagram of a preferred structure of a serial port location fault system according to an embodiment of the present invention. The system includes: a main control board, the main control board includes: a judging module 62 and a sending module 64. The acquiring module 52 in the board 2 includes The first obtaining sub-module 522, the second obtaining sub-module 524, and the second obtaining sub-module 524 further include: a receiving unit 5242, which is described in detail below. The system further includes: a main control board 4, wherein, the main The control board includes: a judging module 62, configured to determine whether an Ethernet port or an HDLC connected to one or more boards is valid when one or more boards are faulty; and the sending module 64 is connected to the judging module 62, setting When the determination result of the determination module 62 is no, the serial port debugging command is sent to one or more boards through the backplane according to the received command. The obtaining module 52 of the board 2 includes: a first acquiring sub-module 522, configured to use a serial port bus of the backboard connected to the board through which the serial port on the board is located, and a main bus connected from the serial port bus of the backboard The bus of the control board obtains serial debugging commands. The obtaining module 52 of the board 2 includes: a second obtaining sub-module 524, configured to use the I2C of the backplane connected to the board where the board is located, and the main control board connected to the I2C of the backboard. I2C gets serial debugging commands. The second obtaining module 524 further includes: a receiving unit 5242, configured to use the serial port on the board where the board is located to pass the serial port switch chip on the board where the board is located, and receive the I2C of the back board through one or more connected to the I2C of the back board. The I2C of the board is forwarded to the serial port debugging command of the serial port switch chip. Embodiment 3 In this embodiment, a serial port positioning fault system is provided. In this embodiment, the debug serial port on the board is connected to the serial port serial bus, and the serial port bus on the back board and the CPU serial port on the main control board are electrically connected. Connection; The main control board interface manager I2C on the board is connected to the backplane I2C bus, and the backplane I2C bus is electrically connected to the I2C bus on the main control board. The main control board controls the opening and closing of the serial port of the board through I2C. FIG. 7 is a schematic diagram showing the electrical connection relationship between the main control board and the back board according to an embodiment of the present invention, as shown in FIG. 7. In the board, the serial port is the main debugging channel of the CPU (Central Processing Unit). Especially after using the Linux operating system, the shell under the serial port is a very good channel for board debugging and fault location. As the serial port of the system, not only the debug serial port on the board should be led to the debugging socket in the board, but also to the main control board through the back board, and the resistor is used as a compatible design. Preferably, the serial port design can be debugged in the board in the following manner: In the single board, the method for designing the compatibility between the debugging serial port and the system serial port by using the resistor is: the in-board CPU debugging serial port has an electrical connection relationship with the serial port switch chip; The internal serial port switch chip has an electrical connection relationship with the backplane serial bus. Preferably, the serial port opening and closing design on the serial port switch chip in the board can be performed in the following manner. Specifically, the interface manager and the CPU in the board, the backplane I2C bus, and the three are enabled to control the design of the serial port switch chip: the intra-board interface manager I2C has an electrical connection relationship with the backplane I2C bus; the intra-board interface manager It has an electrical connection relationship with the CPU; the CPU in the board has an I/O and an electrical connection relationship between the serial port switch chip enable pin; preferably, the electrical connection relationship between the main control board and the back board can be designed as follows. Specifically, the main control board CPU, serial port socket and backplane I2C bus and serial bus design mode: main control board CPU I2C interface and backplane I2C bus have electrical connection relationship main control board CPU serial port and backplane serial bus have electrical connection The fourth embodiment of the present invention provides a system serial port fault location system. FIG. 8 is a block diagram of a serial port fault location system according to an embodiment of the present invention. The system includes: a host 82, a network cable 84, and a system board 86 ( The main control board), the back board 88 and the single board 89 are described in detail below. The host 82 cooperates with the network cable 84 to provide a network port. The universal computer network port is connected to the network cable 84 for running the loading tool software, providing user operation and control, generating loading timing, and transmitting loading data. The setting of the tool software is matched with the debugging serial port of the board 89. The network cable 84 is used to connect the host 82 and the main control board 86. The signal levels of the two are the same, and no switching circuit is required on the cable. The main control board 86 cooperates with the network cable 84 to provide a network port. The host 82 communicates with the main control board 86 through the network cable 84. The serial port of the main control board CPU is connected to the serial port bus of the backplane 88. The CPU I2C interface on the main control board 86 is The backplane 88 I2C bus is connected. The backplane 88, the I2C bus on the main control board 86 is connected to the I2C bus on the backplane 88, and the I2C bus on the backplane 88 is connected to the I2C on each board 89 for issuing a serial port switch command, the main control board. Serial bus on 86 The serial bus on the backplane 88 is connected to the serial port on the backplane 88. The main control board 86 and the single board 89 perform fault location communication. The board 89, the debug serial port on the board 89 is connected to the serial bus on the back board 88, and the I2C on the board 89 is connected to the I2C bus on the back board 88. It should be noted that the board is not limited to one single board, and may be multiple, depending on the specific conditions of the system. The method for the serial port location fault is obtained by the above-mentioned embodiment. The method uses the serial port to obtain a serial port debugging command from the main control board through the backplane, and sends corresponding serial port information to the main control board according to the command. The board performs the serial port locating fault, which overcomes the defect that the Ethernet port or the HDLC can perform the serial port positioning fault on the board in the related art, improves the flexibility of the serial port positioning fault, and reduces the equipment cost of the system. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种串口定位故障方法, 包括: 1. A method for serial port location failure, including:
一个或多个单板使用该一个或多个单板上的串口通过背板从主控板获取串 口调试命令;  One or more boards use the serial ports on the one or more boards to obtain serial debugging commands from the main control board through the backplane.
所述一个或多个单板根据所述串口调试命令发送相应的串口信息至所述主 控板对所述一个或多个单板进行串口定位故障。  The one or more boards send the corresponding serial port information to the main control board to perform serial port positioning failure on the one or more boards according to the serial port debugging command.
2. 根据权利要求 1所述的方法, 其中, 在所述一个或多个单板使用该一个或多个 单板上的串口通过背板从主控板获取串口调试命令之前, 还包括: The method according to claim 1, wherein before the one or more boards use the serial port on the one or more boards to obtain a serial debugging command from the main control board through the backplane, the method further includes:
在所述一个或多个单板出现故障时, 所述主控板判断与所述一个或多个单 板相连的以太网口或高级数据链路控制 HDLC是否有效;  When the one or more boards are faulty, the main control board determines whether an Ethernet port or an advanced data link control HDLC connected to the one or more boards is valid;
如果判断结果为否, 所述主控板根据接收到的指令通过所述背板向所述一 个或多个单板发送串口调试命令。  If the result of the determination is no, the main control board sends a serial port debugging command to the one or more boards through the backplane according to the received command.
3. 根据权利要求 1所述的方法, 其中, 所述一个或多个单板使用该一个或多个单 板上的串口通过背板从主控板获取串口调试命令包括: The method of claim 1, wherein the one or more boards use the serial port on the one or more boards to obtain serial port debugging commands from the main control board through the backplane, including:
所述一个或多个单板使用该一个或多个单板上的串口通过与其连接的所述 背板的串口总线, 从与所述背板的串口总线连接的所述主控板的总线获取所述 串口调试命令。  The one or more boards obtain the bus from the main control board connected to the serial bus of the backboard by using a serial port of the one or more boards through a serial bus of the backplane connected thereto The serial port debugging command.
4. 根据权利要求 1所述的方法, 其中, 所述一个或多个单板使用该一个或多个单 板上的串口通过背板从主控板获取串口调试命令包括: The method of claim 1, wherein the one or more boards use the serial port on the one or more boards to obtain serial port debugging commands from the main control board through the backplane, including:
所述一个或多个单板使用该一个或多个单板上的串口通过与其连接的所述 背板的 I2C, 从与所述背板的内部集成电路 I2C相连的所述主控板的 I2C获取 所述串口调试命令。  The one or more boards use the I2C of the backplane connected thereto through the serial port of the one or more boards, and the I2C of the main control board connected to the internal integrated circuit I2C of the backplane Obtain the serial debugging command.
5. 根据权利要求 4所述的方法, 其中, 所述一个或多个单板使用该一个或多个单 板上的串口通过与其连接的所述背板的 I2C, 从与所述背板的 I2C相连的所述 主控板的 I2C获取所述串口调试命令包括: The method according to claim 4, wherein the one or more boards use the serial port of the one or more boards through the I2C of the backplane connected thereto, from the backplane The I2C of the main control board connected to the I2C obtains the serial port debugging command, including:
所述一个或多个单板使用该一个或多个单板上的串口通过所述一个或多个 单板上的串口开关芯片, 接收所述背板的 I2C经由与所述背板的 I2C相连的所 述一个或多个单板的 I2C转发给所述串口开关芯片的所述串口调试命令。 一种串口定位故障系统, 包括: 一个或多个单板, 其中, 所述一个或多个单板 包括: The one or more boards use the serial port on the one or more boards to pass through the serial port switch chip on the one or more boards, and the I2C receiving the back board is connected to the I2C of the back board. The I2C of the one or more boards is forwarded to the serial port debugging command of the serial port switch chip. A serial port location fault system includes: one or more boards, where the one or more boards include:
获取模块, 设置为使用其所在单板上的串口通过背板从主控板获取串口调 试命令;  Obtain the module, set to use the serial port on the board where the board is located to obtain the serial port debugging command from the main control board through the backplane;
定位模块, 设置为根据所述串口调试命令发送相应的串口信息至所述主控 板对所述一个或多个单板进行串口定位故障。 根据权利要求 6所述的系统, 其中, 还包括: 主控板, 其中, 所述主控板包括: 判断模块, 设置为在所述一个或多个单板出现故障时, 判断与所述一个或 多个单板相连的以太网口或高级数据链路控制 HDLC是否有效;  The locating module is configured to send a corresponding serial port information to the main control board according to the serial port debugging command to perform serial port positioning failure on the one or more boards. The system according to claim 6, further comprising: a main control board, wherein: the main control board comprises: a judging module, configured to judge and the one when the one or more boards are faulty Whether the Ethernet port connected to multiple boards or the advanced data link controls whether the HDLC is valid.
发送模块, 设置为在判断结果为否时, 根据接收到的指令通过所述背板向 所述一个或多个单板发送串口调试命令。 根据权利要求 6所述的系统, 其中, 所述获取模块包括: 第一获取子模块, 设置为使用其所在单板上的串口通过与其所在单板连接 的所述背板的串口总线, 从与所述背板的串口总线连接的所述主控板的总线获 取所述串口调试命令。 根据权利要求 6所述的系统, 其中, 所述获取模块包括: 第二获取子模块, 设置为使用其所在单板上的串口通过与其所在单板连接 的所述背板的 I2C, 从与所述背板的 I2C相连的所述主控板的 I2C获取所述串 口调试命令。 根据权利要求 9所述的系统, 其中, 所述第二获取模块还包括:  The sending module is configured to send a serial port debugging command to the one or more boards through the backplane according to the received command when the determining result is no. The system of claim 6, wherein the obtaining module comprises: a first obtaining sub-module, configured to use a serial port of the backplane connected to the board on which the board is located, and The bus of the main control board connected to the serial bus of the backboard acquires the serial port debugging command. The system of claim 6, wherein the obtaining module comprises: a second acquiring sub-module, configured to use the I2C of the backplane connected to the board with the serial port on the board where the board is located, The I2C of the main control board connected to the I2C of the backplane acquires the serial port debugging command. The system of claim 9, wherein the second obtaining module further comprises:
接收单元, 设置为使用其所在单板上的串口通过其所在单板上的串口开关 芯片, 接收所述背板的 I2C经由与所述背板的 I2C相连的所述一个或多个单板 的 I2C转发给所述串口开关芯片的所述串口调试命令。  The receiving unit is configured to use the serial port on the board on which the board is located to pass through the serial port switch chip on the board where the board is located, and the I2C receiving the back board is connected to the one or more boards connected to the I2C of the back board. The I2C forwards the serial port debugging command to the serial port switch chip.
PCT/CN2011/081786 2010-11-04 2011-11-04 Method and system for locating fault in serial port WO2012059066A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010532906.X 2010-11-04
CN201010532906XA CN101997737A (en) 2010-11-04 2010-11-04 Method for positioning errors of serial port and system

Publications (1)

Publication Number Publication Date
WO2012059066A1 true WO2012059066A1 (en) 2012-05-10

Family

ID=43787368

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081786 WO2012059066A1 (en) 2010-11-04 2011-11-04 Method and system for locating fault in serial port

Country Status (2)

Country Link
CN (1) CN101997737A (en)
WO (1) WO2012059066A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131087A (en) * 2019-12-13 2020-05-08 威创集团股份有限公司 Transmission system and signal transmission method for Ethernet physical layer signal
CN111880976A (en) * 2020-07-14 2020-11-03 深圳市同泰怡信息技术有限公司 RS232 communication serial port test method and device
CN117389851A (en) * 2023-10-20 2024-01-12 江苏普达迪泰科技有限公司 Method for monitoring communication data abnormality of drive measurement calibration serial port

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997737A (en) * 2010-11-04 2011-03-30 中兴通讯股份有限公司 Method for positioning errors of serial port and system
CN104348673B (en) * 2013-07-29 2019-06-14 中兴通讯股份有限公司 A kind of method of commissioning, master control borad and business board
CN107832193B (en) * 2017-11-13 2021-05-25 湖北三江航天红峰控制有限公司 Based on I2Multi-board-card state monitoring method for C bus
CN111966582B (en) * 2020-07-27 2022-09-13 安徽芯纪元科技有限公司 Cluster debugging system with multiple debugging objects and management method and debugging method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874252A (en) * 2005-06-01 2006-12-06 华为技术有限公司 Serial-port mapping system for debugging single board
CN101119233A (en) * 2007-08-17 2008-02-06 福建星网锐捷网络有限公司 Method, device and system for obtaining equipment running state
CN101247274A (en) * 2008-02-28 2008-08-20 华为技术有限公司 Method and equipment for acquiring serial port information
CN101534223A (en) * 2008-03-11 2009-09-16 中兴通讯股份有限公司 Device and method for testing network switching equipment
CN101997737A (en) * 2010-11-04 2011-03-30 中兴通讯股份有限公司 Method for positioning errors of serial port and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751368B (en) * 2009-12-30 2013-08-07 中兴通讯股份有限公司 Single-board communication method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874252A (en) * 2005-06-01 2006-12-06 华为技术有限公司 Serial-port mapping system for debugging single board
CN101119233A (en) * 2007-08-17 2008-02-06 福建星网锐捷网络有限公司 Method, device and system for obtaining equipment running state
CN101247274A (en) * 2008-02-28 2008-08-20 华为技术有限公司 Method and equipment for acquiring serial port information
CN101534223A (en) * 2008-03-11 2009-09-16 中兴通讯股份有限公司 Device and method for testing network switching equipment
CN101997737A (en) * 2010-11-04 2011-03-30 中兴通讯股份有限公司 Method for positioning errors of serial port and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131087A (en) * 2019-12-13 2020-05-08 威创集团股份有限公司 Transmission system and signal transmission method for Ethernet physical layer signal
CN111880976A (en) * 2020-07-14 2020-11-03 深圳市同泰怡信息技术有限公司 RS232 communication serial port test method and device
CN111880976B (en) * 2020-07-14 2024-03-15 深圳市同泰怡信息技术有限公司 RS232 communication serial port testing method and device
CN117389851A (en) * 2023-10-20 2024-01-12 江苏普达迪泰科技有限公司 Method for monitoring communication data abnormality of drive measurement calibration serial port
CN117389851B (en) * 2023-10-20 2024-02-09 江苏普达迪泰科技有限公司 Method for monitoring communication data abnormality of drive measurement calibration serial port

Also Published As

Publication number Publication date
CN101997737A (en) 2011-03-30

Similar Documents

Publication Publication Date Title
WO2012059066A1 (en) Method and system for locating fault in serial port
US20080071962A1 (en) Device connection system and device connection method
JP5161365B2 (en) Long distance Ethernet system and relay
US20200265004A1 (en) Serial connection between management controller and microcontroller
JP6594972B2 (en) Embedded universal serial bus (USB) debugging (EUD) for multi-interface debugging in electronic systems
US20120131403A1 (en) Multi-chip test system and test method thereof
KR20190058704A (en) Flexible mobile device connectivity to automotive systems with usb hubs
WO2011011915A1 (en) Data communication method, communication equipment and communication system
WO2011079666A1 (en) Single board communication method, system and device
CN102457403B (en) Method and device for detecting network connection faults
CN110554943A (en) I3C-based multi-node server CMC management system and method
US20110085608A1 (en) Communication system, test apparatus, communication apparatus, communication method and test method
US20090077275A1 (en) Multiple I/O interfacing system for a storage device and communicating method for the same
US20060209680A1 (en) Network link backup system
KR101319981B1 (en) Communication connector enabling to identify communication status independently and communication apparatus comprising the communication connector
US7587294B2 (en) SATA device having self-test function for OOB-signaling
US20090024875A1 (en) Serial advanced technology attachment device and method testing the same
CN109164874B (en) Information processing method and electronic equipment
CN109150724B (en) Communication method and network card
TWI701938B (en) Internet telephone device, external connection card and communication method therefor
CN108874166B (en) KVM controller based on FPGA and PS2 protocol
US8520566B2 (en) Network connection method with auto-negotiation mechanism, network apparatus having auto-negotiation mechanism and network connection method
CN115114201A (en) FSI controller and BMC chip comprising same
CN112968948A (en) Gateway controller design method, gateway controller and automobile
TWI423638B (en) Communication system, test device, communication device, communication method, and test method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11837592

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11837592

Country of ref document: EP

Kind code of ref document: A1