An equipment cabinet silk screen display method and device, computer equipment and medium

CN117077222BActive Publication Date: 2026-10-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310885706.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-19
Publication Date
2026-10-20
Estimated Expiration
2043-07-19

AI Technical Summary

Technical Problem

[0003]目前,为了准确直观地对服务器所连接的外接设备进行属性查看和设置,BIOS研发工程师需要预先收集服务器设备的配置信息例如,服务器的机箱丝印信息,但是,随着服务器技术的发展,服务器的配置也越来越多,而且各个配置中包括的设备数量也是动态变化的,相关技术中对于服务器设备的配置信息的显示及处理方法无法满足功能要求

Benefits of technology

[0038]区别于现有技术,本申请所提供的方法包括:构建结构体变量,对结构体变量中的每一变量进行赋值,得到结构体变量参数;获取设备接口信息以及机箱丝印信息,其中设备接口与机箱丝印具有对应关系;结构体变量参数与设备接口信息、机箱丝印信息具有第一映射关系;利用库函数调用预先设定的协议,获取结构体变量参数;根据结构体变量参数,以及所需要的设备接口信息得到该设备接口信息对应的机箱丝印信息;合并机箱丝印信息与设备信息,得到合并后的机箱丝印信息与设备信息并展示该信息。采用本方法能够实现设备信息与机箱丝印信息的同步显示,便于用户快获取到设备对应的机箱丝印信息,从而实现对不同设备接口连接的外部设备的准确定位。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117077222B_ABST
    Figure CN117077222B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of servers, in particular to a device cabinet silk screen display method and device, computer equipment and a medium. The method comprises the following steps: constructing a structure variable, assigning values to each variable in the structure variable to obtain a structure variable parameter; obtaining device interface information and cabinet silk screen information, wherein the device interface and the cabinet silk screen have a corresponding relationship; the structure variable parameter has a first mapping relationship with the device interface information and the cabinet silk screen information; a library function is used to call a preset protocol to obtain the structure variable parameter; according to the structure variable parameter and the required device interface information, the cabinet silk screen information corresponding to the device interface information is obtained; the cabinet silk screen information and the device information are combined to obtain the combined cabinet silk screen information and device information, and the information is displayed. The method can realize the synchronous display of the device information and the cabinet silk screen information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server technology, and in particular to a method, apparatus, computer equipment, and medium for displaying screen printing on a device chassis. Background Technology

[0002] With the rapid development of server technology, ease of use, performance, and functionality are constantly improving. In particular, high efficiency in usability enables server operators to manage servers easily and work efficiently. As server technology advances, servers support an increasing number of memory modules, necessitating the display of the memory module's chassis markings in the Basic Input Output System (BIOS) to help users understand the topology of the currently connected memory.

[0003] Currently, in order to accurately and intuitively view and configure the properties of external devices connected to the server, BIOS R&D engineers need to collect the configuration information of the server devices in advance, such as the silkscreen information of the server chassis. However, with the development of server technology, the configuration of servers is becoming more and more diverse, and the number of devices included in each configuration is also dynamically changing. The display and processing methods of server device configuration information in related technologies cannot meet the functional requirements. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, and storage medium for displaying screen printing on a device chassis that can accurately locate external devices connected to different device interfaces, in order to address the aforementioned technical problems.

[0005] To solve the above-mentioned technical problems, in a first aspect, a method for screen printing display on a device chassis is provided, the method comprising:

[0006] Construct a structure variable, assign values ​​to each variable in the structure variable, and obtain the structure variable parameters;

[0007] Obtain device interface information and chassis silkscreen information, where there is a corresponding relationship between device interfaces and chassis silkscreen.

[0008] The structure variable parameters have a primary mapping relationship with the device interface information and the chassis silkscreen information;

[0009] Use library functions to call a pre-defined protocol to obtain structure variable parameters;

[0010] Based on the structure variable parameters and the required device interface information, the chassis silkscreen information corresponding to the device interface information is obtained;

[0011] Merge the chassis silkscreen information and the device information to obtain the merged chassis silkscreen information and device information, and then display the information.

[0012] In one embodiment, a structure variable is constructed, and values ​​are assigned to each variable in the structure variable to obtain the structure variable parameters, including:

[0013] In the code of the basic input / output system, construct structure variables, assign values ​​to each structure variable, encapsulate each assigned structure variable, and generate the corresponding structure variable parameters.

