CN115061828A - Interaction method, interaction device, electronic equipment and storage medium - Google Patents

Interaction method, interaction device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115061828A
CN115061828A CN202210568095.1A CN202210568095A CN115061828A CN 115061828 A CN115061828 A CN 115061828A CN 202210568095 A CN202210568095 A CN 202210568095A CN 115061828 A CN115061828 A CN 115061828A
Authority
CN
China
Prior art keywords
data
information
shared memory
bmc
operating system
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.)
Pending
Application number
CN202210568095.1A
Other languages
Chinese (zh)
Inventor
何志平
黄志鹏
周南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tiangu Information Security System Shenzhen Co ltd
Original Assignee
Tiangu Information Security System Shenzhen Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tiangu Information Security System Shenzhen Co ltd filed Critical Tiangu Information Security System Shenzhen Co ltd
Priority to CN202210568095.1A priority Critical patent/CN115061828A/en
Publication of CN115061828A publication Critical patent/CN115061828A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides an interaction method, an interaction device, electronic equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: after initializing the BMC, performing memory division on a display memory of the BMC to obtain a shared memory, wherein the shared memory is used for data interaction between the BMC and an operating system; defining data interface specification information of the shared memory, wherein the data interface specification information is used for specifying a data format stored in the shared memory; and performing data interaction with the operating system according to the data interface specification information and the shared memory. According to the embodiment of the application, the shared memory partitioned from the BMC and the whole OS are used for carrying out real-time data interaction, so that the data interaction efficiency is improved.

Description

