Data processing method and device and electronic equipment

By obtaining hardware configuration data during the firmware initialization stage of multi-platform system and generating target hardware configuration data, the problem of low ASL code configuration efficiency in multi-platform systems is solved, and efficient and dynamic hardware connection data generation and update are achieved.

CN119829146APending Publication Date: 2025-04-15LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411746955.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

Multi-platform systems require different CDN ASL codes for each project, resulting in high labor costs and inefficiency.

Method used

By obtaining the hardware's original hardware configuration data during the firmware initialization phase, the target hardware configuration data and hardware address identification are generated based on the preset fields, and written to the hardware connection data of the service description data table.

Benefits of technology

It realizes dynamic generation of hardware connection data corresponding to hardware configuration, improves efficiency, reduces costs, and can update hardware connection data in real time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829146A_ABST
    Figure CN119829146A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device and electronic equipment, and the method comprises the steps: obtaining original hardware configuration data of at least one piece of hardware in response to entering a firmware initialization stage; generating corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and the plurality of preset fields, wherein the hardware address identifier represents a physical interface accessed by the hardware; writing the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier; and in response to entering the operating system stage, generating hardware description data based on the hardware connection data and displaying the hardware description data to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a data processing method, device and electronic equipment. Background Art

[0002] Multi-platform systems need to configure different CDN ASL codes (CDN ACPI Source Language Code, a high-level programming language used to define device configurations and describe system hardware) for each project. Currently, multi-platform systems can only be manually designed and tested by developers for each project in advance, which has high labor costs and low efficiency. Summary of the invention

[0003] The present application provides a data processing method, device and electronic device.

[0004] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:

[0005] In response to entering the firmware initialization phase, obtaining original hardware configuration data of at least one hardware;

[0006] Generate corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected;

[0007] Writing the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier;

[0008] In response to entering the operating system stage, hardware description data is generated based on the hardware connection data and displayed to the user.

[0009] The generating of the corresponding target hardware configuration data based on the original hardware configuration data of the hardware and a plurality of preset fields includes:

[0010] Extracting configuration data corresponding to the preset field from original hardware configuration data of the hardware;

[0011] Generate candidate hardware configuration data based on the preset fields and corresponding configuration data;

[0012] The candidate hardware configuration data is converted into a target data format to obtain the target hardware configuration data.

[0013] The step of extracting the configuration data corresponding to the preset field from the original hardware configuration data of the hardware includes:

[0014] If the preset field is of the first type, determining the preset configuration data corresponding to the preset field as the corresponding configuration data;

[0015] If the preset field is of the second type, a preset character string corresponding to the preset field is obtained; the preset character string is matched with the original hardware configuration data of the hardware to obtain configuration data corresponding to the preset field.

[0016] The method further comprises:

[0017] Detecting that the operating system is in the stage and a change in the hardware connection occurs, and determining an update strategy based on the change;

[0018] Updating the hardware connection data in the service description data table based on the update strategy;

[0019] The hardware description data is regenerated based on the hardware connection data and displayed to the user.

[0020] Wherein, updating the hardware connection data in the service description data table based on the update strategy includes:

[0021] Decompiling the service description data table, and obtaining hardware connection data from the decompiled service description data table;

[0022] Updating the hardware connection data based on the update strategy;

[0023] The updated hardware connection data is written into the decompiled service description data table.

[0024] Wherein, updating the hardware connection data based on the update strategy includes:

[0025] If the change indicates that hardware is removed, deleting the target hardware configuration data of the hardware in the hardware connection data;

[0026] If the change indicates that there is new hardware added, target hardware configuration data corresponding to the hardware is generated and written into the hardware connection data based on the hardware address identifier of the hardware.

[0027] Wherein, deleting the target hardware configuration data of the hardware in the hardware connection data includes:

[0028] Obtaining original hardware configuration data of the hardware;

[0029] Determining a hardware address identifier of the hardware based on original hardware configuration data of the hardware;

[0030] The target hardware configuration data indicated by the hardware address identifier in the hardware connection data is deleted.

[0031] The step of generating target hardware configuration data corresponding to the hardware and writing the target hardware configuration data into the hardware connection data based on the hardware address identifier of the hardware includes:

