Rack-mounted communication device and serial port management method thereof

By introducing a CPU module and a CPLD module in the main control card and switching them together, the problem of a single serial port server was solved, enabling flexible serial port switching between the main control card and the service card, improving the monitoring and debugging efficiency of the equipment, and ensuring system stability.

CN116582473BActive Publication Date: 2025-12-19ACCELINK TECHNOLOGIES CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310459780.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2025-12-19
Estimated Expiration
2043-04-21

AI Technical Summary

Technical Problem

The serial port server is only allocated one port, which makes it impossible to switch flexibly between the main control card and the service card, resulting in inconvenience for device monitoring and debugging.

Method used

The CPU module and CPLD module in the main control card are used in conjunction with the switching switch. Through software protocol and hardware design, flexible switching of serial ports and data routing are realized, including the design of the switch module and reset module, to ensure system stability.

Benefits of technology

It enables flexible serial port switching between the server, main control card, and service card, improving the flexibility and reliability of equipment monitoring and debugging, and ensuring stable system operation under abnormal conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116582473B_ABST
    Figure CN116582473B_ABST
Patent Text Reader

Abstract

The application belongs to the field of communication, and relates to a rack-mounted communication device and a serial port management method thereof. The main control card of the rack-mounted communication device generally has an Ethernet port and a serial port. The Ethernet port is used for connecting an Ethernet switch in a computer room, and the serial port is used for connecting a server. A host computer monitors the device through the Ethernet port and the serial port on the main control card. Meanwhile, when it is necessary to monitor and debug a service card, the serial port server also needs to be connected to the serial port of the service card. A CPLD module and a switching switch arranged in the main control card can effectively control the server to communicate with the main control card and the service card respectively. Due to the characteristics of the controller chip, the serial port information is richer and more conducive to monitoring and debugging. The serial port management method can realize flexible switching of a serial port between the main control card and the service card according to requirements. Moreover, when the CPU module is abnormal, the CPU module on the main control card can be reset through a special instruction agreed in advance, so as to help the main control card CPU module to recover to normal work.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the field of communication, and more particularly, relates to a rack-mounted communication device and a serial port management method thereof. BACKGROUND

[0002] The rack-mounted communication device comprises a master control card, service cards, fan cards and power modules. The master control card is mainly used for completing the management of control services of the whole communication device, and the service cards are mainly used for completing the transceiving of data service messages of the whole communication device. Generally, the master control card manages the service cards, fan cards and power modules as a control center, and the service cards provide service interfaces for users and process data. In order to more comprehensively and efficiently monitor the running state of the device, an Ethernet switch and a serial port server are configured in a data center room, and the serial port server is connected with the serial port of the device to manage and debug the device. The existing data center room has large service volume and high device density, and each device can only be authorized to use one Ethernet port of the switch and one port of the serial port server.

[0003] Serial port communication has simple protocol, occupies few pins and resources, and many central processing units (CPU) have self-contained serial port peripherals as debugging ports. The master control card of the rack-mounted communication device generally has an Ethernet port and a serial port, the Ethernet port is used to connect the Ethernet switch of the room, and the serial port is used to connect the serial port server of the room. The host computer monitors the device through the Ethernet port and the serial port on the master control card, and at the same time, when the service card needs to be monitored and debugged, the serial port server also needs to be connected to the serial port of the service card. Due to the characteristics of the controller chip, the serial port information is more abundant and more conducive to monitoring and debugging. However, the serial port server only allocates one port to the device, and one serial port needs to be flexibly switched between the master control card and the service card according to the needs. In view of this, it is an urgent problem to be solved in the technical field to overcome the defects of the existing technology. SUMMARY

[0004] The technical problem to be solved by the present application is:

[0005] How to realize flexible switching of one serial port between the master control card and the service card according to the needs, since the serial port server only allocates one port to the device.

[0006] The present application achieves the above-mentioned purpose by the following technical scheme:

[0007] In a first aspect, a rack-mounted communication device is provided, comprising: a master control card and a plurality of service cards.

[0008] The master card comprises a CPU module, a complex programmable logic device (CPLD) module and a switch, the switch comprises a common end, a first port, a second port and a control port, the common end is used for connecting with an RX port of a server, the first port is connected with a TX port of the CPU module, the second port is connected with a TX port of the CPLD module, and the control port is connected with the CPU module;

