CN1139029C - System time parameter checking method and device - Google Patents
System time parameter checking method and device Download PDFInfo
- Publication number
- CN1139029C CN1139029C CNB001022121A CN00102212A CN1139029C CN 1139029 C CN1139029 C CN 1139029C CN B001022121 A CNB001022121 A CN B001022121A CN 00102212 A CN00102212 A CN 00102212A CN 1139029 C CN1139029 C CN 1139029C
- Authority
- CN
- China
- Prior art keywords
- parameter
- system time
- time parameter
- data
- correction parameter
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention relates to a method and a device for checking system time parameters. The method comprises the following steps: obtaining a stored correction parameter; generating a parameter correcting dialog box when a correction parameter value is more than a system time parameter; refreshing the content of a data storing area according to a new system time parameter in the dialog box, and replacing the system time parameter; substituting the system time parameter for the correction parameter when the value of the correction parameter is less than the system time parameter. The device comprises a chip and a logical operation processing unit, wherein the chip stores a basic input-output system and is provided with a data storing area for storing the correction parameter, and the logical operation processing unit is used for judging the accuracy of the system time parameter.
Description
Technical field
The present invention is about a kind of checking method and device of system time parameter, particularly a kind of in order to when the computer system boot-strap, instant timer (the RTC of self-verifying Basic Input or Output System (BIOS) (BIOS), Real Time Clock) date that is produced, the method for time correctness, and can with date of reality, time is proofreaied and correct when not being inconsistent.
Background technology
All dispose a Basic Input or Output System (BIOS) (BIOS) in the present computer system, it is stored in ROM or the EEPROM, store a plurality of programs to support the computer subsystem that information transmits between the computer components, as storer, disc driver and monitor, in order to manage the hardware relevant interface of all I/O, and carry out basic or the initial value setting to the part peripheral equipment, instant timer (RTC wherein, Real Time Clock) in order to be responsible for system data, the counting of time, no matter be that operating system (as: Wlndows 95/98) or the types of applications program of moving under operating system (MS Word) can be by the date modules that system provided, the date that time module is directly quoted instant timer and produced, time, make the data of being correlated with or the processing and the record of file, for instance, deposit at bank, make loans, the debt-credit system, exactly when carrying out the login of client and interbank treasury trade, see through and call out aforementioned date module, time module, every deposit of bank client, make loans, the debt-credit data are done the arrangement on the precedence, so that carry out the clearing of interest in the future.Yet hardware configuration with present computer system, this Basic Input or Output System (BIOS) that is stored in ROM or the eeprom chip mainly is all related setting parameters of preserving Basic Input or Output System (BIOS) by a compact battery (as: lithium battery), in case this his electric power of electricity reduces or when exhausting, will make these parameter values make zero or chaotic phenomenon occurs setting, simultaneously also make instant timer do the date, produce mistake during the counting of time, for example: the dat recorder in the BIOS is " 05/26/1999 " originally, when her electric power of electricity suddenly disappears, become " 01/01/1900 ", this moment is not if the user adds attention, will make performed operating system or application program extract this wrong dates parameter, and cause the entanglement of logon data on sequential, even influence user and related personnel's rights and interests; In addition, if computer system is to be used in an open environment, will be because of having the inclination not being in the mood for of personage's invasion or user, make Basic Input or Output System (BIOS) suffer the destruction of computer virus, make some setup parameters of BIOS chip internal memory disappear, or whole Basic Input or Output System (BIOS) is impaired fully, causes computer system to move.
Present computer system is for date stored in its BIOS chip, the correctness of time, still can't accomplish the function of automatic differentiation, mostly be to take place or the user feels that the unusual time side of system acting is found during in operation, and the computer system of this moment and handled data can't be returned to normal job state in gross error.
Summary of the invention
Fundamental purpose of the present invention be to provide a kind of can be before formally entering operating system, on the check system date, the method and apparatus of time correctness is in order to prevent because of his power loss of electricity.BIOS suffers the date after the start that computer virus intrusion causes, the situation that the time does not square with the fact; the phenomenon that on the record of date, time, causes confusion with the application program (as: management through accounting program, data base administrator) of avoiding operating system, even cause unpredictable crisis.
For the present invention that achieves the above object takes following measure:
The technology of the present invention is in the chip that stores Basic Input or Output System (BIOS), marks off a data storage area, in order to store a correction parameter (comprising a date data and a time data); Then with a logical operation processing unit, when carrying out BIOS, extract correction parameter respectively, with the present system time parameter that produces of instant timer, and it is made comparisons, in case the value of correction parameter is greater than system time parameter, then produce a parameter correction dialog box, require the user to import a new system time parameter (being correct date data and time data), again with new system time parameter, go the content of refresh data storage area, and the previous value by the system time parameter that instant timer produced of correction, otherwise, if the value of correction parameter is less than this system time parameter, then be with the correction parameter in the current system time parameter replacement region of data storage, with when starting the operating system (booting computer) next time, judgement is a hour counter operate as normal whether foundation, like this, just can guarantee after each start enters operating system the employed date of each application program, time all is correct.
The checking method of a kind of system time parameter of the present invention, be applied to check correctness, and, revised finding this system time parameter and actual when not all right by the system time parameter that instant timer produced of Basic Input or Output System (BIOS), it is characterized in that, may further comprise the steps:
Obtain a correction parameter that is stored in the intrasystem data storage area;
During greater than this system time parameter, produce a parameter correction dialog box in the value of this correction parameter;
New system time parameter of input refreshes this data storage area with this new system time parameter, and replaces original system time parameter in the data correction dialog box;
During less than this system time parameter, replace this correction parameter in the value of this correction parameter with this system time parameter.
Wherein, described system time parameter includes a date data and a time data.
Wherein, the form of described correction parameter is identical with the form of described system time parameter.
Wherein, the form of described new system time parameter is identical with the form of described correction parameter.
Wherein, described correction parameter is when starting Basic Input or Output System (BIOS), by date data and the time data that described instant timer produced.
Wherein, described correction parameter is before operating system finishes, by date data and the time data that described instant timer produced.
A kind of operating system system time parameter of the present invention check device, it is characterized in that comprise: a chip stores a Basic Input or Output System (BIOS), and is provided with a data storage area, in order to store a correction parameter;
A logical operation processing unit in order to the value according to correction parameter, is judged the correctness of a system time parameter that instant timer produced, and when correction parameter values during greater than system time parameter, the decision-making system time parameter is incorrect.
Wherein, described chip is an EEPROM.
Wherein, described correction parameter includes a date data and a time data.
Wherein, the form of described correction parameter is identical with the form of described system time parameter.
Description of drawings
Fig. 1: circuit block diagram of the present invention.
Fig. 2: the process flow diagram of the first embodiment of the present invention.
Fig. 3: second embodiment of the present invention process flow diagram.
Fig. 4: third embodiment of the present invention process flow diagram.
Embodiment
Reaching embodiment in conjunction with the accompanying drawings is described in detail as follows specific structural features of the present invention:
As shown in Figure 1, the present invention is at a chip in order to storage BIOS11: among 10 (as: EPROM), set up a data storage area 12, in order to store a correction parameter (comprising a date data and a time data), wherein correction parameter is to note when once using computer system before the user, then, with a logical operation processing unit (can be CPU or a program software) 20, before operating system, promptly carry out in the BIOS11, read the value of correction parameter earlier, as the foundation of judging the system time parameter correctness that instant timer 30 is produced.
As shown in Figure 2, the first embodiment process flow diagram whether its system time parameter that is produced for the instant timer 30 of inspection is correct, as shown in the figure, at the initial stage of carrying out BIOS11, obtain the instant timer 30 present system time parameter that produces (steps: 101~103) earlier, then, extract the correction parameter in the region of data storage 12, carry out the comparison (step 104 of system time parameter and correction parameter by logical operation processing unit 20,105), at this moment, if the value of correction parameter is greater than system time parameter, then produce a parameter correction dialog box, require the user to import a new system time parameter (being correct date data and time data), again according to new system time parameter, refresh data stores 12 content, and replaces the system time parameter that had before been produced by instant timer 30, and finishes the operation (step: 106~109) of BIOS11; Otherwise, if the value of correction parameter is less than this system time parameter, then with current be that the strand time parameter replaces correction parameters in the data storing 12 (step: 110), execution in step 109 then.
As shown in Figure 3, second embodiment whether its system time parameter that is produced for the instant timer 30 of inspection is correct, similar with first embodiment of Fig. 2, be at the initial stage of carrying out BIOS11 equally, obtain the instant timer 30 present system time parameters that produce (step 201~203) earlier, then, extract the correction parameter in the region of data storage 12, carry out the comparison (step 204 of system time parameter and correction parameter by logical operation processing unit 20,205), this moment if the value of correction parameter greater than system time parameter, then produce a parameter correction dialog box, require the user import one new be strand time parameter (being correct date data and time data), after person to be used confirms, according to new system time parameter, the content of refresh data storage area 12, and revise before the value of the system time parameter that is produced by instant timer 30, and finish the operation (step 206~209) of BIOS11, afterwards, it is preceding again operating system to be finished running (shut down of computer), the value that is added up by instant timer 30, deposit in the region of data storage 12, replace original correction parameter (step 210), when starting the operating system (booting computer) next time, judgement is hour counter 30 operate as normal whether foundations; Otherwise if value boy's system time parameter of correction parameter, then with the correction parameter (step 211) in the current system time parameter replacement region of data storage 12, execution in step 209 then.
As figure, shown in, it is the third embodiment of the present invention, be at the initial stage of carrying out BIOS11 equally, obtain the instant timer 30 present system time parameters that produce (step 301~303) earlier, then, extract the correction parameter in the region of data storage 12, carry out the comparison (step 304 of system time parameter and correction parameter by logical operation processing unit 20,305), if the value of comparative result correction parameter is greater than system time parameter, then produce a parameter correction dialog box, require the user to import a new system time parameter (being correct date data and time data), behind person's operation acknowledgement to be used, again with new system time parameter, revise before the value of the system time parameter that is produced by instant timer 30, and finish the operation (step 306~209) of BIOS11, the value of recruiting instant timer 30 to be added up before in user's end operation System Operation (when the shut down of computer) deposits in the data storing 12 at last, replace original correction parameter (step 310), with when starting the operating system (booting computer) next time, judgement is hour counter 30 operate as normal whether foundations, otherwise, if this system time parameter of value boy of correction parameter then skips to step 309.
Compared with prior art, the present invention has following effect: the present invention can be before computer system not be carried out operating system as yet, the correctness of automatic inspection system date, time, and the prompting user does the date when mistake takes place, the time adjustment, can prevent that because of his power loss of electricity BIOS suffers the date after the start that computer virus intrusion causes.The situation that time does not square with the fact, with the application program (as: management through accounting program, data base administrator) of avoiding operating system on the date, the phenomenon that causes confusion on the record of time, even cause unpredictable crisis.
More than narration is to borrow embodiment that the special card of structure of the present invention is described, is not to be used to limit protection scope of the present invention.
Claims (14)
1, a kind of checking method of system time parameter, be applied to check correctness, and, revised finding this system time parameter when not conforming to the actual conditions by the system time parameter that instant timer produced of Basic Input or Output System (BIOS), it is characterized in that, may further comprise the steps:
Obtain a correction parameter that is stored in the intrasystem data storage area;
During greater than this system time parameter, produce a parameter correction dialog box in the value of this correction parameter;
New system time parameter of input refreshes this data storage area with this new system time parameter, and replaces original system time parameter in the data correction dialog box;
During less than this system time parameter, replace this correction parameter in the value of this correction parameter with this system time parameter.
2, method according to claim 1 is characterized in that, described system time parameter includes a date data and a time data.
3, method according to claim 1 is characterized in that, the form of described correction parameter is identical with the form of described system time parameter.
4, method according to claim 1 is characterized in that, the form of described new system time parameter is identical with the form of described correction parameter.
5, method according to claim 1 is characterized in that, described correction parameter is when starting Basic Input or Output System (BIOS), by date data and the time data that described instant timer produced.
6, method according to claim 1 is characterized in that, described correction parameter is before operating system finishes, by date data and the time data that described instant timer produced.
7, method according to claim 1 is characterized in that, before operating system finishes, with the system time parameter that instant timer was produced, refreshes the content of described region of data storage.
8, method according to claim 7 is characterized in that, described system time parameter includes a date data and a time data.
9, method according to claim 7 is characterized in that, the form of described correction parameter is identical with the form of described system time parameter.
10, method according to claim 7 is characterized in that, the form of described new system time parameter is identical with the form of described correction parameter.
11, a kind of operating system time parameter check device, it is characterized in that, comprising:
A chip stores a Basic Input or Output System (BIOS), and is provided with a data storage area, in order to store a correction parameter;
A logical operation processing unit in order to the value according to correction parameter, is judged the correctness of a system time parameter that instant timer produced, and when correction parameter values during greater than system time parameter, the decision-making system time parameter is incorrect.
12, device according to claim 11 is characterized in that, described chip is an EPROM.
13, device according to claim 11 is characterized in that, described correction parameter includes a date data and a time data.
14, device according to claim 11 is characterized in that, the form of described correction parameter is identical with the form of described system time parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB001022121A CN1139029C (en) | 2000-02-04 | 2000-02-04 | System time parameter checking method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB001022121A CN1139029C (en) | 2000-02-04 | 2000-02-04 | System time parameter checking method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1312504A CN1312504A (en) | 2001-09-12 |
CN1139029C true CN1139029C (en) | 2004-02-18 |
Family
ID=4576340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB001022121A Expired - Fee Related CN1139029C (en) | 2000-02-04 | 2000-02-04 | System time parameter checking method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1139029C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI702486B (en) * | 2018-09-07 | 2020-08-21 | 英業達股份有限公司 | Remote login method for server subsystem and remote login system |
-
2000
- 2000-02-04 CN CNB001022121A patent/CN1139029C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1312504A (en) | 2001-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE102011082184A1 (en) | Security protection for memory contents of processor main memory | |
CN101388254B (en) | Storage device test method | |
EP1611510B1 (en) | Controlled execution of a program used for a virtual machine on a portable data carrier | |
CN111191243B (en) | Vulnerability detection method, vulnerability detection device and storage medium | |
CN1168507A (en) | Debug apparatus and method for debugging game program in ROM cartridge | |
WO2015003943A1 (en) | Depositing at least one computable integrity measuring value in a memory area of a memory | |
US6289503B1 (en) | System and method for trace verification | |
CN1139029C (en) | System time parameter checking method and device | |
CN1111865C (en) | The initialized system and method for intelligence volatile memory | |
JPH0820978B2 (en) | Failure analysis information edit output method | |
CN110321711A (en) | Detect the method and system of application server SQL injection point | |
CN113327097B (en) | Analysis drawing method and device | |
CN1904862A (en) | Code protection system and method of basic input/output system | |
CN114816806A (en) | Container availability verification method and device, computer equipment and storage medium | |
JP2513060B2 (en) | Failure recovery type computer | |
CN114398441A (en) | Data export method, data export device, computer equipment and storage medium | |
Rushby | The security model of Enhanced HDM | |
CN113934573A (en) | Data recovery method and device for memory database | |
CN1294481C (en) | Method for updating and recovering system by bootstrap program | |
CN118468273B (en) | Method, device and storage medium for preventing database from being halved | |
CN113076379B (en) | Method and system for distinguishing element number areas based on digital ICD | |
CN111274138A (en) | Method and device for testing account merging function | |
CN113703687B (en) | Data warehouse-in processing method, device, computer equipment and storage medium | |
CN113868095A (en) | Data monitoring method, system, server and storage medium | |
CN117057344A (en) | Sensitive word detection method, system, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20040218 Termination date: 20140204 |