Serial port log output method, device, medium and equipment of server firmware

CN118860824BActive Publication Date: 2026-10-27M2 SEMICON LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410893249.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2026-10-27
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

[0003]相关技术中,在获取上述服务器固件的串口日志时,运维人员需要手动通过数据传输线将电脑连接至机房的服务器,才能去查看服务器固件的串口信息,使得获取服务器固件的串口日志的操作较为麻烦

Benefits of technology

[0034]本申请实施例提供的技术方案,应用于串口日志读取设备,串口日志读取设备包括WiFi收发组件和数据接收引脚,数据接收引脚与服务器中目标服务器固件的串口输出引脚电连接,通过数据接收引脚接收服务器的串口输出引脚输出的目标服务器固件的目标串口日志,通过WiFi收发组件建立与串口日志接收设备之间的无线通信连接,通过无线通信连接向串口日志接收设备发送目标服务器固件的目标串口日志。本申请通过将串口日志读取设备与服务器中的目标服务器固件的串口输出引脚电连接,使得串口日志读取设备能够接收目标服务器固件的目标串口日志,并将该目标串口日志输出至与串口日志读取设备无线连接的串口日志接收设备,避免了运维人员需要手动通过数据传输线将电脑连接至机房的服务器,才能去查看服务器固件的串口信息的繁琐操作,能够提高获取服务器固件的串口日志的简便性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860824B_ABST
    Figure CN118860824B_ABST
Patent Text Reader

Abstract

The application discloses a method, device, medium and equipment for outputting a serial port log of server firmware. The method is applied to a serial port log reading device. The serial port log reading device comprises a WiFi transceiving component and a data receiving pin. The data receiving pin is electrically connected with a serial port output pin of a target server firmware in a server. The target serial port log of the target server firmware output by the serial port output pin of the server is received through the data receiving pin. A wireless communication connection between the serial port log reading device and a serial port log receiving device is established through the WiFi transceiving component. The target serial port log of the target server firmware is sent to the serial port log receiving device through the wireless communication connection. The serial port log reading device can be connected wirelessly, and the serial port log of the corresponding target server firmware can be acquired. The method can improve the convenience of acquiring the serial port log of the server firmware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to a method, apparatus, medium, and device for outputting serial port logs in server firmware. Background Technology

[0002] When monitoring the server's operating status, operations and maintenance personnel typically analyze server firmware such as the BMC (Baseboard Management Controller) and CPU serial port logs to understand the server's operating status, thereby ensuring the server operates normally.

[0003] In related technologies, when obtaining the serial port logs of the aforementioned server firmware, maintenance personnel need to manually connect their computers to the server in the data center via a data transmission cable in order to view the serial port information of the server firmware, making the operation of obtaining the serial port logs of the server firmware quite cumbersome. Summary of the Invention

[0004] This application provides a method, apparatus, medium, and device for outputting serial port logs of server firmware, which can improve the ease of obtaining serial port logs of server firmware.

[0005] In a first aspect, embodiments of this application provide a method for outputting serial port logs of server firmware, applied to a serial port log reading device. The serial port log reading device includes a WiFi transceiver component and a data receiving pin, the data receiving pin being electrically connected to a serial port output pin of a target server firmware in the server. The method includes:

[0006] Receive the target serial port log of the target server firmware output by the server's serial port output pin through the data receiving pin.

[0007] Establish a wireless communication connection with the serial log receiving device using a WiFi transceiver component;

[0008] The target serial port log of the target server firmware is sent to the serial port log receiving device via a wireless communication connection.

[0009] In some embodiments, establishing a wireless communication connection with a serial log receiving device via a WiFi transceiver component includes:

[0010] Create a WiFi hotspot using WiFi transceiver components;

[0011] Determine the IP address of the WiFi hotspot;

[0012] Use the IP address of the WiFi hotspot as the first target IP address of the serial port log reading device;

[0013] A wireless communication connection is established between the WiFi transceiver component and the first target IP address and the serial log receiving device.

[0014] In some embodiments, determining the IP address of the WiFi hotspot includes:

[0015] Obtain the MAC address corresponding to the serial port log reading device;

[0016] The IP address for creating a WiFi hotspot is generated using WiFi transceiver components and a MAC address.