[0009] The CPLD module is connected with a plurality of service cards through a communication interface respectively;

[0010] A switch module and a reset module are arranged in the CPLD module;

[0011] An RX port of the CPU module is used for connecting with a TX port of the server, and an RX port of the CPLD module is used for connecting with a TX port of the server;

[0012] The CPU module is used for switching the level size input to the control port according to a working instruction of the server, so as to control the common end to be selectively connected with the first port or the second port.

[0013] Preferably, the CPLD module and the CPU module are connected through a communication interface to realize data transmission and control functions;

[0014] The CPU module is used for configuring the CPLD module serial port to have two states according to requirements;

[0015] When the server communicates with the master card, the CPU module configures the CPLD module serial port to be in a non-working state;

[0016] When the server communicates with the service card, the CPU module configures the CPLD module serial port to be in a pass-through state;

[0017] When the CPU module in the master card is abnormal, the CPLD module performs a hard reset operation on the CPU module.

[0018] Preferably, the CPLD module comprises a switch unit, the switch unit controls the conduction of the CPLD module serial port, so as to control the transmission of serial port data between the server and the service card and determine the direction of sending and receiving data.

[0019] Preferably, the CPLD module comprises a reset unit, when the CPU module in the master card is abnormal, the CPLD module is used for receiving a reset signal from the server, and the reset unit is used for performing a hard reset operation on the CPU module according to the reset signal.

[0020] In a second aspect, a serial port management method of a rack-mounted communication device is provided. In a default state, the first port of the switch is connected to the common port. The method comprises:

[0021] The CPU module and the CPLD module simultaneously receive a working instruction from a server.

[0022] If the working instruction is to monitor the serial port state of a service card, the second port of the switch is connected to the common port to open a transmitting channel between the CPLD module and the server.

[0023] According to a monitoring instruction from the server, a conducting channel of the CPLD module is selected to enable the server to communicate with a corresponding service card.

[0024] Preferably, the working instruction received from the server includes a working instruction specified by a software protocol between the CPU module and the CPLD module.

[0025] Preferably, the CPU module and the CPLD module simultaneously receive a working instruction from a server, specifically:

[0026] The server adopts a double-transmitting and selective-receiving working mode for the CPU module and the CPLD module.

[0027] The CPU module and the CPLD module simultaneously receive a signal from the server.

[0028] By default, the CPU module receives the signal and actively responds, and the CPLD module only receives the signal but does not respond.

[0029] Preferably, the working instruction is specifically:

[0030] When the server sends an instruction to the CPU module to communicate with a master card, the CPU module configures the serial port of the CPLD module to be in a non-working state.

[0031] When the server sends an instruction to the CPU module to communicate with a service card, the CPU module configures the serial port of the CPLD module to be in a pass-through state.

[0032] When the server sends an instruction to the CPLD module that the CPU module has an exception, the CPLD module performs a hard reset operation on the CPU module.

[0033] Preferably, the transmitting channel between the CPLD module and the server is a data channel for transmitting the status of the monitoring service card to the server.

[0034] Preferably, the selection of the on channel of the CPLD module according to the monitoring instruction of the server to enable the server to communicate with the corresponding service card comprises:

[0035] According to the monitoring instruction of the server, the on channel of the CPLD module is selected to communicate with the service card, so as to realize the correct routing and transmission of data between the server and the service card.

[0036] The beneficial effects of the present application are:

[0037] In the normal working mode of the device, the server communicates with the master control card on the device, and when the service card serial port needs to be monitored and debugged, the server serial port is switched to the service card serial port through the switch. The serial port management and monitoring of the CPLD module are utilized to realize the flexible switching function of the server to the master control card and the service card serial port communication in the rack-mounted device. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative labor. The drawings are used to provide further understanding of the present disclosure and constitute a part of the specification, and are used to explain the present disclosure together with the following detailed embodiments, but do not constitute a limitation on the present disclosure. In the drawings:

[0039] Figure 1 is a schematic structural diagram of a rack-mounted communication device provided for the embodiment of the present application;

[0040] Figure 2 is a schematic diagram of the internal structure of the master control card provided for the embodiment of the present application;

[0041] Figure 3 is a schematic diagram of the specific connection relationship among the server, the master control card and the service card provided for the embodiment of the present application;

