Serial port information collection device, method and equipment and computer storage medium

By setting up a serial port information collection device on the server motherboard and receiving and displaying serial port information using bus and cables, the problem of difficulty in collecting server serial port information quickly and accurately in the existing technology is solved, and efficient fault analysis is achieved without peripherals .

CN119127611APending Publication Date: 2024-12-13INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411214654.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing technology is difficult to quickly and accurately collect serial port information on the server, and it is impossible to capture serial port logs without peripherals, resulting in low fault analysis efficiency, and can only output BIOS or BMC serial port information, which cannot accurately reach the user's needs. Serial port information.

Method used

Design a serial port information collection device, including a serial port device and a display screen. The serial port device is set on the server's motherboard, receives and processes serial port information through the bus, and transmits the processing results to the display screen through the cable. Sets virtual operation buttons on the display screen , Users can trigger the serial port collection instructions by pressing the button, and the serial port chip processes and displays the serial port information, including ID information, abnormality detection and analysis.

Benefits of technology

It realizes the rapid and accurate collection and analysis of the server's serial port information without peripherals. Users can view the processing results directly through the display screen, improving the efficiency of fault analysis and accurately reach specific serial port information and abnormal causes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127611A_ABST
    Figure CN119127611A_ABST
Patent Text Reader

Abstract

The invention discloses a serial port information collection device, method and equipment and a computer storage medium, and relates to the technical field of servers, the serial port information collection device comprises serial port equipment and a display screen, and the serial port equipment is arranged on a mainboard of a server; wherein the serial port equipment comprises a first data interface connected with a bus on a mainboard, the first data interface is used for receiving serial port information transmitted by the bus, and the bus is connected with a device of a server; the serial port chip is connected with the first data interface and is used for processing the serial port information to obtain a processing result; and the second data interface is connected with the serial port chip and is used for being connected with a cable and transmitting a processing result to a display screen for displaying through the cable. In the application, the serial port equipment can accurately receive the serial port information sent by the device of the server through the bus on the mainboard, and a user and the like can directly and quickly check the processing result of the serial port information through the display screen, so that the serial port information of the server can be quickly and accurately collected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and more specifically, to a serial port information collection device, method, equipment and computer storage medium. Background Art

[0002] With the continuous development of IT technology, the demand for servers from information services and increasingly powerful cloud computing services is increasing, and the operation of server hardware is becoming more and more frequent. In this process, when hardware problems need to be located, the server needs to be operated through serial port cables, keyboards, mice and other devices to collect serial port logs. The server is highly dependent on peripherals. Without peripherals, the serial port logs cannot be captured, and the server cannot be analyzed for faults, resulting in low work efficiency. Moreover, only the serial port information of BIOS (Basic Input Output System) or BMC (Baseboard Management Controller) can be output, which cannot accurately obtain the serial port information required by users.

[0003] In summary, how to quickly and accurately collect serial port information from a server is a problem that currently needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The purpose of the present application is to provide a serial port information collection device, which can solve the technical problem of how to quickly and accurately collect serial port information from a server to a certain extent. The present application also provides a serial port information collection method, an electronic device and a computer-readable storage medium.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A serial port information collection device comprises a serial port device and a display screen, wherein the serial port device is arranged on a main board of a server;

[0007] Among them, the serial port device includes: a first data interface connected to the bus on the mainboard, used to receive serial port information transmitted by the bus, and the bus is connected to the device of the server; a serial port chip connected to the first data interface, used to process the serial port information and obtain a processing result; a second data interface connected to the serial port chip, used to connect to a cable, and transmit the processing result to the display screen through the cable for display.

[0008] In an exemplary embodiment, a virtual operation button is provided on the display screen;

[0009] The display screen is also used to: generate a serial port collection instruction according to the trigger information of the operation button, and transmit the serial port collection instruction to the second data interface through the cable;

[0010] The serial port chip processes the serial port information to obtain a processing result, including:

[0011] The serial port information corresponding to the serial port collection instruction is processed to obtain a processing result.

[0012] In an exemplary embodiment, the serial port chip is provided with a storage space for storing data.

[0013] In an exemplary embodiment, the bus comprises a PCI bus and the cable comprises an I2C cable.

[0014] In an exemplary embodiment, the serial port device is placed in a card slot, and the card slot is soldered on the mainboard.