[0014] In one embodiment, obtaining structure variable parameters using a pre-defined protocol via library function calls includes:

[0015] Register and install a pre-defined protocol, which is configured with a structure variable parameter and a second mapping relationship between the structure variable parameter and the device;

[0016] Construct library functions that call predefined protocols to obtain structure variable parameters.

[0017] In one embodiment, obtaining the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information includes:

[0018] In response to device-to-device interface connections, load the pre-defined protocol and obtain the structure variable parameters corresponding to the current device interface;

[0019] Based on the structure variable parameters, the correspondence between device interface information and chassis silkscreen information, as well as the correspondence between device interface and chassis silkscreen, is obtained; based on the correspondence between device interface and chassis silkscreen, the chassis silkscreen information corresponding to the device interface information is obtained.

[0020] In one embodiment, the chassis silkscreen information and device information are merged to obtain the merged chassis silkscreen information and device information, which includes:

[0021] Obtain the string information printed on the chassis and the string information of the device;

[0022] The string information printed on the chassis is concatenated with the string information of the device to obtain the merged chassis silkscreen information and device information.

[0023] In one embodiment, obtaining and displaying the merged chassis silkscreen information and device information includes:

[0024] The combined chassis silkscreen information and device information are displayed in the basic input / output system information display area.

[0025] The information display area includes the power-on self-test interface, the settings function interface, the SATA settings option interface, and the SATA hard drive boot option.

[0026] In one embodiment, constructing structure variables in the code of the basic input / output system includes:

[0027] Obtain the code for the Basic Input / Output System (PIS), and select a portion of the PIS code as the code to be processed.

[0028] Add a structure to the code to be processed, set the variable items of the structure, and encapsulate the variable value capture function corresponding to the variable items.

[0029] Use the structure to call the corresponding variable capture function to assign values ​​to the structure variable items; output the assigned values ​​of the structure variable items as structure variable parameters.

[0030] To address the aforementioned technical problems, a second aspect provides a screen printing display device for a device chassis, the device comprising:

[0031] The module is used to assign values ​​to each variable in the structure variable to obtain the structure variable parameters;

[0032] The acquisition module is used to acquire device interface information and chassis silkscreen information, where there is a corresponding relationship between the device interface and the chassis silkscreen; it uses library functions to call a pre-defined protocol to acquire structure variable parameters; and it obtains the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information.

[0033] The mapping module is used to obtain the first mapping relationship between the structure variable parameters and the device interface information and chassis silkscreen information;

[0034] The merging module is used to merge the chassis silkscreen information and the equipment information to obtain merged chassis silkscreen information and equipment information;

[0035] The display module is used to show the merged chassis silkscreen information and equipment information.

[0036] To address the aforementioned technical problems, a third aspect provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps: the processor executes the steps of the method described in the first aspect.

[0037] In order to solve the above-mentioned technical problems, in a fourth aspect, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in the first aspect.

[0038] Unlike existing technologies, the method provided in this application includes: constructing a structure variable, assigning values ​​to each variable in the structure variable to obtain structure variable parameters; obtaining device interface information and chassis silkscreen information, wherein the device interface and chassis silkscreen have a corresponding relationship; the structure variable parameters have a first mapping relationship with the device interface information and chassis silkscreen information; using library functions to call a pre-defined protocol to obtain the structure variable parameters; obtaining the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information; merging the chassis silkscreen information and device information to obtain the merged chassis silkscreen information and device information, and displaying the information. This method enables the synchronous display of device information and chassis silkscreen information, facilitating users to quickly obtain the chassis silkscreen information corresponding to the device, thereby achieving accurate positioning of external devices connected to different device interfaces. Attached Figure Description

[0039] Figure 1 This is a flowchart illustrating a method for displaying screen printing on a device chassis in one embodiment;

[0040] Figure 2 This is a structural block diagram of the screen-printed display device on the device chassis in one embodiment;

[0041] Figure 3 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0043] The BIOS acts as a bridge between hardware devices and software programs. During the boot process, the BIOS first performs a self-test (POST) to initialize the hardware devices. This POST includes self-testing the CPU, memory, motherboard, serial and parallel ports, and hard drives, and loading drivers for network cards, I / O devices, etc. Server systems can connect to various storage devices, one common type being the SATA hard drive. SATA (Serial Advanced Technology Attachment) is a high-speed data transfer interface used to connect computer motherboards and storage devices such as hard drives. SATA hard drives are a newer type of hard drive, using the SATA interface, offering higher transfer speeds and lower power consumption.