[0042] Figure 4 is a logic diagram of the two-select switch provided for the embodiment of the present application;

[0043] Figure 5 is a schematic diagram of the internal structure of the CPLD module of a rack-mounted communication device provided for the embodiment of the present application;

[0044] Figure 6 is a flowchart of a server communicating with a service card provided by an embodiment of the present application;

[0045] Figure 7 is a flowchart of serial port switching of a serial port management method provided by an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0047] In addition, the technical features involved in each of the embodiments of the present application described below can be combined with each other as long as there is no conflict. The present application is described in detail below with reference to the accompanying drawings and embodiments.

[0048] It should also be noted that in the present specification, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.

[0049] Embodiment 1:

[0050] With the continuous updating and iteration of communication equipment, the demand for more stable management of serial ports by communication equipment and more convenient settings has emerged. In the prior art, a serial port server only allocates one port to a device, and a serial port needs to be flexibly switched between a master card and a service card according to the demand. In order to solve this problem, an embodiment of the present application provides a rack-mounted communication equipment, as shown in Figure 1 The structure diagram of the rack-mounted communication equipment includes a master card and a plurality of service cards, and the master card communicates with the corresponding service cards through a serial port and an Ethernet.

[0051] The server is connected with the master card through a communication serial port, the master card is connected with the service card through a communication serial port, the Ethernet switch is connected with the master card through an Ethernet port, and the master card is connected with the service card through an Ethernet port. The Ethernet port is a physical interface for connecting Ethernet switches, master cards, service cards and other network devices. The Ethernet port is responsible for transmitting data streams from the control layer to the physical layer and converting them into electrical signals for transmission to other devices through network cables. In the Ethernet switch, the Ethernet port is connected to the master card and the service card, and the work of the entire communication device is coordinated through data transmission and forwarding between them, ensuring fast processing and transmission of data. Therefore, when designing an Ethernet switch, the appropriate type of Ethernet port needs to be selected according to actual needs, and parameters such as port quantity, rate and type are optimized to ensure efficient and stable communication between network devices. Among them, the aforementioned server is a serial port server.

[0052] The service card and the master card are two types of circuit boards in network communication devices, and there is a certain relationship between them. The master card is an important device board, which is usually the core of the network communication device and is responsible for the control and management of the entire device, including scheduling, managing and monitoring various service cards. The master card can support multiple different data exchange, processing and routing protocols according to needs, and ensure the stability and security of the device by monitoring the status of each service card; the service card is a different type of card under the master card, which is used to provide different types of network services, such as routing, switching, virtual private network (VPN), firewall, etc. Generally, the number of service cards can be increased or decreased according to needs to meet different business needs.

[0053] As can be understood, the master card is the "brain" of the network communication device, responsible for the control and management of the entire device, while the service card is the "hand", providing various actual business functions and services. In practice, the relationship between the master card and the service card of the network communication device is very close, and the operation, monitoring and management of the service card by the master card are essential. For example Figure 2As shown is a schematic diagram of the inside of the main control card, the main control card comprising a CPU module, a CPLD module and a switch, the switch comprising a common end, a first port, a second port and a control port, the common end being used for connecting with the RX port of the server, the first port being connected with the TX port of the CPU module, the second port being connected with the TX port of the CPLD module, and the control port being connected with the CPU module; the CPLD module being connected with a plurality of the service cards through a communication interface; a switch module and a reset module being arranged in the CPLD module; the RX port of the CPU module being used for connecting with the TX port of the server, and the RX port of the CPLD module being used for connecting with the TX port of the server; the CPU module being used for switching the level size input to the control port according to the working instruction of the server, so as to control the common end to be selectively connected with the first port or the second port.

[0054] The specific connection relationship of the server, the main control card and the service card is shown in Figure 3 In order to realize perfect switching of the communication between the server and the CPU module and the service card, a switch is arranged in the main control card in the embodiment, which is specifically a two-alternative gating switch, and the specific structure thereof is shown in Figure 4 The switch comprises a common end COM port, a first port A, a second port B and a control port EN; the common port COM port is connected with the RX port of the server, so that the server can receive the signals from the CPU module or the service card of the main control card; the first port A is connected with the TX port of the CPU module, so that the server receives the signals sent from the CPU module; the second port B is connected with the TX port of the CPLD module, so that the server receives the signals sent from the service card; and the control port EN is connected with the CPU module, and the CPU module controls the common end COM port to be connected with the first port A or the second port B by controlling the level size of the EN port. Thus, perfect switching of the communication between the server and the main control card and the service card can be realized.