[0017] In some embodiments, establishing a wireless communication connection with a serial log receiving device via a WiFi transceiver component includes:

[0018] Obtain the second target IP address of the serial port log reading device pre-configured by the user;

[0019] A wireless communication connection is established between the device and the serial log receiving device using a WiFi transceiver component and a second target IP address.

[0020] In some embodiments, sending the target serial port log of the target server firmware to a serial port log receiving device via a wireless communication connection includes:

[0021] Forward the target serial port log to the IP address corresponding to the serial port log reading device, so that the serial port log receiving device can obtain the target serial port log through the IP address corresponding to the log reading device.

[0022] In some embodiments, the serial port log reading device further includes a data transmission pin, which is electrically connected to the serial port input pin of the target server firmware in the server.

[0023] Send the target server firmware's target serial port log to the serial port log receiving device via a wireless communication connection, including:

[0024] Based on the wireless communication connection, the serial port log receiving device receives log acquisition instructions for the serial port logs of the target server firmware.

[0025] The log acquisition command is forwarded to the server via the data transmission pin, so that the server responds to the log acquisition command and sends the target serial port log to the serial port log reading device;

[0026] The target serial port log of the target server firmware is received through the data receiving pin, and then the target serial port log is sent to the serial port log receiving device through a wireless communication connection.

[0027] In some embodiments, the target server firmware is a BMC or a CPU.

[0028] Secondly, embodiments of this application also provide a serial port log output device for server firmware, applied to a serial port log reading device. The serial port log reading device includes a WiFi transceiver component and a data receiving pin, the data receiving pin being electrically connected to the serial port output pin of the target server firmware in the server. The device includes:

[0029] The serial port log reading module is used to receive the target serial port log of the target server firmware output by the serial port output pin of the server through the data receiving pin;

[0030] The wireless communication establishment module is used to establish a wireless communication connection with the serial log receiving device via the WiFi transceiver component.

[0031] The output module is used to send the target serial port log of the target server firmware to the serial port log receiving device via a wireless communication connection.

[0032] Thirdly, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when run on a computer, causes the computer to execute a serial port log output method of server firmware as provided in any embodiment of this application.

[0033] Fourthly, embodiments of this application also provide a serial port log reading device, including a processor and a memory. The memory contains a computer program, and the processor executes a serial port log output method of the server firmware provided in any embodiment of this application by calling the computer program.

[0034] The technical solution provided in this application is applied to a serial port log reading device. The serial port log reading device includes a WiFi transceiver component and a data receiving pin. The data receiving pin is electrically connected to the serial port output pin of the target server firmware in the server. The data receiving pin receives the target serial port log of the target server firmware output from the server's serial port output pin. A wireless communication connection is established between the WiFi transceiver component and the serial port log receiving device. The target serial port log of the target server firmware is then sent to the serial port log receiving device via this wireless communication connection. This application, by electrically connecting the serial port log reading device to the serial port output pin of the target server firmware in the server, enables the serial port log reading device to receive the target serial port log of the target server firmware and output the target serial port log to the serial port log receiving device wirelessly connected to the serial port log reading device. This avoids the cumbersome operation of maintenance personnel manually connecting a computer to the server in the data center via a data transmission cable to view the serial port information of the server firmware, thus improving the ease of obtaining the serial port log of the server firmware. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 This is a schematic diagram illustrating an application scenario of the serial port log output method for server firmware provided in this application embodiment.

[0037] Figure 2 This is a schematic diagram of the first method for outputting serial port logs of server firmware provided in an embodiment of this application.

[0038] Figure 3 This is a schematic diagram illustrating another application scenario of the serial port log output method for server firmware provided in this application embodiment.

[0039] Figure 4 This is a schematic diagram of a second method for outputting serial port logs of server firmware provided in an embodiment of this application.

[0040] Figure 5 This is a schematic diagram of the structure of the serial port log output device for the server firmware provided in this application embodiment.

[0041] Figure 6 This is a schematic diagram of the first structure of the serial port log reading device provided in the embodiments of this application.

[0042] Figure 7 This is a schematic diagram of a second structure of the serial port log reading device provided in an embodiment of this application. Detailed Implementation