[0015] In an exemplary embodiment, the first data interface is further used to: receive ID information corresponding to the serial port information transmitted by the bus;

[0016] The serial port chip processes the serial port information to obtain a processing result, including:

[0017] Acquire a corresponding relationship, wherein the corresponding relationship includes a corresponding relationship between an ID and a device of the server, wherein the device of the server includes a processor, a memory, a PCIe card, and a hard disk;

[0018] Searching in the corresponding relationship to determine the target device corresponding to the ID information;

[0019] Determine a serial port detection rule corresponding to the target device, wherein the serial port detection rule is used to detect whether serial port information of the target device is abnormal;

[0020] Detect the serial port information according to the serial port detection rule to obtain a detection result;

[0021] Analyzing the test results;

[0022] In response to the detection result indicating that the serial port information is normal, taking the serial port information as the processing result;

[0023] In response to the detection result indicating that the serial port information is abnormal, determining abnormal information and a cause of the abnormality in the serial port information, and using the serial port information, the abnormal information and the cause of the abnormality as the processor result;

[0024] Wherein, the display screen displays the processing result, including:

[0025] In response to the processing result being the serial port information, displaying the serial port information;

[0026] In response to the processing result being the serial port information, the exception information and the exception cause, the serial port information is displayed, the exception information is marked in the displayed serial port information, and the exception cause is displayed in a blank area around the exception information in the form of an annotation.

[0027] In an exemplary embodiment, when the display screen does not receive the processing result, the display screen displays the hardware information, firmware information and error information of the server.

[0028] A serial port information collection method is applied to a serial port device arranged on a mainboard of a server, comprising:

[0029] Receiving serial port information transmitted by a bus on the mainboard through a first data interface connected to the bus, wherein the bus is connected to a device of a server;

[0030] Processing the serial port information through a serial port chip connected to the first data interface to obtain a processing result;

[0031] The processing result is transmitted to a display screen through the cable for display via a second data interface connected to the serial port chip and the cable.

[0032] An electronic device, comprising:

[0033] Memory for storing computer programs;

[0034] The processor is used to implement the steps of the serial port information collection method as described above when executing the computer program.

[0035] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the serial port information collection method described above are performed.

[0036] The present application provides a serial port information collection device, including a serial port device and a display screen, and the serial port device is arranged on the mainboard of the server; wherein the serial port device includes: a first data interface connected to the bus on the mainboard, used to receive serial port information transmitted by the bus, and the bus is connected to the device of the server; a serial port chip connected to the first data interface, used to process the serial port information and obtain the processing result; a second data interface connected to the serial port chip, used to connect to the cable, and transmit the processing result to the display screen for display through the cable. In the present application, the serial port device is arranged on the mainboard of the server. Since the bus on the mainboard is connected to the device of the server, the serial port information sent by the device of the server can be accurately received through the bus on the mainboard, without operating the server through the serial port line, etc., and the serial port device can process the serial port information and send the obtained processor result to the display screen for display, so that the user can directly view the processing result of the serial port information through this display screen quickly, so as to quickly and accurately collect serial port information from the server. The present application provides a method for collecting serial port information, an electronic device and a computer-readable storage medium, which also solve the corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0038] Figure 1 A schematic diagram of the structure of a serial port collection device provided in an embodiment of the present application;

[0039] Figure 2 is a schematic diagram of a display screen;

[0040] Figure 3 A flowchart of a serial port information collection method provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0042] Figure 5 Another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] See also Figure 1 , Figure 1 A schematic diagram of the structure of a serial port collection device provided in an embodiment of the present application.

[0045] A serial port information collection device provided in an embodiment of the present application includes a serial port device and a display screen, and the serial port device is arranged on a mainboard of a server;

[0046] Among them, the serial port device includes: a first data interface connected to the bus on the mainboard, used to receive serial port information transmitted by the bus, the bus is connected to the device of the server; a serial port chip connected to the first data interface, used to process the serial port information and obtain processing results; a second data interface connected to the serial port chip, used to connect to a cable, and transmit the processing results to the display screen through the cable for display.