[0055] In the rack-mounted communication device in the embodiment, the communication interface is adopted to connect the CPLD module and the CPU module to realize data transmission and control function; the CPU module is used for configuring the serial port of the CPLD module to have two states according to the requirement; when the server communicates with the main control card, the CPU module configures the serial port of the CPLD module to be in a non-working state; when the server communicates with the service card, the CPU module configures the serial port of the CPLD module to be in a pass-through state; and when the CPU module in the main control card occurs an exception, the CPLD module performs a hard reset operation on the CPU module.

[0056] The CPU module is the control center of the master card, and the CPU module and the CPLD module are connected through a communication interface in the master card. The interface can be some physical cables (such as a bus) or some communication protocols (such as a serial peripheral interface (SPI) and an Inter-Integrated Circuit (I2C) synchronous half-duplex communication). In the embodiment, the bus is selected to connect the CPU module and the CPLD module. The main function of the interface is to connect the CPU module and the CPLD module and transmit information. The CPU module can send a command or data to the CPLD module, and the CPLD module can return a processing result or feedback information to the CPU module. In this way, the CPU module and the CPLD module can communicate and exchange data in real time, thereby realizing various functions. The CPU module and the CPLD module are associated with each other. The CPU module can configure the serial port of the CPLD module. Specifically, the CPU module receives an instruction from the server, configures the on or non-working state of the serial port of the CPLD module according to the specific requirement of the server, and vice versa. When the CPU module is abnormal, the CPLD module can also perform a hard reset operation on the CPU module to help the CPU module return to a normal working state.

[0057] In summary, the communication interface between the CPU module and the CPLD module is actually a bridge that organically combines two hardware modules with different functions through communication, realizes the stability and mutual complementation of the system, and is an important part of the entire device.

[0058] In order to enable the server to communicate with the service card, a switch unit module is designed in the CPLD module, as shown in FIG. Figure 5 The switch unit controls the switching of the on state of the serial port of the CPLD module. The module is used to control the transmission of serial port data between the server and the service card and determine the direction of sending and receiving data. A reset unit module is designed in the CPLD module. When the CPU module in the master card is abnormal, the CPLD module is used to receive a reset signal from the server. The reset unit is used to perform a hard reset operation on the control CPU module according to the reset signal to restore the normal operation of the CPU module.

[0059] The specific implementation is as follows: first, a switch module is designed. Generally, the switch module needs to be connected to the serial port of the CPU module and the service card. The switch module detects the signal direction of the serial port and routes it to the server or the service card as needed. If data is to be sent from the server to the service card, the switch module will open the bidirectional transmission channel according to the instructions of the CPU module, read the data of the server, and pass it to the service card, realizing the communication between the server and the service card. More specifically, the pins of the CPLD module chip and the interfaces with other hardware devices are determined according to the server serial port input, service card serial port input, server serial port output, and service card serial port output, and the required input and output signals of the CPLD module chip are defined. The hardware description language (Verilog HDL, abbreviated as: Verilog) code of the switch module is written to realize the code. The code should determine the data direction according to the input signal and route the data to the correct output pin. The code should include a state machine, which usually involves the control of the input signal direction, the selection of the data output, and the state logic of maintaining the current direction. In the design of the data routing part, conventional logic gates or complex logic gates can be used to realize it. Then the switch module code is synthesized to generate a logic netlist. Simulation is performed on the CPLD module development board to verify whether the logic function meets the requirements, and finally the synthesized logic netlist is programmed into the CPLD module chip.