[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the protection scope of this application.

[0044] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0045] This application provides a method for outputting serial port logs of server firmware. The execution subject of this method can be the serial port log output device of the server firmware provided in this application, or a serial port log reading device that integrates the serial port log output device of the server firmware. The serial port log output device of the server firmware can be implemented in hardware or software.

[0046] For example, please see Figure 1 , Figure 1 This diagram illustrates an application scenario of the serial port log output method for server firmware provided in this embodiment. The serial port log receiving device can be a smartphone, tablet, PDA, laptop, or desktop computer, etc. Figure 1 As shown, the serial port log reading device is physically connected to the server via pins and wirelessly connected to the serial port log receiving device. The serial port log reading device receives the target serial port log of the target server firmware output from the server's serial port output pin via its data receiving pin. It establishes a wireless communication connection with the serial port log receiving device via a WiFi transceiver component and sends the target serial port log of the target server firmware to the serial port log receiving device via this wireless communication connection. This allows the present application to obtain the serial port log of the corresponding target server firmware simply by wirelessly connecting to the serial port log reading device, thus improving the ease of obtaining the server firmware's serial port log.

[0047] Please see Figure 2 , Figure 2 This is a schematic diagram of a first method for outputting serial port logs of server firmware according to an embodiment of this application. The method for outputting serial port logs of server firmware provided in this embodiment is applied to a serial port log reading device. The serial port log reading device includes a WiFi transceiver component and a data receiving pin. The data receiving pin is electrically connected to the serial port output pin of the target server firmware in the server. The specific flow of this method is as follows:

[0048] S110: Receive the target serial port log of the target server firmware output by the serial port output pin of the server through the data receiving pin.

[0049] The target server firmware can be BMC, CPU, or other server firmware.

[0050] The serial port log receiving device can be a smartphone, tablet, PDA, laptop, or desktop computer, etc.

[0051] For example, a serial port log reader can be assembled using an ESP8266 module and TX / RX pins. The ESP8266 is a single-chip Wi-Fi microcontroller; the TX pin is the data receive pin for the serial port log reader, used to receive data; and the RX pin is the data transmit pin for transmitting data. It is understood that the Wi-Fi transceiver component in the serial port log reader can utilize the Wi-Fi function module within the ESP8266 module.

[0052] In this embodiment, the user can pre-connect the data receiving pin of the serial port log reading device to the serial port output pin of the target server firmware. For example, the serial port log reading device can be installed on the serial port output pin of the BMC / CPU on the server motherboard. After the serial port log reading device is electrically connected to the serial port output pin of the target server firmware, the serial port output pin will send the target serial port log of the target server firmware to the log reading device through the data receiving pin.

[0053] S120. Establish a wireless communication connection with the serial log receiving device through the WiFi transceiver component.

[0054] In this embodiment of the application, the serial port log reading device includes a WiFi transceiver component, which can establish a wireless communication connection with the serial port log receiving device through the WiFi transceiver component.

[0055] Specifically, in some embodiments, step S120 may include the following steps:

[0056] Obtain the second target IP address of the serial port log reading device pre-configured by the user;

[0057] A wireless communication connection is established between the device and the serial log receiving device using a WiFi transceiver component and a second target IP address.

[0058] For example, the user can pre-configure the IP address corresponding to the serial port log reading device through the host computer. This IP address is the second target IP address mentioned above. Then, the serial port log reading device can obtain the local area network in the current communication environment through the WiFi transceiver component, and establish a wireless communication connection with the serial port log receiving device through the local area network and the second target address.

[0059] It should be noted that the first target address and the second target address in this application represent the IP addresses corresponding to the serial port log reading devices created in different ways. In order to distinguish between the two IP addresses generated by these two different methods, the terms "first" and "second" are used for differentiation.

[0060] S130: Send the target serial port log of the target server firmware to the serial port log receiving device via wireless communication connection.

[0061] It should be noted that users can log in to the IP address corresponding to the serial port log reading device through the serial port log receiving device. At this time, the serial port log receiving device and the serial port log reading device establish a wireless communication connection. Then, based on this wireless communication connection, the serial port log reading device can send the corresponding target serial port logs to the serial port log receiving device.

[0062] In some embodiments, step S130 may include the following steps:

[0063] Forward the target serial port log to the IP address corresponding to the serial port log reading device, so that the serial port log receiving device can obtain the target serial port log through the IP address corresponding to the log reading device.

