[go: up one dir, main page]

CN117348919A - Information configuration method, information configuration device, computer equipment and storage medium - Google Patents

Information configuration method, information configuration device, computer equipment and storage medium Download PDF

Info

Publication number
CN117348919A
CN117348919A CN202311160155.7A CN202311160155A CN117348919A CN 117348919 A CN117348919 A CN 117348919A CN 202311160155 A CN202311160155 A CN 202311160155A CN 117348919 A CN117348919 A CN 117348919A
Authority
CN
China
Prior art keywords
sensor
file
information
customized
configuration
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
CN202311160155.7A
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.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry 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 Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202311160155.7A priority Critical patent/CN117348919A/en
Publication of CN117348919A publication Critical patent/CN117348919A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to an information configuration method, an information configuration device, computer equipment and a storage medium. In the information configuration method, the customizable sensor subfiles contain modifiable sensor information, so that the sensor information of the baseboard management controller is modified according to the user demands by setting the customizable sensor subfiles, and the configuration efficiency of the sensor information is greatly improved when the modified sensor information is utilized for configuration.

Description

Information configuration method, information configuration device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to an information configuration method, an information configuration device, a computer device, and a storage medium.
Background
One of the main functions of the baseboard management controller (Baseboard Management Controller, abbreviated as BMC) is to obtain server sensor data information (Sensor Data Record, SDR) through various interfaces, for example, the SDR information includes information such as the type of the sensor, the name of the sensor, the number of the sensor, an alarm threshold, whether event triggering is allowed, and the like. And configuring the in-place sensors on the main board according to the SDR information configuration so as to enable the functions of the sensors on the main board.
At present, in the main board program development stage, engineers write and generate different SDR information according to different customer requirements, then embed the different SDR information into the image files of the BMC, or respectively embed the different SDR information into the image files of the different BMCs, and then configure the sensors on the main board according to the embedded image files of the BMC.
However, the above configuration method of SDR information has a problem of low efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an information configuration method, apparatus, computer device, and storage medium that can improve the configuration efficiency of SDR information.
In a first aspect, the present application provides an information configuration method, including:
under the condition that the sensor data image file is determined to comprise the sensor file, displaying a configuration interface on a management interface of the baseboard management controller; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
when receiving modification information input by a user on a configuration interface, updating the customized sensor subfiles according to the modification information;
and configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
According to the information configuration method provided by the embodiment of the application, under the condition that the sensor data image file comprises the sensor file, the configuration interface is displayed on the management interface of the baseboard management controller, then when modification information input by a user on the configuration interface is received, the customized sensor subfile is updated according to the modification information, and the sensor on the main board is configured according to the updated customized sensor subfile and the fixed sensor subfile. Wherein the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file. In the information configuration method, the customizable sensor subfiles are arranged to realize the modification of the sensor information of the substrate management controller according to the user demands, compared with the traditional modification of the sensor information, the method requires research personnel to recompile or brush the burnt file, and the information configuration method can realize the modification of the sensor information only by inputting information into a configuration interface by a user without recompiling a bottom code, so that the configuration efficiency of the sensor information is greatly improved when the modified sensor information is utilized for configuration.
In one embodiment, updating the customized sensor subfile based on the modification information includes:
determining an identification of the first target sensor according to the modification information; the first target sensor is a sensor corresponding to the modification information;
searching first target sensor information corresponding to the identification of the first target sensor in the customized sensor subfile;
the first target sensor information is updated according to the modification information.
According to the information configuration method provided by the embodiment of the invention, the corresponding sensor information in the customized sensor subfiles is updated according to the modification information of the user, so that the user can modify the sensor information according to different requirements, and greater flexibility is provided for the sensor information configuration.
In one embodiment, the method further comprises:
and when the modification information input by the user on the configuration interface is not received, configuring the sensor on the main board according to the sensor file.
According to the information configuration method provided by the embodiment of the application, the computer equipment can configure the sensor on the main board according to the default sensor configuration information in the sensor file, so that the method for automatically configuring the sensor through the default sensor configuration information is realized under the condition of no user intervention.
In one embodiment, the method further comprises:
under the condition that the sensor data mirror image file does not comprise the sensor file, uploading a preset sensor file to the sensor data mirror image file, and configuring a sensor on a main board according to the preset sensor file; the preset sensor file includes a preset fixed sensor subfile and a preset customized sensor subfile.
In one embodiment, the method further comprises:
a preset sensor file is created and stored.
The information configuration method provided by the embodiment of the application can upload the predefined preset sensor file into the sensor data mirror image file when the baseboard management controller is started for the first time, so that the sensor data mirror image file can be directly read to realize the configuration of the sensor when the baseboard management controller is started in the later period, and the method for automatically configuring the file is realized.
In one embodiment, the method further comprises:
generating a configuration interface according to the customized sensor subfiles; the configuration interface comprises identifiers of all sensors in the customized sensor subfiles, attribute parameters corresponding to the sensors and operation areas corresponding to the attribute parameters.
According to the information configuration method provided by the embodiment of the application, the configuration interface is generated according to the customized sensor subfiles, a visual configuration mode is provided, and a user can modify the sensor information according to requirements, so that the configuration process is simplified, and the configuration process is more visual and convenient.
In one embodiment, the method further comprises:
when receiving indication information input by a user on a configuration interface, searching corresponding second target sensor information in the customized sensor subfile according to the identification of the second target sensor in the indication information;
displaying a modification interface on the configuration interface; the modification interface comprises an identification of the second target sensor, attribute parameters corresponding to the second target sensor and an operation area corresponding to the attribute parameters of the second target sensor;
correspondingly, when receiving modification information input by a user on the configuration interface, updating the customized sensor subfile according to the modification information, including:
and when receiving the modification information input by the user on the modification interface, updating the customized sensor subfiles according to the modification information.
The information configuration method provided by the embodiment of the application realizes a visual configuration mode, and a user can modify the sensor information on the configuration interface according to the requirement, so that the configuration process is simplified, and the configuration process is more visual and convenient.
In a second aspect, the present application further provides an information configuration apparatus, including:
the first display module is used for displaying a configuration interface on a management interface of the substrate management controller under the condition that the sensor data image file is determined to comprise the sensor file; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
the updating module is used for updating the customized sensor subfiles according to the modification information when the modification information input by the user on the configuration interface is received;
the first configuration module is used for configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
under the condition that the sensor data image file is determined to comprise the sensor file, displaying a configuration interface on a management interface of the baseboard management controller; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
When receiving modification information input by a user on a configuration interface, updating the customized sensor subfiles according to the modification information;
and configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
under the condition that the sensor data image file is determined to comprise the sensor file, displaying a configuration interface on a management interface of the baseboard management controller; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
when receiving modification information input by a user on a configuration interface, updating the customized sensor subfiles according to the modification information;
and configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
In a fifth aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
Under the condition that the sensor data image file is determined to comprise the sensor file, displaying a configuration interface on a management interface of the baseboard management controller; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
when receiving modification information input by a user on a configuration interface, updating the customized sensor subfiles according to the modification information;
and configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
The information configuration method, the device, the computer equipment and the storage medium are characterized in that under the condition that the sensor data image file is determined to comprise the sensor file, the configuration interface is displayed on the management interface of the baseboard management controller, then when modification information input by a user on the configuration interface is received, the customized sensor subfile is updated according to the modification information, and the sensor on the main board is configured according to the updated customized sensor subfile and the fixed sensor subfile. Wherein the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file. In the information configuration method, the customizable sensor subfiles are arranged to realize the modification of the sensor information of the substrate management controller according to the user demands, compared with the traditional modification of the sensor information, the method requires research personnel to recompile or brush the burnt file, and the information configuration method can realize the modification of the sensor information only by inputting information into a configuration interface by a user without recompiling a bottom code, so that the configuration efficiency of the sensor information is greatly improved when the modified sensor information is utilized for configuration.
Drawings
FIG. 1 is an internal block diagram of a computer device in one embodiment;
FIG. 2 is a flow diagram of a method of information configuration in one embodiment;
FIG. 3 is a flow chart of a method for configuring information according to another embodiment;
FIG. 4 is a flow chart of a method for configuring information according to another embodiment;
FIG. 5 is a flow chart of a method for configuring information according to another embodiment;
FIG. 6 is a flow chart of a method of information configuration in another embodiment;
FIG. 7 is a schematic diagram of a configuration interface in another embodiment;
FIG. 8 is a flow chart of a method of information configuration in another embodiment;
FIG. 9 is a schematic diagram of a modified interface in another embodiment;
FIG. 10 is a flow chart of a method of information configuration in another embodiment;
FIG. 11 is a block diagram showing the structure of an information configuration apparatus in one embodiment;
FIG. 12 is a block diagram showing an information configuration apparatus according to another embodiment;
FIG. 13 is a block diagram showing an information configuration apparatus according to another embodiment;
FIG. 14 is a block diagram showing an information configuration apparatus according to another embodiment;
FIG. 15 is a block diagram showing the configuration of an information configuration apparatus according to another embodiment;
FIG. 16 is a block diagram showing an information configuration apparatus according to another embodiment;
Fig. 17 is a block diagram showing the structure of an information configuration apparatus according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
One of the main functions of the baseboard management controller (Baseboard Management Controller, abbreviated as BMC) is to obtain server sensor data information (Sensor Data Record, SDR) through various interfaces, for example, the SDR information includes information such as the type of the sensor, the name of the sensor, the number of the sensor, an alarm threshold, whether event triggering is allowed, and the like. And configuring the in-place sensors on the main board according to the SDR information configuration so as to enable the functions of the sensors on the main board. At present, in the main board program development stage, engineers write and generate different SDR information according to different customer requirements, then embed the different SDR information into the image files of the BMC, or respectively embed the different SDR information into the image files of the different BMCs, and then configure the sensors on the main board according to the embedded image files of the BMC. If the client exceeds a certain limit, each time one client is added, the code needs to be modified to regenerate the image file of the BMC, so that the adaptation method of the SDR information has the problem of low efficiency. The present application provides an information configuration method, which aims to solve the above technical problems, and the following embodiments specifically describe the information configuration method described in the present application.
The information configuration method provided by the embodiment of the application can be applied to the computer equipment shown in fig. 1. The computer device may be a server, may be a terminal, and may have an internal structure as shown in fig. 1. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an information configuration method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, as shown in fig. 2, an information configuration method is provided, and the method is applied to the computer device in fig. 1 for illustration, and includes the following steps:
s101, when the fact that the sensor data image file comprises the sensor file is determined, a configuration interface is displayed on a management interface of the baseboard management controller.
The sensor data Image file is used for storing SDR information, and optionally, the sensor data Image file may be a file with a suffix name Image. The sensor file comprises a fixed sensor sub-file and a customized sensor sub-file, the fixed sensor sub-file comprises SDR information of basic functions and general settings of some sensors, namely the SDR information which is not modified or can not be modified in general, such as the measuring range, the precision, the sampling frequency and the like of the sensors, and the fixed sensor sub-file can be a file with a suffix name json. The customized sensor subfile contains some SDR information that can be modified according to the user's needs, for example, parameters such as the name, number, type, alarm threshold, event trigger permission, etc., and the customized sensor subfile can be a file with a suffix name json. The management interface of the baseboard management controller is an interface for the user to interact with the baseboard management controller. The configuration interface is used for providing an interactive interface for modifying SDR information for users.
In this embodiment, when the computer device is started, the sensor on the board needs to be configured, in this case, the sensor data image file may be acquired from the database or the storage space of the baseboard management controller, and because the sensor data image file may or may not include the sensor file, it is further required to determine whether the sensor data image file includes the sensor file, if so, it is indicated that the baseboard management controller on the motherboard is not started for the first time, or the sensor on the motherboard is configured before, so in this scenario, the computer device may display the management interface of the baseboard management controller on the display screen, and further display or pop up the configuration interface on the management interface. Optionally, all contents of the sensor file may be displayed on the configuration interface, so that a user may look up SDR information of all sensors to be configured through the configuration interface, and may modify the SDR information; alternatively, all the contents of the customized sensor subfiles in the sensor file may be displayed on the configuration interface so that the user may view and modify the SDR information of the sensor to be modified through the configuration interface.
S102, when modification information input by a user on a configuration interface is received, updating the customized sensor subfiles according to the modification information.
The modification information may include parameters such as the name, number, type, alarm threshold, event trigger permission, etc. of the sensor.
In the embodiment of the application, after the configuration interface is presented, the user may implement input of modification information by performing operations such as editing text in an input box, clicking on a menu selection, and the like on the configuration interface, for example, inputting the name and type of the sensor 1 in the input box. When the user inputs the modification information on the configuration interface, the computer device can receive the modification information and immediately execute the steps of: replacing the information of the corresponding sensor in the customized sensor subfile with the modified information, or adding the modified information into SDR information of the corresponding sensor in the customized sensor subfile; specifically, the computer device may determine the sensor to be modified according to the modification information, then find SDR information corresponding to the sensor to be modified from the customized sensor subfile, and finally update the SDR information corresponding to the sensor to be modified based on the content of the modification information, thereby completing updating the customized sensor subfile.
S103, configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
In the embodiment of the application, the updated customized sensor subfile and the fixed sensor subfile can be combined into a new sensor file, then an on-site sensor and an off-site sensor on a main board are determined by utilizing an autonomous recognition mechanism of the sensor, SDR information of the on-site sensor is extracted from the new sensor file to generate the on-site sensor file, or SDR information of the off-site sensor is dynamically deleted from the new sensor file to generate the on-site sensor file; and finally loading an on-site sensor file to realize the configuration of the on-site sensor on the main board.
According to the information configuration method provided by the embodiment of the application, under the condition that the sensor data image file comprises the sensor file, the configuration interface is displayed on the management interface of the baseboard management controller, then when modification information input by a user on the configuration interface is received, the customized sensor subfile is updated according to the modification information, and the sensor on the main board is configured according to the updated customized sensor subfile and the fixed sensor subfile. Wherein the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file. In the information configuration method, the customizable sensor subfiles are arranged to realize the modification of the sensor information of the substrate management controller according to the user demands, compared with the traditional modification of the sensor information, the method requires research personnel to recompile or brush the burnt file, and the information configuration method can realize the modification of the sensor information only by inputting information into a configuration interface by a user without recompiling a bottom code, so that the configuration efficiency of the sensor information is greatly improved when the modified sensor information is utilized for configuration.
In one embodiment, there is further provided a specific implementation manner of updating the customized sensor subfiles, as shown in fig. 3, where "updating the customized sensor subfiles according to the modification information" in step S102 includes:
s201, determining the identification of the first target sensor according to the modification information.
The first target sensor is identified by the identification of the first target sensor, and the identification of the first target sensor is formed by one or combination of numbers, characters, letters, english and symbols. For example, temperature sensor 001f, temperature sensor 002f, temperature sensor 003f.
In the embodiment of the application, when the computer equipment receives the modification information input by the user on the configuration interface, the modification information is one or more types of SDR information corresponding to the sensor, and when the user inputs the modification information on the configuration interface, the modification is performed on a certain sensor needing to be modified, so that the computer equipment can determine the sensor to be modified, namely the first target sensor, while receiving the modification information. Moreover, the identity of the sensor is predefined and stored by the computer device, so that when the first target sensor is determined, the identity of the first target sensor can be determined from the stored data.
S202, first target sensor information corresponding to the identification of the first target sensor is searched in the customized sensor subfile.
In this embodiment of the present invention, the computer device may pre-establish an index relationship between the sensor identifier and the sensor information, and after determining the identifier of the first target sensor, traverse, in the customized sensor subfile, the identifier of each sensor in the customized sensor subfile one by one according to the index relationship, so as to find the identifier of the sensor consistent with the identifier of the first target sensor, and extract the sensor information corresponding to the identifier of the sensor as the first target sensor information for subsequent update.
S203, updating the first target sensor information according to the modification information.
Embodiments of the present application relate to a specific manner of updating a first target sensor, and may specifically include: replacing the corresponding information in the first target sensor information with the modification information, for example, if the modification information is the name of the sensor modified by the user, correspondingly replacing the name in the modification information with the name in the first target sensor information; alternatively, the modification information may also be added to the first target sensor information, for example, if the modification information is the number of the sensor added by the user, the number in the modification information is correspondingly added to the first target sensor information.
According to the information configuration method provided by the embodiment of the invention, the corresponding sensor information in the customized sensor subfiles is updated according to the modification information of the user, so that the user can modify the sensor information according to different requirements, and greater flexibility is provided for the sensor information configuration.
In one embodiment, another information configuration method is provided, as shown in fig. 4, where the method in the embodiment of fig. 2 further includes: s104, when the modification information input by the user on the configuration interface is not received, configuring the sensor on the main board according to the sensor file.
The embodiment of the application relates to a scene without receiving modification information, in which a user is not required to modify a sensor file stored in a baseboard management controller, so that when a computer device configures a sensor of a main board, the computer device can directly read the sensor information in the sensor file stored in the baseboard management controller, then determine an in-place sensor and an out-of-place sensor on the main board by utilizing an autonomous recognition mechanism of the sensor, extract SDR information of the in-place sensor from the sensor file to generate the in-place sensor file, or dynamically prune the SDR information of the out-of-place sensor from the sensor file to generate the in-place sensor file; and finally loading an on-site sensor file to realize the configuration of the on-site sensor on the main board.
According to the information configuration method provided by the embodiment of the application, the computer equipment can configure the sensor on the main board according to the default sensor configuration information in the sensor file, so that the method for automatically configuring the sensor through the default sensor configuration information is realized under the condition of no user intervention.
In one embodiment, another information configuration method is provided, as shown in fig. 5, where the method described in the embodiment of fig. 2 further includes:
s105, determining whether the sensor data image file contains a sensor file.
And S106, uploading a preset sensor file to the sensor data mirror image file under the condition that the sensor data mirror image file is determined to not comprise the sensor file, and configuring the sensor on the main board according to the preset sensor file.
The preset sensor file is a default sensor file created in advance, and comprises a preset fixed sensor sub-file and a preset customized sensor sub-file. The preset fixed sensor subfile contains SDR information of basic functions and general settings of some sensors, namely SDR information which is not modified or can not be modified in general, for example, the measuring range, the precision, the sampling frequency and the like of the sensors, and the preset fixed sensor subfile can be a file with a suffix name json. The preset customized sensor subfile contains some SDR information which can be modified according to the user requirement, for example, parameters such as the name, number, type, alarm threshold value, event triggering permission or not, and the preset customized sensor subfile can be a file with a suffix name json.
The embodiment of the application relates to a scene that a sensor data mirror image file does not comprise a sensor file, in the scene, a baseboard management controller on a main board is firstly started, so that the sensor data mirror image file is an empty file, in the scene, a computer device can firstly acquire a preset sensor file from a database or a storage space of the baseboard management controller and upload the preset sensor file into the sensor data mirror image file, the preset sensor file is contained in the sensor data mirror image file, and when the baseboard management controller is started later, the computer device can directly read the sensor data mirror image file for configuration without uploading the preset sensor file again. After uploading the preset sensor file, the computer equipment can configure the sensors on the main board according to the preset sensor file, and in the specific configuration, the in-place sensors and the out-of-place sensors on the main board are determined by utilizing an autonomous recognition mechanism of the sensors, SDR information of the in-place sensors is extracted from the preset sensor file to generate the in-place sensor file, or SDR information of the out-of-place sensors is dynamically deleted from the preset sensor file to generate the in-place sensor file; and finally loading an on-site sensor file to realize the configuration of the on-site sensor on the main board.
It should be noted that, the above-mentioned preset configuration file may be created in advance by the computer device and stored in the storage space of the database or the baseboard management controller, specifically, the computer device may obtain information of as many sensors as possible in advance, then create a preset fixed sensor sub-file and a preset customized sensor sub-file according to a predetermined format by using a text editor or a configuration tool, for example, create a sensor_fix_json file, a sensor_precursor_json file, and a sensor_total_json file, where the sensor_total_json file represents the preset fixed sensor sub-file, the sensor_precursor_json file represents the preset customized sensor sub-file, and the sensor_total_json file represents the preset sensor sub-file, and the preset fixed sensor sub-file and the preset customized sensor sub-file constitute the preset sensor file.
The information configuration method provided by the embodiment of the application can upload the predefined preset sensor file into the sensor data mirror image file when the baseboard management controller is started for the first time, so that the sensor data mirror image file can be directly read to realize the configuration of the sensor when the baseboard management controller is started in the later period, and the method for automatically configuring the file is realized.
In one embodiment, there is further provided a method for generating a configuration interface, as shown in fig. 6, where the method described in the embodiment of fig. 2 further includes:
s107, generating a configuration interface according to the customized sensor subfiles.
The configuration interface comprises identifiers of all sensors in the customized sensor subfiles, attribute parameters corresponding to the sensors and operation areas corresponding to the attribute parameters.
The operation area may be a text editing area, a selection input area, or other types of operation areas. The operating area is used to provide a tool for the user to modify the sensor information. For example, referring to the configuration interface shown in fig. 7, where b represents the identifier of the sensor, s represents the attribute parameter corresponding to the sensor, c represents the operation area corresponding to the attribute parameter, and on the configuration interface, if the user needs to modify the name of the identifier of the sensor 0001#, modification information (high temperature sensor) may be input in the area corresponding to the name c, so as to modify the name "temperature sensor" of the sensor into "high temperature sensor". Fig. 7 is merely an exemplary illustration, and the display manner of the content on the configuration interface is not limited.
In this embodiment of the present application, when executing step S101 described in the embodiment of fig. 2, the computer device needs to execute the steps of: and generating a configuration interface according to the customized sensor subfiles. Specifically, the computer device may first obtain an interface template, may first obtain a customized sensor sub-file from a database or a storage space of the baseboard management controller, extract identifiers of all sensors and attribute parameters corresponding to each sensor from the customized sensor sub-file, then add the information to the interface template, and set a plurality of operation areas on the interface template, specifically, may set a corresponding operation area in a vicinity of the attribute parameters of each sensor, so that a user may modify the corresponding attribute parameters through the operation area, and finally may generate a configuration interface based on the added information and the set interface template, so that the computer device may implement configuration of the sensor through the configuration interface when determining that the sensor data image file includes the sensor file.
The method for generating the configuration interface realizes a visual configuration mode, and a user can modify sensor information on the configuration interface according to requirements, so that the configuration process is simplified, and the configuration process is more visual and convenient.
In one embodiment, there is further provided another method for modifying sensor information, as shown in fig. 8, where the method described in the embodiment of fig. 2 further includes:
s108, when the indication information input by the user on the configuration interface is received, searching corresponding second target sensor information in the customized sensor subfile according to the identification of the second target sensor in the indication information.
The indication information is used for indicating the sensor needing to be modified in the customized sensor subfile, and the indication information can comprise the identification of the sensor. The second target sensor is a sensor that the user needs to modify.
In this embodiment of the present application, after the computer device displays the configuration interface, the user may input the indication information in the configuration interface, and the computer device may extract, from the indication information, the identifier of the sensor that the user needs to modify, that is, the identifier of the second target sensor. Traversing the identification of each sensor in the customized sensor subfile one by one according to the index relation between the pre-established sensor identification and the sensor information so as to find the identification of the sensor consistent with the identification of the second target sensor, and extracting the sensor information corresponding to the identification of the sensor to serve as the second target sensor information for subsequent updating.
S109, displaying a modification interface on the configuration interface;
the modification interface comprises an identification of the second target sensor, an attribute parameter corresponding to the second target sensor and an operation area corresponding to the attribute parameter of the second target sensor.
The operation area may be a text editing area, a selection input area, or other types of operation areas. The operating area is used to provide a tool for the user to modify the sensor information. For example, referring to the modification interface shown in fig. 9, where b represents the identifier of the sensor, s represents the attribute parameter corresponding to the sensor, c represents the operation area corresponding to the attribute parameter, on the modification interface, if the user needs to modify the attribute parameter corresponding to the second target sensor, the identifier of the second target sensor may be configured to be input in the text box corresponding to the interface indication information, for example, the identifier of the second target sensor (for example, the sensor 0001#) is input in the text box corresponding to the indication information in fig. 9, then the modification interface corresponding to the second target sensor is popped up on the configuration interface, and the modification interface includes the sensor information of the second target sensor, and the user may input modification information (high temperature sensor) in the c area corresponding to the second target sensor on the modification interface, so as to modify the name "temperature sensor" of the original sensor into "high temperature sensor". It should be noted that fig. 9 is only an exemplary illustration, and the display manner of the content on the modification interface is not limited.
In this embodiment of the present application, when executing step S101 described in the embodiment of fig. 2, the computer device needs to execute the steps of: and displaying a modification interface on the configuration interface. Specifically, the computer device may first obtain an interface template, may first obtain a customized sensor sub-file from a database or a storage space of the baseboard management controller, extract identifiers of all sensors and attribute parameters corresponding to each sensor from the customized sensor sub-file, then add the information to the interface template, and set a plurality of operation areas on the interface template, specifically, may set a corresponding operation area in a vicinity of the attribute parameters of each sensor, so that a user may modify the corresponding attribute parameters through the operation area, and finally may generate a modification interface based on the added information and the set interface template, so that the computer device may implement configuration of the sensor through the modification interface when determining that the sensor data image file includes the sensor file.
Correspondingly, when step S102 "when receiving the modification information input by the user on the configuration interface, updating the customized sensor subfile according to the modification information", the specific steps are performed: and when receiving the modification information input by the user on the modification interface, updating the customized sensor subfiles according to the modification information.
In this embodiment of the present application, when receiving modification information input by a user on a modification interface, the computer device may replace corresponding information in the second target sensor information with the modification information, or add the modification information to SDR information of a corresponding sensor in the customized sensor subfile, for example, if the modification information is a name of the sensor modified by the user, correspondingly replacing a name in the modification information with a name in the second target sensor information; alternatively, the modification information may also be added to the second target sensor information, for example, if the modification information is the number of the sensor added by the user, the number in the modification information is correspondingly added to the second target sensor information.
According to the information configuration method provided by the embodiment of the application, the modification interface is displayed on the configuration interface, and another man-machine interaction mode is provided, so that the sensor information can be modified by a user, the sensor information can be modified according to requirements, and the configuration process is simplified.
In summary, all the above embodiments also provide an information configuration method, as shown in fig. 10, including:
s301, creating and storing a preset sensor file.
S302, when the baseboard management controller is started, determining whether the sensor data image file contains the sensor file, if so, executing step S303, and if not, executing step S316.
S303, generating a configuration interface according to the customized sensor subfiles. The configuration interface comprises identifiers of all sensors in the customized sensor subfiles, attribute parameters corresponding to the sensors and operation areas corresponding to the attribute parameters.
S304, displaying a configuration interface on a management interface of the baseboard management controller. The sensor file includes a fixed sensor sub-file and a customized sensor sub-file.
S305, determining whether modification information input by a user on the configuration interface is received, if so, executing step S306, and if not, executing step S309.
S306, determining the identification of the first target sensor according to the modification information. The first target sensor is a sensor corresponding to the modification information.
S307, searching first target sensor information corresponding to the identification of the first target sensor in the customized sensor subfile.
And S308, updating the first target sensor information according to the modification information.
S309, configuring the sensors on the main board according to the sensor file.
S310, when indication information input by a user on a configuration interface is received, corresponding second target sensor information is searched in the customized sensor subfiles according to the identification of the second target sensor in the indication information.
S311, displaying a modification interface on the configuration interface. The modification interface comprises an identification of the second target sensor, an attribute parameter corresponding to the second target sensor, and an operation area corresponding to the attribute parameter of the second target sensor.
S312, determining whether the modification information input by the user on the modification interface is received, if so, executing step S313, and if not, executing step S315.
S313, updating the customized sensor subfiles according to the modification information.
S314, configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
S315, configuring the sensors on the main board according to the sensor file.
S316, uploading a preset sensor file to the sensor data image file, and configuring the sensor on the main board according to the preset sensor file. The preset sensor file includes a preset fixed sensor subfile and a preset customized sensor subfile.
The method of each step is described in the foregoing embodiments, and the detailed description is referred to the foregoing description and is not repeated here.
According to the information configuration method provided by the embodiment of the application, the preset fixed sensor subfiles and the preset customized sensor subfiles of SDR information of all the sensors are preset, and the information configuration method is uploaded into the sensor data image file of the substrate management controller through the WEBUI or the Redfish interface. And in the restarting or first running process of the baseboard management controller, generating a preset sensor file according to the preset fixed sensor subfile and the preset customized sensor subfile, and then generating SDR information of a corresponding sensor through the preset sensor file to perform configuration of the mainboard. In the non-first running process of the baseboard management controller, a user can modify the customized sensor subfiles according to requirements, the modified sensor files can be generated, the configuration of the main board is carried out according to the modified sensor files, the autonomous generation mode is not needed in the development firmware of the baseboard management controller, the control is more flexible, the filling mode of the customized sensor subfiles is adopted, the acceptance of research personnel is facilitated, the operation is simple, the result is more visual, the readability is better, the mirror image files of a plurality of baseboard management controllers or the complex programming codes of a plurality of sensor files are not needed to be generated, and the development workload of the research personnel is saved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an information configuration device for realizing the information configuration method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more information configuration devices provided below may refer to the limitation of the information configuration method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 11, there is provided an information configuration apparatus including:
a first display module 10, configured to display a configuration interface on a management interface of the baseboard management controller when it is determined that the sensor data image file includes a sensor file; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
an updating module 11, configured to update the customized sensor subfiles according to the modification information when receiving the modification information input by the user on the configuration interface;
the first configuration module 12 is configured to configure the sensor on the motherboard according to the updated customized sensor subfile and the fixed sensor subfile.
In one embodiment, as shown in fig. 12, the update module 11 includes:
a determining unit 110 for determining an identification of the first target sensor according to the modification information; the first target sensor is a sensor corresponding to the modification information.
And a searching unit 111, configured to search the customized sensor subfile for first target sensor information corresponding to the identification of the first target sensor.
An updating unit 112 for updating the first target sensor information according to the modification information.
In one embodiment, as shown in fig. 13, the information configuration apparatus further includes:
and the second configuration module 13 is configured to configure the sensor on the motherboard according to the sensor file when the modification information input by the user on the configuration interface is not received.
In one embodiment, as shown in fig. 14, the information configuration apparatus further includes:
a third configuration module 14, configured to upload a preset sensor file to the sensor data image file and configure a sensor on the motherboard according to the preset sensor file if it is determined that the sensor data image file does not include the sensor file; the preset sensor file comprises a preset fixed sensor sub-file and a preset customized sensor sub-file.
In one embodiment, as shown in fig. 15, the information configuration apparatus further includes:
a creating module 15, configured to create and store the preset sensor file.
In one embodiment, as shown in fig. 16, the information configuration apparatus further includes:
a generation module 16, configured to generate the configuration interface according to the customized sensor subfiles; the configuration interface comprises identifications of all sensors in the customized sensor subfiles, attribute parameters corresponding to the sensors and operation areas corresponding to the attribute parameters.
In one embodiment, as shown in fig. 17, the information configuration apparatus further includes:
and the searching module 18 is configured to, when receiving the indication information input by the user on the configuration interface, search the corresponding second target sensor information in the customized sensor subfile according to the identifier of the second target sensor in the indication information.
A second display module 19, configured to display a modification interface on the configuration interface; the modification interface comprises an identification of the second target sensor, an attribute parameter corresponding to the second target sensor, and an operation area corresponding to the attribute parameter of the second target sensor.
Correspondingly, the updating module 11 is specifically configured to update the customized sensor subfiles according to the modification information when receiving the modification information input by the user on the modification interface.
Each of the modules in the information configuration apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
under the condition that the sensor data image file is determined to comprise the sensor file, displaying a configuration interface on a management interface of the baseboard management controller; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
when receiving modification information input by a user on a configuration interface, updating the customized sensor subfiles according to the modification information;
and configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
under the condition that the sensor data image file is determined to comprise the sensor file, displaying a configuration interface on a management interface of the baseboard management controller; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
when receiving modification information input by a user on a configuration interface, updating the customized sensor subfiles according to the modification information;
And configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
under the condition that the sensor data image file is determined to comprise the sensor file, displaying a configuration interface on a management interface of the baseboard management controller; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
when receiving modification information input by a user on a configuration interface, updating the customized sensor subfiles according to the modification information;
and configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. An information configuration method, the method comprising:
under the condition that the sensor data image file is determined to comprise the sensor file, displaying a configuration interface on a management interface of the baseboard management controller; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
when receiving modification information input by a user on the configuration interface, updating the customized sensor subfiles according to the modification information;
And configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
2. The method of claim 1, wherein said updating said customized sensor subfile according to said modification information comprises:
determining the identification of the first target sensor according to the modification information; the first target sensor is a sensor corresponding to the modification information;
searching first target sensor information corresponding to the identification of the first target sensor in the customized sensor subfile;
and updating the first target sensor information according to the modification information.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and when the modification information input by the user on the configuration interface is not received, configuring the sensor on the main board according to the sensor file.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
uploading a preset sensor file to the sensor data image file under the condition that the sensor data image file is determined not to comprise the sensor file, and configuring a sensor on the main board according to the preset sensor file; the preset sensor file comprises a preset fixed sensor sub-file and a preset customized sensor sub-file.
5. The method according to claim 4, wherein the method further comprises:
and creating and storing the preset sensor file.
6. The method according to claim 1, wherein the method further comprises:
generating the configuration interface according to the customized sensor subfiles; the configuration interface comprises identifications of all sensors in the customized sensor subfiles, attribute parameters corresponding to the sensors and operation areas corresponding to the attribute parameters.
7. The method according to claim 1, wherein the method further comprises:
when receiving indication information input by the user on the configuration interface, searching corresponding second target sensor information in the customized sensor subfile according to the identification of the second target sensor in the indication information;
displaying a modification interface on the configuration interface; the modification interface comprises an identification of the second target sensor, attribute parameters corresponding to the second target sensor and an operation area corresponding to the attribute parameters of the second target sensor;
correspondingly, when receiving modification information input by a user on the configuration interface, updating the customized sensor subfile according to the modification information, including:
And when receiving the modification information input by the user on the modification interface, updating the customized sensor subfile according to the modification information.
8. An information configuration apparatus, characterized in that the apparatus comprises:
the first display module is used for displaying a configuration interface on a management interface of the substrate management controller under the condition that the sensor data image file is determined to comprise the sensor file; the sensor file comprises a fixed sensor sub-file and a customized sensor sub-file;
the updating module is used for updating the customized sensor subfiles according to the modification information when the modification information input by a user on the configuration interface is received;
the first configuration module is used for configuring the sensor on the main board according to the updated customized sensor subfiles and the fixed sensor subfiles.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202311160155.7A 2023-09-08 2023-09-08 Information configuration method, information configuration device, computer equipment and storage medium Pending CN117348919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311160155.7A CN117348919A (en) 2023-09-08 2023-09-08 Information configuration method, information configuration device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311160155.7A CN117348919A (en) 2023-09-08 2023-09-08 Information configuration method, information configuration device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117348919A true CN117348919A (en) 2024-01-05

Family

ID=89362144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311160155.7A Pending CN117348919A (en) 2023-09-08 2023-09-08 Information configuration method, information configuration device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117348919A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118331979A (en) * 2024-05-11 2024-07-12 南京涵韬信息科技有限公司 A method and system for updating and querying dynamic business data
CN120429199A (en) * 2025-06-26 2025-08-05 苏州元脑智能科技有限公司 Sensor information management method, device, system, storage medium, and program product

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118331979A (en) * 2024-05-11 2024-07-12 南京涵韬信息科技有限公司 A method and system for updating and querying dynamic business data
CN120429199A (en) * 2025-06-26 2025-08-05 苏州元脑智能科技有限公司 Sensor information management method, device, system, storage medium, and program product
CN120429199B (en) * 2025-06-26 2025-09-26 苏州元脑智能科技有限公司 Sensor information management method, device, system, storage medium, and program product

Similar Documents

Publication Publication Date Title
US9696967B2 (en) Generation of an application from data
CN117348919A (en) Information configuration method, information configuration device, computer equipment and storage medium
CN112464625B (en) Document generation method, device, computer equipment and storage medium
CN115438113A (en) Parameter management method and device, electronic equipment and storage medium
CN113377473B (en) Task creation method, device, electronic device and computer-readable storage medium
CN119046286B (en) Serial number generation method, device, computer equipment and readable storage medium
CN114036171B (en) Application data management method, device, computer equipment and storage medium
CN113407254B (en) Form generation method and device, electronic equipment and storage medium
CN117435651A (en) Test data processing method, device, computer equipment and storage medium
CN111431699A (en) Method, device and system for quickly validating face authentication function
CN116051056A (en) Front-end project management method, device, computer equipment and storage medium
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
CN116938372B (en) Method and device for rapidly configuring broadcast timing task based on time axis
CN117745369B (en) Shopping bag generation method and device, electronic equipment and storage medium
CN117331960B (en) Method, device, computer equipment and storage medium for generating table file
CN118519627A (en) Application zero code development method, device, storage medium and system
CN119987773A (en) Page interaction method, device, computer equipment, readable storage medium and product
CN116701178A (en) Interface test method, device, computer equipment and storage medium
CN118964064A (en) Data access method, device, equipment, readable storage medium and program product
CN112068910A (en) Method, device and system for generating accessory control with downloading function
CN118193083A (en) Software resource loading method and device, computer equipment and storage medium
CN119376726A (en) Method, device, equipment, medium and program product for realizing page customization requirements
CN118296341A (en) Method, apparatus, device, medium, and program product for extracting feature data
CN117632088A (en) Program development method, device, equipment and storage medium for lottery function
CN117251159A (en) Rule page generation method, device, computer equipment and storage 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