[0060] Design reset module: the reset module monitors the running state of the CPU module, and starts the reset circuit when it is abnormal. This module can use programmable logic to control the signal in the reset circuit, usually a low-level pulse signal. Determine the input port and logic of the reset signal, the reset signal needs to be connected to some auxiliary chips or reset circuits on the CPU module. According to the specific design, a state machine is designed to monitor the running state of the CPU module of the main control card, and start the reset circuit. The running state of the CPU module is monitored through specific instructions, clock signals, etc., to determine whether the CPU module is running normally. If the CPU module is abnormal, the state machine can make the CPLD module control the reset circuit to send a low-level pulse to realize the reset function. The state machine can include several states, such as idle state, detection state, reset state, etc. In the idle state, the state machine waits for the running state of the CPU module to change, and once the CPU module is detected to be abnormal, it will enter the detection state and start generating the reset signal, and enter the reset state, lasting for a period of time to ensure the normal operation of the system. When the CPU module appears abnormal condition, the state machine will generate a reset pulse signal, which is output through the output port of the CPLD module, and is converted to a low-level pulse signal on the external circuit. By calculating the appropriate pulse width and delay, the reliability and effectiveness of the reset signal can be ensured. At the same time, indicator lights such as flashing lights can be used to ensure the correctness of the operation, in order to ensure the correctness of the operation of the system, the indicator lights and other signals on the hardware can be used for state monitoring and debugging.

[0061] The embodiment only proposes a specific structure of the rack-mounted communication equipment, and how to specifically manage the serial port thereof will be described with reference to the following embodiment 2.

[0062] Embodiment 2

[0063] The above embodiment 1 proposes a rack-mounted communication equipment, and the serial port management method proposed in the embodiment is applicable to the equipment proposed in embodiment 1. The specific process of the method is as shown in Figure 6 The method comprises the following steps.

[0064] Step 101: the CPU module and the CPLD module simultaneously receive the working instructions from the server.

[0065] For the scenario that the CPU module and the CPLD module simultaneously receive the work instruction from the server, it needs to be further clarified that the simultaneous can be synchronous or asynchronous, depending on the way of timing control in the actual design. The scope of the work instruction can be very extensive and depends on the actual application of the system. A specific protocol and format will usually be used for communication, such as the Transmission Control Protocol / Internet Protocol (TCP / IP) protocol stack, universal asynchronous receiver transmitter (UART) communication format, etc. The specific protocol and format also need to be selected and designed according to the application scenario and requirements.

[0066] Step 102: If the work instruction is to monitor the serial port state of the service card, the second port of the switch is connected to the common end to open the transmission channel between the CPLD module and the server.

[0067] If the work instruction is to monitor the serial port state of the service card, the corresponding instruction will be passed to the CPU module through the server, and then the CPU module controls the second port B of the switch to be connected to the common end COM, thereby opening the transmission channel between the CPLD module and the server.

[0068] Step 103: According to the monitoring instruction of the server, the conduction channel of the CPLD module is selected to enable the server to communicate with the corresponding service card.

[0069] In this embodiment, according to the monitoring instruction of the server, the conduction channel of the CPLD module is selected to enable the server to communicate with the corresponding service card, thereby realizing correct routing and transmission of data between the server and the service card.

[0070] The CPU module and the CPLD module simultaneously receive the work instruction from the server, specifically: the server adopts a double-transmission and selective-reception mode for the CPU module and the CPLD module; the CPU module and the CPLD module simultaneously receive signals from the server; by default, the CPU module receives the signals and actively responds, and the CPLD module only receives the signals but does not respond.

[0071] The TX end of the server is connected with the RX end of the CPU module and the CPLD module in the host card at the same time, so when the server sends a signal, the CPU module and the CPLD module will receive it at the same time, but in the default state, the CPU module as the control center of the host card will respond after receiving the signal from the server, and the CPLD module will not respond after receiving the signal, so that the communication between the server and the host card can be realized without other operations.

[0072] The working instruction received from the server specifically includes a working instruction specified by a software protocol between the CPU module and the CPLD module.

[0073] Specifically, a special instruction is specified by a software protocol between the CPU module and the CPLD module on the host card, the CPU module first receives a signal from the server, the CPU module issues an instruction to the CPLD module according to the requirements of the server, and expresses the special instruction to be executed to the CPLD module through a bus, including the operation code, operation object and addressing mode of the instruction. In this process, the CPLD module monitors the bus and waits for the instruction of the CPU module. When the instruction reaches the CPLD module, it needs to be decoded and processed to determine the corresponding operation of the instruction and determine the object and addressing mode of the operation. The CPLD module needs to process the data according to the requirements of the instruction, which can be data storage, reading, transmission, etc. In this process, the CPLD module can use its internal logic circuit or storage unit to realize data processing. The CPLD module needs to feed back the operation result to the CPU module to let the host card know the execution result. The CPLD module can send a data packet or an exception signal through the bus to feed back the execution result.