Interaction method, interaction device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an interaction method, an interaction apparatus, an electronic device, and a storage medium.
Background
At present, when a server deployed in a computer room is managed in a unified manner, the server not only includes some information that a Baseboard Management Controller (BMC) can monitor on the existing basis, but also needs to include information of all components and peripherals included in a complete machine, such as a Peripheral Component Interconnect Express (PCIE) device, a hard disk, Operating System (OS) information, service information, and the like. However, as the real-time performance of the device changes, the amount of the interactive information becomes larger and larger, and the efficiency of the method of using the conventional Intelligent Platform Management Interface (IPMI) in combination with an Inter-Process Communication (IPC) Interface or adding other peripherals and hardware is low, which cannot meet the interactive requirement of the BMC in the whole device. Therefore, how to more efficiently realize the information interaction between the BMC and the OS becomes a technical problem to be solved urgently.
Disclosure of Invention
The main purpose of the embodiments of the present application is to provide an interaction method, an interaction apparatus, an electronic device, and a storage medium, which can implement real-time information interaction between a BMC and a complete machine OS, and improve efficiency of complete machine information interaction.
In order to achieve the above object, a first aspect of the embodiments of the present application provides an interaction method applied to a baseboard management controller BMC, where the method includes:
after the BMC is initialized, performing memory division on a display memory of the BMC to obtain a shared memory, wherein the shared memory is used for data interaction between the BMC and an operating system;
defining data interface specification information of the shared memory, wherein the data interface specification information is used for specifying a data format stored in the shared memory;
and performing data interaction with the operating system according to the data interface specification information and the shared memory.
In some embodiments, the performing data interaction with the operating system according to the data interface specification information and the shared memory includes:
when data interaction request information sent by the operating system is received, the BMC obtains first data information stored in the shared memory by calling a shared memory reading function;
and performing data analysis on the first data information according to an interface data analysis function corresponding to the data interface specification information to obtain second data information uploaded by the operating system.
In some embodiments, the performing data interaction with the operating system according to the data interface specification information and the shared memory further includes:
acquiring instruction information of the BMC, wherein the instruction information is used for representing target operation needing to be executed by the operating system;
performing information conversion operation on the instruction information according to the data interface specification information to obtain third data information;
storing the third data information to a shared memory by calling a shared memory write-in function;
and sending instruction interaction request information to the operating system so as to execute the target operation through the operating system.
In order to achieve the above object, a second aspect of the embodiments of the present application provides an interaction method applied to an operating system, the method including:
acquiring second data information of the operating system through system service equipment, wherein the system service equipment is used for acquiring data information in the operating system in real time;
acquiring data interface specification information and a shared memory from the BMC;
performing data read-write operation on the second data information according to the data interface specification information and the shared memory so as to perform data interaction with the BMC;
wherein the data interface specification information, the shared memory, and the BMC are obtained according to the method of the first aspect.
In some embodiments, the performing, according to the data interface specification information and the shared memory, data read-write operation on the second data information to perform data interaction with the BMC includes:
performing information conversion operation on the second data information according to the data interface specification information to obtain first data information;
storing the first data information to a shared memory by calling a shared memory write-in function;
and sending data interaction request information to the BMC to perform data interaction with the BMC.
In some embodiments, the operating system is connected to a plurality of data devices, and the obtaining, by a system service device, second data information of the operating system includes:
starting the operating system and system service equipment corresponding to the operating system;
acquiring original data information of the plurality of data devices at preset heartbeat time through the system service device;
and integrating the plurality of original data information to obtain second data information.
In order to achieve the above object, a third aspect of the embodiments of the present application provides an interactive device, applied to a BMC, the device including:
the memory partitioning module is used for partitioning a display memory of the BMC after the BMC is initialized to obtain a shared memory, and the shared memory is used for data interaction between the BMC and an operating system;
the data interface definition module is used for defining data interface specification information of the shared memory, and the data interface specification information is used for specifying a data format stored in the shared memory;
and the data interaction module is used for carrying out data interaction with the operating system according to the data interface specification information and the shared memory.
In order to achieve the above object, a fourth aspect of the embodiments of the present application provides an interaction apparatus, applied to an operating system, the apparatus including:
the first information acquisition module is used for acquiring second data information of the operating system through system service equipment, and the system service equipment is used for acquiring the data information in the operating system in real time;
the second information acquisition module is used for acquiring the data interface specification information and the shared memory from the BMC;
the data reading and writing module is used for performing data reading and writing operation on the second data information according to the data interface specification information and the shared memory so as to perform data interaction with the BMC;
wherein the data interface specification information, the shared memory, and the BMC are obtained according to the method of the first aspect.
To achieve the above object, a fifth aspect of an embodiment of the present application provides an electronic device, including:
at least one memory;
at least one processor;
at least one computer program;
the at least one computer program is stored in the at least one memory and executed by the at least one processor to implement the method of the first aspect; or the method of the second aspect above.
In order to achieve the above object, a sixth aspect of the embodiments of the present application proposes a storage medium, which is a computer-readable storage medium storing a computer program for causing a computer to execute the method of the first aspect; or the method of the second aspect above.
According to the interaction method, the interaction device, the electronic equipment and the storage medium, after the BMC is initialized, the display memory of the BMC is subjected to memory division to obtain the shared memory, and the shared memory is used for data interaction between the BMC and the operating system. In order to realize real-time data interaction between the BMC and the OS of the whole machine and avoid the influence of format difference of interactive data on data interaction efficiency, data interface specification information of the shared memory is defined, and the data interface specification information is used for specifying a data format stored in the shared memory. And performing data interaction with the operating system according to the data interface specification information and the shared memory. According to the method and the device, real-time data interaction is carried out between the shared memory partitioned from the BMC and the whole OS, and the efficiency of data interaction is improved.
Drawings
Fig. 1 is a first flowchart of an interaction method provided in an embodiment of the present application;
FIG. 2 is a first flowchart of step S130 in FIG. 1;
FIG. 3 is a second flowchart of step S130 in FIG. 1;
FIG. 4 is a second flowchart of an interaction method provided by the embodiment of the present application;
fig. 5 is a flowchart of step S430 in fig. 4;
fig. 6 is a flowchart of step S410 in fig. 4;
fig. 7 is a schematic structural diagram of an interactive apparatus applied to a BMC according to an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of an interactive device applied to an operating system according to an embodiment of the present application;
fig. 9 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that although functional blocks are partitioned in a schematic diagram of an apparatus and a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the partitioning of blocks in the apparatus or the order in the flowchart. The terms first, second and the like in the description and in the claims, and the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
First, several terms referred to in the present application are resolved:
baseboard Management Controller (BMC): the remote management controller is also called as an execution server remote management controller, and can perform operations such as firmware upgrade and machine equipment check on the machine in a state that the machine is not started.
Operating System (OS for short): is a computer program that manages computer hardware and software resources. The operating system needs to handle basic transactions such as managing and configuring memory, determining the priority of system resources, controlling input devices and output devices, operating the network, and managing the file system, and also provides an interface for the user to interact with the system.
At present, when a server deployed in a computer room is managed in a unified manner, the server not only includes some information that a Baseboard Management Controller (BMC) can monitor on the existing basis, but also needs to include information of all components and peripherals included in a complete machine, such as a Peripheral Component Interconnect Express (PCIE) device, a hard disk, Operating System (OS) information, service information, and the like. However, as the real-time performance of the device changes, the amount of the interactive information becomes larger and larger, and the efficiency of the method of using the conventional Intelligent Platform Management Interface (IPMI) in combination with an Inter-Process Communication (IPC) Interface or adding other peripherals and hardware is low, which cannot meet the interactive requirement of the BMC in the whole device. Therefore, how to more efficiently realize the information interaction between the BMC and the OS becomes a technical problem to be solved urgently.
Based on this, the embodiment of the application provides an interaction method, an interaction device, an electronic device and a storage medium, which can realize real-time information interaction between the BMC and the OS of the whole device, and improve the efficiency of information interaction of the whole device.
An interaction method, an interaction apparatus, an electronic device, and a storage medium provided in the embodiments of the present application are specifically described in the following embodiments, and first, an interaction method in the embodiments of the present application is described.
The interaction method provided by the embodiment of the application can be applied to a terminal, a server side and software running in the terminal or the server side. In some embodiments, the terminal may be a smartphone, tablet, laptop, desktop computer, or the like; the server side can be configured as an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, Content Delivery Network (CDN) and a big data and artificial intelligence platform; the software may be an application or the like implementing the interaction method of the present application, but is not limited to the above form.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Referring to fig. 1, fig. 1 is an optional flowchart of an interaction method provided in an embodiment of the present application, where the method is applied to a BMC, and the method in fig. 1 may specifically include, but is not limited to, steps S110 to S130.
Step S110, after the BMC is initialized, performing memory division on a display memory of the BMC to obtain a shared memory, wherein the shared memory is used for data interaction between the BMC and an operating system;
step S120, defining data interface specification information of the shared memory, wherein the data interface specification information is used for specifying a data format stored in the shared memory;
step S130, performing data interaction with the operating system according to the data interface specification information and the shared memory.
In step S110 of some embodiments, to implement data interaction between the BMC and the operating system, first, initializing the BMC, that is, initializing a display chip in the BMX, and after initializing the BMC, performing memory partitioning on a display memory of the BMC to obtain a shared memory, where the shared memory is used for data interaction between the BMC and the operating system. Specifically, the display memory corresponding to the graphics card chip of the BMC is used for display output by the complete device where the BMC is located, and when the graphics card chip of the BMC is initialized, the display memory corresponding to the graphics card chip of the BMC is divided into memories to obtain a shared memory, and the shared memory is used for data interaction between the BMC and the operating system. That is, the operating system and the BMC can perform data read-write operation on the shared memory. According to the method and the device, real-time data interaction is carried out between the shared memory partitioned from the BMC and the whole OS, and the efficiency of data interaction is improved.
It should be noted that the initialization of the BMC may further include, when the BMC is started, reading and parsing a configuration file stored in the device to perform configuration initialization.
It should be noted that, in order to avoid the influence of the partition of the shared memory on the BNC itself, the remaining memory capacity of the display memory corresponding to the BMC is partitioned while meeting the basic memory requirement of the BMC for the entire device, and the size of the partitioned shared memory is not specifically limited, and may be flexibly adjusted according to the actual requirement, which is not described herein again.
It should be noted that the shared memory in the embodiment of the present application may be erasable, that is, after one data interaction is performed, when new data information needs to be written into the shared memory, the previous data information is overwritten and deleted, so as to ensure the efficiency of the data interaction.
It should be noted that, in order to improve the efficiency of data interaction, the shared memory is always kept in an operating state when the complete machine is started, a dedicated memory for performing data interaction is provided for the BMC and the complete machine OS, and data stored in the shared memory is protected, so that real-time data interaction between the BMC and the complete machine OS can be realized.
In step S120 of some embodiments, in order to implement real-time data interaction between the BMC and the OS, and avoid an influence of a format difference of the interactive data on data interaction efficiency, the data interface specification information is defined and used to specify a data format stored in the shared memory. Specifically, the BMC or the OS needs to perform data interaction according to the data interface specification information defined by the shared memory, so as to avoid the influence of format difference of the interactive data on the data interaction efficiency, and improve the data interaction efficiency.
It should be noted that the data interface specification information may be flexibly adjusted as needed, and after the data interface specification information is defined, the data interface specification information is respectively sent to the BMC and the OS.
In step S130 of some embodiments, after the shared memory is divided and the data interface specification information of the shared memory is defined, data interaction is performed with the operating system according to the data interface specification information and the shared memory.
Referring to fig. 2, fig. 2 is a first flowchart illustrating a specific method of step S130 according to some embodiments of the present application. In some embodiments of the present application, step S130 specifically includes, but is not limited to, step S210 and step S220, which are described in detail below with reference to fig. 2.
Step S210, when receiving data interaction request information sent by an operating system, the BMC obtains first data information stored in the shared memory by calling a shared memory reading function;
step S220, performing data analysis on the first data information according to an interface data analysis function corresponding to the data interface specification information, to obtain second data information uploaded by the operating system.
In step S210 of some embodiments, when data interaction request information sent by the operating system is received, that is, first data information indicating that the complete machine OS has already stored data interaction in the shared memory is received, and the first data information satisfies the defined data interface specification. Specifically, when receiving data interaction request information sent by the OS of the whole device, the BMC obtains first data information stored in the shared memory by calling a shared memory read function. It should be noted that the shared memory read function can read data information in the shared memory.
In step S220 of some embodiments, since the first data information meets the defined data interface specification information, in order to enable the BMC to obtain the original data information uploaded by the complete OS, the first data information is subjected to data analysis according to an interface data analysis function corresponding to the data interface specification information, so as to obtain second data information uploaded by the operating system, where the second data information is the original data information uploaded by the complete OS and subjected to data interaction. According to the embodiment of the application, the second data information stored in the shared memory by the complete machine OS can be obtained by calling the shared memory reading function corresponding to the shared memory, and the data interaction between the BMC and the complete machine OS is realized.
It should be noted that after the BMC analyzes the second data information uploaded by the operating system, the second data information may be displayed or processed through a network interface of the BMC, and the displayed second data information is collected and analyzed, so as to implement remote operation or quickly locate a problem area in the whole machine.
Referring to fig. 3, fig. 3 is a second flowchart illustrating a specific method of step S130 according to some embodiments of the present application. In some embodiments of the present application, before step S210 or after step S220, step S130 further includes, but is not limited to, step S310 to step S340, which are described in detail below with reference to fig. 3.
Step S310, acquiring instruction information of the BMC, wherein the instruction information is used for representing target operation needing to be executed by an operating system;
step S320, performing information conversion operation on the instruction information according to the data interface specification information to obtain third data information;
step S330, storing the third data information to the shared memory by calling a shared memory write-in function;
step S340, sending the instruction interaction request information to the operating system, so as to execute the target operation through the operating system.
In step S310 of some embodiments, when the BMC needs to transmit the instruction information to the OS, first, the instruction information of the BMC is obtained, where the instruction information is used to indicate a target operation that needs to be executed by the operating system.
In step S320 and step S330 of some embodiments, to avoid an influence of a format difference of the interactive data on data interaction efficiency, information conversion operation is performed on the instruction information according to the data interface specification information to obtain third data information, where the third data information satisfies a data interface specification stored in the shared memory. And storing the third data information to the shared memory by calling the shared memory write-in function. It should be noted that the shared memory write function may implement storing the data after the information conversion into the shared memory.
In step S340 of some embodiments, after the BMC stores the third data information that needs to perform data interaction to the shared memory, the BMC sends instruction interaction request information to the operating system, so as to execute the target operation through the operating system. According to the embodiment of the application, the instruction information is subjected to information conversion operation, and the shared memory write-in function is called, so that data interaction of transmitting the instruction information of the BMC to the OS of the whole machine is realized.
In a specific embodiment, for example, when the BMC needs to send instruction information for controlling the hard disk of the OS to become unavailable, the instruction information includes a target operation that the OS needs to execute, that is, a target operation for controlling the hard disk to become unavailable. And performing information conversion operation on the instruction information according to the data interface specification information to obtain third data information, and storing the third data information to the shared memory by calling a shared memory write-in function. And sending instruction interaction request information to the OS so as to execute target operation through the OS, namely executing the target operation for controlling the hard disk to become unavailable after the OS obtains the instruction information sent by the BMC through analyzing the third data.
The interaction method provided by the embodiment of the application is applied to the BMC, the display memory of the BMC is subjected to memory division after the BMC is initialized, and a shared memory is obtained and used for data interaction between the BMC and an operating system. In order to realize real-time data interaction between the BMC and the OS of the whole computer and avoid the influence of format difference of interactive data on data interaction efficiency, data interface specification information of a shared memory is defined, and the data interface specification information is used for specifying a data format stored in the shared memory. And performing data interaction with the operating system according to the data interface specification information and the shared memory. The data interaction process of the BMC and the OS comprises the following steps: when receiving data interaction request information sent by an operating system, the BMC obtains first data information stored in the shared memory by calling a shared memory reading function. And performing data analysis on the first data information according to an interface data analysis function corresponding to the data interface specification information to obtain second data information uploaded by the operating system. The data interaction process of the BMC and the OS further comprises the following steps: and acquiring the instruction information of the BMC, wherein the instruction information is used for representing the target operation which needs to be executed by the operating system. And performing information conversion operation on the instruction information according to the data interface specification information to obtain third data information, and storing the third data information to the shared memory by calling a shared memory write-in function. And sending instruction interaction request information to the operating system so as to execute the target operation through the operating system. According to the method and the device, real-time data interaction is carried out between the shared memory partitioned from the BMC and the whole OS, and the efficiency of data interaction is improved.
Referring to fig. 4, fig. 4 is another alternative flowchart of an interaction method provided in an embodiment of the present application, where the method is applied to an operating system OS, and in some embodiments of the present application, the method in fig. 4 may specifically include, but is not limited to, steps S410 to S430, which are described in detail below with reference to fig. 4.
Step S410, acquiring second data information of the operating system through system service equipment, wherein the system service equipment is used for acquiring data information in the operating system in real time;
step S420, acquiring data interface specification information and a shared memory from the BMC;
step S430, performing data read-write operation on the second data information according to the data interface specification information and the shared memory so as to perform data interaction with the BMC; the data interface specification information, the shared memory and the BMC are obtained according to any one of the methods applied to the BMC in the above embodiments.
In step S410 of some embodiments, in order to enable the OS to obtain data information of different devices in the whole machine, second data information of the operating system is obtained through the system service device, and the system service device is configured to obtain the data information in the operating system in real time.
In step S420 of some embodiments, after the memory of the BMC is divided to obtain the shared memory and the data interface specification information of the shared memory is defined, the data interface specification information and the shared memory are obtained from the BMC, where the shared memory is used for data interaction between the BMC and the operating system, and the data interface specification information is used for specifying a data format stored in the shared memory.
In step S430 of some embodiments, to avoid an influence of a format difference of the interactive data on data interaction efficiency, data read-write operation is performed on the second data information according to the data interface specification information and the shared memory, so as to perform data interaction with the BMC.
It should be noted that the data interface specification information, the shared memory, and the BMC have the same functions as those in any of the embodiments described above, and are not described herein again.
Referring to fig. 5, fig. 5 is a flowchart illustrating a specific method of step S430 according to some embodiments of the present application. In some embodiments of the present application, step S430 specifically includes, but is not limited to, step S510 to step S530, which are described in detail below with reference to fig. 5.
Step S510, performing information conversion operation on the second data information according to the data interface specification information to obtain first data information;
step S520, storing the first data information to the shared memory by calling a shared memory write-in function;
step S530, sending data interaction request information to the BMC to perform data interaction with the BMC.
In steps S510 to S530 of some embodiments, when the OS sends the acquired second data information to the BMC, to avoid an influence of a format difference of the interactive data on data interaction efficiency, an information conversion operation is performed on the second data information according to the data interface specification information to obtain first data information, where the first data information satisfies a data interface specification stored in the shared memory. And storing the first data information into the shared memory by calling a shared memory write-in function, and sending data interaction request information to the BMC to perform data interaction with the BMC. When the BMC receives data interaction request information sent by the operating system, the BMC obtains first data information stored in the shared memory by calling a shared memory reading function, and then performs data analysis on the first data information according to an interface data analysis function corresponding to the data interface specification information to obtain second data information uploaded by the OS. According to the method and the device, real-time data interaction is carried out between the shared memory partitioned from the BMC and the whole OS, and the efficiency of data interaction is improved.
Referring to fig. 6, fig. 6 is a flowchart illustrating a specific method of step S410 according to some embodiments of the present disclosure. In some embodiments of the present application, the operating system is connected to a plurality of data devices, and step S410 specifically includes, but is not limited to, step S610 to step S630, which are described in detail below with reference to fig. 6.
Step S610, starting an operating system and system service equipment corresponding to the operating system;
step S620, acquiring original data information of a plurality of data devices at preset heartbeat time through system service equipment;
step S630, performing information integration on the multiple pieces of original data information to obtain second data information.
In steps S610 to S630 of some embodiments, the OS is enabled to acquire data information of different devices in the whole device by starting the operating system and the system service device corresponding to the operating system. The system service equipment acquires the original data information of the multiple data equipment at preset heartbeat time, namely the system service equipment can acquire the original data information of the multiple data equipment at regular time according to the preset heartbeat time to send the original data information to the BMC. Because the system service device can acquire the original data information of a plurality of different data devices, in order to improve the efficiency of data interaction between the BMC and the OS, information integration is performed on the plurality of original data information to obtain second data information, and data read-write operation is performed on the second data information according to the data interface specification information and the shared memory to realize data interaction between the OS and the BMC.
The interaction method provided by the embodiment of the application is applied to an OS (operating system), and an operating system and system service equipment corresponding to the operating system are started, wherein the system service equipment is used for acquiring data information in the operating system in real time. The method comprises the steps of obtaining original data information of a plurality of data devices at preset heartbeat time through system service equipment, and carrying out information integration on the original data information to obtain second data information. And acquiring the data interface specification information and the shared memory from the BMC, and performing information conversion operation on the second data information according to the data interface specification information to obtain first data information. And storing the first data information into the shared memory by calling a shared memory write-in function, and sending data interaction request information to the BMC to perform data interaction with the BMC. According to the method and the device, real-time data interaction is carried out between the shared memory partitioned from the BMC and the whole OS, and the efficiency of data interaction is improved.
Referring to fig. 7, an interactive apparatus for implementing the interaction method applied to the BMC according to the embodiment of the present application includes a memory partitioning module 710, a data interface defining module 720, and a data interaction module 730.
The memory partitioning module 710 is configured to perform memory partitioning on the display memory of the BMC after the BMC is initialized, so as to obtain a shared memory, where the shared memory is used for data interaction between the BMC and an operating system;
a data interface definition module 720, configured to define data interface specification information of the shared memory, where the data interface specification information is used to specify a data format stored in the shared memory;
and the data interaction module 730 is configured to perform data interaction with the operating system according to the data interface specification information and the shared memory.
It should be noted that, the interaction device applied to the BMC in the embodiment of the present application is used to implement the interaction method applied to the BMC, and the interaction device in the embodiment of the present application corresponds to the interaction method, and a specific processing procedure refers to the interaction method, which is not described herein again.
Referring to fig. 8, an interaction apparatus that can implement the interaction method applied to the operating system according to the embodiment of the present application is further provided, where the apparatus includes a first information obtaining module 810, a second information obtaining module 820, and a data reading and writing module 830.
The first information obtaining module 810 is configured to obtain second data information of the operating system through a system service device, where the system service device is configured to obtain data information in the operating system in real time;
a second information obtaining module 820, configured to obtain the data interface specification information and the shared memory from the BMC;
the data reading and writing module 830 is configured to perform data reading and writing operation on the second data information according to the data interface specification information and the shared memory, so as to perform data interaction with the BMC;
the data interface specification information, the shared memory and the BMC are obtained according to any one of the methods applied to the BMC in the above embodiments.
It should be noted that, the interaction device applied to the operating system in the embodiment of the present application is used to implement the interaction method applied to the operating system, the interaction device in the embodiment of the present application corresponds to the interaction method, and for a specific processing procedure, the interaction method is referred to, and details are not described here.
An embodiment of the present application further provides an electronic device, including: at least one memory, at least one processor, at least one computer program, the at least one computer program being stored in the at least one memory, the at least one processor executing the at least one computer program to implement the interaction method of any of the above embodiments. The electronic equipment can be any intelligent terminal including a tablet computer, a vehicle-mounted computer and the like.
Referring to fig. 9, fig. 9 illustrates a hardware structure of an electronic device according to another embodiment, where the electronic device includes:
the processor 910 may be implemented by a general Central Processing Unit (CPU), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute a relevant program to implement the technical solution provided in the embodiment of the present application;
the memory 920 may be implemented in a form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a Random Access Memory (RAM). The memory 920 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 920 and called by the processor 910 to execute the interaction method of the embodiments of the present disclosure;
an input/output interface 930 for implementing information input and output;
a communication interface 940, configured to implement communication interaction between the device and another device, where communication may be implemented in a wired manner (e.g., USB, network cable, etc.) or in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.);
a bus 950 that transfers information between various components of the device (e.g., the processor 910, the memory 920, the input/output interface 930, and the communication interface 940);
wherein the processor 910, the memory 920, the input/output interface 930, and the communication interface 940 are communicatively coupled to each other within the device via a bus 950.
The embodiment of the present application further provides a storage medium, which is a computer-readable storage medium, where a computer program is stored, and the computer program is used to enable a computer to execute the interaction method in any one of the above embodiments.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation to the technical solutions provided in the embodiments of the present application, and it is obvious to those skilled in the art that the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems with the evolution of technology and the emergence of new application scenarios.
It will be appreciated by those skilled in the art that the solutions shown in fig. 1 to 6 do not constitute a limitation of the embodiments of the present application, and may comprise more or less steps than those shown, or some steps may be combined, or different steps.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, and functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in this application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and the scope of the claims of the embodiments of the present application is not limited thereby. Any modifications, equivalents and improvements that may occur to those skilled in the art without departing from the scope and spirit of the embodiments of the present application are intended to be within the scope of the claims of the embodiments of the present application.