[0044] In servers, the physical interface of SATA hard drives is connected from the CPU PCH (Central Processing Unit Southbridge chip). Due to the different designs of each generation of Intel CPUs, the CPU PCH design also varies slightly. In the CPUs used in Intel's 4th generation "Xeon" Scalable processor platform "Eagle Stream," the CPU PCH has three SATA controllers sharing 20 physical interfaces that can connect SATA, USB, or PCIe devices. SATA controller 1 and SATA controller 2 each have 8 physical interfaces for connecting SATA hard drives, while SATA controller 3 has 4 physical interfaces for connecting SATA hard drives.

[0045] Depending on the hardware design requirements of different projects, the number of SATA hard drives connected varies, and the physical SATA controller interfaces used to connect the SATA hard drives are also different. Therefore, for different project models, the physical interface location of the SATA hard drives, the server chassis location, and the silkscreen markings all need to be defined and matched accordingly.

[0046] Currently, server manufacturers define their own display locations for SATA hard drive information. To help customers clearly see the physical location of the connected hard drive, manufacturers typically add the CPU PCH SATA controller interface location information before the SATA hard drive display. However, because different server models use different SATA controller interfaces, with variations in the number and location, using the PCH SATA controller interface physical location information to label SATA information is not intuitive for customers and doesn't allow for quick mapping to the actual drive letter inserted on the server chassis.

[0047] This application provides a method for displaying silkscreen markings on a device chassis, which can be applied to, but is not limited to, the BIOS (Basic Input Output System) in a server, or to any server system with hard drive silkscreen information detection capabilities. The BIOS, as the lowest-level and most direct hardware setting and control manager on the server motherboard, provides the server with more user-friendly functions. The BIOS is a set of programs embedded in a ROM chip on the motherboard. It stores the computer's most important basic input / output programs, system settings information, power-on self-test (POST) programs, and system startup programs. Its main function is to provide the computer with the lowest-level and most direct hardware settings and control. The method includes: constructing a structure variable, assigning values ​​to each variable in the structure variable to obtain structure variable parameters; obtaining device interface information and chassis silkscreen information, wherein the device interface and chassis silkscreen have a corresponding relationship; establishing a first mapping relationship between the structure variable parameters, device interface information, and chassis silkscreen information; using library functions to call a pre-defined protocol to obtain the structure variable parameters; obtaining the chassis silkscreen information corresponding to the required device interface information based on the structure variable parameters and the required device interface information; merging the chassis silkscreen information and device information to obtain the merged chassis silkscreen information and device information, and displaying this information. This method enables the synchronous display of device information and chassis silkscreen information, facilitating users to quickly obtain the chassis silkscreen information corresponding to the device, thereby achieving accurate positioning of external devices connected to different device interfaces.

[0048] It should be noted that the embodiments of the present invention are illustrated using the server architecture of the Intel platform, but the method is not limited to servers on the Intel platform, nor is it limited to server systems. It still has general application value on server systems or other computer systems.

[0049] In one embodiment, such as Figure 1 As shown, Figure 1 This is a flowchart illustrating a method for displaying screen printing on a device chassis in one embodiment, as shown below:

[0050] Step S101: Construct a structure variable, assign values ​​to each variable in the structure variable, and obtain the structure variable parameters.

[0051] Specifically, in the code for writing the Basic Input / Output System (BIOS), structure variables are constructed. A portion of the BIOS code is selected as the code to be processed. Structures are added to the code to be processed, and some of the code is defined as variables of a structure. The structure variables contain multiple structure variable items. These structure variables can be composite data composed of different types of code. Each structure variable in the structure variables is assigned a value and each assigned structure variable is encapsulated to generate the corresponding structure variable parameters.

[0052] For example, functions can be extracted for each structure variable item in the structure variable, with each structure variable item corresponding to a function, to automatically assign values ​​to each structure variable item, encapsulate each assigned structure variable item, and output the assigned value of each structure variable item as a structure variable parameter.

[0053] Compared to defining a variable or array for each piece of data, this application records different types of data through structure variables, making the data structure "highly cohesive and loosely coupled," which is more conducive to program readability, understanding, and portability. Moreover, the structure storage method can improve the CPU's memory access speed.