[0064] In this embodiment of the application, after the serial port log reading device is powered on, it will send the received target serial port log to the IP address corresponding to the serial port log reading device. After logging into this IP address, the serial port log receiving device can obtain the target serial port log.

[0065] It should be noted that the serial port log reading device provided in this application logically adopts a client / server model, with the serial port log receiving device acting as the client and the serial port log reading device acting as the server. During operation, the serial port log reading device continuously receives data output from the server's serial port pins, processes it, and forwards it to the client on the network. All network connections, network protocols, and application interfaces involved are defined by the server. After power-on, the serial port log reading device acquires the local area network (LAN) in the current environment, i.e., the wireless WiFi signal within the LAN, and automatically connects to the wireless network specified by the user within the LAN. It can also automatically assign an IP address based on the MAC address of the serial port log reading tool. Furthermore, the serial port log reading device provided in this application utilizes the Telnet protocol at the application layer of TCP / IP for remote data transmission and reception during network data interaction. The serial port log reading device provided in this application can support simultaneous connection and access from multiple serial port log receiving devices.

[0066] In some embodiments, the serial port log reading device further includes a data transmission pin, which is electrically connected to the serial port input pin of the target server firmware in the server. Step S130 may also include the following steps:

[0067] Based on the wireless communication connection, the serial port log receiving device receives log acquisition instructions for the serial port logs of the target server firmware.

[0068] The log acquisition command is forwarded to the server via the data transmission pin, so that the server responds to the log acquisition command and sends the target serial port log to the serial port log reading device;

[0069] The target serial port log of the target server firmware is received through the data receiving pin, and then the target serial port log is sent to the serial port log receiving device through a wireless communication connection.

[0070] The data transmission pin is the TX pin mentioned in step S110.

[0071] It should be noted that the TX pin of the serial log reading device is connected to the RX pin of the server firmware serial port, and the RT pin of the serial log reading device is connected to the TX pin of the server firmware serial port. The RX pin of the server firmware serial port corresponds to the serial input pin, and the TX pin of the server firmware serial port corresponds to the serial output pin.

[0072] In this embodiment, after the serial port log reading device and the serial port log receiving device establish a wireless communication connection, the user can use the serial port log receiving device to send and receive commands with the server through the serial port log reading device.

[0073] For example, please refer to Figure 3 , Figure 3 This diagram illustrates another application scenario of the serial port log output method for server firmware provided in this application embodiment. The diagram shows the interaction process between a serial port log reading device, a serial port log receiving device, and a server. The user enters a command or code into the serial port log receiving device; for example, the command could be a log retrieval instruction. The interaction process includes the following steps:

[0074] S1. The serial port log receiving device sends the log acquisition command to the serial port log reading device.

[0075] S2. After receiving the log retrieval instruction, the serial port log reading device forwards the log retrieval instruction to the server.

[0076] S3. After the server firmware receives the log retrieval command on the serial port input pin, the server responds to the log retrieval command and retrieves the target serial port log.

[0077] S4. The server sends the target serial port log corresponding to the log retrieval command to the serial port log reading device.

[0078] S5. After receiving the target serial port log, the serial port log reading device forwards the target serial port log to the serial port log receiving device through the wireless communication connection.

[0079] S6. The serial port log receiving device receives the target serial port log.

[0080] In practice, this application is not limited by the execution order of the described steps. Without causing conflicts, some steps may be performed in other orders or simultaneously.

[0081] As can be seen from the above, the serial port log output method for server firmware provided in this application is applied to a serial port log reading device. The serial port log reading device includes a WiFi transceiver component and a data receiving pin. The data receiving pin is electrically connected to the serial port output pin of the target server firmware in the server. The target serial port log of the target server firmware is received by the data receiving pin and output by the serial port output pin of the server. A wireless communication connection is established between the WiFi transceiver component and the serial port log receiving device. The target serial port log of the target server firmware is sent to the serial port log receiving device through the wireless communication connection. By electrically connecting the serial port log reading device to the serial port output pin of the target server firmware in the server, this application enables the serial port log reading device to receive the target serial port log of the target server firmware and output the target serial port log to the serial port log receiving device wirelessly connected to the serial port log reading device. This avoids the cumbersome operation of maintenance personnel having to manually connect a computer to the server in the data center via a data transmission cable to view the serial port information of the server firmware, thus improving the ease of obtaining the serial port log of the server firmware.