[0047] In actual applications, the way in which the server's devices exchange serial port information with the serial port device through the bus can be flexibly determined according to the application scenario. For example, each server device can send its own serial port information to the serial port device through the bus at a fixed time; or the serial port device can send the corresponding instruction to the server's device through the bus, and then the server's device sends its own serial port information to the serial port device, etc. In addition, the serial port information in the serial port device and the serial port information displayed on the display screen can all be in the form of logs, which is not specifically limited in this application.

[0048] In actual applications, considering that users may need to operate serial port information, etc., in order to meet this demand of users, virtual operation buttons can also be set on the display screen so that users can touch the operation buttons to perform corresponding control on the server; for example, when the user touches the operation button, the display screen can also be used to: generate a serial port collection instruction according to the trigger information of the operation button, transmit the serial port collection instruction to the second data interface through a cable, and accordingly, the serial port chip processes the serial port information, and in the process of obtaining the processing result, the serial port information corresponding to the serial port collection instruction can be processed to obtain the processing result; in this way, the user can touch the operation button to send the corresponding serial port collection instruction to the serial port chip, so as to collect and process specific serial port information through the serial port collection instruction. For example, if the serial port collection instruction is to collect the serial port information of the memory, the serial port chip can only process the serial port information of the memory to obtain the corresponding processing result for display. In addition, during this process, after the serial port chip receives the serial port information collection instruction, it can also parse out the device of the server that needs to be collected by the serial port information collection instruction, and send the corresponding collection instruction to the device of the server through the bus and the first data interface, so that the device of the server can send its own serial port information to the serial port device.

[0049] It should be noted that the type of operation buttons on the display screen can be determined according to the application scenario. For example, the operation buttons can include up, down, left, right buttons, confirmation buttons, return buttons, etc. At this time, the content of the display screen can be as follows: Figure 2 shown.

[0050] In practical applications, considering that it takes time for the serial port chip to process serial port information, in order to avoid the loss of newly received serial port information due to the time-consuming processing of old serial port information, a storage space can be set in the serial port chip to store data, such as storing serial port information and / or processing results. The size of the storage space can be flexibly determined according to actual needs, such as the storage space can be 0-20G, etc., and a default value can be set for the storage space, such as setting the default value of the storage space to 10G, etc.

[0051] In actual applications, the types of buses and cables can be flexibly adjusted as needed. For example, the bus may include a PCI (Peripheral Component Interconnect) bus, and the cable may include an I2C (Inter-Integrated Circuit) cable, etc. In addition, in the process of setting the serial port device to the motherboard, it can be achieved through a card slot, that is, the serial port device can be placed in the card slot, and the card slot is welded on the motherboard. In this way, when the position of the serial port device needs to be changed, it is only necessary to take the serial port device out of the card slot. For example, when the serial port chip processes the serial port information, if an unknown error occurs, the serial port device can be taken out of the card slot, and the serial port information stored in the serial port device can be read with the help of a reading device, and the read serial port information can be analyzed with the help of an analysis device with stronger analysis capabilities to determine the abnormal problem, etc.

[0052] In other words, the serial port device of the present application may also include a third data interface connected to the serial port chip, which is used to transmit the serial port information stored in the serial port chip to the reading device, so that the reading device sends the serial port information read from the serial port device to the analysis device for abnormal analysis, and the analysis device has a stronger ability to analyze the abnormality of the serial port information than the serial port chip. In this way, the serial port device of the present application can collect the serial port information, and can analyze the abnormality of the serial port information to a certain extent, so as to meet the user's needs for collecting and analyzing the serial port information at the first time, and when the serial port device cannot accurately analyze the abnormality of the serial port information, the serial port device can send the stored serial port information to the reading device through the third data interface, so as to transmit the serial port information to the analysis device with stronger analysis ability with the help of the reading device, so as to more accurately analyze the abnormality of the serial port information with the help of this analysis device, and finally form a two-level abnormal analysis, which can not only meet the user's needs for collecting and analyzing the serial port information at the first time, but also accurately detect the abnormality of the serial port information, which can further improve the user experience.

