CN100362522C - Real time clock correcting method in soft ware protecter - Google Patents
Real time clock correcting method in soft ware protecter Download PDFInfo
- Publication number
- CN100362522C CN100362522C CNB2006100668634A CN200610066863A CN100362522C CN 100362522 C CN100362522 C CN 100362522C CN B2006100668634 A CNB2006100668634 A CN B2006100668634A CN 200610066863 A CN200610066863 A CN 200610066863A CN 100362522 C CN100362522 C CN 100362522C
- Authority
- CN
- China
- Prior art keywords
- time
- software
- described device
- real
- software protecting
- 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
- Electric Clocks (AREA)
- Storage Device Security (AREA)
Abstract
The present invention relates to the field of computer security, particularly to a real time clock correcting method in a software protector. The present invention accumulates an approximate value approaching to external time by using the clock frequency of an internal processor of a software protector, and continuously corrects a clock in a device by reading a real time clock from the host computer end during use, so that a relative accurate calendar time in the protector is obtained. The present invention is free from the restriction of the service life of a battery except for satisfying a function of deadline restriction by a software developer, and the present invention can be normally used at high-temperature, low temperature or moisture environment. Thus, the service life of the software protector is free from the limitation of time.
Description
Technical field
The present invention relates to computer safety field, the real-time clock calibration steps in particularly a kind of software protecting equipment.
Technical background
People cause protected software product constantly to be weeded out the old and bring forth the new to the pay attention to day by day of software copyright protection, and function and security constantly are improved.Software product itself has a variety of demands to protected software product, and what have needs the time limit function, for example software rentals, on probation, monthly payment plan isotype, and this just requires protected software product to have clocking capability.
The software protecting equipment that uses battery is arranged at present, though this device has extraordinary ease for use aspect software development, must use battery, this has limited the practicality of this lock software protecting equipment to a certain extent.The life-span of battery is subjected to the several factors influence; can quicken the aging of battery when high temperature or humidity are too big; limited the environment for use of the software protecting equipment of charged pool, shortened the life-span of using, the capacity of adding battery itself can not reach very long tenure of use.
Summary of the invention
The present invention has overcome above-mentioned shortcoming, and the calibration steps of the real-time clock in a kind of software protecting equipment is provided.
The present invention solves the technical scheme that its technical matters takes: the real-time clock calibration steps in a kind of software protecting equipment comprises following process:
Time point from described device stored when 1) software protecting equipment powers on begins to continue the time in the integrating device;
2) and every a time interval time point in installing is upgraded, new time point is kept at device stored district;
3), the host computer system time adjustment is sent in the described device during at main frame the visit of described device;
4) according to being kept at time executive software protection operation in the described device.
Described process 3) in, can judge in described device also whether the host computer system time is legal during to the visit of described device at main frame, if legal then the main frame time is kept in the described device, if non-rule execute exception would be handled operation.
The judgement whether legal to system time, can be by the time in time in the main frame and the described device be compared, be later than the time in the device in the host computer system time, or legal for being judged to be during early than the time of time in the device in the error range that allows, otherwise be illegal.
Described process 4) the software protection operation can comprise in: add temporal information in operation or/and time executable operations control in the use device.
Described process 2) in, to the renewal of time in the described device, can be by the time in the current device being kept at a certain time interval in the described device in the non-volatile memory district.
The described interior time executable operations of described device of utilizing is controlled, and can comprise according to a plurality of software modules in the device and set a plurality of time restriction values, operates accordingly according to the relatively execution of time and time restriction value in the described device of bringing in constant renewal in.
The clock frequency of device itself can be adopted in the clock source that is used for the cumulative time in the described software protecting equipment.
The present invention is by utilizing the clock frequency of software protecting equipment internal processor; accumulative total is near the approximate value of external time; and come continuous calibrating installation internal clock by reading the main frame real-time clock from host side in use, in order to obtain calendar time in the relatively accurate device.The present invention can satisfy outside the function of software developer to the time limit restriction; no longer be subjected to the restriction in the serviceable life of battery; under the environment of high temperature low temperature or humidity, can use normally, therefore the restriction that no longer is subjected to the time serviceable life of described software protecting equipment itself.
Description of drawings
Fig. 1 is a control flow chart of the present invention
Embodiment
Below in conjunction with specific embodiment content of the present invention is done detailed description.To realizing that described software protecting equipment of the present invention locks hereinafter to be referred as clock, as shown in fig. 1, the time point from the lock stored when described clock is locked electricity begins to continue the cumulative time, as step 101; Every a time interval time point in installing is upgraded, new time point is kept in device stored district such as the step 102, the lock internal clock is all being brought in constant renewal in the time of following electricity always, keep the operation of lock internal clock; Counting in the time lock is just beginning after locking electricity, accumulated counts, and constantly data updated is written in the memory block.As in the step 103 when main frame to as described in clock lock when visit is arranged, described time interlocking is received the real-time time value from main frame, as step 104, host side is sent the host computer system time into the time lock, the time lock obtains after the actual system time, judging by step 105 whether the host computer system time is normal, whether pass through malicious modification, if then change step 113 over to, execute exception is handled operation, otherwise change in the step 106 and calibrate calendar time in the lock with the normal host computer system time, when for example each access time of main frame locked, system time in host computer system time that all will be more current and the time lock was if the host computer system time is less than system time in the time lock, then think illegal use, abnormality processing such as error flag position then are set; Otherwise utilize the time in host computer system lock time calibration, the time and the host computer system time synchronized that make time lock calculating.
Afterwards, if the host computer system time is locked interior system time greater than the time, then the time locks and obtains this clock source increment, as step 107, and the value that will increase is added on the calendar time current in the lock, as step 108, just generate new system's calendar time such as step 109.Can waste a lot of times because system time write the memory block in each visit all will be locked, therefore write once, such as write once every 5 minutes every the regular hour.This visit need judge whether to need writing time 110, if then visit is write the memory block function and the system time of current acquisition is write the memory block is preserved, as step 111, if otherwise do not need record with regard to execution in step 112, time is finished the operation that other client needs in the current lock that application obtains, in preserving lock, also forward to after the time step 112 carry out lock in other operation.
The present invention passes through said method; make software protecting equipment not realize the clock comparatively accurately of an approximate external clock by battery; utilize the clock source that has nothing to do with operation system of computer of control module simulation in the time lock; the precision in clock source can reach 1/1000 second at least; and solved clock and locked the hysteresis that the inside counting device is no longer counted the time in the lock that brings after being locked in down electricity; make that interior time of lock and host computer system are more approaching, it is accurate substantially that the interior time of lock has accomplished.
For software module is detachable situation, can come corresponding different software modules by setting a plurality of timing units, increases the dirigibility of clock lock.Promptly to each module that time restriction need be set corresponding limits value is set specifically, they constitute a data cell for contrast inquiry jointly, by time and each data cell in the described clock lock to recently controlling the operating position of each module.
More than the real-time clock calibration steps in the software protecting equipment provided by the present invention is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (7)
1. the real-time clock calibration steps in the software protecting equipment is characterized in that: comprise following process:
Time point from described device stored when 1) software protecting equipment powers on begins to continue the time in the integrating device;
2) and every a time interval time point in installing is upgraded, new time point is kept at device stored district;
3), the host computer system time adjustment is sent in the described device during at main frame the visit of described device;
4) according to being kept at time executive software protection operation in the described device.
2. the real-time clock calibration steps in the software protecting equipment according to claim 1; it is characterized in that: described process 3); also need judge in described device whether the host computer system time is legal during at main frame to the visit of described device; if legal then the main frame time is kept in the described device, if non-rule execute exception would be handled operation.
3. the real-time clock calibration steps in the software protecting equipment according to claim 2; it is characterized in that: the judgement whether legal system time; be by the time in time in the main frame and the described device is compared; be later than the time in the device in the host computer system time; or legal for being judged to be during early than the time of time in the device in the error range that allows, otherwise be illegal.
4. according to the real-time clock calibration steps in claim 1 or the 2 or 3 described software protecting equipments, it is characterized in that: the software protection operation comprises described process 4): add temporal information in operation or/and time executable operations control in the use device.
5. according to the real-time clock calibration steps in claim 1 or the 2 or 3 described software protecting equipments; it is characterized in that: described process 2); to the renewal of time in the described device, by the time in the current device being kept at a certain time interval in the described device in the non-volatile memory district.
6. the real-time clock calibration steps in the software protecting equipment according to claim 4; it is characterized in that: the described interior time executable operations of described device of utilizing is controlled; comprise according to a plurality of software modules in the device and set a plurality of time restriction values, operate accordingly according to the relatively execution of time and time restriction value in the described device of bringing in constant renewal in.
7. according to the real-time clock calibration steps in claim 1 or the 2 or 3 described software protecting equipments, it is characterized in that: the clock frequency of device itself is adopted in the clock source that is used for the cumulative time in the described software protecting equipment.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100668634A CN100362522C (en) | 2006-03-31 | 2006-03-31 | Real time clock correcting method in soft ware protecter |
JP2007096482A JP4949911B2 (en) | 2006-03-31 | 2007-04-02 | Real time calibration method of clock in software protection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100668634A CN100362522C (en) | 2006-03-31 | 2006-03-31 | Real time clock correcting method in soft ware protecter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1822017A CN1822017A (en) | 2006-08-23 |
CN100362522C true CN100362522C (en) | 2008-01-16 |
Family
ID=36923376
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100668634A Expired - Fee Related CN100362522C (en) | 2006-03-31 | 2006-03-31 | Real time clock correcting method in soft ware protecter |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP4949911B2 (en) |
CN (1) | CN100362522C (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101324799B (en) * | 2007-06-11 | 2011-08-17 | 群联电子股份有限公司 | Portable storage device and synchronization method thereof |
CN101436861B (en) * | 2007-11-16 | 2010-12-01 | 中国航天科工集团第二研究院二○三所 | Method for scaling picosecond stage time interval |
CN101261667B (en) * | 2008-04-10 | 2011-05-18 | 北京深思洛克软件技术股份有限公司 | A software protection method |
CN101770557B (en) * | 2008-12-30 | 2011-12-14 | 上海茂碧信息科技有限公司 | Method for calculating service time of software in system |
CN101621384B (en) * | 2009-07-24 | 2012-07-04 | 中兴通讯股份有限公司 | Terminal program timing method and terminal program timing device |
CN102999734B (en) * | 2011-09-19 | 2015-12-02 | 比亚迪股份有限公司 | A kind of computing machine term of life limits method and system |
CN103413070B (en) * | 2013-07-09 | 2016-08-10 | 北京深思数盾科技股份有限公司 | A kind of method and device of local clock calibration |
CN104270360A (en) * | 2014-09-28 | 2015-01-07 | 曙光信息产业股份有限公司 | Implementation method for trusteeship service time mechanism in resource trusteeship protocol |
CN109581859A (en) * | 2018-10-18 | 2019-04-05 | 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) | A kind of automatic correcting time method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999061985A1 (en) * | 1998-05-26 | 1999-12-02 | The Dow Chemical Company | Distributed computing environment using real-time scheduling logic and time deterministic architecture |
CN1294327A (en) * | 1999-10-28 | 2001-05-09 | 威盛电子股份有限公司 | Circuit for generating programmable frequency and diflective phase-locked loop clock |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1144785A (en) * | 1997-07-26 | 1999-02-16 | Victor Co Of Japan Ltd | Time setting apparatus and decoding device using the same |
JP4148118B2 (en) * | 2003-12-05 | 2008-09-10 | ヤマハ株式会社 | Electronic music apparatus and program |
-
2006
- 2006-03-31 CN CNB2006100668634A patent/CN100362522C/en not_active Expired - Fee Related
-
2007
- 2007-04-02 JP JP2007096482A patent/JP4949911B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999061985A1 (en) * | 1998-05-26 | 1999-12-02 | The Dow Chemical Company | Distributed computing environment using real-time scheduling logic and time deterministic architecture |
CN1294327A (en) * | 1999-10-28 | 2001-05-09 | 威盛电子股份有限公司 | Circuit for generating programmable frequency and diflective phase-locked loop clock |
Also Published As
Publication number | Publication date |
---|---|
CN1822017A (en) | 2006-08-23 |
JP2007279037A (en) | 2007-10-25 |
JP4949911B2 (en) | 2012-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100362522C (en) | Real time clock correcting method in soft ware protecter | |
CN103413070B (en) | A kind of method and device of local clock calibration | |
EP3125491B1 (en) | Communication terminal and program | |
US9626119B2 (en) | Using counters and a table to protect data in a storage device | |
CN100447776C (en) | Embedded safety ship of real-time clock and method for correcting real-time clock thereof | |
CN101138191A (en) | Last line of defense ensuring and enforcing sufficiently valid/current code | |
EP3457659B1 (en) | Method and system for detecting attacks on cyber-physical systems using redundant devices and smart contracts | |
CN101057435A (en) | Isolated computing environment anchored into CPU and motherboard | |
CN101395843A (en) | Digital rights management using trusted time | |
CN101770557B (en) | Method for calculating service time of software in system | |
WO2013158129A1 (en) | Microcontroller configured for external memory decrypton | |
WO2006109955A1 (en) | Method for restricting content usage in digital rights management | |
CN100470568C (en) | Method and system for keeping digital copyright management time synchronization | |
CA2567573C (en) | Adjustable free-running secure clock | |
CN109062025A (en) | A method of it introducing GPS external clock and corrects electric energy meter internal clocking failure | |
CN101216870A (en) | A method for real time acquisition and remote calibration in software protection device | |
US20060064762A1 (en) | System and method for managing expiration date for use of contents in removable media | |
CN112912846B (en) | Managing licenses for soft IP on partially reconfigurable hardware systems | |
CN104298898A (en) | Software protection method and device | |
CN101286142B (en) | Magnetic disc operating protecting method and disk control unit | |
US6823273B2 (en) | Methods and apparatus for secure programming of an electricity meter | |
CN100585610C (en) | Software protector protected by time valve and its realization method | |
US20200327627A1 (en) | Methods and systems of a blockchain for distributed-energy-project management | |
CN110119628A (en) | The method of safety operation for electronics consumption data module and consumption data module | |
CN114356618A (en) | Offline license time management and control method, system and readable storage medium |
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 | ||
C56 | Change in the name or address of the patentee |
Owner name: FEITIAN TECHNOLOGIES CO., LTD. Free format text: FORMER NAME: BEIJING FEITIAN CHENGXIN TECHNOLOGY CO., LTD. |
|
CP03 | Change of name, title or address |
Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B block 17 layer Patentee after: Feitian Technologies Co.,Ltd. Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 40 research, 7A building, 5 floor Patentee before: FEITIAN TECHNOLOGIES Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080116 |
|
CF01 | Termination of patent right due to non-payment of annual fee |