[0054] Step S102: Obtain device interface information and chassis silkscreen information, wherein the device interface and chassis silkscreen have a corresponding relationship.

[0055] Specifically, when the server's BIOS performs a power-on self-test (POST), it can obtain device interface information and chassis silkscreen information. Optionally, the device interface information includes, but is not limited to, the device interface type, version number, status, width, and length. For example, the device could be a SATA hard drive, and the device interface could be a SATA controller interface.

[0056] The server chassis silkscreen information refers to the silkscreen markings on the server chassis that indicate the location of external devices. Optionally, the chassis silkscreen information includes, but is not limited to, the type of silkscreen, its location on the server chassis, its serial number, and other silkscreen characteristics. There is a correspondence between device interfaces and chassis silkscreen markings. This correspondence means that there is a one-to-one correspondence between device interfaces and chassis silkscreen markings within the same server model and configuration requirements.

[0057] It is understandable that different models use different device interfaces or use different functions on the same device interface to meet different configuration requirements.

[0058] Step S103: The structure variable parameters have a first mapping relationship with the device interface information and the chassis silkscreen information.

[0059] Specifically, after obtaining the parameters of the structure variable corresponding to each assigned structure variable through the above steps, the parameters of the structure variable corresponding to each assigned structure variable can be bound with the device interface information and the chassis silkscreen information, so that the structure variable parameters have a first mapping relationship with the device interface information and the chassis silkscreen information. In this way, the required data information can be quickly obtained by using the mapping relationship between the structure variable parameters, device interface information, and chassis silkscreen information based on one of the information.

[0060] Optionally, a set of corresponding device interface information and chassis silkscreen information can be bound to the same structure variable parameters.

[0061] Step S104: Use library functions to call a pre-defined protocol to obtain the structure variable parameters.

[0062] Specifically, first, register and install the pre-set protocol. The above-mentioned structure variables can be adapted, updated and installed into the pre-set protocol in the code. That is, the pre-set protocol is configured with structure variable parameters.

[0063] Constructing library functions is a way to encapsulate functions into a library for user use. It can also be understood as compiling frequently used functions into a file for different people to call. The library functions in this application can call pre-defined protocols to obtain device interface information and the corresponding chassis silkscreen information. Using library functions results in smaller executable files, saving disk space, and improving runtime efficiency by calling pre-defined protocols.

[0064] Step S105: Obtain the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information.

[0065] Specifically, in response to a device-to-device interface connection, a pre-defined protocol is loaded, and the structure variable parameters corresponding to the current device interface are obtained. As can be seen from the above, there is a first mapping relationship between the structure variable parameters, device interface information, and chassis silkscreen information. Therefore, based on the correspondence between the device interface and chassis silkscreen, and the required device interface information, the chassis silkscreen information corresponding to the device interface information is obtained.

[0066] Although the physical device interfaces are fixed, the physical interfaces used in each project are not fixed. In a project, we may only need to use some of the device interfaces to complete the project. In this case, obtaining all the device interfaces, identifying which interfaces are needed to complete the project, and then setting the required device interfaces for the project would increase the difficulty of the task.

[0067] To reduce the difficulty of the operation, in one specific implementation, all device interfaces are first traversed to determine whether the device interface is connected to an external device. If the device interface is connected to an external device, it indicates that these device interfaces are required to complete the project later. Then, according to the pre-set protocol, the information of these device interfaces and the corresponding chassis silkscreen information are obtained.

[0068] Step S106: Merge the chassis silkscreen information and the device information to obtain the merged chassis silkscreen information and device information and display the information.

[0069] Specifically, the equipment information is obtained and then merged with the chassis silkscreen information obtained through the above steps. The equipment information includes, but is limited to, the equipment type, equipment version and model, equipment status, etc.

[0070] Optionally, the device information and chassis silkscreen information can be in string format. The obtained chassis silkscreen string information and the device string information are concatenated to obtain the merged chassis silkscreen and device information. The concatenation order of the chassis silkscreen and device string information can be set manually.

[0071] In this way, by concatenating the device silkscreen markings on the chassis with the original device information, the device information displayed in the BIOS and the chassis silkscreen information are unified. This allows users to quickly locate the connected SATA drive when a hard drive problem occurs, facilitating replacement or repair. Understandably, other locations requiring device information display can also use the Library function to add chassis silkscreen markings.