[0053] In practical applications, the first data interface is also used to: receive ID information corresponding to the serial port information transmitted by the bus; the serial port chip processes the serial port information to obtain processing results, including: obtaining a corresponding relationship, the corresponding relationship includes a corresponding relationship between the ID and the device of the server, the device of the server includes a processor, a memory, a PCIe card, a hard disk, etc., the type of the corresponding relationship can be determined as needed, for example, the ID of the processor can be 01, the ID of the memory can be 02, the ID of the PCIe card can be 03, the ID of the hard disk can be 04, etc., search in the corresponding relationship, determine the target device corresponding to the ID information, determine the serial port detection rule corresponding to the target device, the serial port detection rule is used to detect whether the serial port information of the target device is abnormal, and perform the detection of the serial port information according to the serial port detection rule. Detection is performed to obtain a detection result, and the detection result is analyzed. In response to the detection result indicating that there is no abnormality in the serial port information, the serial port information is used as the processing result. Of course, the information without abnormality can also be used as the processing result. In response to the detection result indicating that the serial port information is abnormal, the abnormal information and the cause of the abnormality in the serial port information are determined, and the serial port information, the abnormal information and the cause of the abnormality are used as the processor result, or only the abnormal information and the cause of the abnormality are used as the processor result, etc.; accordingly, in the process of displaying the processing result on the display screen, in response to the processing result being the serial port information, the serial port information is displayed; in response to the processing result being the serial port information, the abnormal information and the cause of the abnormality, the serial port information is displayed, the abnormal information is marked in the displayed serial port information, and the cause of the abnormality is displayed in the blank area around the abnormal information in the form of an annotation.

[0054] From this implementation process, it can be seen that when the server device in this application transmits its own serial port information to the serial port device through the bus, it will also transmit its own ID to the serial port device through the bus. In this way, the serial port device only needs to parse the received ID information according to the correspondence between the ID and the server device, so as to determine the target device to which the received serial port information belongs, and can determine the serial port detection rule corresponding to the target device based on this, and detect the serial port information according to the serial port detection rule to obtain the detection result, so as to perform abnormal analysis on the serial port information of the specific device, and after obtaining the detection result, analyze the detection result, in response to the detection result indicating that the serial port information is normal, the serial port information can be used as the processing result, so that the user can view the specific serial port information through the display screen; in response to the detection result indicating that the serial port information is abnormal, the abnormal information and the abnormal cause in the serial port information are determined, and the serial port information, the abnormal information and the abnormal cause are used as the processor result, so that the user can view the specific serial port information, the specific abnormal information and the abnormal cause through the display screen, and the abnormal information is marked, and the abnormal cause is reflected through annotations, so that the user can quickly and accurately view it on the display screen, which can improve the user experience.

[0055] In actual applications, when the display screen does not receive the processing result, the display screen can be set to display the server's hardware information, firmware information and error information. Of course, the screen can also be turned off to save energy.

[0056] The present application provides a serial port information collection device, including a serial port device and a display screen, and the serial port device is arranged on the mainboard of the server; wherein the serial port device includes: a first data interface connected to the bus on the mainboard, used to receive serial port information transmitted by the bus, and the bus is connected to the device of the server; a serial port chip connected to the first data interface, used to process the serial port information and obtain a processing result; a second data interface connected to the serial port chip, used to connect to a cable, and transmit the processing result to the display screen for display through the cable. In the present application, the serial port device is arranged on the mainboard of the server. Since the bus on the mainboard is connected to the device of the server, the serial port information sent by the device of the server can be accurately received through the bus on the mainboard, without operating the server through a serial port line, etc., and the serial port device can process the serial port information and send the obtained processor result to the display screen for display, so that users can directly view the processing result of the serial port information through this display screen quickly, so as to quickly and accurately collect serial port information from the server.

[0057] See also Figure 3 , Figure 3 A flowchart of a serial port information collection method provided in an embodiment of the present application.

[0058] A serial port information collection method provided in an embodiment of the present application is applied to a serial port device set on a mainboard of a server, and may include the following steps:

[0059] Step S101: receiving serial port information transmitted by a bus through a first data interface connected to a bus on a mainboard, wherein the bus is connected to a device of a server.

[0060] Step S102: Processing the serial port information through the serial port chip connected to the first data interface to obtain a processing result.

[0061] Step S103: Transmitting the processing result to the display screen through the cable via the second data interface connected to the serial port chip and the cable for display.