[0074] In general, the CPU module sends instructions and data to the CPLD module through a software protocol, the CPLD module decodes the instructions and performs corresponding operations, and finally returns the execution result to the CPU module. In the design and implementation of the software protocol, attention should be paid to the standardization of the protocol, the reliability and real-time performance of data transmission, etc. to ensure the accuracy and efficiency of data transmission.

[0075] When the instruction sent by the server to the CPU module is to communicate with the host card, we name it instruction 1, and the CPU module configures the serial port of the CPLD module to be in a non-working state; when the instruction sent by the server to the CPU module is to communicate with the service card, we name it instruction 2, and the CPU module configures the serial port of the CPLD module to be in a pass-through state; when the instruction sent by the server to the CPLD module is that the CPU module has an exception, we name it instruction 3, and the CPLD module performs a hard reset operation on the CPU module. Specifically, such as Figure 7The flowchart of serial port switching is shown.

[0076] Step 201: The server communicates with the CPU module by default.

[0077] Step 202: The server sends instruction 1 to the CPU module, the CPU module configures the serial port of the CPLD module to be in a non-working state, and the server communicates with the master control card.

[0078] According to the special instruction specified by the software protocol between the CPU module and the CPLD module, when the master CPU module serial port receives special instruction 1, it indicates that the server needs to communicate with the CPU module of the device master control card. At this time, the CPU module configures the serial port of the CPLD module to be in a non-working state, and the CPU module and the server realize serial port communication.

[0079] Step 203: The server sends instruction 2 to the CPU module, the CPU module configures the serial port of the CPLD module to be in a pass-through state, and the server communicates with the service card.

[0080] When the master CPU module serial port receives special instruction 2, it indicates that the server needs to communicate with the service card on the device. At this time, the CPU module configures the CPLD module to be in a serial port pass-through state, and the server realizes serial port communication with the service card.

[0081] Step 204: The server sends instruction 3 to the CPLD module, and the CPLD module performs a hard reset operation on the CPU module.

[0082] When the CPLD module serial port receives special instruction 3, it indicates that the CPU module is abnormal, and the CPLD module needs to perform a hard reset operation on the CPU module to help the CPU module recover to normal.

[0083] The transmission channel between the CPLD module and the server is a data channel for transmitting the status of the service card to the server. The transmission channel between the CPLD module and the server is usually a data channel, that is, it is a channel for transmitting data between the two parties. Specifically, the CPLD module and the server can transmit data through a communication interface. In the design and implementation of the data channel, many factors need to be considered, such as transmission rate, data integrity, debugging problems, etc. In order to improve the transmission speed and reliability of data, high-speed serial communication mode is usually used. In order to ensure the integrity and correctness of the data, some error correction codes or encryption and decryption techniques are usually added. At the same time, in order to facilitate debugging and monitoring, some debugging tools or monitoring programs need to be added to observe the communication situation in real time.

[0084] A good data channel design can achieve high speed, stable and reliable transmission of data, so as to meet the requirements of the system on data communication, and improve the availability and reliability of the system; a specific design scheme can be as follows: first, determine the transmission type and protocol of the data channel. According to the specific application requirement and system design requirement, select the appropriate transmission technology and protocol, select the appropriate chip or module according to the determined transmission type and protocol. For serial communication, UART chip or chip set is often used; in the CPLD module, the interface circuit and communication protocol are realized. The interface circuit is usually used to match the electrical characteristics (such as level, voltage range, current, etc.) of the communication interface and CPU module and other hardware; the communication protocol is used to realize the data frame format, synchronous timing, data retransmission and other functions. In order to ensure the reliability and security of data transmission, error correction code or encryption circuit can be added in the communication. For example, Cyclic Redundancy Check (CRC) algorithm or Hamming code and other error correction techniques can be used to correct error data; data encryption standard (DES), a block encryption standard (Advanced Encryption Standard, AES) and other digital encryption techniques can be used to encrypt the data. Finally, in order to realize the real-time monitoring and debugging of the system, some debugging tools or monitoring programs can be added. For example, serial debugging assistant and other tools can be used to monitor the data transmission in real time, and data analysis and processing can be carried out. These measures help to ensure that the data channel between the CPLD module and the server can stably, reliably, safely and efficiently transmit data.