Claims (10)

1. An interaction method is applied to a Baseboard Management Controller (BMC), and comprises the following steps:
after the BMC is initialized, performing memory division on a display memory of the BMC to obtain a shared memory, wherein the shared memory is used for data interaction between the BMC and an operating system;
defining data interface specification information of the shared memory, wherein the data interface specification information is used for specifying a data format stored in the shared memory;
and performing data interaction with the operating system according to the data interface specification information and the shared memory.
2. The method according to claim 1, wherein said performing data interaction with the operating system according to the data interface specification information and the shared memory comprises:
when data interaction request information sent by the operating system is received, the BMC obtains first data information stored in the shared memory by calling a shared memory reading function;
and performing data analysis on the first data information according to an interface data analysis function corresponding to the data interface specification information to obtain second data information uploaded by the operating system.
3. The method according to claim 1 or 2, wherein the performing data interaction with the operating system according to the data interface specification information and the shared memory further comprises:
acquiring instruction information of the BMC, wherein the instruction information is used for representing target operation needing to be executed by the operating system;
performing information conversion operation on the instruction information according to the data interface specification information to obtain third data information;
storing the third data information to a shared memory by calling a shared memory write-in function;
and sending instruction interaction request information to the operating system so as to execute the target operation through the operating system.
4. An interaction method applied to an operating system, the method comprising:
acquiring second data information of the operating system through system service equipment, wherein the system service equipment is used for acquiring data information in the operating system in real time;
acquiring data interface specification information and a shared memory from the BMC;
performing data read-write operation on the second data information according to the data interface specification information and the shared memory so as to perform data interaction with the BMC;
wherein the data interface specification information, the shared memory and the BMC are obtained according to the method of any of claims 1 to 3.
5. The method of claim 4, wherein performing data read/write operations on the second data information according to the data interface specification information and the shared memory to perform data interaction with the BMC comprises:
performing information conversion operation on the second data information according to the data interface specification information to obtain first data information;
storing the first data information to a shared memory by calling a shared memory write-in function;
and sending data interaction request information to the BMC to perform data interaction with the BMC.
6. The method according to claim 4 or 5, wherein the operating system is connected to a plurality of data devices, and the obtaining of the second data information of the operating system by the system service device comprises:
starting the operating system and system service equipment corresponding to the operating system;
acquiring original data information of the plurality of data devices at preset heartbeat time through the system service device;
and integrating information of the plurality of original data information to obtain second data information.
7. An interactive apparatus, applied to BMC, the apparatus comprising:
the memory partitioning module is used for partitioning a display memory of the BMC after the BMC is initialized to obtain a shared memory, and the shared memory is used for data interaction between the BMC and an operating system;
a data interface definition module, configured to define data interface specification information of the shared memory, where the data interface specification information is used to specify a data format stored in the shared memory;
and the data interaction module is used for carrying out data interaction with the operating system according to the data interface specification information and the shared memory.
8. An interactive device, applied to an operating system, the device comprising:
the first information acquisition module is used for acquiring second data information of the operating system through system service equipment, and the system service equipment is used for acquiring the data information in the operating system in real time;
the second information acquisition module is used for acquiring the data interface specification information and the shared memory from the BMC;
the data reading and writing module is used for performing data reading and writing operation on the second data information according to the data interface specification information and the shared memory so as to perform data interaction with the BMC;
wherein the data interface specification information, the shared memory and the BMC are obtained according to the method of any of claims 1 to 3.
9. An electronic device, comprising:
at least one memory;
at least one processor;
at least one computer program;
the at least one computer program is stored in the at least one memory and executed by the at least one processor to implement:
the method of any one of claims 1 to 3; or
The method of any one of claims 4 to 6.
10. A storage medium that is a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for causing a computer to execute:
the method of any one of claims 1 to 3; or
The method of any one of claims 4 to 6.
CN202210568095.1A 2022-05-24 2022-05-24 Interaction method, interaction device, electronic equipment and storage medium Pending CN115061828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210568095.1A CN115061828A (en) 2022-05-24 2022-05-24 Interaction method, interaction device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210568095.1A CN115061828A (en) 2022-05-24 2022-05-24 Interaction method, interaction device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115061828A true CN115061828A (en) 2022-09-16