[0032] Obtaining original hardware configuration data of the hardware;

[0033] Generate corresponding target hardware configuration data and hardware address identifier based on original hardware configuration data of the hardware and multiple preset fields;

[0034] The target hardware configuration data is written into the location indicated by the hardware address identifier in the hardware connection data.

[0035] Another aspect of the present application provides a data processing device, the device comprising:

[0036] A collection module, used for obtaining original hardware configuration data of at least one hardware in response to entering the firmware initialization phase;

[0037] A calculation module, configured to generate corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected; and to write the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier;

[0038] The processing module is used for generating hardware description data based on the hardware connection data and displaying the hardware description data to the user in response to entering the operating system stage.

[0039] In another aspect, the present application provides an electronic device, comprising: an input-output system and a processor, wherein the input-output system is electrically connected to the processor;

[0040] The input / output system obtains original hardware configuration data of at least one hardware in response to entering the firmware initialization phase;

[0041] The processor generates corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected; and writes the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier;

[0042] In response to entering the operating system stage, the input / output system generates hardware description data based on the hardware connection data and displays the hardware description data to the user.

[0043] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0045] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0046] Figure 1 A flow chart showing a data processing method according to an embodiment of the present application is shown;

[0047] Figure 2 A flow chart showing a data processing method according to another embodiment of the present application is shown;

[0048] Figure 3 A flow chart showing a data processing method according to another embodiment of the present application is shown;

[0049] Figure 4 A flow chart showing a data processing method according to another embodiment of the present application is shown;

[0050] Figure 5 A flow chart showing a data processing method according to another embodiment of the present application is shown;

[0051] Figure 6 A flow chart showing a data processing method according to another embodiment of the present application is shown;

[0052] Figure 7 A flow chart showing a data processing method according to another embodiment of the present application is shown;

[0053] Figure 8 A flow chart showing a data processing method according to another embodiment of the present application is shown;

[0054] Fig. 9 A schematic diagram showing the structure of a data processing device according to an embodiment of the present application is shown;

[0055] Fig.10 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0056] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0057] Currently, electronic devices need to design the corresponding ASL code (ACPI Source Language Code, a high-level programming language used to define device configuration and describe system hardware) based on the hardware and store it in the firmware. When the electronic device starts, the corresponding hardware connection data is generated based on the ASL code. Personal electronic devices, such as personal PCs and laptops, usually do not cause errors if the hardware is replaced but the ASL code remains unchanged. In a multi-platform system, since there are hundreds of different hardware configurations, different ASL codes need to be designed for different hardware configurations in a multi-platform system, which is costly and inefficient.

[0058] In order to dynamically generate hardware connection data corresponding to the hardware configuration, improve efficiency and reduce costs, an embodiment of the present application provides a data processing method, such as Figure 1 As shown, the method includes:

[0059] Step 101, in response to entering a firmware initialization phase, obtaining original hardware configuration data of at least one hardware.

[0060] When entering the firmware (such as UEFI, BIOS, etc.) initialization phase, the corresponding original hardware configuration data (HW configure) is obtained from each connected hardware.

[0061] The raw hardware configuration data includes hardware name, hardware device information (hardware type, model, manufacturer, etc.), firmware settings (clock frequency, boot order, device enable / disable, ACPI settings, etc.), system resource configuration (IRQ (interrupt request), DMA (direct memory access) channel, memory area, I / O port, etc.), driver, etc.

[0062] Step 102: Generate corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected.

[0063] Since the formats of the original hardware configuration data obtained from different hardware may be different, it is necessary to first generate corresponding target hardware configuration data and hardware address identifiers based on the original hardware configuration data of the hardware and multiple preset fields, so as to convert the original hardware configuration data of different formats into target hardware configuration data of the same format.

[0064] For example, the preset fields are set to "Name", "Type", and "Model". The data corresponding to these three preset fields are extracted from a certain hardware, and the corresponding target hardware configuration data is generated with the preset fields. The generated target hardware configuration data is "{"Name":"Intel Core i9-13900K","Type":"CPU","Model":"Intel Core i9-13900K"}".

[0065] The hardware address identifier represents the physical interface to which the corresponding hardware is connected. The hardware address identifier is usually represented by a bus address, which includes a bus number, a device number, and a function number. For example, the hardware address identifier corresponding to a CPU is "bus number 0, device number 0, function number 0".

