CN102999734A - Computer expiration date limiting method and system - Google Patents

Computer expiration date limiting method and system Download PDF

Info

Publication number
CN102999734A
CN102999734A CN2011102776761A CN201110277676A CN102999734A CN 102999734 A CN102999734 A CN 102999734A CN 2011102776761 A CN2011102776761 A CN 2011102776761A CN 201110277676 A CN201110277676 A CN 201110277676A CN 102999734 A CN102999734 A CN 102999734A
Authority
CN
China
Prior art keywords
date
days
month
cut
current
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.)
Granted
Application number
CN2011102776761A
Other languages
Chinese (zh)
Other versions
CN102999734B (en
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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201110277676.1A priority Critical patent/CN102999734B/en
Publication of CN102999734A publication Critical patent/CN102999734A/en
Application granted granted Critical
Publication of CN102999734B publication Critical patent/CN102999734B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a computer expiration date limiting method, comprising the following steps: (S11) acquiring real-time clock information and saving the current real-time clock information into current system date variables; (S12) acquiring a current reference date and determining whether the current system date is consistent with the current reference date or not; if the current system date is consistent with the current reference date, information in the current system date variables is saved into reference date variables; if the current system date is not consistent with the current reference date, step S14 is performed; (S13) determining whether the current reference date reaches an expiration date or not; if the current reference date reaches the expiration date, a locked shutdown state is enabled; (S14) calculating user modifications according to the current system date and the current reference date and updating the expiration date; and (S15) saving information in the current system date into the reference date variables and returning to step S13 to continue the operation. The invention also provides a computer expiration date limiting system. The invention has the advantages that the expiration date is limited more effectively and safely, and effects of user experience are not affected.

Description

A kind of computing machine term of life limits method and system
Technical field
The invention belongs to computer realm, relate in particular to a kind of computing machine term of life and limit method and system.
Background technology
BIOS(Basic Input and Output System, be called for short Basic Input or Output System (BIOS)), refer to be integrated in a rom chip on the mainboard, wherein preserved the most important basic input/output routine of microsystem, system information setting, startup power on self detection program and system and started bootstrap routine etc.; When it is responsible for computer booting, the every hardware of system is carried out initialization setting and test, can work with the assurance system.BIOS also is for the batch processing between contact computer hardware and the software program, and this program provides lowermost level and the most direct hardware controls for computing machine.
When computer booting, whether normal BIOS at first can namely detect the hardware components that rigidly connects energize to computing machine Power-On Self-Test (Power On Self Test is called for short POST), and whether function is normal; Then initialization comprises the establishment interrupt vector, register is set, some external units is carried out initialization and detection etc.; Guiding DOS or other operating system at last.Simultaneously, BIOS also has procedure service program and hardware Interrupt Process ability, and its service function realizes by calling interrupt service routine.
EC(Embedded Controller is called for short embedded controller), it is 16 single-chip microcomputers, the inner flash memory that also has certain capacity itself is stored the code of EC.The status of EC in microsystem is never inferior to the north and south bridge, and in the process that system opens, EC is controlling the sequential of most signal of interests.In notebook computer, EC is in running status always, no matter is start or off-mode, unless battery and the complete removal of adapter.In the course of the work, EC can be whenever at regular intervals polling system state S0, S3, S4 and S5, to make corresponding action, cooperate the user need to make system's correspondence be in operation, sleep, dormancy and off-mode.
Between operating system driving and EC, ACPI(Advanced Configuration and Power Interface Specification, be called for short advanced configuration and power-management interface standard) in defined the hardware and software communication interface of standard, EC is by sending SMI(System Management Interrupt, be called for short system management interrupt) and SCI(System Control Interrupt, the control of abbreviation system is interrupted), carry out alternately with operating system.SMI is a kind of interruption of operating system grade, but is in bottom, is not basically realized by the user; And SCI to be a kind of software and hardware of being initiated by hardware cooperate the interrupt mechanism of finishing, to operating system visible, be used for notice upper strata AP(application program) make the processing of corresponding state change or hardware requirement.Because include the associated drives of ACPI in the operating system, so EC reports operating system ACPI event can only pass through the SCI mode, namely hardware uses SCI notice operating system ACPI event.
RTC(Real Time Clock is called for short real-time clock), it can preserve the current time, and the RTC circuit has important effect in real-time system.In computer system, it is used for the more time of new computer; Under the state of computer shutdown, the RTC circuit counting that can vibrate, system time was calibrated with the RTC time after the start.
At present, the term of life of the portable computer that some confession client tries out is specifically set the method for term of life and is generally passed through the modification authority of restriction system time by factory settings.But this kind method may be cracked by the user, then revises system time so that timing is invalid; Simultaneously, binding hours revise can limited subscriber use freely, affect user's experience effect, even can be taken as the defective of product design and be fed.
In addition, the setting of term of life also can be used the method for third party's running background software timing, but in a single day operating system change the software timing also with invalid; And in a single day daemon software is found, and is unloaded by the user, and will cause can't timing.
Summary of the invention
The purpose of this invention is to provide a kind of computing machine term of life restriction method, utilize BIOS and EC to finish the restriction of computing machine term of life as carrier, when term of life one can't be started shooting to computing machine, reach the purpose that limited subscriber uses, so that the restriction of term of life is more effective and safety, can user's experience effect not had any impact simultaneously yet.
The objective of the invention is to be achieved through the following technical solutions:
A kind of computing machine term of life restriction method, the method may further comprise the steps:
S11, obtain real-time clock information, and current real-time clock information is stored in the current system date variable;
S12, obtain current with reference to the date, judge the current system date with current with reference to the date whether consistent, if be yes, then the information in the current system date variable is stored in reference in the date variable; If be no, execution in step S14 then;
S13, judge that current whether reaching with reference to the date use the cut-off date, if be yes, then enter the locking off-mode;
S14, according to current system date and the current index word that calculates the user with reference to the date, upgrade to use the cut-off date;
S15, the information of current system in the date is stored in reference in the date variable, returns among the step S13, continue to carry out.
The present invention also provides a kind of computing machine term of life to limit system, and this system comprises:
The first storage unit is used for obtaining real-time clock information, and current real-time clock information is stored in the current system date variable;
The first judging unit, be used for obtaining current with reference to the date, judge the current system date with current with reference to the date whether consistent, if be yes, then the information in the current system date variable is stored in reference in the date variable; If be no, then carry out and calculate updating block;
The second judging unit is used for judging that current whether reaching with reference to the date use the cut-off date, if be yes, then enters the locking off-mode;
Calculate updating block, be used for according to current system date and the current index word that calculates the user with reference to the date, upgrade and use the cut-off date;
The second storage unit is used for the information on current system date is stored in reference in the date variable, returns in the second judging unit, continues to carry out.
Computing machine term of life provided by the invention limits method and system, directly act on the hardware of bottom, namely utilize BIOS and EC to finish the restriction of computing machine term of life as carrier, any operating system independent with the upper strata, when term of life one can't be started shooting to computing machine, reach the purpose that limited subscriber uses, so that the restriction of term of life is more effective and safety; Simultaneously, method and system provided by the invention can freely not revised system time by limited subscriber yet, be that the user can freely revise system time, but also can make it can only be available in the time limit that limits, therefore also can user's experience effect not had any impact.
Description of drawings
Fig. 1 is the schematic flow sheet of computing machine term of life restriction method provided by the invention.
Fig. 2 is the renewal schematic flow sheet that uses month cut-off date in the computing machine term of life restriction method provided by the invention.
Fig. 3 is the renewal schematic flow sheet that uses the cut-off date number of days in the computing machine term of life restriction method provided by the invention.
Fig. 4 is the renewal schematic flow sheet that uses month cut-off date and number of days in the computing machine term of life restriction method provided by the invention.
Fig. 5 is the structural representation that computing machine term of life provided by the invention limits system.
Embodiment
In order to make technical matters solved by the invention, technical scheme and beneficial effect clearer, below in conjunction with embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Please refer to shown in Figure 1, a kind of computing machine term of life restriction method, the method may further comprise the steps:
S11, obtain real-time clock information, and current real-time clock information is stored in the current system date variable;
S12, obtain current with reference to the date, judge the current system date with current with reference to the date whether consistent, if be yes, then the information in the current system date variable is stored in reference in the date variable; If be no, execution in step S14 then;
S13, judge that current whether reaching with reference to the date use the cut-off date, if be yes, then enter the locking off-mode;
S14, according to current system date and the current index word that calculates the user with reference to the date, upgrade to use the cut-off date;
S15, the information of current system in the date is stored in reference in the date variable, returns among the step S13, continue to carry out.
Computing machine term of life restriction method provided by the invention, directly act on the hardware of bottom, namely utilize BIOS and EC to finish the restriction of computing machine term of life as carrier, any operating system independent with the upper strata, when term of life one can't be started shooting to computing machine, reach the purpose that limited subscriber uses, so that the restriction of term of life is more effective and safety; Simultaneously, method provided by the invention can freely not revised system time by limited subscriber yet, and namely the user can freely revise system time, but can make it can only be available in the time limit that limits yet, and therefore can user's experience effect not had any impact yet.
As concrete embodiment, after in step S11, being included in computer booting and entering normal operating conditions, obtain real-time clock information according to predetermined time interval.Wherein, arranging of described predetermined time interval can be according to the oscillation frequency of RTC and trier's switching on and shutting down frequency, but we determine that the principle of predetermined time interval is, can embody the restricted program correction follows the real-time that the user revises system time closing time and can take into account again the performance that the system resource that takies when program is carried out can not have influence on system as far as possible, this value can not have influence on the reliability of time limit restricted program in fact from any value several seconds to several hours, if just the interval is too little, will carry out frequent, nature can affect the performance of system, if the interval is too large, will aspect real-time, occur not enough.Therefore, as a kind of specific embodiment, described predetermined time interval is 5-10 minute, namely every 5-10 minute, bottom hardware carrier EC by computing machine term of life restriction method provided by the invention effect sends a SMI request to BIOS, to obtain the real-time clock information of computer system; Simultaneously, can in the memory headroom of EC, open up one section space, be used for depositing use cut-off date that this method relates to, revise the dat recorder table with reference to date, current system date and user.After EC gets access to real-time clock information by BIOS, current real-time clock information is stored in the current system date variable.
In step S12, the setting of described initial value with reference to the date generally is the date that the user takes Evaluation product, when whole computer system power on for the first time bring into operation after, real-time clock (RTC) with reference to time on date will feed back from BIOS guarantees that namely the initial reference date is consistent with system data.After for the first time start is finished during execution in step S12, described current with reference to the date be consistent with the current system date, need simultaneously the information in the current system date variable is stored in reference in the date variable, because before start is finished for the first time, the trier also can not make amendment to system data, if revise, also only after computing machine enters normal operating conditions.So, after computing machine enters normal operating conditions, need to obtain real-time clock information according to predetermined time interval, so that system data is monitored.
In step S12, of particular note, described current with reference to the date=last with reference to date+predetermined time interval.In fact, more current when whether consistent with reference to date and current system date, described with reference to the date itself not along with system data changes forward automatically and changes, and just by described formula current with reference to the date=last with reference to date+predetermined time interval, current information with reference to the date is automatically increased a predetermined time interval, make it as the system data of standard, and then compare with the current system date, in this predetermined time interval, revised by the user in order to learn that the current system date does not have.So,, the information in the current system date variable need to be stored in reference in the date variable when being consistent with reference to the date with the current system date current, thereby realize the current effective judgement of using the cut-off date that whether reaches with reference to the date.
Therefore, in step S12, if current with reference to the date consistent with the current system date, illustrate that the current system date do not revised in this predetermined time interval by the user, can directly enter among the step S13, compare with the use cut-off date, use the cut-off date to judge current whether reaching with reference to the date; If current with reference to date and current system date inconsistent, illustrating that the current system date has by the user revises in this predetermined time interval, therefore need to be to current with reference to the date with use the cut-off date to remodify, to set up new reference point, before keeping the trial period interval and the user revising the same width is arranged; And then the clocking capability that has guaranteed system is by saltus step, and namely the trial period residue uses the interval can saltus step.
In step S13, read being assigned to reference to the information in the date variable in the current system date variable, compare with reference to date and current use cut-off date as current, see whether the date on probation has reached or surpassed the use cut-off date of regulation.If current with reference to the date with use the cut-off date consistent, illustrate that trying out the date reaches, computer system then enters locking module, reaches off-mode (S5); If current with reference to the date with use the cut-off date inconsistent, illustrate that the date on probation also do not reach, also allow the user to continue to use, computer system then continues monitoring, namely when comparison result is inconsistent, then needs to return among the step S11 continuation cycle criterion.
Introduced as can be known by abovementioned steps S12, if current with reference to date and current system date inconsistent, illustrating that the current system date has by the user revises in this predetermined time interval, need to be to current with reference to the date with use the cut-off date to remodify, enter into thus step S14, its concrete modification situation comprises:
Please refer to shown in Figure 2, as a kind of embodiment, described index word comprises revises a month number, its date that mainly is applicable to Evaluation product is the form on days, and revise the dat recorder table according to the user and judge that the user is only to revising the moon, although perhaps the date of Evaluation product is the form of date, revise the situation that the dat recorder table judges that the user also only revises the moon according to the user.Particularly, use the cut-off date specifically to may further comprise the steps according to a described modification month number renewal:
S141, according to revise a month number=current with reference to the date the month-month on current system date, calculate user's modification moon number; Can be found out by this computing formula, revise a month number and may be plus or minus therefore, before month is revised, need to judge whether revise month number〉0.
If S142 revises a month number〉0, then use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱, revises and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating current month with reference to the date of hypothesis is June, and the month on current system date is May, according to revise a month number=current with reference to the date the month-month on current system date, calculating and revising a month number is 6-5=1, the illustrative system date is to have revised forward, be that the user will be revised as the date or time through being over system data, got back in the past, the trier just prolongs the time on probation by such modification.And computing machine term of life restriction method provided by the invention prevents that exactly the trier from reaching such purpose, therefore need to be to using the cut-off date to revise accordingly; Simultaneously, this method allows the user that system data is made amendment, and purpose is in order to increase user's experience effect, still, after term of life restriction method provided by the invention, the user can be fed back to using the cut-off date to revise accordingly the modification of system data.So, according to use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱, also forward 1 month in advance month that is about to the cut-off date; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current month with reference to the date also to need to be shifted to an earlier date 1 month forward, namely be that the information of current system in the date is stored in reference in the date variable, then return among the step S13, continue to carry out and judge.
If S143 revises month number<0, then use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱, revises and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating current month with reference to the date of hypothesis is June, and the month on current system date is July, according to revise a month number=current with reference to the date the month-month on current system date, calculating and revising a month number is 6-7=-1, the illustrative system date is to have revised backward, be that the user will be revised as date or time in the future system data, the trier wants to finish in advance the time on probation by such modification.In like manner, according to use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱, what be about to the cut-off date month also postpones 1 month backward; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current month with reference to the date also to need to be postponed 1 month backward, namely be that the information of current system in the date is stored in reference in the date variable, then return among the step S13, continue to carry out and judge.
Please refer to shown in Figure 3ly, as another kind of embodiment, described index word comprises the modification number of days, and its date that mainly is applicable to Evaluation product is the form of date, and revises the situation that the dat recorder table judges that the user only revises day according to the user.Particularly, use the cut-off date specifically to may further comprise the steps according to described modification number of days renewal:
S144, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculate user's modification number of days; Can be found out by this computing formula, revise number of days and may be plus or minus therefore, before number of days is revised, need to judge whether revise number of days〉0.
If S145 revises number of days〉0, then use the number of days of the number of days of cut-off date=last cut-off date-︱ to revise number of days ︱, revise and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating the current number of days with reference to the date of hypothesis is 15, and the number of days on current system date is 10, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculating and revising number of days is 15-10=5, the illustrative system date is to have revised forward, be that the user will be revised as the date or time through being over system data, got back in the past, the trier just prolongs the time on probation by such modification.And computing machine term of life restriction method provided by the invention prevents that exactly the trier from reaching such purpose, therefore need to be to using the cut-off date to revise accordingly; Simultaneously, this method allows the user that system data is made amendment, and purpose is in order to increase user's experience effect, still, after term of life restriction method provided by the invention, the user can be fed back to using the cut-off date to revise accordingly the modification of system data.So, revise number of days ︱ according to the number of days of the number of days that uses the cut-off date=last cut-off date-︱, the number of days that is about to the cut-off date also forward 5 days in advance; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current number of days with reference to the date also to need to be shifted to an earlier date 5 forward, namely be that the information of current system in the date is stored in reference in the date variable, then return among the step S13, continue to carry out and judge.
If S146 revises month number<0, then use the number of days of the number of days of cut-off date=last cut-off date+︱ to revise number of days ︱, revise and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating the current number of days with reference to the date of hypothesis is 15, and the number of days on current system date is 25, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculating and revising number of days is 15-25=-10, the illustrative system date is to have revised backward, be that the user will be revised as date or time in the future system data, the trier wants to finish in advance the time on probation by such modification.In like manner, revise number of days ︱ according to the number of days of the number of days that uses the cut-off date=last cut-off date+︱, the number of days that is about to the cut-off date also postpones 10 backward; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current number of days with reference to the date also to need to be postponed 10 backward, namely be that the information of current system in the date is stored in reference in the date variable, then return among the step S13, continue to carry out and judge.
Please refer to shown in Figure 4, as another embodiment, described index word comprises revises month number and number of days, and its date that mainly is applicable to Evaluation product is the form of date, and according to the user revise the dat recorder table judge the user not only to revise by the moon, but also situation to revising day.Particularly, use the cut-off date specifically to may further comprise the steps according to described modification month number and number of days renewal:
S141, according to revise a month number=current with reference to the date the month-month on current system date, calculate user's modification moon number; Can be found out by this computing formula, revise month and number of days and may be plus or minus therefore, before to month and number of days modification, whether need to judge modification month and number of days〉0.
If S142 revises a month number〉0, then use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱, revises and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating current month with reference to the date of hypothesis is June, and the month on current system date is May, according to revise a month number=current with reference to the date the month-month on current system date, calculating and revising a month number is 6-5=1, the illustrative system date is to have revised forward, be that the user will be revised as the date or time through being over system data, got back in the past, the trier just prolongs the time on probation by such modification.And computing machine term of life restriction method provided by the invention prevents that exactly the trier from reaching such purpose, therefore need to be to using the cut-off date to revise accordingly; Simultaneously, this method allows the user that system data is made amendment, and purpose is in order to increase user's experience effect, still, after term of life restriction method provided by the invention, the user can be fed back to using the cut-off date to revise accordingly the modification of system data.So, according to use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱, also forward 1 month in advance month that is about to the cut-off date; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current month with reference to the date also to need to be shifted to an earlier date 1 month forward, namely be that the information of current system in the date is stored in reference in the date variable, then return among the step S13, continue to carry out and judge.
If S143 revises month number<0, then use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱, revises and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating current month with reference to the date of hypothesis is June, and the month on current system date is July, according to revise a month number=current with reference to the date the month-month on current system date, calculating and revising a month number is 6-7=-1, the illustrative system date is to have revised backward, be that the user will be revised as date or time in the future system data, the trier wants to finish in advance the time on probation by such modification.In like manner, according to use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱, what be about to the cut-off date month also postpones 1 month backward; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current month with reference to the date also to need to be postponed 1 month backward, namely be that the information of current system in the date is stored in reference in the date variable, then return among the step S13, continue to carry out and judge.
S144, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculate user's modification number of days; Can be found out by this computing formula, revise number of days and may be plus or minus therefore, before number of days is revised, need to judge whether revise number of days〉0.
If S145 revises number of days〉0, then use the number of days of the number of days of cut-off date=last cut-off date-︱ to revise number of days ︱, revise and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating the current number of days with reference to the date of hypothesis is 15, and the number of days on current system date is 10, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculating and revising number of days is 15-10=5, the illustrative system date is to have revised forward, be that the user will be revised as the date or time through being over system data, got back in the past, the trier just prolongs the time on probation by such modification.And computing machine term of life restriction method provided by the invention prevents that exactly the trier from reaching such purpose, therefore need to be to using the cut-off date to revise accordingly; Simultaneously, this method allows the user that system data is made amendment, and purpose is in order to increase user's experience effect, still, after term of life restriction method provided by the invention, the user can be fed back to using the cut-off date to revise accordingly the modification of system data.So, revise number of days ︱ according to the number of days of the number of days that uses the cut-off date=last cut-off date-︱, the number of days that is about to the cut-off date also forward 5 days in advance; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current number of days with reference to the date also to need to be shifted to an earlier date 5 forward, namely be that the information of current system in the date is stored in reference in the date variable, then return among the step S13, continue to carry out and judge.
If S146 revises month number<0, then use the number of days of the number of days of cut-off date=last cut-off date+︱ to revise number of days ︱, revise and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating the current number of days with reference to the date of hypothesis is 15, and the number of days on current system date is 25, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculating and revising number of days is 15-25=-10, the illustrative system date is to have revised backward, be that the user will be revised as date or time in the future system data, the trier wants to finish in advance the time on probation by such modification.In like manner, revise number of days ︱ according to the number of days of the number of days that uses the cut-off date=last cut-off date+︱, the number of days that is about to the cut-off date also postpones 10 backward; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current number of days with reference to the date also to need to be postponed 10 backward, namely be that the information of current system in the date is stored in reference in the date variable, then return among the step S13, continue to carry out and judge.
As concrete embodiment, use the user of product can not allow computing machine be in normal operating conditions always, need to shut down computer.Its date on probation owing to limiting generally, the term of life that has Evaluation product now can not stop timing because of user's shutdown, so when again opening computing machine, might reach the time limit of using the cut-off date.Therefore, the invention provides in step S11 and comprise, when the computer booting power-on self-test begins, obtain real-time clock information; Because in the process of on computers electric self check, the user may also can make amendment to the computer system date, therefore need to read real-time clock information, with judge to system data information whether modification is arranged.Its concrete deterministic process is selected earlier figures 2, Fig. 3 and flow process shown in Figure 4 according to situation, does not repeat them here; But, because the process of computer booting is shorter, generally short than the predetermined time interval of the present invention's setting, therefore compare with normal operating conditions, when comparison result is inconsistent, lacked and need to return among the step S11, continue the step of cycle criterion, namely in the process of start, generally only obtain a real-time clock information and judge and get final product.
Further, comprised before the computer booting power-on self-test, whether detection is identical with the use cut-off date with reference to the date, if be yes, then enters the locking off-mode.Because, before computer booting, might naturally arrive the use cut-off date, when detecting cut-off condition, satisfies EC, just can not continue follow-up start process.
As concrete embodiment, in order to prevent revising system time in the predetermined time interval of user before shutdown, cause BIOS can not in time notify the generation of this event of EC, this enforcement has proposed that BIOS need to send real-time clock information to EC before shutdown, allow EC to system data information whether modification is arranged, its concrete deterministic process is selected earlier figures 2, Fig. 3 and flow process shown in Figure 4 according to situation, does not repeat them here.When computer shutdown, BIOS is at PTS(Prepare To Sleep, a method (Method(_PTS) of ACPI standard the inside definition), operating system enters any one S(Sx) state all can enter and carry out once) can detect system in the process and be about to enter shutdown (S5) state, in case BIOS detects computer and enters the S5 state, BIOS namely grasps the RTC time and replies to EC.At this, those skilled in the art need to understand, although computing machine cuts out, the last judgement before the shutdown still can be at the running background of computing machine, until be disposed.After being disposed, computing machine namely enters off-mode, and when the reference date was not identical with the use cut-off date, EC obtained a time reference point from here, enters glitch-free time loss stage trial period, until start next time.Specifically under the state of shutdown, the can do by myself calculating of the time of doing of EC need not be inquired the real-time clock information that BIOS is current again, does not also have the interference of user's modification time, because the user can't revise system time after the shutdown.
Please refer to shown in Figure 5ly, the present invention also provides a kind of computing machine term of life to limit system, and this system comprises:
The first storage unit 101 is used for obtaining real-time clock information, and current real-time clock information is stored in the current system date variable;
The first judging unit 102, be used for obtaining current with reference to the date, judge the current system date with current with reference to the date whether consistent, if be yes, then the information in the current system date variable is stored in reference in the date variable; If be no, then carry out and calculate updating block;
The second judging unit 103 is used for judging that current whether reaching with reference to the date use the cut-off date, if be yes, then enters the locking off-mode;
Calculate updating block 104, be used for according to current system date and the current index word that calculates the user with reference to the date, upgrade and use the cut-off date;
The second storage unit 105 is used for the information on current system date is stored in reference in the date variable, returns in the second judging unit, continues to carry out.
Computing machine term of life provided by the invention limits system, directly act on the hardware of bottom, namely utilize BIOS and EC to finish the restriction of computing machine term of life as carrier, any operating system independent with the upper strata, when term of life one can't be started shooting to computing machine, reach the purpose that limited subscriber uses, so that the restriction of term of life is more effective and safety; Simultaneously, system time can freely not revised by limited subscriber by system provided by the invention yet, and namely the user can freely revise system time, but can make it can only be available in the time limit that limits yet, and therefore can user's experience effect not had any impact yet.
As concrete embodiment, after in the first storage unit 101, being included in computer booting and entering normal operating conditions, obtain real-time clock information according to predetermined time interval.Wherein, arranging of described predetermined time interval can be according to the oscillation frequency of RTC and trier's switching on and shutting down frequency, but we determine that the principle of predetermined time interval is, can embody the restricted program correction follows the real-time that the user revises system time closing time and can take into account again the performance that the system resource that takies when program is carried out can not have influence on system as far as possible, this value can not have influence on the reliability of time limit restricted program in fact from any value several seconds to several hours, if just the interval is too little, will carry out frequent, nature can affect the performance of system, if the interval is too large, will aspect real-time, occur not enough.Therefore, as a kind of specific embodiment, described predetermined time interval is 5-10 minute, namely every 5-10 minute, the bottom hardware carrier EC that limits systemic effect by computing machine term of life provided by the invention sends a SMI request to BIOS, to obtain the real-time clock information of computer system; Simultaneously, can in the memory headroom of EC, open up one section space, be used for depositing use cut-off date that native system relates to, revise the dat recorder table with reference to date, current system date and user.After EC gets access to real-time clock information by BIOS, current real-time clock information is stored in the current system date variable.
In the first judging unit 102, the setting of described initial value with reference to the date generally is the date that the user takes Evaluation product, when whole computer system power on for the first time bring into operation after, real-time clock (RTC) with reference to time on date will feed back from BIOS guarantees that namely the initial reference date is consistent with system data.After for the first time start is finished during execution the first judging unit 102, described current with reference to the date be consistent with the current system date, need simultaneously the information in the current system date variable is stored in reference in the date variable, because before start is finished for the first time, the trier also can not make amendment to system data, if revise, also only after computing machine enters normal operating conditions.So, after computing machine enters normal operating conditions, need to obtain real-time clock information according to predetermined time interval, so that system data is monitored.
In the first judging unit 102, of particular note, described current with reference to the date=last with reference to date+predetermined time interval.In fact, more current when whether consistent with reference to date and current system date, described with reference to the date itself not along with system data changes forward automatically and changes, and just by described formula current with reference to the date=last with reference to date+predetermined time interval, current information with reference to the date is automatically increased a predetermined time interval, make it as the system data of standard, and then compare with the current system date, in this predetermined time interval, revised by the user in order to learn that the current system date does not have.So,, the information in the current system date variable need to be stored in reference in the date variable when being consistent with reference to the date with the current system date current, thereby realize the current effective judgement of using the cut-off date that whether reaches with reference to the date.
Therefore, in the first judging unit 102, if current with reference to the date consistent with the current system date, illustrate that the current system date do not revised in this predetermined time interval by the user, can directly enter in the second judging unit 103, compare with the use cut-off date, use the cut-off date to judge current whether reaching with reference to the date; If current with reference to date and current system date inconsistent, illustrating that the current system date has by the user revises in this predetermined time interval, therefore need to be to current with reference to the date with use the cut-off date to remodify, to set up new reference point, before keeping the trial period interval and the user revising the same width is arranged; And then the clocking capability that has guaranteed system is by saltus step, and namely the trial period residue uses the interval can saltus step.
In the second judging unit 103, read being assigned to reference to the information in the date variable in the current system date variable, compare with reference to date and current use cut-off date as current, see whether the date on probation has reached or surpassed the use cut-off date of regulation.If current with reference to the date with use the cut-off date consistent, illustrate that trying out the date reaches, computer system then enters locking module, reaches off-mode (S5); If current with reference to the date with use the cut-off date inconsistent, illustrate that the date on probation also do not reach, also allow the user to continue use, computer system then continues monitoring, namely when comparison result is inconsistent, then need to return in the first storage unit 101, continue cycle criterion.
Introduced as can be known by aforementioned the first judging unit 102, if current with reference to date and current system date inconsistent, illustrating that the current system date has by the user revises in this predetermined time interval, need to be to current with reference to the date with use the cut-off date to remodify, enter into thus and calculate updating block 104, its concrete modification situation comprises:
As a kind of embodiment, described index word comprises revises a month number, its date that mainly is applicable to Evaluation product is the form on days, and revise the dat recorder table according to the user and judge that the user is only to revising the moon, although perhaps the date of Evaluation product is the form of date, revise the situation that the dat recorder table judges that the user also only revises the moon according to the user.Particularly, use the cut-off date specifically to comprise according to a described modification month number renewal:
Revise a month number computing unit, be used for according to revise a month number=current with reference to the date the month-month on current system date, calculate user's modification moon number; Can be found out by this computing formula, revise a month number and may be plus or minus therefore, before month is revised, need to judge whether revise month number〉0.
First revises a month number updating block, if be used for revising a month number〉0, then use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱, revises and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating current month with reference to the date of hypothesis is June, and the month on current system date is May, according to revise a month number=current with reference to the date the month-month on current system date, calculating and revising a month number is 6-5=1, the illustrative system date is to have revised forward, be that the user will be revised as the date or time through being over system data, got back in the past, the trier just prolongs the time on probation by such modification.And computing machine term of life provided by the invention limits system, prevents that exactly the trier from reaching such purpose, therefore need to be to using the cut-off date to revise accordingly; Simultaneously, native system allows the user that system data is made amendment, and purpose is in order to increase user's experience effect, still, after term of life restriction provided by the invention system, the user can be fed back to using the cut-off date to revise accordingly the modification of system data.So, according to use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱, also forward 1 month in advance month that is about to the cut-off date; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in the second judging unit 103, current month with reference to the date also to need to be shifted to an earlier date 1 month forward, namely be that the information of current system in the date is stored in reference in the date variable, then return in the second judging unit 103, continue to carry out and judge.
Second revises a month number updating block, if be used for revising month number<0, then use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱, revises and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating current month with reference to the date of hypothesis is June, and the month on current system date is July, according to revise a month number=current with reference to the date the month-month on current system date, calculating and revising a month number is 6-7=-1, the illustrative system date is to have revised backward, be that the user will be revised as date or time in the future system data, the trier wants to finish in advance the time on probation by such modification.In like manner, according to use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱, what be about to the cut-off date month also postpones 1 month backward; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in the second judging unit 103, current month with reference to the date also to need to be postponed 1 month backward, namely be that the information of current system in the date is stored in reference in the date variable, then return in the second judging unit 103, continue to carry out and judge.
As another kind of embodiment, described index word comprises the modification number of days, and its date that mainly is applicable to Evaluation product is the form of date, and revises the situation that the dat recorder table judges that the user only revises day according to the user.Particularly, use the cut-off date specifically to comprise according to described modification number of days renewal:
Revise the number of days computing unit, be used for calculating user's modification number of days according to the number of days of revising number of days=current number of days with reference to the date-current system date; Can be found out by this computing formula, revise number of days and may be plus or minus therefore, before number of days is revised, need to judge whether revise number of days〉0.
First revises the number of days updating block, if be used for revising number of days〉0, then use the number of days of the number of days of cut-off date=last cut-off date-︱ to revise number of days ︱, revise and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating the current number of days with reference to the date of hypothesis is 15, and the number of days on current system date is 10, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculating and revising number of days is 15-10=5, the illustrative system date is to have revised forward, be that the user will be revised as the date or time through being over system data, got back in the past, the trier just prolongs the time on probation by such modification.And computing machine term of life provided by the invention limits system, prevents that exactly the trier from reaching such purpose, therefore need to be to using the cut-off date to revise accordingly; Simultaneously, native system allows the user that system data is made amendment, and purpose is in order to increase user's experience effect, still, after term of life restriction provided by the invention system, the user can be fed back to using the cut-off date to revise accordingly the modification of system data.So, revise number of days ︱ according to the number of days of the number of days that uses the cut-off date=last cut-off date-︱, the number of days that is about to the cut-off date also forward 5 days in advance; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in step S13, current number of days with reference to the date also to need to be shifted to an earlier date 5 forward, namely be that the information of current system in the date is stored in reference in the date variable, then return in the second judging unit 103, continue to carry out and judge.
Second revises the number of days updating block, if be used for revising month number<0, then uses the number of days of the number of days of cut-off date=last cut-off date+︱ to revise number of days ︱, revise and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating the current number of days with reference to the date of hypothesis is 15, and the number of days on current system date is 25, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculating and revising number of days is 15-25=-10, the illustrative system date is to have revised backward, be that the user will be revised as date or time in the future system data, the trier wants to finish in advance the time on probation by such modification.In like manner, revise number of days ︱ according to the number of days of the number of days that uses the cut-off date=last cut-off date+︱, the number of days that is about to the cut-off date also postpones 10 backward; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in the second judging unit 103, current number of days with reference to the date also to need to be postponed 10 backward, namely be that the information of current system in the date is stored in reference in the date variable, then return in the second judging unit 103, continue to carry out and judge.
As another embodiment, described index word comprises revises month number and number of days, and its date that mainly is applicable to Evaluation product is the form of date, and according to the user revise the dat recorder table judge the user not only to revise by the moon, but also situation to revising day.Particularly, use the cut-off date specifically to comprise according to described modification month number and number of days renewal:
Revise a month number computing unit, be used for according to revise a month number=current with reference to the date the month-month on current system date, calculate user's modification moon number; Can be found out by this computing formula, revise month and number of days and may be plus or minus therefore, before to month and number of days modification, whether need to judge modification month and number of days〉0.
First revises a month number updating block, if be used for revising a month number〉0, then use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱, revises and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating current month with reference to the date of hypothesis is June, and the month on current system date is May, according to revise a month number=current with reference to the date the month-month on current system date, calculating and revising a month number is 6-5=1, the illustrative system date is to have revised forward, be that the user will be revised as the date or time through being over system data, got back in the past, the trier just prolongs the time on probation by such modification.And computing machine term of life provided by the invention limits system, prevents that exactly the trier from reaching such purpose, therefore need to be to using the cut-off date to revise accordingly; Simultaneously, native system allows the user that system data is made amendment, and purpose is in order to increase user's experience effect, still, after term of life restriction provided by the invention system, the user can be fed back to using the cut-off date to revise accordingly the modification of system data.So, according to use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱, also forward 1 month in advance month that is about to the cut-off date; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in the second judging unit 103, current month with reference to the date also to need to be shifted to an earlier date 1 month forward, namely be that the information of current system in the date is stored in reference in the date variable, then return in the second judging unit 103, continue to carry out and judge.
Second revises a month number updating block, if be used for revising month number<0, then use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱, revises and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating current month with reference to the date of hypothesis is June, and the month on current system date is July, according to revise a month number=current with reference to the date the month-month on current system date, calculating and revising a month number is 6-7=-1, the illustrative system date is to have revised backward, be that the user will be revised as date or time in the future system data, the trier wants to finish in advance the time on probation by such modification.In like manner, according to use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱, what be about to the cut-off date month also postpones 1 month backward; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in the second judging unit 103, current month with reference to the date also to need to be postponed 1 month backward, namely be that the information of current system in the date is stored in reference in the date variable, then return in the second judging unit 103, continue to carry out and judge.
Revise the number of days computing unit, be used for calculating user's modification number of days according to the number of days of revising number of days=current number of days with reference to the date-current system date; Can be found out by this computing formula, revise number of days and may be plus or minus therefore, before number of days is revised, need to judge whether revise number of days〉0.
First revises the number of days updating block, if be used for revising number of days〉0, then use the number of days of the number of days of cut-off date=last cut-off date-︱ to revise number of days ︱, revise and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating the current number of days with reference to the date of hypothesis is 15, and the number of days on current system date is 10, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculating and revising number of days is 15-10=5, the illustrative system date is to have revised forward, be that the user will be revised as the date or time through being over system data, got back in the past, the trier just prolongs the time on probation by such modification.And computing machine term of life provided by the invention limits system, prevents that exactly the trier from reaching such purpose, therefore need to be to using the cut-off date to revise accordingly; Simultaneously, native system allows the user that system data is made amendment, and purpose is in order to increase user's experience effect, still, after term of life restriction provided by the invention system, the user can be fed back to using the cut-off date to revise accordingly the modification of system data.So, revise number of days ︱ according to the number of days of the number of days that uses the cut-off date=last cut-off date-︱, the number of days that is about to the cut-off date also forward 5 days in advance; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in the second judging unit 103, current number of days with reference to the date also to need to be shifted to an earlier date 5 forward, namely be that the information of current system in the date is stored in reference in the date variable, then return in the second judging unit 103, continue to carry out and judge.
Second revises the number of days updating block, if be used for revising month number<0, then uses the number of days of the number of days of cut-off date=last cut-off date+︱ to revise number of days ︱, revise and use the cut-off date.For example, through aforementioned formula current with reference to the date=last system data+predetermined time interval, calculating the current number of days with reference to the date of hypothesis is 15, and the number of days on current system date is 25, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculating and revising number of days is 15-25=-10, the illustrative system date is to have revised backward, be that the user will be revised as date or time in the future system data, the trier wants to finish in advance the time on probation by such modification.In like manner, revise number of days ︱ according to the number of days of the number of days that uses the cut-off date=last cut-off date+︱, the number of days that is about to the cut-off date also postpones 10 backward; And it is current with reference to the date with use relatively not reciprocity of cut-off date in order to prevent in the second judging unit 103, current number of days with reference to the date also to need to be postponed 10 backward, namely be that the information of current system in the date is stored in reference in the date variable, then return in the second judging unit 103, continue to carry out and judge.
As concrete embodiment, use the user of product can not allow computing machine be in normal operating conditions always, need to shut down computer.Its date on probation owing to limiting generally, the term of life that has Evaluation product now can not stop timing because of user's shutdown, so when again opening computing machine, might reach the time limit of using the cut-off date.Therefore, the invention provides in the first storage unit 101 and comprise, when the computer booting power-on self-test begins, obtain real-time clock information; Because in the process of on computers electric self check, the user may also can make amendment to the computer system date, therefore need to read real-time clock information, with judge to system data information whether modification is arranged.Its concrete deterministic process is selected earlier figures 2, Fig. 3 and flow process shown in Figure 4 according to situation, does not repeat them here; But, because the process of computer booting is shorter, generally short than the predetermined time interval of the present invention's setting, therefore compare with normal operating conditions, when comparison result is inconsistent, lacked and need to return in the first storage unit 101, continue the step of cycle criterion, namely in the process of start, generally only obtain a real-time clock information and judge and get final product.
Further, comprised before the computer booting power-on self-test, whether detection is identical with the use cut-off date with reference to the date, if be yes, then enters the locking off-mode.Because, before computer booting, might naturally arrive the use cut-off date, when detecting cut-off condition, satisfies EC, just can not continue follow-up start process.
As concrete embodiment, in order to prevent revising system time in the predetermined time interval of user before shutdown, cause BIOS can not in time notify the generation of this event of EC, this enforcement has proposed that BIOS need to send real-time clock information to EC before shutdown, allow EC to system data information whether modification is arranged, its concrete deterministic process is selected earlier figures 2, Fig. 3 and flow process shown in Figure 4 according to situation, does not repeat them here.When computer shutdown, BIOS is at PTS(Prepare To Sleep, a method (Method(_PTS) of ACPI standard the inside definition), operating system enters any one S(Sx) state all can enter and carry out once) can detect system in the process and be about to enter shutdown (S5) state, in case BIOS detects computer and enters the S5 state, BIOS namely grasps the RTC time and replies to EC.At this, those skilled in the art need to understand, although computing machine cuts out, the last judgement before the shutdown still can be at the running background of computing machine, until be disposed.After being disposed, computing machine namely enters off-mode, and when the reference date was not identical with the use cut-off date, EC obtained a time reference point from here, enters glitch-free time loss stage trial period, until start next time.Specifically under the state of shutdown, the can do by myself calculating of the time of doing of EC need not be inquired the real-time clock information that BIOS is current again, does not also have the interference of user's modification time, because the user can't revise system time after the shutdown.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (20)

1. a computing machine term of life restriction method is characterized in that, the method may further comprise the steps:
S11, obtain real-time clock information, and current real-time clock information is stored in the current system date variable;
S12, obtain current with reference to the date, judge the current system date with current with reference to the date whether consistent, if be yes, then the information in the current system date variable is stored in reference in the date variable; If be no, execution in step S14 then;
S13, judge that current whether reaching with reference to the date use the cut-off date, if be yes, then enter the locking off-mode;
S14, according to current system date and the current index word that calculates the user with reference to the date, upgrade to use the cut-off date;
S15, the information of current system in the date is stored in reference in the date variable, returns among the step S13, continue to carry out.
2. computing machine term of life restriction method according to claim 1 is characterized in that, after being included in computer booting entering normal operating conditions in step S11, obtains real-time clock information according to predetermined time interval; And in step S13, if be no, then return among the step S11, continue to carry out.
3. computing machine term of life restriction method according to claim 2 is characterized in that, described predetermined time interval is 5-10 minute.
4. computing machine term of life restriction method according to claim 2 is characterized in that, described in the step S12 current with reference to the date=last system data+predetermined time interval.
5. computing machine term of life restriction method according to claim 1 is characterized in that, in step S14, described index word comprises revises a month number, upgrades according to described modification month number and uses the cut-off date specifically to may further comprise the steps:
S141, according to revise a month number=current with reference to the date the month-month on current system date, calculate user's modification moon number;
If S142 revises a month number〉0, then use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱;
If S143 revises month number<0, then use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱.
6. computing machine term of life restriction method according to claim 1 is characterized in that, in step S14, described index word comprises the modification number of days, upgrades according to described modification number of days and uses the cut-off date specifically to may further comprise the steps:
S144, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculate user's modification number of days;
If S145 revises number of days〉0, then use the number of days of the number of days of cut-off date=last cut-off date-︱ to revise number of days ︱;
If S146 revises number of days<0, then use the number of days of the number of days of cut-off date=last cut-off date+︱ to revise number of days ︱.
7. computing machine term of life restriction method according to claim 1 is characterized in that, in step S14, described index word comprises revises month number and number of days, uses the cut-off date specifically to may further comprise the steps according to described modification month number and number of days renewal:
S141, according to revise a month number=current with reference to the date the month-month on current system date, calculate user's modification moon number;
If S142 revises a month number〉0, then use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱;
If S143 revises month number<0, then use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱;
S144, according to the number of days of revising number of days=current number of days with reference to the date-current system date, calculate user's modification number of days;
If S145 revises number of days〉0, then use the number of days of the number of days of cut-off date=last cut-off date-︱ to revise number of days ︱;
If S146 revises number of days<0, then use the number of days of the number of days of cut-off date=last cut-off date+︱ to revise number of days ︱.
8. computing machine term of life restriction method according to claim 1 is characterized in that, when being included in the computer booting power-on self-test beginning in step S11, obtains real-time clock information.
9. computing machine term of life restriction method according to claim 8 is characterized in that, comprises before the computer booting power-on self-test, and whether detection is identical with the use cut-off date with reference to the date, if be yes, then enters the locking off-mode.
10. computing machine term of life restriction method according to claim 1 is characterized in that, when being included in computer shutdown in step S11, obtains real-time clock information.
11. a computing machine term of life limits system, it is characterized in that, this system comprises:
The first storage unit is used for obtaining real-time clock information, and current real-time clock information is stored in the current system date variable;
The first judging unit, be used for obtaining current with reference to the date, judge the current system date with current with reference to the date whether consistent, if be yes, then the information in the current system date variable is stored in reference in the date variable; If be no, then carry out and calculate updating block;
The second judging unit is used for judging that current whether reaching with reference to the date use the cut-off date, if be yes, then enters the locking off-mode;
Calculate updating block, be used for according to current system date and the current index word that calculates the user with reference to the date, upgrade and use the cut-off date;
The second storage unit is used for the information on current system date is stored in reference in the date variable, returns in the second judging unit, continues to carry out.
12. computing machine term of life according to claim 11 limits system, it is characterized in that, after being included in computer booting entering normal operating conditions in the first storage unit, obtains real-time clock information according to predetermined time interval; And in the second judging unit, if be no, then return in the first storage unit, continue to carry out.
13. computing machine term of life according to claim 12 limits system, it is characterized in that, described predetermined time interval is 5-10 minute.
14. computing machine term of life according to claim 12 limits system, it is characterized in that, described in the first judging unit current with reference to the date=last system data+predetermined time interval.
15. computing machine term of life according to claim 11 limits system, it is characterized in that, in calculating updating block, described index word comprises revises a month number, upgrades according to described modification month number and uses the cut-off date specifically to comprise:
Revise a month number computing unit, be used for according to revise a month number=current with reference to the date the month-month on current system date, calculate user's modification moon number;
First revises a month number updating block, if be used for revising a month number〉0, then use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱;
Second revises a month number updating block, if be used for revising month number<0, then use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱.
16. computing machine term of life according to claim 11 limits system, it is characterized in that, in calculating updating block, described index word comprises the modification number of days, upgrades according to described modification number of days and uses the cut-off date specifically to may further comprise the steps:
Revise the number of days computing unit, be used for calculating user's modification number of days according to the number of days of revising number of days=current number of days with reference to the date-current system date;
First revises the number of days updating block, if be used for revising number of days〉0, then use the number of days of the number of days of cut-off date=last cut-off date-︱ to revise number of days ︱;
Second revises the number of days updating block, if be used for revising number of days<0, then uses the number of days of the number of days of cut-off date=last cut-off date+︱ to revise number of days ︱.
17. computing machine term of life according to claim 11 limits system, it is characterized in that, in calculating updating block, described index word comprises revises month number and number of days, upgrades the use cut-off date according to described modifications month number and number of days and specifically may further comprise the steps:
Revise a month number computing unit, be used for according to revise a month number=current with reference to the date the month-month on current system date, calculate user's modification moon number;
First revises a month number updating block, if be used for revising a month number〉0, then use the cut-off date the month=the last cut-off date the month-︱ revises a month number ︱;
Second revises a month number updating block, if be used for revising month number<0, then use the cut-off date the month=the last cut-off date the month+︱ revises a month number ︱;
Revise the number of days computing unit, be used for calculating user's modification number of days according to the number of days of revising number of days=current number of days with reference to the date-current system date;
First revises the number of days updating block, if be used for revising number of days〉0, then use the number of days of the number of days of cut-off date=last cut-off date-︱ to revise number of days ︱;
Second revises the number of days updating block, if be used for revising number of days<0, then uses the number of days of the number of days of cut-off date=last cut-off date+︱ to revise number of days ︱.
18. computing machine term of life according to claim 11 limits system, it is characterized in that, when being included in the computer booting power-on self-test beginning in the first storage unit, obtains real-time clock information.
19. computing machine term of life according to claim 18 limits system, it is characterized in that, comprises before the computer booting power-on self-test, whether detection is identical with the use cut-off date with reference to the date, if be yes, then enters the locking off-mode.
20. computing machine term of life according to claim 11 limits system, it is characterized in that, when being included in computer shutdown in the first storage unit, obtains real-time clock information.
CN201110277676.1A 2011-09-19 2011-09-19 A kind of computing machine term of life limits method and system Expired - Fee Related CN102999734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110277676.1A CN102999734B (en) 2011-09-19 2011-09-19 A kind of computing machine term of life limits method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110277676.1A CN102999734B (en) 2011-09-19 2011-09-19 A kind of computing machine term of life limits method and system

Publications (2)

Publication Number Publication Date
CN102999734A true CN102999734A (en) 2013-03-27
CN102999734B CN102999734B (en) 2015-12-02

Family

ID=47928288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110277676.1A Expired - Fee Related CN102999734B (en) 2011-09-19 2011-09-19 A kind of computing machine term of life limits method and system

Country Status (1)

Country Link
CN (1) CN102999734B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659456A (en) * 2019-09-09 2020-01-07 北京优炫软件股份有限公司 Application software product use control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752889A (en) * 2004-09-21 2006-03-29 华为技术有限公司 Maintenance method of hand held equipment system time and method of proceeding copyright management using same
CN1822017A (en) * 2006-03-31 2006-08-23 北京飞天诚信科技有限公司 Real time clock correcting method in soft ware protecter
CN101216870A (en) * 2007-12-28 2008-07-09 北京深思洛克数据保护中心 A method for real time acquisition and remote calibration in software protection device
CN101770557A (en) * 2008-12-30 2010-07-07 上海茂碧信息科技有限公司 Method for calculating service time of software in system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752889A (en) * 2004-09-21 2006-03-29 华为技术有限公司 Maintenance method of hand held equipment system time and method of proceeding copyright management using same
CN1822017A (en) * 2006-03-31 2006-08-23 北京飞天诚信科技有限公司 Real time clock correcting method in soft ware protecter
CN101216870A (en) * 2007-12-28 2008-07-09 北京深思洛克数据保护中心 A method for real time acquisition and remote calibration in software protection device
CN101770557A (en) * 2008-12-30 2010-07-07 上海茂碧信息科技有限公司 Method for calculating service time of software in system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659456A (en) * 2019-09-09 2020-01-07 北京优炫软件股份有限公司 Application software product use control method and device
CN110659456B (en) * 2019-09-09 2021-10-15 北京优炫软件股份有限公司 Application software product use control method and device

Also Published As

Publication number Publication date
CN102999734B (en) 2015-12-02

Similar Documents

Publication Publication Date Title
US9367446B2 (en) Computer system and data recovery method for a computer system having an embedded controller
JP5340335B2 (en) Information processing device
CN107122321A (en) Hardware restorative procedure, hardware repair system and embodied on computer readable storage device
US20130103935A1 (en) Method and system for programmable power state change in a system-on-a-chip device
CN109948310B (en) Locking method and related electronic equipment
CN102880527B (en) Data recovery method of baseboard management controller
CN106648768B (en) Method and system for upgrading equipment
CN101615128A (en) A kind of method of single-chip microcomputer online upgrading and device
CN113064745B (en) Method, device and medium for reporting error information
CN105159722B (en) RTC wakes up the method and computer of system
US20080162976A1 (en) Method and apparatus of collecting timer ticks
CN101937344A (en) Computer and method for quickly starting same
CN113703557A (en) Method for clearing CMOS information, electronic equipment and clearing chip
CN102566738B (en) A kind of starting-up method of server system and server system
CN107066361A (en) The method and apparatus that a kind of utilization BMC disables corrupted internal memory
US9672048B2 (en) Electronic device and method for waking up operating system thereof
CN101281416A (en) Method for ensuring system closedown completion
CN101436097B (en) Electronic device and wake-up method thereof
CN102999734B (en) A kind of computing machine term of life limits method and system
CN109151144B (en) Hardware management method, device, system, computer equipment and storage medium
EP2691853B1 (en) Supervisor system resuming control
CN109710319B (en) Method and system for identifying in-place hard disk of computer
CN113867753B (en) Firmware updating method and system of server
CN117950737B (en) Wakeup processing method, wakeup processing device, electronic equipment and computer readable storage medium
CN103425567B (en) A kind of logger computer is truly started shooting the method and system of service life

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151202

Termination date: 20210919

CF01 Termination of patent right due to non-payment of annual fee