Disclosure of Invention
The invention aims to provide a basic input and output system setting method which is convenient to use.
In order to solve the above technical problems, the method for setting a basic input/output system of the present invention is implemented by a processing unit of a servo system and performed at a power-on self-test stage, wherein the servo system comprises an input unit, a control unit, a display unit, and the processing unit electrically connected to the input unit, the control unit, and the display unit, and the method comprises a step (a), a step (B), a step (C), and a step (D).
In the step (a), the processing unit obtains system information related to the servo system, where the system information includes a plurality of monitoring items and a plurality of monitoring contents respectively corresponding to the monitoring items.
In the step (B), the processing unit converts the data format of the system information into a specific data format.
In the step (C), after the processing unit receives at least one editing instruction from the input unit, for each editing instruction, the processing unit determines whether the editing instruction is legal, wherein the editing instruction corresponds to one of the monitoring items.
In the step (D), for each editing instruction judged to be legitimate, the processing unit updates the system information according to the editing instruction.
Compared with the prior art, the basic input and output system setting method has the advantages that the system information is displayed by the display unit through the processing unit in the POST stage, and the system information is updated according to the editing instruction for each judged legal editing instruction, so that a user can check and set the system information in the POST stage.
[ detailed description ] embodiments
Before the present invention is described in detail, it should be noted that in the following description, similar components are denoted by the same reference numerals.
Referring to fig. 1, aservo system 100 for implementing an embodiment of the bios setup method of the present invention is illustrated, where theservo system 100 includes an input unit 11, acontrol unit 12, adisplay unit 13, and aprocessing unit 14 electrically connected to the input unit 11, thecontrol unit 12, and thedisplay unit 13. The input unit 11 is connected with alocal input device 101, and thecontrol unit 12 is connected with aremote computer 102. Thecontrol unit 12 stores Management Information related to the firmware or hardware of theserver System 100, the Management Information includes a plurality of Management items and a plurality of Management contents respectively corresponding to the Management items, and conforms to a specific data format, each Management content includes at least one of setting contents, status contents, and parameter contents related to the Management item, in this embodiment, the input unit 11 is connected to thelocal input device 101 via a communication network, for example, thecontrol unit 12 is a Baseboard Management Controller (BMC) and is connected to theremote computer 102 via the communication network, for example, the Management Information is System list Information (System Inventory Information), the specific data format of the System list Information is json javascript Object notification, for example, the content of the System list Information records various data related to the firmware or hardware configuration of theserver System 100, for example, the BIOS specification, the manufacturer name, the product serial number, and the like, theProcessing Unit 14 is, for example, a System on a Chip (SoC) or an implementation mode formed by a Central Processing Unit (CPU) and a Platform Path Controller (PCH), and the specific Data format conforms to the Open Data Protocol (OData) specification of the red fish (Redfish) standard, such as JSON format, but not limited thereto.
Referring to fig. 1 and 2, an embodiment of how theserver system 100 executes the BIOS setup method according to the present invention is described, which is performed in a Power-On Self-Test (POST) phase of BIOS and includes the following steps.
Instep 201, theprocessing unit 14 obtains system information related to theserver system 100, where the system information includes a plurality of monitoring items, a plurality of monitoring contents respectively corresponding to the monitoring items, and a plurality of transmission settings respectively corresponding to the monitoring items, each monitoring content being related to at least one of a setting content, a status content, and a parameter content of the monitoring item, and each transmission setting indicates transmission on or transmission off. It should be noted that the system information is obtained by integrating the management information of thecontrol unit 12 with the boot check information obtained by theprocessing unit 14 detecting the hardware of theservo system 100 during the boot process and including a plurality of boot collection items and a plurality of boot check information corresponding to the boot collection contents of the boot collection items, wherein each boot collection content is related to at least one of the setting content, the status content, and the parameter content of the boot collection item, the boot collection items of the boot check information are, for example, the hardware model, the operating speed, the status of device insertion or not, and the monitoring content is the integration of the management content and the boot collection content. It should be noted that, in the present embodiment, the management items are partially repeated with the boot collection items, and when the management items are repeated with the boot collection items, the boot collection content corresponding to the boot collection items is taken as the main content, for example, the management items are A, B, C items, the boot collection items are A, D, E items, and the monitoring items are A, B, C, D, E, wherein the management item a is repeated with the boot collection item a, so the boot collection content corresponding to the boot collected item a is taken as the monitoring content corresponding to the a item of the monitoring item.
Instep 202, theprocessing unit 14 converts the data format of the system information into the specific data format.
Instep 203, after receiving an operation instruction from the input unit 11 in response to thelocal input device 101, theprocessing unit 14 displays the system information by using thedisplay unit 13. It should be noted that, in this step, for example, a local user generates the operation command through thelocal input device 101 to enter a setup menu (setup menu) interface having the monitoring contents of the system information for the local user to modify, the input unit 11 is, for example, a network card, and the local user utilizes thelocal input device 101 to transmit the operation command to theprocessing unit 14 through the network card, so that the setup menu interface has the monitoring contents of the system information for the local user to modify.
Instep 204, after theprocessing unit 14 receives at least one editing instruction from thelocal input device 101 via the input unit 11, for each editing instruction, theprocessing unit 14 determines whether the editing instruction is legal, wherein the editing instruction includes a target editing information related to a target item and a transmission setting editing information corresponding to the target item, and the target item matches one of the monitoring items included in the system information, and when theprocessing unit 14 determines that the editing instruction is illegal, the process proceeds tostep 205; when theprocessing unit 14 determines that the edit instruction is valid, flow proceeds tostep 206. It should be noted that, in this embodiment, the at least one edit command is generated by thelocal input device 101 in response to the input operation of the local user, a plurality of standard restrictions respectively corresponding to the monitoring items are stored in the BIOS firmware executed by theprocessing unit 14, or a memory (not shown) in theprocessing unit 14, or a memory (not shown) connected to theprocessing unit 14, each standard restriction includes at least one standard option or a standard range, and if theprocessing unit 14 determines that the target edit information of the edit command at least meets 3 determination rules, theprocessing unit 14 determines that the edit command is legal; if theprocessing unit 14 determines that the target editing information of the editing instruction does not conform to one of the determination rules, theprocessing unit 14 determines that the editing instruction is illegal. The judgment rules are judgment rules of specific data formats, judgment rules of data forms and judgment rules of standard limits. The judgment rule of the specific data format is to judge whether the target editing information of the editing instruction conforms to the specific data format, the judgment rule of the data format is to judge whether the target editing information of the editing instruction conforms to the data format corresponding to the corresponding monitoring item, and the judgment rule of the standard limit is to judge whether the target editing information of the editing instruction conforms to the standard limit corresponding to the corresponding monitoring item.
For example, when a target item (i.e. one of the corresponding monitored items) related to a target editing information of an editing instruction is a memory capacity, theprocessing unit 14 first determines whether the target editing information of the editing instruction conforms to the specific data format, and after theprocessing unit 14 determines that the system information edited by the target editing information of the editing instruction conforms to the specific data format, theprocessing unit 14 then determines whether the target editing information of the editing instruction conforms to a data format corresponding to the corresponding monitored item, since the data format corresponding to the monitored content (memory capacity) corresponding to the monitored item is a pure number, theprocessing unit 14 determines whether the target editing information of the editing instruction is a pure number to determine whether the target editing information of the editing instruction conforms to the data format corresponding to the corresponding monitored item, after determining that the target editing information of the editing instruction conforms to the data format corresponding to the corresponding monitoring item, theprocessing unit 14 further determines whether the target editing information of the editing instruction conforms to the standard limit corresponding to the corresponding monitoring item, taking the standard limit including a plurality of standard options as an example, the standard options are 256, 512, 1024(MB), and if the value of the target editing information of the editing instruction is one of 256, 512, 1024, it means that the target editing information of the editing instruction conforms to the standard limit corresponding to the corresponding monitoring item; taking the standard limit as a standard range, the standard range is 256-1024 (MB), and if the value of the target editing information of the editing instruction is within 256-1024, it indicates that the target editing information of the editing instruction conforms to the standard limit corresponding to the corresponding monitoring item.
Instep 205, for each editing instruction determined to be illegal, theprocessing unit 14 generates and displays an error message indicating that editing is impossible by using thedisplay unit 13, so that the local user re-inputs the editing instruction by using thelocal input device 101 to re-performstep 204. It should be noted that, in the embodiment, the error message includes a prompt message to prompt the local user how to modify, for example, if theprocessing unit 14 determines that the system information edited by the target editing information of the editing instruction does not conform to the specific data format, theprocessing unit 14 generates the prompt message related to the error message of the specific data format to prompt that the system information conforms to the specific data format; if theprocessing unit 14 determines that the target editing information of the editing instruction does not conform to the data format of the corresponding monitoring item, theprocessing unit 14 generates the prompt message related to the error message in data format to prompt the correct data format, for example, the prompt message of the error message prompts that the target editing information of the editing instruction should be in digital data format; if theprocessing unit 14 determines that the target edit information of an edit instruction does not conform to the corresponding standard limit, for example, the target edit information is not within the standard range, theprocessing unit 14 generates the prompt message of the error message related to the standard limit to prompt that the target edit information of the edit instruction should be within the standard range.
Instep 206, for each editing instruction determined to be valid, theprocessing unit 14 updates the monitored content corresponding to the target editing information of the editing instruction according to the target editing information of the editing instruction, and updates the transmission setting corresponding to the monitoring item according to the transmission setting editing information of the editing instruction.
Instep 207, theprocessing unit 14 displays the system information by using thedisplay unit 13.
Instep 208, theprocessing unit 14 transmits the monitoring items and the monitoring contents of the system information according to the transmission settings of the system information, so that thecontrol unit 12 stores the received monitoring items and the monitoring contents. It should be noted that theprocessing unit 14 only transmits the corresponding transmission setting indicating the transmission-enabled monitoring item and the corresponding monitoring content to thecontrol unit 12, and thecontrol unit 12 can automatically forward the stored and received monitoring item and the monitoring content indicating the transmission-enabled monitoring item and the monitoring content to theremote computer 102 connected thereto, or after a remote user connects thecontrol unit 12 via theremote computer 102, thecontrol unit 12 forwards the stored and received monitoring item and the monitoring content indicating the transmission-enabled monitoring item and the monitoring content to theremote computer 102, so that the remote user can view and set the information.
In summary, in the setup method of bios according to the present invention, at the POST stage, theprocessing unit 14 obtains the system information, and updates the monitoring content corresponding to the editing instruction according to the editing instruction for each determined legal editing instruction, so that the local or remote user can view and set the system information at the POST stage to flexibly set or select the monitoring item to be transmitted to thecontrol unit 12 for storing the updated management information in real time, and further flexibly set or select the monitoring item to be transmitted to theremote computer 102 for theremote computer 102 to store the backup system information or the system information to be viewed and set by the remote user in real time, thereby achieving the objective of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.