[0062] The present application provides a method for collecting serial port information, which is applied to a serial port device set on a mainboard of a server, and receives serial port information transmitted by a bus through a first data interface connected to a bus on the mainboard, and the bus is connected to a device of the server; the serial port information is processed through a serial port chip connected to the first data interface to obtain a processing result; and the processing result is transmitted to a display screen through a second data interface connected to the serial port chip and a cable for display. In the present application, the serial port device is set on the mainboard of the server, and since the bus on the mainboard is connected to the device of the server, the serial port information sent by the device of the server can be accurately received through the bus on the mainboard, without operating the server through a serial port line, etc., and the serial port device can process the serial port information and send the obtained processor result to the display screen for display, so that users can directly view the processing result of the serial port information through this display screen, so as to quickly and accurately collect serial port information from the server.

[0063] In actual applications, virtual operation buttons can be set on the display screen; in this case, the display screen can also be used to: generate a serial port collection instruction according to the trigger information of the operation button, and transmit the serial port collection instruction to the second data interface through a cable; accordingly, the serial port device processes the serial port information through the serial port chip, and in the process of obtaining the processing result, the serial port information corresponding to the serial port collection instruction can be processed to obtain the processing result.

[0064] In practical applications, a storage space is provided in the serial port chip for storing data. The bus may include a PCI bus, and the cable may include an I2C cable. In addition, the serial port device may be placed in a card slot, and the card slot is welded on the motherboard.

[0065] In practical applications, the serial port device can also receive ID information corresponding to the serial port information transmitted by the bus through the first data interface; accordingly, the serial port device processes the serial port information through the serial port chip, and in the process of obtaining the processing result, a corresponding relationship can be obtained, and the corresponding relationship includes the corresponding relationship between the ID and the server's devices, and the server's devices include processors, memory, PCIe cards, and hard disks; search in the corresponding relationship to determine the target device corresponding to the ID information; determine the serial port detection rule corresponding to the target device, and the serial port detection rule is used to detect whether the serial port information of the target device is abnormal; detect the serial port information according to the serial port detection rule to obtain Detection result; analyzing the detection result; in response to the detection result indicating that there is no abnormality in the serial port information, taking the serial port information as the processing result; in response to the detection result indicating that the serial port information is abnormal, determining the abnormal information and the cause of the abnormality in the serial port information, and taking the serial port information, the abnormal information and the cause of the abnormality as the processor result; on this basis, in the process of displaying the processing result on the display screen, in response to the processing result being the serial port information, the serial port information is displayed; in response to the processing result being the serial port information, the abnormal information and the cause of the abnormality, the serial port information is displayed, the abnormal information is marked in the displayed serial port information, and the cause of the abnormality is displayed in the blank area around the abnormal information in the form of annotation.

[0066] In actual applications, when the display screen does not receive the processing result, it can display the server's hardware information, firmware information and error information.

[0067] The present application also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the serial port information collection method provided in the embodiment of the present application. Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0068] A fan speed processing device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the following steps are implemented:

[0069] Receiving serial port information transmitted by the bus through a first data interface connected to the bus on the mainboard, the bus being connected to the device of the server;

[0070] Processing the serial port information through a serial port chip connected to the first data interface to obtain a processing result;

[0071] Through the second data interface connected to the serial port chip and the cable, the processing result is transmitted to the display screen through the cable for display.

[0072] The fan speed processing device provided in the embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the following steps are implemented: the serial port information corresponding to the serial port collection instruction is processed to obtain a processing result. A virtual operation button is set on the display screen, and the display screen is used to: generate a serial port collection instruction according to the trigger information of the operation button, and transmit the serial port collection instruction to the second data interface through a cable.

[0073] A fan speed processing device provided in an embodiment of the present application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: receiving ID information corresponding to serial port information transmitted by a bus through a first data interface; accordingly, the serial port device processes the serial port information through a serial port chip, and in the process of obtaining the processing result, a corresponding relationship can be obtained, and the corresponding relationship includes a corresponding relationship between the ID and the device of the server, and the device of the server includes a processor, a memory, a PCIe card, and a hard disk; searching in the corresponding relationship to determine the target device corresponding to the ID information; determining the serial port detection rule corresponding to the target device, the serial port detection rule is used to detect whether the serial port information of the target device is abnormal; detecting the serial port information according to the serial port detection rule to obtain a detection result; analyzing the detection result; in response to the detection result indicating that the serial port information is normal, taking the serial port information as the processing result; in response to the detection result indicating that the serial port information is abnormal, determining the abnormal information and the abnormal cause in the serial port information, and taking the serial port information, the abnormal information and the abnormal cause as the processor result. On this basis, when the display screen displays the processing results, in response to the processing result being serial port information, the serial port information is displayed; in response to the processing result being serial port information, exception information and the cause of the exception, the serial port information is displayed, the exception information is marked in the displayed serial port information, and the cause of the exception is displayed in the blank area around the exception information in the form of annotations.