[0066] Step 103: Write the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier.

[0067] The hardware connection data (CDN table) in the service description data table (SSDT) ​​contains a hardware address identifier that represents a corresponding character string. Therefore, the corresponding target hardware configuration data can be written into a location corresponding to the hardware connection data based on the hardware address identifier.

[0068] Step 104 , in response to entering the operating system stage, hardware description data is generated based on the hardware connection data and displayed to the user.

[0069] After entering the operating system stage, hardware description data is generated based on the hardware connection data in the service description data table and displayed to the user, including hardware description data in the device manager, hardware description data in the network, etc.

[0070] In the above scheme, the original hardware configuration data is obtained from each hardware in the firmware initialization stage. Then, the corresponding data is extracted from the original hardware data of the hardware based on multiple preset fields, and then the target hardware configuration data with the same format is generated. Then, based on the hardware address identifier, the corresponding target hardware configuration data is written into the hardware connection data of the service description data table. So that after entering the operating system, the hardware description data can be generated based on the hardware connection data and displayed to the user. The hardware connection data corresponding to the hardware configuration is dynamically generated, the efficiency of dynamically generating hardware connection data is improved, and the cost is reduced.

[0071] In an example of the present application, a data processing method is also provided, such as Figure 2 As shown, the generating of the corresponding target hardware configuration data based on the original hardware configuration data of the hardware and a plurality of preset fields includes:

[0072] Step 201: extract configuration data corresponding to the preset field from original hardware configuration data of the hardware.

[0073] Step 202: Generate candidate hardware configuration data based on the preset fields and corresponding configuration data.

[0074] Step 203: convert the candidate hardware configuration data into a target data format to obtain the target hardware configuration data.

[0075] The candidate hardware configuration data generated based on the preset fields and the corresponding configuration data is in a string format, and therefore needs to be converted into target hardware configuration data in a binary format before it can be read and used by the operating system.

[0076] In the above scheme, the configuration data corresponding to the preset fields are extracted from the original hardware configuration data of the hardware, and then the candidate hardware configuration data is generated based on the preset fields and the corresponding configuration data. Since the generated candidate hardware configuration data is in a string format, the candidate hardware configuration data is converted into target hardware configuration data in a binary format, so that the target hardware configuration data can be read and used by the operating system.

[0077] In an example of the present application, a data processing method is also provided, such as Figure 3 As shown, the extracting the configuration data corresponding to the preset field from the original hardware configuration data of the hardware includes:

[0078] Step 301: If the preset field is of the first type, the preset configuration data corresponding to the preset field is determined as the corresponding configuration data.

[0079] If the preset field is of the first type, it means that the configuration data corresponding to the preset field can be predetermined without being extracted from the original hardware configuration data of the hardware. Therefore, the preset configuration data corresponding to the preset field can be directly determined as the corresponding configuration data.

[0080] For example, the preset field is "type", and the type of the hardware is determined based on the original hardware configuration data of the hardware, and the preset configuration data corresponding to the type can be determined as the configuration data corresponding to the preset field "type".

[0081] Step 302: If the preset field is of the second type, obtain a preset character string corresponding to the preset field; match the preset character string with the original hardware configuration data of the hardware to obtain configuration data corresponding to the preset field.

[0082] If the preset field is of the second type, it means that the configuration data corresponding to the preset field needs to be extracted from the original hardware configuration data of the hardware.

[0083] For example, the preset field is "name", and the names of different hardware are different and cannot be determined in advance. Therefore, the preset string "name" corresponding to "name" is matched with the original hardware configuration data of the hardware to determine the configuration data corresponding to the preset field "name".

[0084] In the above scheme, based on the type of the preset field, different methods are used to obtain the configuration data corresponding to the preset field. When the configuration data corresponding to the preset field can be determined in advance, the preset configuration data corresponding to the preset field is directly determined as the corresponding configuration data, without having to extract it from the original hardware configuration data of the hardware, thereby further improving the efficiency of dynamically generating hardware connection data.

[0085] In an example of the present application, a data processing method is also provided, such as Figure 4 As shown, the method also includes:

[0086] Step 401: Detect that the system is in the operating system stage and that a hardware connection has changed, and determine an update strategy based on the change.

[0087] The change includes at least hardware addition and hardware removal. The corresponding update strategy is determined based on the type of change.

[0088] Step 402: Update the hardware connection data in the service description data table based on the update strategy.

[0089] Step 403: regenerate hardware description data based on the hardware connection data and display it to the user.

[0090] In the above scheme, when the hardware connection changes during the operating system operation phase, the corresponding update strategy is determined by the type of hardware change, and then the hardware connection data in the service description data table is updated based on the update strategy. This enables the operating system to generate new hardware description data based on the updated hardware connection data and display it to the user. This enables the user to obtain the correct hardware description data in real time, avoiding the user receiving incorrect hardware information because the hardware description data is not updated when the hardware changes.

[0091] In an example of the present application, a data processing method is also provided, such as Figure 5As shown, the updating of the hardware connection data in the service description data table based on the update strategy includes:

[0092] Step 501: decompile the service description data table, and obtain hardware connection data from the decompiled service description data table.

[0093] Since the service description data table is compiled and stored in the memory during the operating system stage, the hardware connection data in the service description data table cannot be directly modified under normal circumstances.

[0094] It is necessary to first read the compiled service description data table from the memory, decompile it, and then obtain the hardware connection data from the decompiled service description data table.

[0095] Step 502: Update the hardware connection data based on the update strategy.

[0096] The hardware connection data is updated based on the determined update strategy.

[0097] Step 503: Write the updated hardware connection data into the decompiled service description data table.

[0098] In the above scheme, by reading the compiled service description data table from the memory, decompiling it, and then obtaining the hardware connection data from the decompiled service description data table, the hardware connection data in the service description data table is modified during the operating system running stage.

[0099] In an example of the present application, a data processing method is also provided, such as Figure 6 As shown, the updating of the hardware connection data based on the update strategy includes:

[0100] Step 601: If the change indicates that hardware is removed, then the target hardware configuration data of the hardware in the hardware connection data is deleted.

[0101] When hardware removal occurs, the target hardware configuration data of the hardware in the hardware connection data may be deleted based on the hardware address identifier of the hardware.

[0102] Step 602: If the change indicates that there is new hardware added, target hardware configuration data corresponding to the hardware is generated and written into the hardware connection data based on the hardware address identifier of the hardware.

[0103] When new hardware is added, the corresponding target hardware configuration data needs to be generated first, and then written into the position corresponding to the hardware connection data based on the hardware address identifier of the hardware.

[0104] It should be pointed out that when a hardware change occurs, it is necessary to first delete the original target hardware configuration data in the hardware connection data based on the hardware address identifier of the hardware, then generate the target hardware configuration data corresponding to the hardware, and then write it into the corresponding position of the hardware connection data based on the hardware address identifier of the hardware.

[0105] In an example of the present application, a data processing method is also provided, such as Figure 7 As shown, the deleting the target hardware configuration data of the hardware in the hardware connection data includes:

[0106] Step 701, obtaining original hardware configuration data of the hardware.

[0107] In this embodiment, the original hardware configuration data of the hardware can be obtained through the hardware abstraction layer (HAL) and the hardware driver. The operating system can obtain the original hardware configuration data of the hardware through the "SystemInformation" API of the hardware abstraction layer. When the operating system loads the hardware driver, the original hardware configuration data of the hardware can be obtained from the hardware through the driver. In other implementations, any other method that can obtain the original hardware configuration data of the hardware during the operating system operation stage can also be used.

[0108] Step 702: Determine the hardware address identifier of the hardware based on the original hardware configuration data of the hardware.

[0109] The original hardware configuration data of the hardware includes the hardware address identification of the hardware. Of course, the hardware address identification of the hardware can also be obtained by scanning the bus.

[0110] Step 703: Delete the target hardware configuration data indicated by the hardware address identifier in the hardware connection data.

[0111] In the above scheme, the original hardware configuration data of the hardware is obtained through the hardware abstraction layer (HAL) and the hardware driver, and then the hardware address identifier of the hardware is obtained from the original hardware configuration data. When the hardware is removed during the operation of the operating system, the corresponding target hardware configuration data in the hardware connection data is deleted to complete the real-time update of the hardware connection data.