[0082] Based on the methods described in the preceding embodiments, the following examples will provide further detailed explanations.

[0083] Please see Figure 4 , Figure 4 This is a second flowchart illustrating a method for outputting serial port logs of server firmware according to an embodiment of this application. The method for outputting serial port logs of server firmware provided in this embodiment is applied to a serial port log reading device. The serial port log reading device includes a WiFi transceiver component and a data receiving pin. The data receiving pin is electrically connected to the serial port output pin of the target server firmware in the server. The method may include the following steps:

[0084] S210: Receive the target serial port log of the target server firmware output by the serial port output pin of the server through the data receiving pin.

[0085] For example, when the target server firmware is BMC, the data receiving pin of the serial port log reading device is electrically connected to the serial port output pin of the BMC on the server motherboard. At this time, the server will output the corresponding BMC serial port log through the serial port output pin of the BMC.

[0086] For example, when the target server firmware is a CPU, the data receiving pin of the serial port log reading device is electrically connected to the serial port output pin of the CPU on the server motherboard. At this time, the server will output the corresponding CPU serial port log through the serial port output pin of the CPU.

[0087] S220: Create a WiFi hotspot using the WiFi transceiver component.

[0088] In this embodiment, the serial port log reading device can be assembled from an ESP8266 module and the TX / RX pins. This serial port log reading device can create a WiFi hotspot in AP mode. It should be noted that the log reading device defaults to AP mode upon power-up.

[0089] S230. Determine the IP address of the WiFi hotspot.

[0090] Specifically, when determining the IP address of a WiFi hotspot, the MAC address corresponding to the serial port log reading device can be obtained, and the IP address of the WiFi hotspot can be created through the WiFi transceiver component and the MAC address.

[0091] In this embodiment, after power-on, the serial port log reading device will obtain the local area network in the current communication environment through the WiFi transceiver component (that is, the WiFi function module in the ESP8266 module), and assign an IP address through the MAC address of the serial port log reading device. This IP address is the IP address of the WiFi hotspot.

[0092] S240. Use the IP address of the WiFi hotspot as the first target IP address of the serial port log reading device.

[0093] In this embodiment, the IP address of the WiFi hotspot is used as the IP address of the serial port log reading device, which is also the first target IP address.

[0094] It should be noted that the first target address and the second target address in this application represent the IP addresses corresponding to the serial port log reading devices created in different ways. In order to distinguish between the two IP addresses generated by these two different methods, the terms "first" and "second" are used for differentiation.

[0095] S250 establishes a wireless communication connection with the serial log receiving device via a WiFi transceiver component and a first target IP address.

[0096] In this embodiment, it should be noted that the user can log in to the IP address corresponding to the serial port log reading device through the serial port log receiving device. At this time, the serial port log receiving device and the serial port log reading device establish a wireless communication connection. Then, based on this wireless communication connection, the serial port log reading device can send the corresponding target serial port log to the serial port log receiving device.

[0097] S260. Forward the target serial port log to the first target IP address of the serial port log reading device so that the serial port log receiving device can obtain the target serial port log through the first target IP address.

[0098] In this embodiment of the application, after the serial port log reading device is powered on, it will send the received target serial port log to the IP address corresponding to the serial port log reading device. After logging into this IP address, the serial port log receiving device can obtain the target serial port log.

[0099] For example, if an operations and maintenance (O&M) personnel use a laptop as the serial port log receiving device, they can use remote serial port software such as xshell, putty, or mobatermel on their laptop to connect to the IP address of the serial port log reading device and then automatically obtain the serial port logs of the corresponding server firmware.

[0100] For example, maintenance personnel can also connect to the serial log reading device by entering the IP address of the serial log reading device into the browser of the serial log receiving device, and then automatically obtain the serial log of the corresponding server firmware.

[0101] As can be seen from the above, the serial port log output method for server firmware proposed in this application embodiment can collect serial port log data wirelessly during server firmware development and maintenance, greatly improving the work efficiency of maintenance personnel and server developers. Furthermore, the serial port log output method for server firmware proposed in this application embodiment can obtain server firmware serial port logs outside the data center, avoiding the adverse health effects of the harsh server room environment on maintenance and development personnel.