[0072] In one embodiment, obtaining and displaying the merged chassis silkscreen information and device information includes: displaying the merged chassis silkscreen information and device information in the information display area of ​​the basic input / output system; wherein the information display area includes a power-on self-test interface, a settings function interface, a SATA settings option interface, and a SATA hard drive boot option.

[0073] For example, taking a SATA hard drive as an example, SATA device information will be displayed at different stages of the BIOS's power-on self-test (POST) (the BIOS detects hardware devices, including SATA devices). First, during the power-on self-test, the BIOS will display information about the machine's memory, CPU, and SATA devices. The memory stage here refers to the period after the power button is pressed, when the motherboard and external devices are connected to power but before they begin operating; it can also be considered the power initialization stage.

[0074] Secondly, the SATA controller interface information will be displayed in the SATA controller configuration under the settings interface, so you can see whether there are any devices connected to the SATA interface;

[0075] Furthermore, if a boot option is installed on the SATA hard drive, the boot option generated by that device will be displayed in the boot option section of the settings interface.

[0076] By setting up an information display area for the basic input / output system to display the merged chassis silkscreen information and device information, the information can be displayed throughout the entire process of the BIOS self-test, making the chassis silkscreen information and device information display clearer and more intuitive, and making it easier for users to obtain information.

[0077] In one feasible implementation, when the BIOS fails to display the merged chassis silkscreen information and device information, it enters a warning mode. This warning mode can be implemented through a buzzer, alarm, or text prompt. This configuration allows staff to promptly understand the server's operational status and perform maintenance, thereby further improving the user experience when using the server.

[0078] It should be understood that, although Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0079] In one embodiment, such as Figure 2 As shown, a device chassis silkscreen display device is provided, including: a construction module, an acquisition module, a mapping module, a merging module, and a display module, wherein:

[0080] The module is used to assign values ​​to each variable in the structure variable to obtain the structure variable parameters;

[0081] The acquisition module is used to acquire device interface information and chassis silkscreen information, where there is a corresponding relationship between the device interface and the chassis silkscreen; it uses library functions to call a pre-defined protocol to acquire structure variable parameters; and it obtains the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information.

[0082] The mapping module is used to obtain the first mapping relationship between the structure variable parameters and the device interface information and chassis silkscreen information;

[0083] The merging module is used to merge the chassis silkscreen information and the equipment information to obtain merged chassis silkscreen information and equipment information;

[0084] The display module is used to show the merged chassis silkscreen information and equipment information.

[0085] Specific limitations regarding the equipment chassis silkscreen display device can be found in the limitations of the equipment chassis silkscreen display method described above, and will not be repeated here. Each module in the aforementioned equipment chassis silkscreen display device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0086] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores data required for the application of the aforementioned device chassis silkscreen display. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a device chassis silkscreen display method.

[0087] Those skilled in the art will understand that Figure 3The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0088] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0089] Step S101: Construct a structure variable, assign values ​​to each variable in the structure variable, and obtain the structure variable parameters.

[0090] Step S102: Obtain device interface information and chassis silkscreen information, wherein the device interface and chassis silkscreen have a corresponding relationship.

[0091] Step S103: The structure variable parameters have a first mapping relationship with the device interface information and the chassis silkscreen information.

[0092] Step S104: Use library functions to call a pre-defined protocol to obtain the structure variable parameters.

[0093] Step S105: Obtain the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information.

[0094] Step S106: Merge the chassis silkscreen information and the device information to obtain the merged chassis silkscreen information and device information and display the information.

[0095] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0096] Construct a structure variable, assign values ​​to each variable in the structure variable, and obtain the structure variable parameters, including:

[0097] In the code of the basic input / output system, construct structure variables, assign values ​​to each structure variable, encapsulate each assigned structure variable, and generate the corresponding structure variable parameters.

[0098] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0099] Constructing structure variables in the code of a basic input / output system includes:

[0100] Obtain the code for the Basic Input / Output System (PIS), and select a portion of the PIS code as the code to be processed.

[0101] Add a structure to the code to be processed, set the variable items of the structure, and encapsulate the variable value capture function corresponding to the variable items.

[0102] Use the structure to call the corresponding variable capture function to assign values ​​to the structure variable items; output the assigned values ​​of the structure variable items as structure variable parameters.

[0103] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0104] By using library function calls to a pre-defined protocol, the following parameters of the structure variables can be obtained:

[0105] Register and install a pre-defined protocol, which is configured with a structure variable parameter and a second mapping relationship between the structure variable parameter and the device;

[0106] Construct library functions that call predefined protocols to obtain structure variable parameters.

[0107] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0108] Based on the structure variable parameters and the required device interface information, the chassis silkscreen information corresponding to this device interface information is obtained, including:

[0109] In response to device-to-device interface connections, load the pre-defined protocol and obtain the structure variable parameters corresponding to the current device interface;

[0110] Based on the structure variable parameters, the correspondence between device interface information and chassis silkscreen information, as well as the correspondence between device interface and chassis silkscreen, is obtained; based on the correspondence between device interface and chassis silkscreen, the chassis silkscreen information corresponding to the device interface information is obtained.

[0111] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0112] Merging the chassis silkscreen information and equipment information yields the following merged chassis silkscreen information and equipment information:

[0113] Obtain the string information printed on the chassis and the string information of the device;

[0114] The string information printed on the chassis is concatenated with the string information of the device to obtain the merged chassis silkscreen information and device information.

[0115] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0116] Obtain and display the merged chassis silkscreen information and device information, including:

[0117] The combined chassis silkscreen information and device information are displayed in the basic input / output system information display area.

[0118] The information display area includes the power-on self-test interface, the settings function interface, the SATA settings option interface, and the SATA hard drive boot option.

[0119] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0120] Step S101: Construct a structure variable, assign values ​​to each variable in the structure variable, and obtain the structure variable parameters.

[0121] Step S102: Obtain device interface information and chassis silkscreen information, wherein the device interface and chassis silkscreen have a corresponding relationship.

[0122] Step S103: The structure variable parameters have a first mapping relationship with the device interface information and the chassis silkscreen information.

[0123] Step S104: Use library functions to call a pre-defined protocol to obtain the structure variable parameters.

[0124] Step S105: Obtain the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information.

[0125] Step S106: Merge the chassis silkscreen information and the device information to obtain the merged chassis silkscreen information and device information and display the information.

[0126] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0127] Construct a structure variable, assign values ​​to each variable in the structure variable, and obtain the structure variable parameters, including:

[0128] In the code of the basic input / output system, construct structure variables, assign values ​​to each structure variable, encapsulate each assigned structure variable, and generate the corresponding structure variable parameters.

[0129] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0130] Constructing structure variables in the code of a basic input / output system includes:

[0131] Obtain the code for the Basic Input / Output System (PIS), and select a portion of the PIS code as the code to be processed.

[0132] Add a structure to the code to be processed, set the variable items of the structure, and encapsulate the variable value capture function corresponding to the variable items.

[0133] Use the structure to call the corresponding variable capture function to assign values ​​to the structure variable items; output the assigned values ​​of the structure variable items as structure variable parameters.

[0134] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0135] By using library function calls to a pre-defined protocol, the following parameters of the structure variables can be obtained:

[0136] Register and install a pre-defined protocol, which is configured with a structure variable parameter and a second mapping relationship between the structure variable parameter and the device;

[0137] Construct library functions that call predefined protocols to obtain structure variable parameters.

[0138] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0139] Based on the structure variable parameters and the required device interface information, the chassis silkscreen information corresponding to this device interface information is obtained, including:

[0140] In response to device-to-device interface connections, load the pre-defined protocol and obtain the structure variable parameters corresponding to the current device interface;

[0141] Based on the structure variable parameters, the correspondence between device interface information and chassis silkscreen information, as well as the correspondence between device interface and chassis silkscreen, is obtained; based on the correspondence between device interface and chassis silkscreen, the chassis silkscreen information corresponding to the device interface information is obtained.

[0142] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0143] Merging the chassis silkscreen information and equipment information yields the following merged chassis silkscreen information and equipment information:

[0144] Obtain the string information printed on the chassis and the string information of the device;

[0145] The string information printed on the chassis is concatenated with the string information of the device to obtain the merged chassis silkscreen information and device information.

[0146] In one embodiment, another implementation of the device chassis silkscreen display method achieved by the above-described device includes the following specific steps:

[0147] Obtain and display the merged chassis silkscreen information and device information, including:

[0148] The combined chassis silkscreen information and device information are displayed in the basic input / output system information display area.

[0149] The information display area includes the power-on self-test interface, the settings function interface, the SATA settings option interface, and the SATA hard drive boot option.