[0112] In an example of the present application, a data processing method is also provided, such as Figure 8 As shown, the generating of the target hardware configuration data corresponding to the hardware and writing the target hardware configuration data into the hardware connection data based on the hardware address identifier of the hardware includes:

[0113] Step 801, obtaining original hardware configuration data of the hardware.

[0114] In this embodiment, the original hardware configuration data of the hardware can also be obtained through the hardware abstraction layer and the hardware driver. The operating system can obtain the original hardware configuration data of the hardware through the "SystemInformation" API of the hardware abstraction layer. When the operating system loads the hardware driver, the original hardware configuration data of the hardware can be obtained from the hardware through the driver. In other implementations, any other method that can obtain the original hardware configuration data of the hardware during the operating system operation stage can also be used.

[0115] Step 802: Generate corresponding target hardware configuration data and hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields.

[0116] Likewise, corresponding target hardware configuration data and hardware address identifiers are generated based on the original hardware configuration data of the hardware and a plurality of preset fields.

[0117] Step 803: Write the target hardware configuration data into the location indicated by the hardware address identifier in the hardware connection data.

[0118] In the above scheme, the original hardware configuration data of the hardware is obtained through the hardware abstraction layer and the hardware driver, and then the corresponding target hardware configuration data and hardware address identifier are generated based on the original hardware configuration data of the hardware and multiple preset fields. When new hardware is added during the operation of the operating system, the target hardware configuration data corresponding to the new hardware is added to the corresponding position in the hardware connection data to complete the real-time update of the hardware connection data.

[0119] In order to implement the above data processing method, Fig. 9 As shown, an example of the present application provides a data processing device, including:

[0120] The acquisition module 901 is used to obtain original hardware configuration data of at least one hardware in response to entering the firmware initialization phase;

[0121] A calculation module 902 is used to generate corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected; and write the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier;

[0122] The processing module 903 is used for generating hardware description data based on the hardware connection data and displaying the hardware description data to the user in response to entering the operating system stage.

[0123] Among them, the calculation module 902 is also used to extract the configuration data corresponding to the preset field from the original hardware configuration data of the hardware; generate candidate hardware configuration data based on the preset field and the corresponding configuration data; and convert the candidate hardware configuration data into a target data format to obtain the target hardware configuration data.

[0124] Among them, the calculation module 902 is also used to determine the preset configuration data corresponding to the preset field as the corresponding configuration data when the preset field is of the first type; and to obtain the preset string corresponding to the preset field when the preset field is of the second type; and to match the preset string with the original hardware configuration data of the hardware to obtain the configuration data corresponding to the preset field.

[0125] The calculation module 902 is further configured to determine an update strategy based on the change when it is detected that the hardware connection is changed in the operating system stage; and update the hardware connection data in the service description data table based on the update strategy;

[0126] The processing module 903 is further configured to regenerate hardware description data based on the hardware connection data and display the hardware description data to the user.

[0127] Among them, the calculation module 902 is also used to decompile the service description data table and obtain hardware connection data from the decompiled service description data table; update the hardware connection data based on the update strategy; and write the updated hardware connection data into the decompiled service description data table.

[0128] Among them, the calculation module 902 is also used to delete the target hardware configuration data of the hardware in the hardware connection data when the change indication indicates that hardware is removed; and to generate the target hardware configuration data corresponding to the hardware when the change indication indicates that hardware is added, and write it into the hardware connection data based on the hardware address identifier of the hardware.

[0129] Wherein, the acquisition module 901 is also used to obtain the original hardware configuration data of the hardware;

[0130] The calculation module 902 is further configured to determine the hardware address identifier of the hardware based on the original hardware configuration data of the hardware; and delete the target hardware configuration data indicated by the hardware address identifier in the hardware connection data.

[0131] Wherein, the acquisition module 901 is also used to obtain the original hardware configuration data of the hardware;

[0132] The calculation module 902 is further used to generate corresponding target hardware configuration data and hardware address identifier based on the original hardware configuration data of the hardware and multiple preset fields; and write the target hardware configuration data into the position indicated by the hardware address identifier in the hardware connection data.