[0102] In one embodiment, a device for outputting serial port logs of server firmware is also provided. Please refer to [link / reference]. Figure 5 , Figure 5This is a schematic diagram of the structure of the serial port log output device 300 for server firmware provided in this application embodiment. The serial port log output device 300 is applied to a serial port log reading device, which includes a WiFi transceiver component and a data receiving pin. The data receiving pin is electrically connected to the serial port output pin of the target server firmware in the server. The serial port log output device 300 includes a serial port log reading module 301, a wireless communication establishment module 302, and an output module 303, as follows:

[0103] The serial port log reading module 301 is used to receive the target serial port log of the target server firmware output by the serial port output pin of the server through the data receiving pin;

[0104] The wireless communication establishment module 302 is used to establish a wireless communication connection with the serial log receiving device through the WiFi transceiver component;

[0105] The output module 303 is used to send the target serial port log of the target server firmware to the serial port log receiving device via a wireless communication connection.

[0106] In some embodiments, the wireless communication establishment module 302 may be used for:

[0107] Create a WiFi hotspot using WiFi transceiver components;

[0108] Determine the IP address of the WiFi hotspot;

[0109] Use the IP address of the WiFi hotspot as the first target IP address of the serial port log reading device;

[0110] A wireless communication connection is established between the WiFi transceiver component and the first target IP address and the serial log receiving device.

[0111] In some embodiments, the wireless communication establishment module 302 may be used for:

[0112] Obtain the MAC address corresponding to the serial port log reading device;

[0113] The IP address for creating a WiFi hotspot is generated using WiFi transceiver components and a MAC address.

[0114] In some embodiments, the wireless communication establishment module 302 may be used for:

[0115] Obtain the second target IP address of the serial port log reading device pre-configured by the user;

[0116] A wireless communication connection is established between the device and the serial log receiving device using a WiFi transceiver component and a second target IP address.

[0117] In some embodiments, the output module 303 can be used for:

[0118] Forward the target serial port log to the IP address corresponding to the serial port log reading device, so that the serial port log receiving device can obtain the target serial port log through the IP address corresponding to the log reading device.

[0119] In some embodiments, the serial port log reading device further includes a data transmission pin, which is electrically connected to the serial port input pin of the target server firmware in the server. The wireless communication establishment module 302 can be used for:

[0120] Based on the wireless communication connection, the serial port log receiving device receives log acquisition instructions for the serial port logs of the target server firmware.

[0121] The log acquisition command is forwarded to the server via the data transmission pin, so that the server responds to the log acquisition command and sends the target serial port log to the serial port log reading device;

[0122] The target serial port log of the target server firmware is received through the data receiving pin, and then the target serial port log is sent to the serial port log receiving device through a wireless communication connection.

[0123] In some embodiments, the target server firmware is BMC or CPU.

[0124] It should be noted that the serial port log output device of the server firmware provided in this application embodiment belongs to the same concept as the serial port log output method of the server firmware in the above embodiment. Any of the methods provided in the serial port log output method embodiment of the server firmware can be implemented through the serial port log output device of the server firmware. For details of its implementation process, please refer to the serial port log output method embodiment of the server firmware, which will not be repeated here.

[0125] Furthermore, to better implement the serial port log output method of the server firmware in the embodiments of this application, this application also provides a serial port log reading device based on the serial port log output method of the server firmware. Please refer to... Figure 6 , Figure 6 This is a schematic diagram of a serial port log reading device provided in an embodiment of this application. The serial port log reading device 400 includes a processor 401 and a memory 402. The processor 401 and the memory 402 are electrically connected.

[0126] The processor 401 is the control center of the serial port log reading device 400. It connects various parts of the serial port log reading device through various interfaces and lines. By running or calling the computer program stored in the memory 402, and calling the data stored in the memory 402, it executes various functions of the serial port log reading device and processes data, thereby performing overall monitoring of the serial port log reading device.

[0127] The processor 601 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0128] Memory 402 can be used to store computer programs and data. The computer programs stored in memory 402 contain instructions that can be executed in the processor. The computer programs can be composed of various functional modules. The processor 401 executes various functional applications and data processing by calling the computer programs stored in memory 402.

