CN113391845A - Data interaction method and device and related components - Google Patents
Data interaction method and device and related components Download PDFInfo
- Publication number
- CN113391845A CN113391845A CN202110714246.5A CN202110714246A CN113391845A CN 113391845 A CN113391845 A CN 113391845A CN 202110714246 A CN202110714246 A CN 202110714246A CN 113391845 A CN113391845 A CN 113391845A
- Authority
- CN
- China
- Prior art keywords
- data
- storage area
- bios
- bmc
- interaction method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 230000003993 interaction Effects 0.000 title claims abstract description 58
- 230000008569 process Effects 0.000 claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012795 verification Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000013144 data compression Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
- G06F11/1064—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices in cache or content addressable memories
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a data interaction method, which is applied to a controller and comprises the following steps: receiving data sent by a BIOS; and storing the data into the corresponding storage area, and generating prompt information so that the BMC acquires the data from the storage area after detecting the prompt information. In the application, the BIOS does not need to wait for the completion of the start of the BMC, and the BIOS can perform subsequent starting processes after storing data in the storage area of the controller, so that the starting time of the BIOS is shortened. The application also discloses a data interaction device, electronic equipment and a computer readable storage medium.
Description
Technical Field
The present application relates to the field of servers, and in particular, to a data interaction method, apparatus, and related components.
Background
As the demand of users for computer computing increases, the types of devices are being developed more and more. The functional complexity of BMC (Baseboard Management Controller) and BIOS (Basic Input Output System) on a server is higher and higher, and a certain node in the BIOS start-up process needs to transfer a lot of information, such as device asset information, BIOS options, and the like, to the BMC. Because the mode that the BIOS directly performs data interaction with the BMC is adopted in the prior art, the BIOS can continue to perform the subsequent starting process after waiting for the completion of the start of the BMC and interacting with the BMC data, and the BMC is long in starting time, so that the BIOS starting time is prolonged.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a data interaction method, a data interaction device, an electronic device and a computer readable storage medium, wherein the BIOS can perform subsequent starting processes after storing data in a storage area of a controller without waiting for the completion of the starting of the BMC, so that the starting time of the BIOS is shortened.
In order to solve the above technical problem, the present application provides a data interaction method, which is applied to a controller, and the data interaction method includes:
receiving data sent by a BIOS;
and storing the data into a corresponding storage area, and generating prompt information so that the BMC acquires the data from the storage area after detecting the prompt information.
Optionally, the process of receiving data sent by the BIOS includes:
receiving data sent by a BIOS according to a predefined format;
the data interaction method further comprises the following steps:
and after acquiring the data from the storage, the BMC analyzes the data according to the predefined format.
Optionally, after receiving the data sent by the BIOS and before storing the data in the corresponding storage area, the data interaction method further includes:
verifying the data;
the process of storing the data to the corresponding storage area comprises the following steps:
and storing the data which is successfully verified to the corresponding storage area.
Optionally, the process of verifying the data includes:
carrying out integrity check and security check on the data;
correspondingly, the process of storing the successfully verified data to the corresponding storage area comprises the following steps:
and storing the data with both successful integrity check and successful security check into the corresponding storage area.
Optionally, the process of generating the prompt message includes:
and adjusting the interface state of a GPIO (general purpose input/output) used for being connected with the BMC on the controller to be a target state.
Optionally, the process that the BMC detects that the prompt information obtains the data from the storage area includes:
and the BMC detects the prompt message and acquires the data from the storage area through I2C.
Optionally, the controller is a CPLD.
In order to solve the above technical problem, the present application further provides a data interaction device applied to a controller, the data interaction device including:
the receiving module is used for receiving data sent by the BIOS;
and the storage module is used for storing the data to a corresponding storage area and generating prompt information so that the BMC acquires the data from the storage area after detecting the prompt information.
In order to solve the above technical problem, the present application further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the data interaction method as described in any one of the above when executing the computer program.
To solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the data interaction method according to any one of the above.
The application provides a data interaction method, after BIOS is started, data to be sent to BMC is temporarily stored in a storage area of a controller, the controller generates prompt information to prompt the BMC to acquire the data from the storage area of the controller, and therefore data interaction between the BIOS and the BMC is completed. The application also provides a data interaction device, electronic equipment and a computer readable storage medium, which have the same beneficial effects as the data interaction method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flow chart illustrating steps of a data interaction method provided in the present application;
fig. 2 is a schematic structural diagram of a data interaction device provided in the present application.
Detailed Description
The core of the application is to provide a data interaction method and device, an electronic device and a computer readable storage medium, the BIOS can perform subsequent starting processes after storing data in a storage area of a controller without waiting for the completion of the starting of the BMC, and the starting time of the BIOS is shortened.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a data interaction method provided in the present application, where the data interaction method includes:
s101: receiving data sent by a BIOS;
specifically, the data interaction between the BIOS and the BMC is realized through the controller, in order to save hardware cost, the controller may select the CPLD, and in the server, the CPLD is connected with the BMC through the I2C and is connected with the BIOS through the ESPI, so that a data transmission path between the CPLD and the BMC or the BIOS does not need to be established independently, and hardware cost is further saved, which is described below by taking the CPLD as an example.
Specifically, after the server is powered on, the CPLD is started, and it can be understood that the starting process of the CPLD is not affected by the starting process of the BIOS, and when the CPLD is started, the BIOS is started, and the data which needs to be sent to the BMC is arranged and sent to the CPLD by the BIOS. Because the BIOS does not need to directly perform data interaction with the BMC, after the BIOS sends the data to be sent to the BMC to the CPLD, the BIOS can perform a subsequent starting process, thereby shortening the BIOS starting time.
S102: and storing the data into the corresponding storage area, and generating prompt information so that the BMC acquires the data from the storage area after detecting the prompt information.
Specifically, after receiving the data sent by the BIOS, the CPLD stores all the data in the corresponding storage area, and then generates a prompt message, and after the BMC is started, the CPLD actively detects whether there is a prompt message, and if so, acquires the corresponding data from the cache area of the CPLD, and completes data interaction between the BIOS and the BMC. The storage area may be a UFM (user Flash Memory) in the CPLD.
It can be seen that, in this embodiment, after the BIOS is started, data to be sent to the BMC is temporarily stored in the storage area of the controller, and the controller generates a prompt message to prompt the BMC to acquire the data from the storage area of the controller, so as to complete data interaction between the BIOS and the BMC.
On the basis of the above-described embodiment:
as an alternative embodiment, the process of receiving data sent by the BIOS includes:
receiving data sent by a BIOS according to a predefined format;
the data interaction method further comprises the following steps:
and after acquiring the data from the storage, the BMC analyzes the data according to a predefined format.
It can be understood that the data format of interaction between the BIOS and the BMC needs to be predefined, that is, the BIOS encapsulates the data according to a predefined format, and then sends the encapsulated data to the CPLD, where the predefined format may include data type, field, data sending sequence, size, and the like. And after acquiring the data from the storage area of the CPLD, the BMC analyzes the data according to a predefined format and displays the data.
As an optional embodiment, after receiving the data sent by the BIOS and before storing the data in the corresponding storage area, the data interaction method further includes:
verifying the data;
the process of storing data into the corresponding storage area comprises the following steps:
and storing the data which is successfully verified to the corresponding storage area.
Specifically, in order to improve the security of data interaction, after the CPLD receives data sent by the BIOS, the data is verified, the data that is successfully verified is stored in the storage area, and the data that is failed in verification is discarded.
As an alternative embodiment, after the BIOS encapsulates the data according to the predefined format, the encapsulated data is compressed by zlib (a function library for providing data compression), and then encrypted and signed by a digital certificate, and then sent to the CPLD through the ESPI interface. Correspondingly, the verification operation performed by the CPLD after receiving the data includes integrity verification and security verification, and the verification can be specifically realized through the MD5 or hash, and is selected according to the actual engineering requirement, which is not specifically limited herein.
As an alternative embodiment, the process of generating the prompt message includes:
and adjusting the interface state of the GPIO used for being connected with the BMC on the controller to be a target state.
Specifically, the controller is provided with a GPIO specially connected to the BMC for prompting the BMC to acquire data, the CPLD stores the data in the storage area and adjusts an interface state of the GPIO to a target state, where the target state may be a low level state, that is, after the CPLD stores the data in the storage area, the GPIO is pulled down to prompt the BMC to acquire the data, and after the BMC is started, the controller detects that the GPIO is pulled down, the CPLD acquires the data from the storage area of the CPLD.
To sum up, the BMC and the CPLD can communicate with each other based on the current server, the BIOS and the CPLD can also communicate with each other, the CPLD has the UFM module for temporarily storing data, the BIOS transmits the data to the CPLD first, the CPLD performs integrity check and security check on the data, the data that is successfully checked is temporarily stored in the UFM, then the GPIO between the BMC and the GPIO is pulled down, and the BMC reads the temporarily stored data from the CPLD through I2C after detecting that the GPIO is pulled down after starting, thereby completing data interaction. In the whole interaction process, the BIOS can complete data transmission interaction without waiting for the completion of the start of the BMC.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data interaction device provided in the present application, applied to a controller, the data interaction device including:
the receiving module 1 is used for receiving data sent by the BIOS;
and the storage module 2 is used for storing the data to a corresponding storage area and generating prompt information so that the BMC acquires the data from the storage area after detecting the prompt information.
It can be seen that, in this embodiment, after the BIOS is started, data to be sent to the BMC is temporarily stored in the storage area of the controller, and the controller generates a prompt message to prompt the BMC to acquire the data from the storage area of the controller, so as to complete data interaction between the BIOS and the BMC.
As an alternative embodiment, the process of receiving data sent by the BIOS includes:
receiving data sent by a BIOS according to a predefined format;
the data interaction device further comprises:
and the analysis module is used for analyzing the data according to a predefined format after the BMC acquires the data from the storage.
As an optional embodiment, after receiving the data sent by the BIOS and before storing the data in the corresponding storage area, the data interaction apparatus further includes:
the checking module is used for checking the data;
the process of storing data into the corresponding storage area comprises the following steps:
and storing the data which is successfully verified to the corresponding storage area.
As an alternative embodiment, the process of verifying the data includes:
carrying out integrity check and security check on the data;
correspondingly, the process of storing the data which is successfully verified to the corresponding storage area comprises the following steps:
and storing the data with both successful integrity check and security check to the corresponding storage area.
As an alternative embodiment, the process of generating the prompt message includes:
and adjusting the interface state of the GPIO used for being connected with the BMC on the controller to be a target state.
As an alternative embodiment, the process of the BMC detecting that the prompt information obtains the data from the storage area includes:
the BMC detects the hint information and retrieves the data from the storage area via I2C.
As an alternative embodiment, the controller is a CPLD.
In another aspect, the present application further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the data interaction method as described in any one of the above when executing the computer program.
For an introduction of an electronic device provided in the present application, please refer to the above embodiments, which are not described herein again.
The electronic equipment provided by the application has the same beneficial effects as the data interaction method.
In another aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the data interaction method as described in any one of the above.
For the introduction of a computer-readable storage medium provided in the present application, please refer to the above embodiments, which are not described herein again.
The computer-readable storage medium provided by the application has the same beneficial effects as the data interaction method.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A data interaction method is applied to a controller, and comprises the following steps:
receiving data sent by a BIOS;
and storing the data into a corresponding storage area, and generating prompt information so that the BMC acquires the data from the storage area after detecting the prompt information.
2. The data interaction method of claim 1, wherein the receiving the data sent by the BIOS comprises:
receiving data sent by a BIOS according to a predefined format;
the data interaction method further comprises the following steps:
and after acquiring the data from the storage, the BMC analyzes the data according to the predefined format.
3. The data interaction method of claim 1, wherein after receiving the data sent by the BIOS and before storing the data in the corresponding storage area, the data interaction method further comprises:
verifying the data;
the process of storing the data to the corresponding storage area comprises the following steps:
and storing the data which is successfully verified to the corresponding storage area.
4. The data interaction method according to claim 3, wherein the process of verifying the data comprises:
carrying out integrity check and security check on the data;
correspondingly, the process of storing the successfully verified data to the corresponding storage area comprises the following steps:
and storing the data with both successful integrity check and successful security check into the corresponding storage area.
5. The data interaction method of claim 1, wherein the process of generating the prompt message comprises:
and adjusting the interface state of a GPIO (general purpose input/output) used for being connected with the BMC on the controller to be a target state.
6. The data interaction method of claim 1, wherein the step of the BMC detecting that the prompt message obtains the data from the storage area comprises:
and the BMC detects the prompt message and acquires the data from the storage area through I2C.
7. The data interaction method according to any one of claims 1 to 6, wherein the controller is a CPLD.
8. A data interaction device is applied to a controller, and the data interaction device comprises:
the receiving module is used for receiving data sent by the BIOS;
and the storage module is used for storing the data to a corresponding storage area and generating prompt information so that the BMC acquires the data from the storage area after detecting the prompt information.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the data interaction method as claimed in any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the data interaction method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110714246.5A CN113391845A (en) | 2021-06-25 | 2021-06-25 | Data interaction method and device and related components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110714246.5A CN113391845A (en) | 2021-06-25 | 2021-06-25 | Data interaction method and device and related components |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113391845A true CN113391845A (en) | 2021-09-14 |
Family
ID=77624000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110714246.5A Withdrawn CN113391845A (en) | 2021-06-25 | 2021-06-25 | Data interaction method and device and related components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113391845A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114328313A (en) * | 2021-12-31 | 2022-04-12 | 联想长风科技(北京)有限公司 | Information transmission method and system |
CN114428963A (en) * | 2022-04-06 | 2022-05-03 | 浪潮(山东)计算机科技有限公司 | Server starting method, device, equipment and storage medium |
CN114968386A (en) * | 2022-05-30 | 2022-08-30 | 联想(北京)信息技术有限公司 | Equipment information management method, device and equipment of electronic equipment |
-
2021
- 2021-06-25 CN CN202110714246.5A patent/CN113391845A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114328313A (en) * | 2021-12-31 | 2022-04-12 | 联想长风科技(北京)有限公司 | Information transmission method and system |
CN114428963A (en) * | 2022-04-06 | 2022-05-03 | 浪潮(山东)计算机科技有限公司 | Server starting method, device, equipment and storage medium |
CN114968386A (en) * | 2022-05-30 | 2022-08-30 | 联想(北京)信息技术有限公司 | Equipment information management method, device and equipment of electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113391845A (en) | Data interaction method and device and related components | |
WO2017166446A1 (en) | Vulnerability-fixing method and device | |
CN111414334A (en) | File fragment uploading method, device, equipment and storage medium based on cloud technology | |
CN106325929B (en) | Firmware upgrading method, firmware upgrading device, refrigerator and server | |
US10698797B2 (en) | Mobile application program testing method, server, terminal, and storage medium | |
CN111538517B (en) | Method and system for upgrading server firmware, electronic equipment and storage medium | |
WO2013123829A1 (en) | Software installation method, device and system | |
CN104185836A (en) | Method and system for verifying proper operation of computing device after system change | |
WO2016202000A1 (en) | Differential rollback upgrading method and apparatus | |
WO2022142153A1 (en) | Electricity meter upgrading method and system, smart meter, and storage medium | |
CN103890734A (en) | Telemetry file hash and conflict detection | |
CN111651140B (en) | Service method and device based on workflow | |
CN111796853A (en) | Firmware upgrading method, system, equipment and computer storage medium | |
US8719622B2 (en) | Recording and preventing crash in an appliance | |
EP3316132A1 (en) | Program, system, and information processing method | |
CN109948332A (en) | A kind of physical machine login password remapping method and device | |
WO2024041283A1 (en) | Client upgrading method and apparatus, terminal device, and storage medium | |
WO2024103583A1 (en) | Method and apparatus for changed bios options to take effect, nonvolatile readable storage medium, and electronic apparatus | |
CN111857758A (en) | Application deployment method, device and medium | |
US20160078469A1 (en) | Application Purchasing Method, And Terminal | |
CN113360172B (en) | Application deployment method, device, computer equipment and storage medium | |
WO2014130790A1 (en) | Supplier analysis and verification system and method | |
CN111158760B (en) | Loading method and device for card configuration file and electronic equipment | |
CN113609215A (en) | Data processing method, device, equipment and computer readable storage medium | |
CN110908725B (en) | Application program starting method and device, electronic equipment and readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210914 |
|
WW01 | Invention patent application withdrawn after publication |