Data processing method and system
The first device responds to the request of the second device, determines and sends adapted data based on device information and policies, solves the flexibility and security problems of enabling and updating BIOS value-added functions in the existing technology, and realizes the flexibility of computer equipment. Feature extensions and security updates.
Patent Information
- Application Number
- CN202410865840.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-18
AI Technical Summary
Existing technology makes it difficult to flexibly enable and update BIOS value-added functions on computer equipment, especially since new functions cannot be added after shipment, and the existing methods are not flexible and safe enough.
The first device responds to the target request of the second device, determines and sends adapted data based on device information and policies, and is used to add target functions in the firmware system, including predicting the functions required by the device and verifying the security of the data to ensure functionality. scalability and security.
It enables flexible enabling and updating of BIOS value-added functions on computer equipment, improves system scalability and user experience, ensures the security and stability of functions, and allows new BIOS value-added functions to be added at any time.
Smart Images

Figure CN118796310A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a data processing method and system. Background Art
[0002] With the continuous development of computer hardware and firmware system technology, computers have become scalable and can support manufacturers to provide various firmware value-added functions. For example, during the manufacturing process, factories currently pre-install the required value-added functions on local devices to meet users' needs to enable these functions, but users cannot activate value-added functions that are not pre-installed, and their use is limited. Summary of the invention
[0003] The purpose of the embodiment of the present application is to provide a data processing method, the data processing method comprising:
[0004] The first device determines the first data based on the first strategy in response to obtaining the target request sent by at least one second device;
[0005] sending the first data to the at least one second device;
[0006] The target request includes at least device information of the at least one second device, the first data is used to add a target function in the firmware system, and the at least one second device does not have the target function before sending the target request.
[0007] As an optional embodiment, determining the first data based on the first strategy includes:
[0008] Determine a first function corresponding to the device information based on a target mapping relationship, and use a first function file as the first data; the target mapping relationship includes a plurality of corresponding relationships between device information and functions;
[0009] and / or, predicting a second function required by the at least one second device, and using a second function file as the first data;
[0010] The first function is the same as or different from the second function.
[0011] As an optional embodiment, the predicting the second function required by the at least one second device includes:
[0012] Based on the operating data of the at least one second device at the first moment, the target task of the at least one second device at the second moment is predicted, and the function that meets the target condition is determined as the second function; the target condition includes supporting the operation of the target task but not possessed by the at least one second device, and the second moment is later than the first moment.
[0013] As an optional embodiment, it also includes:
[0014] A third function is selected from the first function and / or the second function, and a third function file is used as the first data.
[0015] The purpose of the embodiment of the present application is to provide a data processing method, the data processing method comprising:
[0016] At least one second device sends a target request to the first device;
[0017] obtaining first data;
[0018] The target request includes at least device information of the at least one second device. The first data is obtained by the first device in response to the target request based on a first strategy and is used to add a target function in the firmware system. The at least one second device does not have the target function before sending the target request.
[0019] As an optional embodiment, it also includes:
[0020] In response to a first instruction, burning the first data;
[0021] In response to the second instruction, the firmware system enters a power-on self-test phase during the process of restarting the device, and verifies the first data based on the device information;
[0022] If the verification is successful, the firmware system is updated based on the first data to add a target function.
[0023] As an optional embodiment, the verifying the first data based on the device information includes:
[0024] Obtain second data from local storage, and decrypt the second data based on the device information to obtain a first identifier; the second data is encrypted by the first device based on the device information, and the first identifier in the second data is the device information or is obtained by processing the device information by the first device based on the second policy;
[0025] Using the device information as a second identifier or processing the device information based on a second strategy to obtain a second identifier;
[0026] If the first identifier is consistent with the second identifier, the firmware system is updated based on the first data to add the target function.
[0027] As an optional embodiment, before updating the firmware system based on the first data to add the target function, the method further includes:
[0028] If the first identifier is consistent with the second identifier, a third identifier is obtained from the decrypted second data, and the first data is digitally signed using the third identifier; the third identifier is generated by the second device based on the device information;
[0029] If the signature verification passes, the firmware system is updated based on the first data to add a target function.
[0030] As an optional embodiment, the at least one second device obtains the second data while obtaining the first data corresponding to the current target request; or, the at least one second device obtains the second data while obtaining the first data corresponding to other target requests.
[0031] The purpose of an embodiment of the present application is to provide a data processing system, which includes: a first device and a second device, wherein the first device is used to execute the steps of the data processing method as described above, and the second device is used to execute the steps of the data processing method as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a flowchart of a data processing method of a first device according to an embodiment of the present application;
[0033] Figure 2 A flowchart of a data processing method of a second device according to an embodiment of the present application;
[0034] Figure 3 This is a flowchart of step S22 of the data processing method of the second device in an embodiment of the present application;
[0035] Figure 4 This is a flowchart of step S23 of the data processing method of the second device in an embodiment of the present application;
[0036] Figure 5 Another flow chart of the data processing method of the second device according to the embodiment of the present application;
[0037] Figure 6 A schematic diagram of the certificate content of an embodiment of the present application. DETAILED DESCRIPTION
[0038] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0039] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0041] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0042] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0043] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0044] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0045] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0046] In the process of manufacturing computers, manufacturers provide solutions for enabling value-added functions. Currently, there are several ways to enable new value-added functions on local devices:
[0047] First, the flag is written through the factory tool, and the BIOS (Basic Input Output System) enables the corresponding BIOS value-added functions based on the flag. This method can only confirm which BIOS value-added functions need to be enabled during the factory production stage. Once the system is shipped, there is no way to continue to add new value-added functions, and it is easy to be backed up and burned into a non-functional system for cracking.
[0048] Among them, BIOS is a firmware system that runs when the computer starts, responsible for tasks such as initializing hardware components, checking system status, and loading the operating system.
[0049] Second, BIOS enables corresponding BIOS value-added functions based on Board ID (motherboard ID or board identification code). However, for the same Board ID, if there are subdivisions of value-added functions or new demands after shipment, it cannot be distinguished, and it is not flexible enough.
[0050] The Board ID refers to a string of numbers or letters on the motherboard that uniquely identifies the motherboard, and is usually used to identify the model, manufacturer, version, and other information of the motherboard.
[0051] Third, the BIOS enables corresponding BIOS value-added functions based on SMBIOS (System Management BIOS System Management Firmware Interface) information, but it can only distinguish based on major types and cannot make judgments on the BIOS value-added function requirements of a single system after shipment.
[0052] SMBIOS is a standardized interface that allows operating systems and system management software to access and interact with hardware configuration and status information. SMBIOS provides a mechanism that enables system administrators and software to obtain detailed information about computer hardware, including but not limited to the specifications and status of components such as the CPU, memory, hard disk, and network adapter.
[0053] In view of the problems raised in the above content, an embodiment of the present application provides a data processing method, which is applied to a first device, such as Figure 1 As shown, the data processing method includes:
[0054] S10, the first device responds to the target request sent by at least one second device and determines the first data based on the first strategy. When the data processing method is used, the first device is allowed to receive and respond to the target request of the second device, providing a basis for subsequent firmware system updates and function expansions.
[0055] The first device can be understood as a central server or a manufacturer's control system. The second device is a computer. When the second device needs to add a specific target function, it will send a target request to the first device.
[0056] The first strategy can be understood as a rule or method for determining and selecting appropriate first data in order to respond to the target request of the second device and implement the required target function in the firmware system. The first strategy will involve identifying the content of the target request and selecting an appropriate firmware system update or software component.
[0057] Through the first strategy, the first device can flexibly respond to the request of the second device, provide customized data and services, realize the scalability and personalization of the firmware system, and ensure the security and stability of the system.
[0058] For example, it is assumed that the second device is a computer pre-installed with a basic operating system, the first device is a central server, and the user wants to enable an advanced security function, such as multi-level passwords (admin, user), multi-protocol storage secure erase, firmware system Anti Rollback, etc. The computer sends a target request to the central server, requesting to add a target function corresponding to the target request on its local device.
[0059] Among them, the firmware system is the underlying software that starts and runs computers and other devices. It is responsible for initializing the hardware and providing necessary services for the operating system. Value-added functions are the functions of the firmware system, which are extensions of the basic functions of the firmware system. Advanced security functions are added to the firmware system. Advanced security functions usually need to be supported at the firmware level to ensure the security of data and operations throughout the entire process from device startup to operating system loading.
[0060] S11. Send the first data to the at least one second device.
[0061] This step ensures that the at least one second device can receive necessary data, thereby achieving the purpose of adding target functions locally and improving the scalability and flexibility of the system.
[0062] The first device sends the processed first data back to the second device. By sending the first data, the first device can provide the required target function or service to the second device.
[0063] The first data may be data extracted from the request of the second device and obtained after processing. The first data may include firmware system updates, drivers or other software components, which are used to add new target functions in the firmware system of the second device.
[0064] Exemplarily, assuming that the second device is a computer pre-installed with a basic operating system, the first device is a central server, and the user wants to enable an advanced security function. Therefore, when the central server identifies the target request, it determines the first data through the first policy and sends the first data containing the advanced security function to the computer for updating the firmware system.
[0065] The target request includes at least device information of the at least one second device, the first data is used to add a target function in the firmware system, and the at least one second device does not have the target function before sending the target request.
[0066] The target request may include, but is not limited to, detailed information of the function request, the firmware system version of the second device, hardware configuration and other key information, which are essential for the first device to determine that the correct and compatible data is sent. In addition, the target request may directly include a request for a certain function or service.
[0067] If the target request includes the device information of the second device, the presence of the device information determines that the first data determined by the first device based on the first policy includes the firmware system function adapted to the requirements of the second device. This also helps to ensure that the sent first data is compatible with the firmware system of the second device, avoiding problems caused by version mismatch or hardware non-support.
[0068] For example, when sending a request, the computer provides version information of its firmware system and CPU model, and the first device sends first data of an advanced security function compatible with the computer based on the information.
[0069] The target function is a BIOS value-added function, which generally refers to advanced features or services that go beyond the traditional functional scope of the Basic Input Output System (BIOS). These features provide users with additional convenience, security, performance improvement or management functions. Value-added functions can be selected and configured according to the needs and usage scenarios of different users to provide a more personalized and optimized computer experience.
[0070] The at least one second device does not have the target function before sending the target request, which means that some additional software or services are not pre-installed on the second device or installed by the user. For example, no value-added function file related to advanced security is stored on the computer, and no value-added function related to advanced security is installed or activated.
[0071] When the present application is in use, when the second device needs a new target function and the file corresponding to the target function is not installed locally on the second device, the second device sends a target request to the first device.
[0072] The first device responds to a target request sent from at least one second device, determines data to be transmitted (i.e., first data) using a first strategy, and sends the data to the second device. The target request at least includes device information of the second device, and the transmitted first data is used to add a new target function in the firmware system, and the second device does not have the function before sending the request.
[0073] For example, the second device is a computer that requires a new advanced security function. The computer sends a target request to the first device, and the first device determines the first data that needs to be sent to the computer according to the target request and the first policy.
[0074] The data processing method of the present application involves adding new functions on a second device. This method enables the first device to determine first data based on device information and a first strategy. The first data is a firmware system function file that contains functions that meet the requirements of the second device, thereby adding new target functions to the second device.
[0075] In this way, users can easily enable various value-added functions without relying on pre-installed value-added functions. At the same time, the method can also intelligently determine whether the conditions are met to enable the corresponding target function, improve the intelligence level of the system, and enhance the user experience.
[0076] This application allows manufacturers and developers to flexibly add or update the functions of the firmware system according to customer needs. Compared with the traditional pre-installation method, this data processing method allows users to dynamically add value-added functions as needed, improving user experience and system flexibility.
[0077] Exemplarily, suppose that the first device is a central server, the second device is a computer, and the user wishes to add a high-level security function on the computer. In this case, the computer does not have the high-level security function before sending the target request.
[0078] When the computer sends a target request to the central server, the central server determines the first data based on the device information included in the target request. The first data is used to add advanced security functions to the firmware system of the computer. After that, the computer can provide the corresponding functions. After adopting this solution, whether it is produced in the factory or shipped to the customer, the customer can add new BIOS value-added functions at any time.
[0079] As an optional embodiment, determining the first data based on the first strategy includes:
[0080] A first function having a corresponding relationship with the device information is determined based on a target mapping relationship, and a first function file is used as the first data; the target mapping relationship includes a plurality of corresponding relationships between device information and functions.
[0081] Among them, the target functions corresponding to different types of second devices are all planned in advance, and the first device only needs to select from the function set corresponding to the second device. The first device maintains a target mapping relationship to associate specific device information with predefined functions. When the first device receives a target request from the second device, it uses this mapping relationship to determine the function set corresponding to the second device.
[0082] The mapping relationship is not one-to-one, but can include the correspondence between multiple device information and multiple functions, which means that different devices may require different function files.
[0083] Once the function set corresponding to the second device is determined, the first device only needs to select the target function from the function set corresponding to the second device, and then process or transmit the file corresponding to the target function (which may be software, configuration file, driver, etc.) as the first data.
[0084] Exemplarily, the second device includes a first type of device and a second type of device, wherein the first type of device is a high-performance gaming computer, and the second type of device is a computer for industrial automation control.
[0085] High-performance gaming computers usually need to handle high-load graphics rendering and fast response time to provide a smooth gaming experience. Therefore, the required BIOS value-added features usually include: advanced performance tuning and overclocking.
[0086] Computers used for industrial automation control need to operate stably in harsh industrial environments while providing precise control and monitoring functions. Therefore, the required BIOS value-added functions usually include: specific scenario adaptation and fault diagnosis.
[0087] Enterprise computers need features that can improve work efficiency, enhance data security, optimize resource management, and enhance user experience. Therefore, the required BIOS value-added features usually include: advanced security features and IT deployment.
[0088] And / or, predicting a second function required by the at least one second device, and using a second function file as the first data; the first function is the same as or different from the second function.
[0089] In addition to determining the target function based on the mapping relationship, the first device also has a prediction capability and can predict at least one function that the second device may need. This is because the first device does not know which functions the second device needs to run. If the first device predicts the function required by the second device, the file corresponding to the predicted second function will also be processed or transmitted as the first data.
[0090] In actual use, in addition to using a method of determining the target function based on a mapping relationship alone or using a method of predicting the target function using a prediction capability alone, the above two methods may also be used simultaneously to determine the target function.
[0091] The first function and the second function determined or predicted by the first device may be the same or different. If they are the same, the first device will provide the same function file regardless of whether it is based on the mapping relationship or the prediction. If they are different, the first device may provide different function files according to the specific needs of the device or the prediction results.
[0092] Therefore, the first strategy includes determining the function corresponding to the device information based on the target mapping relationship, or predicting the function required by the second device. These function files will be sent as the first data. This method can ensure that the sent data is compatible with the hardware and software environment of the second device and can meet the needs of the second device.
[0093] As an optional embodiment, the predicting the second function required by the at least one second device includes:
[0094] Based on the operating data of the at least one second device at the first moment, the target task of the at least one second device at the second moment is predicted, and the function that meets the target condition is determined as the second function; the target condition includes supporting the operation of the target task but not possessed by the at least one second device, and the second moment is later than the first moment.
[0095] The operation data at the first moment refers to the device operation status data collected by the second device at a specific time point (the first moment). These data may include the user's usage habits, the environment or scene in which the device is currently located, and the task currently being performed by the device.
[0096] Predicting the target task at the second moment means that the first device uses the operation data at the first moment to predict the task that the second device may perform at a certain point in the future (the second moment). The target condition is the condition required to perform the predicted target task, especially those conditions that the device does not currently have but needs to support the task operation.
[0097] Based on the predicted target task and target condition, the first device determines the function to be provided to ensure that the second device can smoothly perform the target task at the second moment. The second moment is a future time point after the first moment, and the first device can complete the prediction and provide the required function within this time difference.
[0098] For example, if the user works in an industry with high security requirements such as finance, government, or military, the first device can obtain data of the device performing the corresponding task. Based on the data collected by the second device, the first device predicts that the user needs advanced security functions at the second moment to prevent malware and unauthorized code execution. After predicting the need, the first device sends the first data to the second device so that the second device has advanced security functions.
[0099] Therefore, by analyzing the operating data of the second device at different time points, the first device can predict its future task requirements and determine the functional files based on these requirements.
[0100] As an optional embodiment, it also includes:
[0101] A third function is selected from the first function and / or the second function, and a third function file is used as the first data.
[0102] In the process of determining the first data, a specific function (third function) can also be selected from the first function and / or the second function and sent as the first data. This is because some functions cannot be sent to the second device due to privacy restrictions, so they need to be screened again. This application allows the first device to select the most appropriate function based on specific business logic or user preferences.
[0103] For example, if the computer user prefers to use a specific security protocol, the first device can select to support the advanced security function of the protocol as the third function to send. This can provide a more refined and customized function update for the second device.
[0104] The present application embodiment provides a data processing method, such as Figure 2 As shown, applied to a second device, comprising:
[0105] S20. At least one second device sends a target request to the first device. The second device recognizes that a function that it does not currently have is required to perform a specific task or improve performance. The target request includes at least device information of the second device, which may include device model, hardware configuration, current software version, usage environment, etc.
[0106] S21, obtaining first data. After obtaining the first data, the second device will use the first data to update its firmware system, thereby obtaining a target function that was not previously available.
[0107] The target request includes at least device information of the at least one second device. The first data is obtained by the first device in response to the target request based on a first strategy and is used to add a target function in the firmware system. The at least one second device does not have the target function before sending the target request.
[0108] The purpose of this application is to enable the second device to obtain new or improved functions through firmware system updates to meet specific usage requirements or improve performance.
[0109] Assume that the enterprise's commercial computers need to obtain new functions from the server (first device), such as IT deployment. This value-added function of IT deployment can help the enterprise manage and use computer resources more efficiently and securely. The following is a detailed explanation of this process:
[0110] The enterprise's commercial computer sends a target request to the server, which contains the computer's hardware specifications, operating system version and other device information.
[0111] The server sends first data for adding new functions to the enterprise's commercial computer, and the first data may include firmware system updates, driver updates, or software patches.
[0112] After receiving the first data, the enterprise business computer updates its firmware system according to the data, thereby obtaining the IT deployment function. After the update is completed, the enterprise business computer now has the target function that it did not have before, and can manage and use computer resources more safely.
[0113] As an optional embodiment, Figure 3 As shown, the method also includes:
[0114] S220, in response to the first instruction, burning the first data. When the first device receives an instruction (first instruction) for updating the firmware system, it will start burning the first data to the second device. Burning is the process of writing the firmware system or software data into the non-volatile memory of the second device.
[0115] S221. In response to the second instruction, the firmware system enters a power-on self-test phase during the process of restarting the device, and verifies the first data based on the device information. When the second device receives another instruction (the second instruction), it will perform a specific operation during the restart process. The second instruction may be triggered by a user, or automatically triggered by the system of the second device after detecting an update.
[0116] During the boot process of the second device, the second device will enter a self-test phase, which is usually called POST (Power-On Self-Test). In this phase, the system of the second device will check the hardware status and make sure everything is normal. During the self-test phase, the system of the second device will use the device information of the second device to verify the first data previously burned to ensure the confidentiality of data transmission.
[0117] S222: If the verification is successful, the second device updates the firmware system based on the first data to add the target function. If the first data verification is successful, the second device updates the firmware system based on the data to add the target function.
[0118] For example, it is assumed that a computer used in an industrial control system (such as a SCADA system) is used to monitor and control an industrial process, which requires a fault diagnosis function to ensure the continuity and safety of the production process.
[0119] The staff downloads the first data on the computer, and the second device responds to the first instruction and burns the new first data into the computer's memory. The staff restarts the computer or the second device is set to automatically restart after burning, and when restarting, the computer responds to the second instruction. The computer starts and enters the POST phase, checks the hardware and prepares to load the firmware system. During the POST process, the computer uses its device information (such as serial number, model, etc.) to verify the burned first data.
[0120] If the verification is successful, the computer will update the firmware system based on the first data so that the second device supports the new image processing algorithm.
[0121] Therefore, after receiving the first data, the second device responds to the instruction to burn the data, restarts the second device to enter the self-check phase and verifies the data, and finally updates the firmware system to add the target function. Through the verification process, the security and integrity of the firmware system update are ensured.
[0122] In this case, even if a third party obtains the first data, the third party cannot use the first data to update the firmware system of its local device because its device information cannot verify the first data.
[0123] As an optional embodiment, Figure 4 As shown, the verifying the first data based on the device information includes:
[0124] S230, obtaining second data from local storage, and decrypting the second data based on the device information to obtain a first identifier; the second data is encrypted by the first device based on the device information, and the first identifier in the second data is the device information or is obtained by processing the device information by the first device based on the second policy.
[0125] The second device obtains the second data from its local storage, and the second data is sent by the first device along with the first data. The first data includes the second data.
[0126] The second device uses its device information as a key to decrypt the second data and obtain a first identifier. The first identifier may be the device information directly, or may be obtained by the first device processing the device information according to the second policy.
[0127] S231: Use the device information as a second identifier or process the device information based on a second policy to obtain a second identifier. The second device generates a second identifier, which may be the device information directly or obtained by the first device processing the device information according to the second policy.
[0128] S232: If the first identifier is consistent with the second identifier, update the firmware system based on the first data to add the target function.
[0129] During the firmware system update process, the second device needs to verify the security and correctness of the first data received from the first device. The second device compares the first identifier and the second identifier. If the two are consistent, it means that the first data is safe and correct. If the verification is successful, the second device will use the first data to update its firmware system to add the target function.
[0130] For example, it is assumed that a user needs to update the BIOS of his personal computer to support new hardware features, the first device is a server, and the second device is a personal computer.
[0131] The user downloads the first data and the second data from the server and burns the first data and the second data into the memory of the computer. When the computer restarts, it enters the power-on self-test phase. In this phase, the computer obtains the second data from the local storage.
[0132] The computer uses its device information to decrypt the second data and obtain the first identifier. At the same time, the computer generates a second identifier, which can be direct device information or information processed according to a certain strategy.
[0133] The computer compares the first identifier and the second identifier, and if they are consistent, it means that the first data is safe. Then, the computer is updated using the first data to add new hardware support functions.
[0134] Therefore, the present application ensures the security of firmware system update data through encryption and decryption mechanisms, preventing malicious tampering. In addition, updates are applied only when the identifiers are consistent, which prevents unauthorized firmware system updates.
[0135] As an optional embodiment, before updating the firmware system based on the first data to add the target function, the method further includes:
[0136] If the first identifier is consistent with the second identifier, a third identifier is obtained from the decrypted second data, and the first data is digitally verified using the third identifier; the third identifier is generated by the second device based on the device information;
[0137] If the signature verification passes, the firmware system is updated based on the first data to add a target function.
[0138] Before verifying the first data, the second device has confirmed the preliminary security of the first data by comparing the first identifier and the second identifier. If the first identifier and the second identifier are consistent, the second device obtains a third identifier from the decrypted second data. This third identifier is a key for digital signature.
[0139] The second device uses the third identifier to verify the digital signature attached to the first data. If the digital signature verification is successful, this indicates that the first data has not been tampered with and is indeed from a trusted source. At this point, the second device will use the first data to update its firmware system to add the target function.
[0140] Exemplarily, the computer restarts to enter a power-on self-test phase, and uses the device information to decrypt the second data previously encrypted by the server to obtain the first identifier.
[0141] If the first identifier is consistent with the second identifier generated based on the device information, the computer decrypts the second data to obtain the third identifier. The computer uses the third identifier to verify the digital signature of the first data. The third identifier is created by the server using the device information on its server side.
[0142] If the digital signature verification is successful, the computer will update its firmware system and add new security features. This multi-level verification mechanism further ensures the security of data updates, prevents illegal data injection, and ensures that the first data has not been tampered with.
[0143] As an optional embodiment, the at least one second device obtains the second data while obtaining the first data corresponding to the current target request; or, the at least one second device obtains the second data while obtaining the first data corresponding to other target requests.
[0144] The present application provides a flexible data acquisition method and improves the convenience of operation. According to the different methods of acquiring the second data by the second device, the time point of acquiring the second data is different, so that the first device can adaptively adjust the time of sending the second data. For example, the second data can be sent along with the first data, or it can be sent in response to other target requests.
[0145] In summary, assuming that the first device is a server and the second device is a computer, after the computer submits a target request to the server, since the target request contains device information, such as the device's MTM / SN, the server creates a private key and a certificate containing a public key based on the device information. The content structure of the certificate is shown in Figure 6 , where Serial Number is created based on the value of the device information. The certificate is associated with the device information MTM / SN of the second device, and each device has its own separate certificate, which can prevent cracking by backup burning.
[0146] When the server determines that the computer needs to add a new target function, the server uses the private key to digitally sign the target function that the user needs to add, generates a signature, and packages it with the certificate into a binary file, namely, the first data.
[0147] like Figure 5 As shown, the computer downloads the first data and burns it, and then restarts the system. During the POST process, the computer's BIOS first verifies the Serial Number part (i.e., the first identifier) in the first data, and then extracts the third identifier (i.e., the public key) in the second data to verify the signature of the target function. After the signature verification is passed, the target function is added and made available.
[0148] The embodiment of the present application also provides a data processing system, including: a first device and a second device, wherein the first device is used to execute the steps of the aforementioned data processing method, and the second device is used to execute the steps of the aforementioned data processing method. The data processing system of the present application allows the second device to dynamically update the firmware system according to demand to enhance the function, while ensuring the security and effectiveness of the update process.
[0149] The data processing system of the present application can be applied between computer manufacturers and users. The manufacturer's first device can remotely provide firmware system update services for the user's second device (computer) to add new functions or improve performance.
[0150] Through this data processing method and system, the scalability of UEFI BIOS is fully utilized, manufacturers can provide customized services more flexibly, and users can enjoy a more personalized and secure computing experience.
[0151] This embodiment of the present application provides a first device, wherein the first sub-device includes:
[0152] A determination unit, configured to determine the first data based on the first strategy in response to obtaining, by the first device, a target request sent by at least one second device;
[0153] A first sending unit, configured to send the first data to the at least one second device;
[0154] The target request includes at least device information of the at least one second device, the first data is used to add a target function in the firmware system, and the at least one second device does not have the target function before sending the target request.
[0155] It should be noted that the principle of solving the technical problem by the first device provided in the embodiment of the present application is similar to the data processing method applied to the first device provided in the embodiment of the present application. Therefore, the implementation of the first device provided in the embodiment of the present application can refer to the implementation of the method provided in the embodiment of the present application, and the repeated parts will not be repeated.
[0156] This embodiment of the present application provides a second device, wherein the second device includes:
[0157] a second sending unit, configured so that at least one second device sends a target request to the first device;
[0158] An acquisition unit, configured to obtain first data;
[0159] The target request includes at least device information of the at least one second device. The first data is obtained by the first device in response to the target request based on a first strategy and is used to add a target function in the firmware system. The at least one second device does not have the target function before sending the target request.
[0160] It should be noted that the principle of solving the technical problem by the second device provided in the embodiment of the present application is similar to the data processing method applied to the second device provided in the embodiment of the present application. Therefore, the implementation of the second device provided in the embodiment of the present application can refer to the implementation of the method provided in the embodiment of the present application, and the repeated parts will not be repeated.
[0161] An embodiment of the present application further provides an electronic device, comprising: a memory and a processor, wherein an executable program is stored in the memory, and the processor executes the executable program to implement the steps of any method provided in the embodiment of the present application.
[0162] The processor may be a general purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The general purpose processor may be a microprocessor or any conventional processor.
[0163] Since the electronic device introduced in the embodiments of the present application is an electronic device provided with a memory for implementing the method disclosed in the embodiments of the present application, based on the method introduced in the embodiments of the present application, technical personnel in this field can understand the structure and deformation of the electronic device introduced in the embodiments of the present application, so it is not repeated here.
[0164] The embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any method of the task processing method provided in the embodiment of the present application are implemented.
[0165] The storage medium in this embodiment may be included in the electronic device, or may exist independently without being installed in the electronic device. The storage medium carries one or more computer programs, and when the one or more computer programs are executed, the steps of any method of the task processing method provided in the embodiment of the present application are implemented.
[0166] It should be understood that each scheme in this embodiment has the corresponding technical effects in the above method embodiment, which will not be repeated here.
[0167] According to an embodiment of the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. Optionally, the specific examples in this embodiment can refer to the examples described in any embodiment of the present application, and this embodiment is not repeated here. Obviously, it should be understood by those skilled in the art that the above-mentioned modules or steps of the present application can be implemented with a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented with a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from here, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.
[0168] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A data processing method, comprising: The first device determines the first data based on the first strategy in response to obtaining the target request sent by at least one second device; sending the first data to the at least one second device; The target request includes at least device information of the at least one second device, the first data is used to add a target function in the firmware system, and the at least one second device does not have the target function before sending the target request.
2. The method according to claim 1, wherein determining the first data based on the first strategy comprises: Determine a first function corresponding to the device information based on the target mapping relationship, and use the first function file as the first data; The target mapping relationship includes a correspondence between multiple device information and functions; and / or, predicting a second function required by the at least one second device, and using a second function file as the first data; The first function is the same as or different from the second function.
3. The method according to claim 2, wherein predicting the second function required by the at least one second device comprises: Based on the operating data of the at least one second device at the first moment, the target task of the at least one second device at the second moment is predicted, and the function that meets the target condition is determined as the second function; the target condition includes supporting the operation of the target task but not possessed by the at least one second device, and the second moment is later than the first moment.
4. The method according to claim 2 or 3, further comprising: A third function is selected from the first function and / or the second function, and a third function file is used as the first data.
5. A data processing method, comprising: At least one second device sends a target request to the first device; obtaining first data; The target request includes at least device information of the at least one second device. The first data is obtained by the first device in response to the target request based on a first strategy and is used to add a target function in the firmware system. The at least one second device does not have the target function before sending the target request.
6. The data processing method according to claim 5, further comprising: In response to a first instruction, burning the first data; In response to the second instruction, the firmware system enters a power-on self-test phase during the process of restarting the device, and verifies the first data based on the device information; If the verification is successful, the firmware system is updated based on the first data to add a target function.
7. The data processing method according to claim 6, wherein the verifying the first data based on the device information comprises: Obtain second data from local storage, and decrypt the second data based on the device information to obtain a first identifier; The second data is encrypted by the first device based on the device information, and the first identifier in the second data is the device information or is obtained by the first device processing the device information based on the second policy; Using the device information as a second identifier or processing the device information based on a second strategy to obtain a second identifier; If the first identifier is consistent with the second identifier, the firmware system is updated based on the first data to add the target function.
8. The data processing method according to claim 7, before updating the firmware system based on the first data to add the target function, further comprising: If the first identifier is consistent with the second identifier, obtain a third identifier from the decrypted second data, and use the third identifier to digitally verify the first data; The third identifier is generated by the second device based on the device information; If the signature verification passes, the firmware system is updated based on the first data to add a target function.
9. According to the data processing method according to claim 7, the at least one second device obtains the second data while obtaining the first data corresponding to the current target request; or, the at least one second device obtains the second data while obtaining the first data corresponding to other target requests.
10. A data processing system comprising: A first device and a second device, wherein the first device is used to execute the steps of the data processing method according to any one of claims 1 to 4, and the second device is used to execute the steps of the data processing method according to any one of claims 5 to 9.