[0085] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the related parts can be referred to the method part. It should be pointed out that, for those skilled in the art, without departing from the principles of the present application, some improvements and modifications can be made on the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

[0086] Those skilled in the art can understand that the above only describes the preferred embodiments of the present application, and does not limit the present application. Any modification, equivalent replacement and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A rack-mounted communications device, characterized by The application relates to a rack-type communication device, which comprises a main control card and a plurality of service cards. The main control card comprises a CPU module, a CPLD module and a switch, the switch comprises a common end, a first port, a second port and a control port, the common end is used for connecting with an RX port of a server, the first port is connected with a TX port of the CPU module, the second port is connected with a TX port of the CPLD module, and the control port is connected with the CPU module. The CPLD module is connected with the plurality of service cards through communication interfaces. An RX port of the CPU module is used for connecting with a TX port of the server, and an RX port of the CPLD module is used for connecting with a TX port of the server. The CPU module is used for switching the level size input to the control port according to the working instruction of the server, so as to control the common end to be selectively connected with the first port or the second port. The CPU module and the CPLD module simultaneously receive signals from the server, and the server adopts a double-transmitting and single-receiving working mode for the CPU module and the CPLD module, wherein by default, the CPU module receives signals and responds, and the CPLD module only receives signals but does not respond. The CPLD module and the CPU module are connected through a communication interface to realize data transmission and control functions.

2. The rack mount communication device of claim 1, wherein, The CPU module is used for configuring the serial port state of the CPLD module according to requirements. When the server communicates with the main control card, the CPU module configures the serial port of the CPLD module to be in a non-working state. When the server communicates with the service card, the CPU module configures the serial port of the CPLD module to be in a pass-through state. When the CPU module in the main control card is abnormal, the CPLD module performs a hard reset operation on the CPU module. The CPLD module comprises a switch unit, which is used for controlling the conduction of the serial port of the CPLD module, controlling the transmission of serial port data between the server and the service card and determining the direction of transmitting and receiving data. The CPLD module comprises a reset unit, which is used for receiving a reset signal from the server when the CPU module in the main control card is abnormal, and performing a hard reset operation on the CPU module according to the reset signal.

3. The rack mount communication device of claim 2, wherein, The serial port management method is applied to the rack-type communication device as claimed in any one of claims 1 to 4, by default, the first port of the switch is in conduction with the common end; the method comprises the following steps.

4. The rack mount communication device of claim 2, wherein, The CPU module and the CPLD module simultaneously receive working instructions from the server.

5. A method for managing serial ports of a rack-mounted communication device, the method comprising: If the working instruction is used for monitoring the serial port state of the service card, the second port of the switch is controlled to be in conduction with the common end, so as to open the transmitting channel between the CPLD module and the server. According to the monitoring instruction of the server, the conduction channel of the CPLD module is selected, so that the server communicates with the corresponding service card. ​ ​ 6. The serial port management method of claim 5, wherein, The received working instruction from the server specifically includes a working instruction specified by a software protocol between the CPU module and the CPLD module.

7. The serial port management method of claim 5, wherein, The working instruction specifically is: When the instruction sent by the server to the CPU module is an instruction requiring communication between the CPU module and the host card, the CPU module configures the serial port of the CPLD module to be in a non-working state; When the instruction sent by the server to the CPU module is an instruction requiring communication between the CPU module and the service card, the CPU module configures the serial port of the CPLD module to be in a pass-through state; When the instruction sent by the server to the CPLD module is an instruction that the CPU module has an exception, the CPLD module performs a hard reset operation on the CPU module.

8. The serial port management method of claim 5, wherein, The transmission channel between the CPLD module and the server is a data channel, which is used to transmit the state of the monitored service card to the server.

9. The serial port management method of claim 5, wherein, The selection of the on channel of the CPLD module according to the monitoring instruction of the server to enable the server to communicate with the corresponding service card includes: According to the monitoring instruction of the server, the on channel of the CPLD module is selected to communicate with the service card, so as to realize correct routing and transmission of data between the server and the service card.

Citation Information

Patent Citations

  • Debugging and testing method, main control board and business boards

    CN104348673A