System, the device and method of remotely located CMOS parameters【Technical field】
The present invention relates to field of computer technology, more particularly to a kind of system of remotely located CMOS parameters, device and sideMethod.
【Background technology】
CMOS (Complementary Metal Oxide Semiconductor, complementary metal oxide semiconductors (CMOS)) isThe semi-conducting material that a kind of large-scale application is manufactured in IC chip.In computer and the communications field, generally by CMOSRAM (complementary metal oxide semiconductors (CMOS) random access memory) is referred to as CMOS.That is CMOS is often referred to readable writeable random storageChip, for preserving important hardware configuration information and User Defined parameter in computer system, such as CPU (CentralProcessor Unit, central processor unit) frequency, the sequential of internal memory, the date of system, the state of hard disk, floppy driveSpecification, boot sequence of bootable equipment of user's setting etc..
System can read the hardware configuration information in CMOS to initialize system itself during due to start, read userCustomized parameter realizes some special functions.The parameter for thus being preserved in CMOS is critically important, it is impossible to lose easily.GenerallyBy being that the backup battery of uniform block independence is powered, so either normal shutdown or system accident power down is preserved CMOS in CMOSHardware information and User Defined parameter all without loss.
BIOS (Basic Input Output System, basic input output system) is typically to be stored in read-only ROMExecutable binary code in (Read Only Memory, read-only storage) chip.These executable binary system generationsCode include the most important basic input/output routine of system, system configuration information, startup power on self detection and initialization program andInterruption service that operating system and application program during for operation are provided etc..After system boot can by the hardware configuration in BIOS,System default parameter and User Defined parameter are loaded into CMOS, are set for user and changed.When starting shooting again below, someImportant parameter system directly can read from CMOS, so as to accelerate starting up speed.
Due to the CMOS chip for just having dispatched from the factory, its content is a group invalid " FF " or " 00 " write by chip producer,This is to system without any practical significance.Thus, in first time start operation bios program, BIOS can report that cmos data goes outMistake, points out user to load one group of default value from BIOS by corresponding hot key, and the default value is that one group of acquiescence for system hardware is joinedThis group of default parameters, is write CMOS chip, so as to complete the initialization to CMOS by number.These default parameters can ensure systemNormal hardware initialization is carried out, starting device is selected according to the boot sequence of acquiescence, control is submitted in starting deviceOperating system, and the interrupt service routine of bottom is provided for operating system and operation application program in an operating system.That is, BIOS can provide effective initialization acquiescence Value Data for CMOS, and the data can guarantee that system is normally run and worked.
Additionally, BIOS provides the operation interface of personal-machine interaction, CMOS parameters are set according to the actual requirements for user,Generally after start when bios program is run, can point out user by hot key " DEL " or " F2 " (different BIOS producers, settingHot key may be different, and corresponding hot key is pressed in the prompting according to BIOS) enter the human-computer interaction interface of BIOS offers so as to rightCMOS parameters are configured.After being provided with, preservation backed off after random is carried out by corresponding hot key, now, user provide in BIOS thisThe parameter set in one human-computer interaction interface has been written in CMOS chip, and previous BIOS writes the respective default of CMOS chipParameter has been capped.That is, the human-computer interaction interface that user can provide in BIOS is configured to CMOS parameters.
When the CMOS parameters that user sets mistake cause system to be unable to normal boot-strap, user can be by first disconnecting systemAlternating current, then pulls out the battery powered for CMOS or the jumper switch being integrated in by short circuit on mainboard, realizes removing CMOSThe operation of parameter.Content so in CMOS chip reverts to default value " FF " or " 00 " when chip dispatches from the factory again.Work as during startAfter BIOS detects this situation, can report that user's cmos data malfunctions, point out user to be loaded from BIOS by corresponding hot keyDefault value, or system loads default value from BIOS automatically, is once initialized so as to be done again to CMOS.
The method of traditional this set CMOS parameters, due to needing user to enter into BIOS offers by corresponding hot keyHuman-computer interaction interface could be realized setting to CMOS parameters, therefore user must arrive the working site of target machine to be placed, such asFruit is the machine of batch, and is dispersed in apart from far different multiple place, then more inconvenient, while also improving intoThis.And the method for traditional this set CMOS parameters is, it is necessary to hardware input-output equipment (such as key for placing one's entire reliance upon externalDisk, display etc.), if without external hardware input-output equipment, user cannot complete CMOS parameters by the demand of oneselfSetting.
For these defects, the method for traditional setting CMOS parameters also has using BMC (Baseboard ManagementController, baseboard management controller) realize the setting of CMOS parameters.Functionally, similar to CPU, it has certainly BMCOneself internal memory and BIOS (commonly referred to BMC Firmware, substrate management controller firmware), by BMC and belongs in BMCDeposit and BIOS, a BMC system can be constituted.The method will use the multiple computers of BMC chip, mutual by network or serial portsEven, then said the word come the BMC to other computers as console using wherein one computer.This mode is extra hard by buildingEven if the target machine that part logic realizes CMOS to be modified does not have external hardware input-output equipment, it is also possible to byIts BMC says the word to realize the setting to CMOS parameters.
However, the method that this use BMC realizes CMOS parameter settings, because BMC is one piece of very expensive chip, itThe price of itself is generally more taller than general CPU prices, is generally used for middle-and high-end server, therefore cost is very high, generalAll without band BMC chip, without BMC chip, the above method cannot then be realized computer.Additionally, the method is built due to needingExtra hardware logic circuit, implements complexity, and also improve cost.
【The content of the invention】
Based on this, it is necessary to provide a kind of system of the remotely located CMOS parameters of energy reduces cost.
A kind of system of remotely located CMOS parameters, including remote control terminal and target machine to be placed, the long-range controlTerminal processed is connected and for target machine to be placed described in remote control by network with the target machine to be placed, described to be placedCMOS is run on target machine subsystem is set;The CMOS sets subsystem to be included:BIOS read modules, for reading BIOS coresBios code in piece, generates bios code file;Human-computer interaction module, for simulating man-machine friendship according to the bios codeMutual interface, and the CMOS parameters that user is set are obtained by the human-computer interaction interface;BIOS writing modules, for user to be setThe bios code file for putting CMOS parameters is written in BIOS chips;The remote control terminal is additionally operable to be write in the BIOSEnter remote control restarting after the bios code file that user set CMOS parameters is written to BIOS chips by module describedTarget machine to be placed.
Preferably, the BIOS read modules are used to read BIOS according to the corresponding interface protocol of BIOS chip interface typesBios code in chip, generates bios code file;The CMOS sets subsystem also to be included for storing the BIOS generationsThe memory module of code file;The human-computer interaction module is used to obtain the bios code file in the memory module, parses instituteThe bios code in bios code file is stated, human-computer interaction interface is simulated according to the bios code;The memory module is alsoFor preserving the CMOS parameters of user's setting in the bios code file;The BIOS writing modules are described for loadingBios code file, user was set the BIOS of CMOS parameters according to the corresponding interface protocol of BIOS chip interface typesCode file is written in BIOS chips.
Preferably, the remote control terminal is used for by way of remote desktop or remote assistance described in remote controlCMOS sets operation of the subsystem on the target machine to be placed.
Preferably, after the target machine restarting to be placed, the CMOS parameters that user in the BIOS chips is setIt is loaded into CMOS chip.
Additionally, there is a need to the device for providing a kind of remotely located CMOS parameters of energy reduces cost.
A kind of device for remotely located CMOS parameters, described device is arranged on target machine to be placed, including:BIOSRead module, for reading the bios code in BIOS chips, generates bios code file;Human-computer interaction module, for basisThe bios code simulates human-computer interaction interface, and obtains the CMOS parameters that user is set by the human-computer interaction interface;BIOS writing modules, the bios code file for user to be set CMOS parameters is written in BIOS chips.
Preferably, the BIOS read modules are used to read BIOS according to the corresponding interface protocol of BIOS chip interface typesBios code in chip, generates bios code file;Described device is also included for storing depositing for the bios code fileStorage module;The human-computer interaction module is used to obtain the bios code file in the memory module, parses the bios codeBios code in file, human-computer interaction interface is simulated according to the bios code;The memory module is additionally operable to preserve and usesThe CMOS parameters that family is set are in the bios code file;The BIOS writing modules are used to load the bios code textPart, writes the bios code file that user set CMOS parameters according to the corresponding interface protocol of BIOS chip interface typesEnter in BIOS chips.
In addition, there is a need to a kind of method for providing remotely located CMOS parameters of energy reduces cost.
A kind of method of remotely located CMOS parameters, comprises the following steps:Remote control is transported in the target machine to be placedRow CMOS sets subsystem;Bios code during subsystem reads BIOS chips is set by the CMOS, bios code is generatedFile, human-computer interaction interface is simulated according to the bios code, obtains what user was set by the human-computer interaction interfaceCMOS parameters, the bios code file that user set CMOS parameters is written in BIOS chips;Remote control restartsThe target machine to be placed.
Preferably, the bios code set by the CMOS during subsystem reads BIOS chips, generates BIOS generationsCode file, human-computer interaction interface is simulated according to the bios code, obtains what user was set by the human-computer interaction interfaceCMOS parameters, be by the step that the bios code file that user set CMOS parameters is written in BIOS chips:According to BIOSThe corresponding interface protocol of chip interface type reads the bios code in BIOS chips, generates bios code file;Storage is describedBios code file;The bios code file is obtained, the bios code in the bios code file is parsed, according to describedBios code simulates human-computer interaction interface;The CMOS parameters that user is set are obtained by the human-computer interaction interface, by userThe CMOS parameters of setting are saved in the bios code file;The bios code file is loaded, according to BIOS chip interfacesBe written to the bios code file that user set CMOS parameters in BIOS chips by the corresponding interface protocol of type.
Preferably, the remote control is the step of the target machine operation CMOS to be placed sets subsystem:Pass throughCMOS described in the mode remote control of remote desktop or remote assistance sets operation of the subsystem on the target machine to be placed.
Preferably, also include after the step of remote control restarts the target machine to be placed:It is described to treatSet target machine the CMOS parameters that user in the BIOS chips is set are loaded into CMOS chip.
System, the device and method of above-mentioned remotely located CMOS parameters, by remote control terminal to target machine to be placedRemote control is carried out, CMOS is run on target machine to be placed subsystem is set, by subsystem reading BIOS chipsBios code, generates bios code file, and human-computer interaction interface is simulated according to bios code, obtains the CMOS ginsengs that user is setNumber, then the bios code file that user set CMOS parameters is written in BIOS chips.Because remote control terminal can be withRemote control is carried out to target machine to be placed, after the bios code file that user set CMOS parameters is written to BIOS chipsThen remote control restarts target machine to be placed.So, without target machine to be placed band BMC chip, it is not required that build volumeOuter hardware logic circuit, can be achieved with the CMOS parameters of remotely located target machine to be placed, therefore effectively reduce cost.In addition, remote control terminal controls target machine to be placed by network remote, implement convenient and simple.
【Brief description of the drawings】
Fig. 1 is the structural representation of the system of the remotely located CMOS parameters in embodiment one;
Fig. 2 is the structural representation of the CMOS setting subsystems in embodiment one;
Fig. 3 is the flow chart of the method for the remotely located CMOS parameters in embodiment two;
Fig. 4 is the flow chart of the method for the remotely located CMOS parameters in embodiment three.
【Specific embodiment】
Embodiment one
As shown in figure 1, a kind of system of remotely located CMOS parameters, including remote control terminal 10 and target machine to be placed20, wherein:
Remote control terminal 10 passes through network connection with target machine to be placed 20, for remote control target machine to be placed20.Target machine to be placed 20 is the computer for needing to set CMOS parameters.In other embodiments, remote control terminal 10 can be withWith many target machines to be placed 20 by network connection, therefore can be with the CMOS parameters in remotely located multiple stage computers.
CMOS is run on target machine to be placed 20 subsystem 200 has been set, CMOS setting subsystems 200 are mounted in have been waited to setThe device for setting its CMOS parameter on target machine 20 is put, the device is to operate in the client on target machine to be placed 20End.Preferably, the remote control CMOS by way of remote desktop or remote assistance of remote control terminal 10 sets subsystem 200Run on target machine to be placed 20.
As shown in Fig. 2 in the embodiment, CMOS sets subsystem 200 includes BIOS read modules 202, man-machine interaction mouldBlock 204, BIOS writing modules 206, wherein:
BIOS read modules 202 are used to read the bios code in BIOS chips, generate bios code file.
In a preferred embodiment, BIOS read modules 202 are read according to the corresponding interface protocol of BIOS chip interface typesThe bios code in BIOS chips is taken, bios code file is generated.BIOS chips are used to store bios code, its interface type bagInclude SPI (Serial Peripheral Interface, SPI), FWH (Firmware Hub, FWH),LPC (Low Pin Count, small number pin bus) etc., is connected on the South Bridge chip of computer by these interfaces.The realityApply in example, BIOS read modules 202 read the interface message of BIOS chips first, BIOS chip interfaces are obtained according to interface messageType, then reads bios code therein according to interface protocol corresponding with the interface type, generates bios code file.
In a preferred embodiment, CMOS sets subsystem 200 and also includes for storing the bios code file for generatingMemory module (not shown).
Human-computer interaction module 204 is used to simulate human-computer interaction interface according to bios code, and by human-computer interaction interfaceObtain the CMOS parameters that user is set.
In a preferred embodiment, human-computer interaction module 204 is used to obtain the bios code file in memory module, parsingBios code therein, human-computer interaction interface is simulated according to bios code.User can be received by human-computer interaction interface defeatedOperational order and the data of user input for entering etc..
In a preferred embodiment, the CMOS parameters that memory module sets user are saved in bios code file.
BIOS writing modules 206 are used to for the bios code file that user set CMOS parameters to be written to BIOS chipsIn.
In a preferred embodiment, BIOS writing modules 206 load the BIOS generations of the CMOS parameters for saving user's setting, be written to bios code file in BIOS chips according to BIOS chip interface types corresponding interface protocol by code file, so,The CMOS parameters that user is set then are had been written into BIOS chips.As described above, BIOS chip interfaces type include SPI, FWH,After the loading bios code file of LPC etc., BIOS writing module 206, BIOS chip interface information is read, gets interface type,Then bios code file is written in BIOS chips according to interface type corresponding interface protocol.
In embodiment one, remote control terminal 10 is additionally operable to that user was set into CMOS ginsengs in BIOS writing modules 206Remote control restarts target machine 20 to be placed after several bios code file write-in BIOS chips.In the embodiment, remotelyControl terminal 10 controls to restart target machine to be placed 20, target machine to be placed by way of remote desktop or remote assistanceAfter 20 restartings, the CMOS parameters set in BIOS chips are loaded into CMOS chip.
CMOS is run on target machine to be placed 20 by the remote control of remote control terminal 10 subsystem 200 is set,CMOS sets subsystem 200 and the bios code file that user set CMOS parameters is written in BIOS chips, then long-range controlSystem restarting target machine 20 to be placed.After target machine to be placed 20 restarts, the CMOS that the user in BIOS chips is setParameter can be then written in CMOS chip.Because the system can be achieved with remotely without the upper band BMC chip of target machine to be placed 20CMOS parameters are set, therefore go for common computer, save cost.Further, since the system medium-long range is controlledTerminal 10 controls target machine to be placed 20 by remote desktop or remote assistance, is to be capable of achieving by network connection, long-range controlExtra hardware logic circuit need not be built between terminal processed 10 and target machine to be placed 20, cost is both saved, realizedIt is simple to be also convenient for.
Embodiment two
As shown in figure 3, a kind of method of remotely located CMOS parameters, comprises the following steps:
Step S102, remote control target machine operation CMOS to be placed sets subsystem.
Target machine to be placed is the computer for needing to set CMOS parameters.In the embodiment, by remote control terminal withTarget machine to be placed carries out network connection, is the fixed address (such as IP address) of target machine distribution to be placed, remote control terminalCorresponding target machine to be placed can be found by the address of the fixation, by network access target machine to be placed.
Step S104, the bios code during subsystem reads BIOS chips is set by CMOS, generates bios code file,Human-computer interaction interface is simulated according to bios code, the CMOS parameters that user is set is obtained by human-computer interaction interface, by userThe bios code file for setting CMOS parameters is written in BIOS chips.
CMOS can be run in the embodiment, on target machine to be placed subsystem is set, CMOS sets subsystem and is mounted inThe client for setting its CMOS parameter on target machine to be placed.Preferably, remote control terminal by remote desktop orThe mode of remote assistance controls CMOS setting subsystems to be run on target machine to be placed.
Step S106, remote control restarts target machine to be placed.
In the embodiment, after remote control restarts target machine to be placed, target machine to be placed then can be by BIOS chipsThe CMOS parameters that middle user is set are loaded into CMOS chip.
Embodiment three
As shown in figure 4, a kind of method of remotely located CMOS parameters, detailed process is as follows:
In step S202, remote control target machine operation CMOS to be placed sets by way of remote desktop or remote assistancePut subsystem.
In step S204, the BIOS generations in BIOS chips are read according to the corresponding interface protocol of BIOS chip interface typesCode, generates bios code file.
BIOS chips are used to store bios code, and its interface type is connected including SPI, FWH, LPC etc. by these interfacesOn the South Bridge chip of computer.In the embodiment, CMOS sets subsystem and first reads the interface message of BIOS chips, according to connecingMouth acquisition of information BIOS chip interface types, bios code therein is read according to interface protocol corresponding with the interface type,Generation bios code file.
In step S206, bios code file is stored.Bios code file storage the depositing in target machine to be placed of generationIn storage module.
In step S208, bios code file, the bios code in parsing bios code file, according to bios code are obtainedSimulate human-computer interaction interface.The operational order of user input and the number of user input can be received by human-computer interaction interfaceAccording to etc..
In step S210, the CMOS parameters that user is set are obtained by human-computer interaction interface, the CMOS parameters that will be set are protectedIt is stored in bios code file.
In step S212, bios code file is loaded, according to the corresponding interface protocol of BIOS chip interface types by userThe bios code file for setting CMOS parameters is written in BIOS chips.
As described above, BIOS chip interface types are including SPI, FWH, LPC etc., after loading bios code file, readBIOS chip interface information, gets interface type, and user was set into CMOS according to interface type corresponding interface protocol joinsSeveral bios code files are written in BIOS chips.
In step S214, remote control restarts target machine to be placed.
In step S216, the CMOS parameters that user in BIOS chips is set are loaded into CMOS chip by target machine to be placedIn.When target machine start to be placed runs the bios code in BIOS chips, can load what user was set from BIOS chips, in CMOS chip, during start next time, these parameters then can the directly reading from CMOS chip for CMOS parameters.
Due to remote control terminal by way of remote desktop or remote assistance can remote control in target to be placedOn machine run CMOS set subsystem, it is not necessary to target machine upper band BMC chip to be placed, thus the above method go for it is generalLogical computer, saves cost.Patrolled also without building extra hardware between remote control terminal and target machine to be placedCircuit is collected, only by network connection, by the fixed IP distributed for target machine to be placed, remote control terminal can findCorresponding target machine to be placed, both saves cost, implements and simple and convenient.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneouslyTherefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the artFor, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the inventionShield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.