[0129] The memory 602 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as sound playback function, image playback function, etc.). The data storage area may store data created based on the use of the electronic device 600 (such as audio data, video data, etc.). Furthermore, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disks, RAM, plug-in hard disks, smart media cards (SMC), secure digital cards (SD cards), flash cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.

[0130] In this embodiment, the processor 401 in the serial port log reading device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions:

[0131] Receive the target serial port log of the target server firmware output by the server's serial port output pin through the data receiving pin.

[0132] Establish a wireless communication connection with the serial log receiving device using a WiFi transceiver component;

[0133] The target serial port log of the target server firmware is sent to the serial port log receiving device via a wireless communication connection.

[0134] In some embodiments, please refer to Figure 7 , Figure 7 This is a schematic diagram of a second structure of the serial port log reading device provided in this application embodiment. The serial port log reading device 400 further includes: a WiFi transceiver component 403, a data receiving pin 404, and a data transmitting pin 405. The processor 401 is electrically connected to the WiFi transceiver component 403, the data receiving pin 404, and the data transmitting pin 405, respectively.

[0135] WiFi transceiver component 403 is used to transmit and receive radio frequency signals to communicate with network devices or other electronic devices wirelessly.

[0136] The data receive pin 404 is used to receive data.

[0137] The data transmission pin 405 is used to transmit data.

[0138] Although not shown in the figure, the serial port log reading device 400 may also include a power management converter, etc., which will not be described in detail here.

[0139] In this embodiment, the processor 401 in the serial port log reading device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions:

[0140] Receive the target serial port log of the target server firmware output by the server's serial port output pin through the data receiving pin.

[0141] Establish a wireless communication connection with the serial log receiving device using a WiFi transceiver component;

[0142] The target serial port log of the target server firmware is sent to the serial port log receiving device via a wireless communication connection.

[0143] In some implementations, when the processor 401 establishes a wireless communication connection with the serial log receiving device via the WiFi transceiver component, it may perform the following:

[0144] Create a WiFi hotspot using WiFi transceiver components;

[0145] Determine the IP address of the WiFi hotspot;

[0146] Use the IP address of the WiFi hotspot as the first target IP address of the serial port log reading device;

[0147] A wireless communication connection is established between the WiFi transceiver component and the first target IP address and the serial log receiving device.

[0148] In some implementations, when determining the IP address of the WiFi hotspot, the processor 401 may perform the following: obtain the MAC address corresponding to the serial port log reading device;

[0149] The IP address for creating a WiFi hotspot is generated using WiFi transceiver components and a MAC address.

[0150] In some implementations, when the processor 401 establishes a wireless communication connection with the serial log receiving device via the WiFi transceiver component, it may perform the following:

[0151] Obtain the second target IP address of the serial port log reading device pre-configured by the user;

[0152] A wireless communication connection is established between the device and the serial log receiving device using a WiFi transceiver component and a second target IP address.

[0153] In some implementations, when the processor 401 executes the following when sending the target serial port log of the target server firmware to the serial port log receiving device via a wireless communication connection:

[0154] Forward the target serial port log to the IP address corresponding to the serial port log reading device, so that the serial port log receiving device can obtain the target serial port log through the IP address corresponding to the log reading device.

[0155] In some implementations, the serial port log reading device further includes a data transmission pin, which is electrically connected to the serial port input pin of the target server firmware in the server. When the processor 401 executes the command to send the target serial port log of the target server firmware to the serial port log receiving device via the wireless communication connection, it can perform the following:

[0156] Based on the wireless communication connection, the serial port log receiving device receives log acquisition instructions for the serial port logs of the target server firmware.

[0157] The log acquisition command is forwarded to the server via the data transmission pin, so that the server responds to the log acquisition command and sends the target serial port log to the serial port log reading device;

[0158] The target serial port log of the target server firmware is received through the data receiving pin, and then the target serial port log is sent to the serial port log receiving device through a wireless communication connection.

[0159] This application also provides a computer-readable storage medium storing a computer program. When the computer program is run on a computer, the computer executes the serial port log output method of the server firmware described in any of the above embodiments.

[0160] It should be noted that those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, which may include, but is not limited to, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

[0161] Furthermore, the terms "first," "second," and "third," etc., used in this application are used to distinguish different objects, not to describe a specific order. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments may also include steps or modules not listed, or some embodiments may include other steps or modules inherent to these processes, methods, products, or devices.