[0150] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0151] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0152] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for screen printing display on a device chassis, characterized in that, include: Constructing a structure variable and assigning values ​​to each variable item in the structure variable to obtain structure variable parameters includes: constructing a structure variable in the code of the basic input / output system, assigning values ​​to each variable item in the structure variable and encapsulating each assigned variable item to generate corresponding structure variable parameters; The process of constructing structure variables in the code of a basic input / output system includes: obtaining the code of the basic input / output system and selecting a portion of the basic input / output system code as the code to be processed; adding a structure to the code to be processed, setting variable items in the structure and encapsulating variable value capture functions corresponding to the variable items; using the structure to call the corresponding variable capture functions to assign values ​​to the variable items of the structure; and outputting the assigned values ​​of the variable items of the structure as the parameters of the structure variables. Obtain device interface information and chassis silkscreen information, wherein the device interface and the chassis silkscreen have a corresponding relationship; The structure variable parameters have a first mapping relationship with the device interface information and the chassis silkscreen information; The structure variable parameters are obtained by calling a pre-defined protocol using library functions; Based on the structure variable parameters and the required device interface information, the chassis silkscreen information corresponding to the device interface information is obtained; The chassis silkscreen information and the device information are merged to obtain merged chassis silkscreen information and device information, and the merged chassis silkscreen information and device information are displayed.

2. The method according to claim 1, characterized in that, The method of using library function calls to obtain the structure variable parameters according to a pre-defined protocol includes: Register and install the pre-set protocol, which is configured with structure variable parameters and a second mapping relationship between the structure variable parameters and the device; Construct a library function that calls a pre-defined protocol to obtain the structure variable parameters.

3. The method according to claim 1, characterized in that, The step of obtaining the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information includes: In response to the connection between the device and the device interface, a pre-defined protocol is loaded, and the structure variable parameters corresponding to the current device interface are obtained; Based on the structure variable parameters, the correspondence between the device interface information and the chassis silkscreen information, as well as the correspondence between the device interface and the chassis silkscreen, is obtained; based on the correspondence between the device interface and the chassis silkscreen, the chassis silkscreen information corresponding to the device interface information is obtained.

4. The method according to claim 1, characterized in that, The process of merging the chassis silkscreen information and the device information to obtain the merged chassis silkscreen information and device information includes: Obtain the string information printed on the chassis and the string information of the device; The string information printed on the chassis is concatenated with the string information of the device to obtain the merged chassis silkscreen information and device information.

5. The method according to claim 1, characterized in that, The process of obtaining and displaying the merged chassis silkscreen information and equipment information includes: The combined chassis silkscreen information and device information are displayed in the basic input / output system information display area. The information display area includes the power-on self-test interface, the settings function interface, the SATA settings option interface, and the SATA hard drive boot option.

6. A screen printing display device for a device chassis, characterized in that, The device includes: A construction module is used to construct structure variables, assign values ​​to each variable item in the structure variables, and obtain structure variable parameters. This includes: constructing structure variables in the code of a basic input / output system; assigning values ​​to each variable item in the structure variables and encapsulating each assigned variable item to generate corresponding structure variable parameters; wherein, constructing structure variables in the code of the basic input / output system includes: obtaining the code of the basic input / output system; selecting a portion of the basic input / output system code as the code to be processed; adding a structure to the code to be processed; setting variable items in the structure and encapsulating variable value capture functions corresponding to the variable items; using the structure to call the corresponding variable capture functions to assign values ​​to the variable items of the structure; and outputting the assigned values ​​of the variable items of the structure as the structure variable parameters. The acquisition module is used to acquire device interface information and chassis silkscreen information, wherein the device interface and the chassis silkscreen have a corresponding relationship; it uses library function calls to call a pre-set protocol to acquire the structure variable parameters; and it obtains the chassis silkscreen information corresponding to the device interface information based on the structure variable parameters and the required device interface information. The mapping module is used to obtain a first mapping relationship between the structure variable parameters and the device interface information and the chassis silkscreen information; The merging module is used to merge the chassis silkscreen information and the device information to obtain merged chassis silkscreen information and device information; The display module is used to show the merged chassis silkscreen information and equipment information.

7. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Port management method and system for SATA hard disk and related components

    CN110399170A

  • Peripheral configuration identification method and device of server, screen printing layout method and device of server and server

    CN115904884A