[0074] See also Figure 5, another electronic device provided in the embodiment of the present application may also include: an input port 203 connected to the processor 202, for transmitting commands input from the outside to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing results of the processor 202 to the outside; a communication module 205 connected to the processor 202, for realizing communication between the electronic device and the outside. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (Mobile High-Definition Link, MHL), Universal Serial Bus (Universal Serial Bus, USB), High-Definition Multimedia Interface (High-DefinitionMultimedia Interface, HDMI), wireless connection: wireless fidelity technology (WIreless Fidelity, WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.

[0075] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0076] Receiving serial port information transmitted by the bus through a first data interface connected to the bus on the mainboard, the bus being connected to the device of the server;

[0077] Processing the serial port information through a serial port chip connected to the first data interface to obtain a processing result;

[0078] Through the second data interface connected to the serial port chip and the cable, the processing result is transmitted to the display screen through the cable for display.

[0079] The embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: processing the serial port information corresponding to the serial port collection instruction to obtain a processing result. A virtual operation button is set on the display screen, and the display screen is used to: generate a serial port collection instruction according to the trigger information of the operation button, and transmit the serial port collection instruction to the second data interface through a cable.

[0080] A computer-readable storage medium is provided in an embodiment of the present application. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: receiving ID information corresponding to serial port information transmitted by a bus through a first data interface; accordingly, the serial port device processes the serial port information through a serial port chip, and in the process of obtaining the processing result, a corresponding relationship can be obtained, and the corresponding relationship includes the corresponding relationship between the ID and the device of the server, and the device of the server includes a processor, a memory, a PCIe card, and a hard disk; searching in the corresponding relationship to determine the target device corresponding to the ID information; determining the serial port detection rule corresponding to the target device, the serial port detection rule is used to detect whether the serial port information of the target device is abnormal; detecting the serial port information according to the serial port detection rule to obtain a detection result; analyzing the detection result; in response to the detection result indicating that the serial port information is normal, taking the serial port information as the processing result; in response to the detection result indicating that the serial port information is abnormal, determining the abnormal information and the abnormal cause in the serial port information, and taking the serial port information, the abnormal information and the abnormal cause as the processor result. On this basis, when the display screen displays the processing results, in response to the processing result being serial port information, the serial port information is displayed; in response to the processing result being serial port information, exception information and the cause of the exception, the serial port information is displayed, the exception information is marked in the displayed serial port information, and the cause of the exception is displayed in the blank area around the exception information in the form of annotations.

[0081] The computer-readable storage medium involved in this application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs (Compact Disc Read-Only Memory), or any other form of storage medium known in the technical field.

[0082] A computer program product provided in an embodiment of the present application includes a computer program / instruction. When the computer program / instruction is executed by a processor, the following steps are implemented:

[0083] Receiving serial port information transmitted by the bus through a first data interface connected to the bus on the mainboard, the bus being connected to the device of the server;

[0084] Processing the serial port information through a serial port chip connected to the first data interface to obtain a processing result;

[0085] Through the second data interface connected to the serial port chip and the cable, the processing result is transmitted to the display screen through the cable for display.

[0086] A computer program product provided in an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: processing serial port information corresponding to a serial port collection instruction to obtain a processing result. A virtual operation button is set on the display screen, and the display screen is used to: generate a serial port collection instruction according to the trigger information of the operation button, and transmit the serial port collection instruction to the second data interface through a cable.