[0133] An example of the present application provides an electronic device, Fig.10 A schematic block diagram of an example electronic device 1000 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0134] like Fig.10 As shown, the electronic device 1000 includes a processor 1001 and an input-output system 1002, and the processor 1001 and the input-output system 1002 are electrically connected;

[0135] The input / output system 1002 obtains original hardware configuration data of at least one hardware in response to entering the firmware initialization phase;

[0136] The processor 1001 generates corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected; and writes the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier;

[0137] In response to entering the operating system stage, the input / output system 1002 generates hardware description data based on the hardware connection data and displays the hardware description data to the user.

[0138] The processor 1001 extracts the configuration data corresponding to the preset field from the original hardware configuration data of the hardware; generates candidate hardware configuration data based on the preset field and the corresponding configuration data; and converts the candidate hardware configuration data into a target data format to obtain the target hardware configuration data.

[0139] Among them, when the preset field is of the first type, the processor 1001 determines the preset configuration data corresponding to the preset field as the corresponding configuration data; and when the preset field is of the second type, obtains the preset string corresponding to the preset field; matches the preset string with the original hardware configuration data of the hardware to obtain the configuration data corresponding to the preset field.

[0140] Among them, when the processor 1001 detects that it is in the operating system stage and the hardware connection has changed, it determines an update strategy based on the change; updates the hardware connection data in the service description data table based on the update strategy; and regenerates hardware description data based on the hardware connection data and displays it to the user.

[0141] The processor 1001 decompiles the service description data table and obtains hardware connection data from the decompiled service description data table; updates the hardware connection data based on the update strategy; and writes the updated hardware connection data into the decompiled service description data table.

[0142] Among them, when the change indication involves hardware removal, the processor 1001 deletes the target hardware configuration data of the hardware in the hardware connection data; and when the change indication involves hardware addition, the processor 1001 generates target hardware configuration data corresponding to the hardware and writes it into the hardware connection data based on the hardware address identifier of the hardware.

[0143] Wherein, the input-output system 1002 obtains the original hardware configuration data of the hardware;

[0144] The processor 1001 determines the hardware address identifier of the hardware based on the original hardware configuration data of the hardware; and deletes the target hardware configuration data indicated by the hardware address identifier in the hardware connection data.

[0145] Wherein, the input-output system 1002 obtains the original hardware configuration data of the hardware;

[0146] The processor 1001 generates corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields; and writes the target hardware configuration data into a position indicated by the hardware address identifier in the hardware connection data.

[0147] An example of the present application provides a computer-readable storage medium, which stores a computer program, wherein the computer program is used to obtain original hardware configuration data of at least one hardware in response to entering a firmware initialization phase; generate corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected; write the corresponding target hardware configuration data into the hardware connection data of a service description data table based on the hardware address identifier; and generate hardware description data based on the hardware connection data and display it to a user in response to entering an operating system phase.

[0148] The computer program is further used to extract the configuration data corresponding to the preset field from the original hardware configuration data of the hardware; generate candidate hardware configuration data based on the preset field and the corresponding configuration data; and convert the candidate hardware configuration data into a target data format to obtain the target hardware configuration data.

[0149] The computer program is also used to determine the preset configuration data corresponding to the preset field as the corresponding configuration data when the preset field is of the first type; and to obtain the preset string corresponding to the preset field when the preset field is of the second type; and to match the preset string with the original hardware configuration data of the hardware to obtain the configuration data corresponding to the preset field.

[0150] Among them, the computer program is also used to determine an update strategy based on the change when it is detected that the operating system is in the stage and the hardware connection has changed; update the hardware connection data in the service description data table based on the update strategy; and regenerate hardware description data based on the hardware connection data and display it to the user.

[0151] The computer program is further used to decompile the service description data table and obtain hardware connection data from the decompiled service description data table; update the hardware connection data based on the update strategy; and write the updated hardware connection data into the decompiled service description data table.

[0152] In which, the computer program is also used to delete the target hardware configuration data of the hardware in the hardware connection data when the change indication indicates hardware removal; and to generate target hardware configuration data corresponding to the hardware and write it into the hardware connection data based on the hardware address identifier of the hardware when the change indication indicates hardware addition.