Family

ID=83198822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210568095.1A Pending CN115061828A (en) 2022-05-24 2022-05-24 Interaction method, interaction device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115061828A (en)

Similar Documents

Publication Publication Date Title
US10547682B2 (en) Dynamically scaling application components using microservices
US20160154665A1 (en) Virtual machine deployment method, virtual machine deployment program, and virtual machine deployment system
CN102043645B (en) Plug-in loading method and device
CN103645957A (en) Resource management and control method for virtual machines, and resource management and control device for virtual machines
US20170109415A1 (en) Platform and software framework for data intensive applications in the cloud
CN112527848B (en) Report data query method, device and system based on multiple data sources and storage medium
CN109218393B (en) Push implementation method, device, equipment and computer storage medium
CN111125057A (en) Service request processing method and device and computer system
CN111679911A (en) Management method, device, equipment and medium for GPU (graphics processing Unit) card in cloud environment
CN114116092A (en) Cloud desktop system processing method, cloud desktop system control method and related equipment
US9971611B2 (en) Monitoring a mobile device application
CN111654539B (en) Cloud-protogenesis-based Internet of things operating system construction method and system and electronic equipment
CN110717992B (en) Method, apparatus, computer system and readable storage medium for scheduling model
CN116257320B (en) DPU-based virtualization configuration management method, device, equipment and medium
CN111767433A (en) Data processing method, device, storage medium and terminal
CN111339047A (en) Data interaction method, device and system
CN111241048A (en) Web terminal log management method, device, medium and electronic equipment
CN111092774A (en) Configuration method and equipment of acquisition gateway
CN115061828A (en) Interaction method, interaction device, electronic equipment and storage medium
CN115033542A (en) File transmission method, file transmission device, electronic equipment and storage medium
CN114064429A (en) Audit log acquisition method and device, storage medium and server
CN114218000A (en) Log management method and device, electronic equipment and computer readable storage medium
CN114116866A (en) Data acquisition method and device, terminal equipment and storage medium
CN113656378A (en) Server management method, device and medium
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment

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