[0087] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: receiving ID information corresponding to serial port information transmitted by a bus through a first data interface; accordingly, the serial port device processes the serial port information through a serial port chip, and in the process of obtaining the processing result, a corresponding relationship can be obtained, the corresponding relationship including the corresponding relationship between the ID and the device of the server, the device of the server including a processor, a memory, a PCIe card, and a hard disk; searching in the corresponding relationship to determine the target device corresponding to the ID information; determining the serial port detection rule corresponding to the target device, the serial port detection rule is used to detect whether the serial port information of the target device is abnormal; detecting the serial port information according to the serial port detection rule to obtain a detection result; analyzing the detection result; in response to the detection result indicating that the serial port information is normal, taking the serial port information as the processing result; in response to the detection result indicating that the serial port information is abnormal, determining the abnormal information and the abnormal cause in the serial port information, and taking the serial port information, the abnormal information and the abnormal cause as the processor result. On this basis, when the display screen displays the processing results, in response to the processing result being serial port information, the serial port information is displayed; in response to the processing result being serial port information, exception information and the cause of the exception, the serial port information is displayed, the exception information is marked in the displayed serial port information, and the cause of the exception is displayed in the blank area around the exception information in the form of annotations.

[0088] For the description of the relevant parts of a serial port information collection method, electronic device, computer-readable storage medium, and computer program product provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in a serial port information collection device provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

[0089] It should also be noted that, in this article, relational terms such as first and second, etc. 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 these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0090] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A serial port information collection device, characterized in that: It includes a serial port device and a display screen, and the serial port device is arranged on the main board of the server; Among them, the serial port device includes: a first data interface connected to the bus on the mainboard, used to receive serial port information transmitted by the bus, and the bus is connected to the device of the server; a serial port chip connected to the first data interface, used to process the serial port information and obtain a processing result; a second data interface connected to the serial port chip, used to connect to a cable, and transmit the processing result to the display screen through the cable for display.

2. The serial port information collection device according to claim 1, characterized in that: The display screen is provided with virtual operation buttons; The display screen is also used to: generate a serial port collection instruction according to the trigger information of the operation button, and transmit the serial port collection instruction to the second data interface through the cable; The serial port chip processes the serial port information to obtain a processing result, including: The serial port information corresponding to the serial port collection instruction is processed to obtain a processing result.

3. The serial port information collection device according to claim 1, characterized in that: The serial port chip is provided with a storage space for storing data.

4. The serial port information collection device according to claim 1, characterized in that: The bus comprises a PCI bus, and the cable comprises an I2C cable.

5. The serial port information collection device according to claim 1, characterized in that: The serial port device is placed in a card slot, and the card slot is welded on the mainboard.

6. The serial port information collection device according to claim 1, characterized in that: The first data interface is also used to: receive ID information corresponding to the serial port information transmitted by the bus; The serial port chip processes the serial port information to obtain a processing result, including: Acquire a corresponding relationship, wherein the corresponding relationship includes a corresponding relationship between an ID and a device of the server, wherein the device of the server includes a processor, a memory, a PCIe card, and a hard disk; Searching in the corresponding relationship to determine the target device corresponding to the ID information; Determine a serial port detection rule corresponding to the target device, wherein the serial port detection rule is used to detect whether serial port information of the target device is abnormal; Detect the serial port information according to the serial port detection rule to obtain a detection result; Analyzing the test results; In response to the detection result indicating that the serial port information is normal, taking the serial port information as the processing result; In response to the detection result indicating that the serial port information is abnormal, determining abnormal information and a cause of the abnormality in the serial port information, and using the serial port information, the abnormal information and the cause of the abnormality as the processor result; Wherein, the display screen displays the processing result, including: In response to the processing result being the serial port information, displaying the serial port information; In response to the processing result being the serial port information, the exception information and the exception cause, the serial port information is displayed, the exception information is marked in the displayed serial port information, and the exception cause is displayed in a blank area around the exception information in the form of an annotation.

7. The serial port information collection device according to claim 1, characterized in that: When the display screen does not receive the processing result, the hardware information, firmware information and error information of the server are displayed.

8. A method for collecting serial port information, characterized in that: Applicable to serial port devices set on the server motherboard, including: Receiving serial port information transmitted by a bus on the mainboard through a first data interface connected to the bus, wherein the bus is connected to a device of a server; Processing the serial port information through a serial port chip connected to the first data interface to obtain a processing result; The processing result is transmitted to a display screen through the cable for display via a second data interface connected to the serial port chip and the cable.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the serial port information collection method as claimed in claim 8 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the serial port information collection method as claimed in claim 8 are performed.