[0162] The serial port log output method, apparatus, medium, and device for server firmware provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application; at the same time, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for outputting serial port logs in server firmware, characterized in that, This is applied to a serial port log reading device, which includes a WiFi transceiver component, a data receiving pin, and a data sending pin. The data receiving pin is electrically connected to the serial port output pin of the target server firmware in the server. The data transmission pin is electrically connected to the serial port input pin of the target server firmware in the server; The method includes: The target serial port log of the target server firmware is received by the data receiving pin through the serial port output pin of the server. A wireless communication connection is established with the serial log receiving device through the WiFi transceiver component; The target serial port log of the target server firmware is sent to the serial port log receiving device via the wireless communication connection. The step of sending the target serial port log of the target server firmware to the serial port log receiving device via the wireless communication connection includes: Based on the wireless communication connection, the serial port log receiving device receives a log acquisition instruction for the serial port log of the target server firmware. The log acquisition instruction is forwarded to the server through the data transmission pin, so that the server responds to the log acquisition instruction and sends the target serial port log to the serial port log reading device; The target serial port log of the target server firmware is received through the data receiving pin, and the target serial port log is sent to the serial port log receiving device through the wireless communication connection.

2. The method for outputting serial port logs of server firmware as described in claim 1, characterized in that, The establishment of a wireless communication connection between the WiFi transceiver component and the serial log receiving device includes: A WiFi hotspot is created using the WiFi transceiver component; Determine the IP address of the WiFi hotspot; Use the IP address of the WiFi hotspot as the first target IP address of the serial port log reading device; A wireless communication connection is established between the WiFi transceiver component and the first target IP address and the serial log receiving device.

3. The method for outputting serial port logs of server firmware as described in claim 2, characterized in that, Determining the IP address of the WiFi hotspot includes: Obtain the MAC address corresponding to the serial port log reading device; The IP address of the WiFi hotspot is created using the WiFi transceiver component and the MAC address.

4. The method for outputting serial port logs in server firmware as described in claim 1, characterized in that, The establishment of a wireless communication connection between the WiFi transceiver component and the serial log receiving device includes: Obtain the second target IP address of the serial port log reading device pre-configured by the user; A wireless communication connection is established between the WiFi transceiver component and the second target IP address and the serial log receiving device.

5. The method for outputting serial port logs of server firmware as described in claim 2 or 4, characterized in that, The step of sending the target serial port log of the target server firmware to the serial port log receiving device via the wireless communication connection includes: The target serial port log is forwarded to the IP address corresponding to the serial port log receiving device, so that the serial port log receiving device can obtain the target serial port log through the IP address corresponding to the log reading device.

6. The method for outputting serial port logs in server firmware as described in claim 1, characterized in that, The target server firmware is either BMC or CPU.

7. A serial port log output device for server firmware, characterized in that, This is applied to a serial port log reading device, which includes a WiFi transceiver component and a data receiving pin, wherein the data receiving pin is electrically connected to the serial port output pin of the target server firmware in the server. The serial port log reading device further includes a data transmission pin, which is electrically connected to the serial port input pin of the target server firmware in the server; The device includes: The serial port log reading module is used to receive the target serial port log of the target server firmware output by the serial port output pin of the server through the data receiving pin; A wireless communication establishment module is used to establish a wireless communication connection with a serial log receiving device through the WiFi transceiver component; The output module is used to send the target serial port log of the target server firmware to the serial port log receiving device via the wireless communication connection. The output module is specifically used to receive a log acquisition instruction from the serial port log receiving device for the serial port log of the target server firmware based on the wireless communication connection; forward the log acquisition instruction to the server through the data transmission pin, so that the server responds to the log acquisition instruction by sending the target serial port log to the serial port log reading device; receive the target serial port log of the target server firmware through the data reception pin, and send the target serial port log to the serial port log receiving device through the wireless communication connection.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is run on a computer, it causes the computer to perform the serial port log output method of the server firmware as described in any one of claims 1 to 6.

9. A serial port log reading device, comprising a processor and a memory, wherein the memory stores a computer program, characterized in that, The processor invokes the computer program to execute the serial port log output method of the server firmware as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent device wireless debugging system and method

    CN110753363A