[0153] The computer program is further used to obtain original hardware configuration data of the hardware; determine the hardware address identifier of the hardware based on the original hardware configuration data of the hardware; and delete the target hardware configuration data indicated by the hardware address identifier in the hardware connection data.

[0154] Among them, the computer program is also used to obtain the original hardware configuration data of the hardware; generate corresponding target hardware configuration data and hardware address identifier based on the original hardware configuration data of the hardware and multiple preset fields; and write the target hardware configuration data to the location indicated by the hardware address identifier in the hardware connection data.

[0155] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), integrated systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0156] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0157] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0158] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0159] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0160] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0161] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0162] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0163] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A data processing method, the method comprising: In response to entering the firmware initialization phase, obtaining original hardware configuration data of at least one hardware; Generate corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected; Writing the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier; In response to entering the operating system stage, hardware description data is generated based on the hardware connection data and displayed to the user.

2. The method according to claim 1, wherein the step of generating corresponding target hardware configuration data based on the original hardware configuration data of the hardware and a plurality of preset fields comprises: Extracting configuration data corresponding to the preset field from original hardware configuration data of the hardware; Generate candidate hardware configuration data based on the preset fields and corresponding configuration data; The candidate hardware configuration data is converted into a target data format to obtain the target hardware configuration data.

3. The method according to claim 2, wherein extracting the configuration data corresponding to the preset field from the original hardware configuration data of the hardware comprises: If the preset field is of the first type, determining the preset configuration data corresponding to the preset field as the corresponding configuration data; If the preset field is of the second type, a preset character string corresponding to the preset field is obtained; the preset character string is matched with the original hardware configuration data of the hardware to obtain configuration data corresponding to the preset field.

4. The method according to claim 1, further comprising: Detecting that the operating system is in the stage and a change in the hardware connection occurs, and determining an update strategy based on the change; Updating the hardware connection data in the service description data table based on the update strategy; The hardware description data is regenerated based on the hardware connection data and displayed to the user.

5. The method according to claim 4, wherein updating the hardware connection data in the service description data table based on the update strategy comprises: Decompiling the service description data table, and obtaining hardware connection data from the decompiled service description data table; Updating the hardware connection data based on the update strategy; The updated hardware connection data is written into the decompiled service description data table.

6. The method according to claim 5, wherein updating the hardware connection data based on the update strategy comprises: If the change indicates that hardware is removed, deleting the target hardware configuration data of the hardware in the hardware connection data; If the change indicates that there is new hardware added, target hardware configuration data corresponding to the hardware is generated and written into the hardware connection data based on the hardware address identifier of the hardware.

7. The method according to claim 6, wherein the step of deleting the target hardware configuration data of the hardware in the hardware connection data comprises: Obtaining original hardware configuration data of the hardware; Determining a hardware address identifier of the hardware based on original hardware configuration data of the hardware; The target hardware configuration data indicated by the hardware address identifier in the hardware connection data is deleted.

8. The method according to claim 6, wherein generating target hardware configuration data corresponding to the hardware and writing the target hardware configuration data into the hardware connection data based on the hardware address identifier of the hardware comprises: Obtaining original hardware configuration data of the hardware; Generate corresponding target hardware configuration data and hardware address identifier based on original hardware configuration data of the hardware and multiple preset fields; The target hardware configuration data is written into the location indicated by the hardware address identifier in the hardware connection data.

9. A data processing device, comprising: A collection module, used for obtaining original hardware configuration data of at least one hardware in response to entering the firmware initialization phase; A calculation module, used to generate corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected; and writing the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier; The processing module is used for generating hardware description data based on the hardware connection data and displaying the hardware description data to the user in response to entering the operating system stage.

10. An electronic device, comprising: An input-output system and a processor, wherein the input-output system is electrically connected to the processor; The input / output system obtains original hardware configuration data of at least one hardware in response to entering the firmware initialization phase; The processor generates corresponding target hardware configuration data and a hardware address identifier based on the original hardware configuration data of the hardware and a plurality of preset fields, wherein the hardware address identifier represents a physical interface to which the hardware is connected; and writing the corresponding target hardware configuration data into the hardware connection data of the service description data table based on the hardware address identifier; In response to entering the operating system stage, the input / output system generates hardware description data based on the hardware connection data and displays the hardware description data to the user.