CN106383775A - Equipment usage time recording method and device thereof - Google Patents

Equipment usage time recording method and device thereof Download PDF

Info

Publication number
CN106383775A
CN106383775A CN201510508873.8A CN201510508873A CN106383775A CN 106383775 A CN106383775 A CN 106383775A CN 201510508873 A CN201510508873 A CN 201510508873A CN 106383775 A CN106383775 A CN 106383775A
Authority
CN
China
Prior art keywords
data
groups
equipment
use time
update cycle
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
CN201510508873.8A
Other languages
Chinese (zh)
Other versions
CN106383775B (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.)
SHANGHAI JINGGE TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI JINGGE TECHNOLOGY 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 SHANGHAI JINGGE TECHNOLOGY Co Ltd filed Critical SHANGHAI JINGGE TECHNOLOGY Co Ltd
Priority to CN201510508873.8A priority Critical patent/CN106383775B/en
Publication of CN106383775A publication Critical patent/CN106383775A/en
Application granted granted Critical
Publication of CN106383775B publication Critical patent/CN106383775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention relates to the computer field, and discloses an equipment usage time recording method and a device thereof; the method comprises the following steps: updating data, representing equipment usage time and stored in a first, second and third storage space, according to an updating cycle when the equipment is in a running state; reading three sets of data stored in the storage spaces when the equipment is started; selecting the larger data from the two sets of data as the initial data of the equipment usage time, wherein difference value of the two sets doubles the update cycle, or selecting the largest data from the three sets of the data as the initial data of the equipment usage time; using the selected initial data to update the data in the first, second and third storage spaces. When data is inputted in the storage space, equipment shutdown or sudden power off will cause inputting data errors, thus causing the whole usage time recording failure; the novel method and device can solve said problems, and can effectively record the equipment usage time.

Description

Equipment use time recording method and its device
Technical field
The present invention relates to computer realm, particularly to equipment use time recording method and device.
Background technology
For can conveniently inquire about the switching on and shutting down number of times returning plant and total use time it will usually in equipment After positioned inside power-off, the functional module of storage device accumulation switching on and shutting down number of times and total use time.But, Due to equipment cabinets Highgrade integration, increase this functional module and can cause equipment volume and production cost Increase, there is no practical popularization significance.
For this reason, there is the improvement side using bottom hardware record switching on and shutting down and use time in prior art Formula, such as general increase backup power equipment, after device powers down, internal back-up source automatic, It is only supplied timing module and carry out low power operation, but, this mode needs the internal back-up source that increases to supply Electricity, and long-time without waiting back-up source to exhaust, then all data all will be lost.Also has one kind Mode is just to increase supply voltage monitoring mode:Because device powers down is the process of a voltage rapid decrease, Design periphery monitoring supply voltage functional circuit, when supply voltage is detected and dropping to certain numerical value, gives Interrupt signal of MCU (micro-control unit), coordinates bulky capacitor, ensure that completely disconnected in MCU The record of deadline before electricity, such as write EEPROM (band EEPROM). But, the peripheral circuit that this mode adopts is complex, needs to increase voltage ratio relatively and interrupt output is electric Road in addition it is also necessary to increase bulky capacitor, due to electric capacity with external environment changing factor change, less stable, When running into more rugged environment, such as winter temperature bottom, capacitance weakens, and then leads to equipment Data finishes and loses because failing write.
Content of the invention
It is an object of the invention to provide a kind of equipment use time recording method and its device, can avoid by During data inputting memory space, equipment shutdown or unexpected power-off lead to logging data to malfunction, and then Lead to the situation of whole use time record error, the use time of effective recording equipment.
For solving above-mentioned technical problem, embodiments of the present invention disclose a kind of equipment use time record Method, comprises the following steps:
When equipment is in running status, according to the update cycle to being stored in first, second, and third storage Represent in space that the data of equipment use time is updated, and wherein, deposits according to first, second, and third Data in one memory space is only updated when each update cycle expires by the order in storage space;
When equipment is activated, read three groups of data in memory space;If it is poor to exist in three groups of data Value exceedes two groups of data of twice update cycle, then choosing difference is in two groups of data of one times of update cycle Larger data is as the primary data of equipment use time, if there is not difference in three groups of data exceeded Two groups of data of twice update cycle, then choose maximum data in three groups of data as equipment use time Primary data;Data in first, second, and third memory space is all updated to the initial number chosen According to;
Wherein, first, second, and third memory space is in the nonvolatile memory.
Embodiments of the present invention also disclose a kind of equipment use time recording method, walk including following Suddenly:
When equipment is in running status, according to the update cycle to being stored in the four, the 5th and the 6th storage Represent in space that the data of equipment use time is updated, wherein, by three when each update cycle expires Data priority in individual memory space is updated;
When equipment is activated, read three groups of data in memory space;If having one in three groups of data Group data, this group data and the difference of any one in remaining two groups of data are more than one times of update cycle, then right Two groups of data outside this group data are compared;If comparative result is that two groups of data are equal, by two Arbitrary group of data in group data elects the primary data of equipment use time as, if comparative result is two groups Data is unequal, then larger one group of data in two groups of data is elected as the primary data of equipment use time; Data in four, the 5th and the 6th memory space is all updated to the primary data chosen;
Wherein, the four, the 5th and the 6th memory space is in the nonvolatile memory.
Embodiments of the present invention also disclose a kind of equipment use time recording equipment, including:
First updating block, for when equipment is in running status, according to the update cycle to being stored in First, second and the 3rd represents that the data of equipment use time is updated in memory space, wherein, according to The order of first, second, and third memory space, only by a memory space when each update cycle expires In data be updated;
First reading unit, for when equipment is activated, reading three groups of data in memory space;
, there is difference more than two for working as in three groups of data that the first reading unit reads in the first selection unit During two groups of data of times update cycle, choosing difference is larger number in two groups of data of one times of update cycle According to the primary data as equipment use time, there is not difference in three groups of data and exceed twice renewal week During two groups of data of phase, choose maximum data in three groups of data as the primary data of equipment use time;
Second updating block, for being all updated to by the data in first, second, and third memory space The primary data of one selection unit selection;
Wherein, first, second, and third memory space is in the nonvolatile memory.
Embodiments of the present invention also disclose a kind of equipment use time recording equipment, including:
4th updating block, for when equipment is in running status, according to the update cycle to being stored in 4th, represent in the 5th and the 6th memory space that the data of equipment use time is updated, wherein, every time When update cycle expires, the data priority in three memory spaces is updated;
Second reading unit, for when equipment is activated, reading three groups of data in memory space;
Comparing unit, for when there is one group of data in three groups of data, this group data and remaining two groups of data In the difference of any one more than one times of update cycle when, two groups of data outside this group data are compared;
Second selection unit, for when the comparative result of comparing unit is that two groups of data are equal, by two groups Arbitrary group of data in data elects the primary data of equipment use time as, when the comparative result of comparing unit For two groups of data comparative result unequal when, larger one group of data in two groups of data is elected as equipment to be made Primary data with the time;
5th updating block, for being all updated to just the data in the four, the 5th and the 6th memory space Beginning data;
Wherein, the four, the 5th and the 6th memory space is in the nonvolatile memory.
Compared with prior art, the main distinction and its effect are embodiment of the present invention:
It is stored in respectively in three memory spaces by the data that would indicate that equipment use time, and according to renewal In the cycle, one of three memory spaces memory space when each update cycle expires, is sequentially selected to carry out Data updates, and during can avoiding due to data inputting memory space, equipment shutdown or unexpected power-off lead to Logging data malfunctions, and then leads to the situation of whole use time record error, effective recording equipment Use time.
It is stored in respectively in three memory spaces by the data that would indicate that equipment use time, and according to renewal In the cycle, update the data in three memory spaces when each update cycle expires successively, can avoid due to number During typing memory space, equipment shutdown or unexpected power-off lead to logging data to malfunction, and then lead to The situation of whole use time record error, the use time of effective recording equipment.
Further, peripheral circuit or back power supply, the micro-control having only with equipment itself need not be increased Unit processed just can achieve the accurate recording to equipment use time and switching on and shutting down number of times, with low cost.
Brief description
Fig. 1 is that a kind of flow process of equipment use time recording method in first embodiment of the invention is illustrated Figure;
Fig. 2 is that a kind of flow process of equipment use time recording method in second embodiment of the invention is illustrated Figure;
Fig. 3 is that a kind of flow process of equipment use time recording method in second embodiment of the invention is illustrated Figure;
Fig. 4 is a kind of structural representation of equipment use time recording equipment in third embodiment of the invention Figure;
Fig. 5 is a kind of structural representation of equipment use time recording equipment in four embodiment of the invention Figure.
Specific embodiment
In the following description, in order that reader more fully understand the application and propose many technology thin Section.But, even if it will be understood by those skilled in the art that there is no these ins and outs and be based on The many variations of following embodiment and modification are it is also possible to realize the required guarantor of each claim of the application The technical scheme of shield.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to this Bright embodiment is described in further detail.
First embodiment of the invention is related to a kind of equipment use time recording method.Fig. 1 is that this equipment makes Schematic flow sheet with time recording method.
Specifically, as shown in figure 1, this equipment use time recording method comprises the following steps:
In a step 101, judge whether current device is in running status.If it is judged that being yes, Then enter step 102;Otherwise, enter step 103.
In a step 102, according to the update cycle to being stored in table in first, second, and third memory space Show that the data of equipment use time is updated, wherein, according to first, second, and third memory space Sequentially, only the data in a memory space is updated when each update cycle expires.Hereafter return Above-mentioned steps 101.
In step 103, judge whether to receive the signal that equipment is activated.If equipment quilt is detected Start, then enter step 104;Otherwise, above-mentioned steps 101 are returned.
At step 104, three groups of data in memory space are read.
Then into step 105, judge to exceed the twice update cycle with the presence or absence of difference in three groups of data Two groups of data.If it is judged that being yes, then entering step 106, otherwise entering step 107.
In step 106, choosing difference is larger data conduct in two groups of data of one times of update cycle The primary data of equipment use time.Then into step 108.
In step 107, choose maximum data in three groups of data as the initial number of equipment use time According to.Then into step 108.
In step 108, the data in first, second, and third memory space is all updated to selection Primary data.Wherein, first, second, and third memory space is in the nonvolatile memory.Hereafter return Return above-mentioned steps 101.
It is appreciated that in the embodiments of the present invention, every time to the data representing equipment use time It is updated, refer to for existing data to add the update cycle, obtain new use time, that is, to expression The data of use time is added up.
Furthermore, it is to be understood that in the other embodiment of the present invention, above-mentioned judgement step 101 and 103 Sequencing can exchange, accordingly follow-up step is adjusted, still can get identical technology Effect, here is not limited.
For the switching on and shutting down number of times of recording equipment, in a preference, further comprising the steps of:
When equipment starts, by storage to should the data of device power-up number of times be updated.
In another preference, above-mentioned nonvolatile memory has by device interior micro-control unit Band EEPROM, and the update cycle is by the timer conter within micro-control unit Triggering.Thus peripheral circuit or back power supply need not be increased, the microcontroller list having only with equipment itself Unit, just can achieve the accurate recording to equipment use time and switching on and shutting down number of times, with low cost.
It is stored in respectively in three memory spaces by the data that would indicate that equipment use time, and according to renewal In the cycle, one of three memory spaces memory space when each update cycle expires, is sequentially selected to carry out Data updates, and during can avoiding due to data inputting memory space, equipment shutdown or unexpected power-off lead to Logging data malfunctions, and then leads to the situation of whole use time record error, effective recording equipment Use time.
Second embodiment of the invention is related to a kind of equipment use time recording method.Fig. 2 is that this equipment makes Schematic flow sheet with time recording method.
As shown in Fig. 2 this equipment use time recording method comprises the following steps:
In step 201, judge whether current device is in running status.If it is judged that being yes, Then enter step 202;Otherwise, enter step 203.
In step 202., according to the update cycle to being stored in table in the four, the 5th and the 6th memory space Show that the data of equipment use time is updated, wherein, will be empty for three storages when each update cycle expires Between in data priority be updated.
In step 203, judge whether to receive the signal that equipment is activated.If equipment quilt is detected Start, then enter step 204;Otherwise, above-mentioned steps 201 are returned.
In step 204, three groups of data in memory space are read.
Then into step 205, judge to whether there is one group of data in three groups of data, this group data with surplus Remaining the difference of any one in two groups of data more than one times of update cycle.If it is judged that being yes, then enter Step 206;Otherwise, enter step 207.
In step 206, two groups of data outside this group data are compared.If comparative result is Two groups of data are equal, then arbitrary group of data in two groups of data is elected as the primary data of equipment use time, If comparative result is that two groups of data are unequal, larger one group of data in two groups of data is elected as equipment The primary data of use time.Then into step 208.
In step 207, maximum data in this three groups of data is elected as the initial number of equipment use time According to.
In a step 208, the data in the four, the 5th and the 6th memory space is all updated to selection Primary data.Wherein, the four, the 5th and the 6th memory space is in the nonvolatile memory.
Furthermore, it is to be understood that being updated to the data representing equipment use time every time, refer to Some data add the update cycle, obtain new use time, the data representing use time are carried out Cumulative.
Additionally, for the switching on and shutting down number of times of recording equipment, in a preference, this method also includes following Step:
When equipment starts, by storage to should the data of device power-up number of times be updated.
Additionally, in another preference, above-mentioned nonvolatile memory is device interior micro-control unit institute The band EEPROM (EEPROM) having, and the update cycle is by microcontroller list Timer conter triggering within unit.Specifically, as shown in figure 3, opening up 3 groups of EEPROM data Storage address (i.e. three memory spaces), when updating the data every time, updates 3 groups of storage address simultaneously In tri- groups of data of A, B, C, then no matter equipment wherein has two groups of data certainly under any circumstance It is correct, or one update cycle of difference, according to this point, after equipment is restarted, carry out first The comparison of two groups of data of A/B, if identical, or one update cycle of difference, then just by up-to-date that Group data is loaded into intervalometer, if two groups of data comparative results of A/B differ farther out, just respectively with C group number According to being compared, same method finds out that group data correct, and (if identical, or difference one is more The new cycle), the typing carrying out data updates.
This preference need not increase peripheral circuit or back power supply, the microcontroller having only with equipment itself Unit, just can achieve the accurate recording to equipment use time and switching on and shutting down number of times, with low cost.
It is stored in respectively in three memory spaces by the data that would indicate that equipment use time, and according to renewal In the cycle, update the data in three memory spaces when each update cycle expires successively, can avoid due to number During typing memory space, equipment shutdown or unexpected power-off lead to logging data to malfunction, and then lead to The situation of whole use time record error, the use time of effective recording equipment.
The each method embodiment of the present invention all can be realized in modes such as software, hardware, firmwares.No matter The present invention is to be realized with software, hardware or firmware mode, and instruction code may be stored in any class In the addressable memorizer of computer of type (for example permanent or revisable, volatibility or non- Volatibility, solid-state or non-solid, fixing or removable medium etc.).Equally, Memorizer may, for example, be programmable logic array (Programmable Array Logic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), Programmable read only memory (Programmable Read Only Memory, referred to as " PROM "), Read only memory (Read-Only Memory, referred to as " ROM "), electrically erasable are read-only Memorizer (Electrically Erasable Programmable ROM, referred to as " EEPROM "), Disk, CD, digital versatile disc (Digital Versatile Disc, referred to as " DVD ") etc..
Third embodiment of the invention is related to a kind of equipment use time recording equipment.Fig. 4 is that this equipment makes Structural representation with time recording device.
Specifically, as shown in figure 4, this equipment use time recording equipment includes:
First judging unit, for judging whether current device is in running status.
First updating block, for when the first judging unit judges that equipment is in running status, according to To being stored in first, second, and third memory space, update cycle represents that the data of equipment use time is entered Row updates, and wherein, according to the order of first, second, and third memory space, each update cycle expires When only the data in a memory space is updated.
First reading unit, for when equipment is activated, reading three groups of data in memory space.
Second judging unit, for judging to whether there is difference in three groups of data that the first reading unit reads Exceed two groups of data of twice update cycle.
First selection unit, for when the judged result of the second judging unit is to be, choosing difference is one In two groups of data of times update cycle, larger data is as the primary data of equipment use time, second When the judged result of judging unit is no, choose maximum data in three groups of data as equipment use time Primary data.
Second updating block, for being all updated to by the data in first, second, and third memory space The primary data of one selection unit selection.Wherein, first, second, and third memory space is non-volatile In memorizer.
In a preference, this device is also included with lower unit:
3rd updating block, for when equipment is activated, by storage to should device power-up number of times Data be updated.
In another preference, above-mentioned nonvolatile memory has by device interior micro-control unit Band EEPROM, and the update cycle is by the timer conter within micro-control unit Triggering.
First embodiment is the method embodiment corresponding with present embodiment, and present embodiment can be with First embodiment is worked in coordination enforcement.The relevant technical details mentioned in first embodiment are in this enforcement Still effective in mode, in order to reduce repetition, repeat no more here.Correspondingly, carry in present embodiment To relevant technical details be also applicable in first embodiment.
Four embodiment of the invention is related to a kind of equipment use time recording equipment.Fig. 5 is that this equipment makes Structural representation with time recording device.
Specifically, as shown in figure 5, this equipment use time recording equipment includes:
3rd judging unit, for judging whether current device is in running status.
4th updating block, for when the 3rd judging unit judges that equipment is in running status, according to To being stored in the four, the 5th and the 6th memory space, update cycle represents that the data of equipment use time is entered Row updates, and wherein, when each update cycle expires is updated the data priority in three memory spaces.
Second reading unit, for when equipment is activated, reading three groups of data in memory space.
4th judging unit, for judging to whether there is one group of data in three groups of data, this group data with surplus Remaining the difference of any one in two groups of data more than one times of update cycle.
Comparing unit, for when the judged result of the 4th judging unit is to be, outside this group data Two groups of data are compared.
Second selection unit, for when the comparative result of comparing unit is that two groups of data are equal, by two groups Arbitrary group of data in data elects the primary data of equipment use time as, when the comparative result of comparing unit For two groups of data comparative result unequal when, larger one group of data in two groups of data is elected as equipment to be made Primary data with the time.
3rd selection unit, for when the judged result of the 4th judging unit is no, by this three groups of data Middle maximum data elects the primary data of equipment use time as.
5th updating block, for being all updated to just the data in the four, the 5th and the 6th memory space Beginning data.Wherein, the four, the 5th and the 6th memory space is in the nonvolatile memory.
In a preference, this device is also included with lower unit:
6th updating block, for when equipment is activated, by storage to should device power-up number of times Data be updated.
Second embodiment is the method embodiment corresponding with present embodiment, and present embodiment can be with Second embodiment is worked in coordination enforcement.The relevant technical details mentioned in second embodiment are in this enforcement Still effective in mode, in order to reduce repetition, repeat no more here.Correspondingly, carry in present embodiment To relevant technical details be also applicable in second embodiment.
It should be noted that each unit mentioned in the present invention each equipment embodiment is all logical block, Physically, a logical block can be the one of a physical location or a physical location Part, can also be realized with the combination of multiple physical locations, these logical block physics realization sides of itself Formula is not most important, and the combination of the function that these logical blocks are realized is only the solution present invention and is carried The key of the technical problem going out.Additionally, for the innovative part projecting the present invention, the present invention is above-mentioned respectively to be set The unit less close with solving technical problem relation proposed by the invention is not drawn by standby embodiment Enter, this is not intended that the said equipment embodiment does not have other units.
It should be noted that in the claim and description of this patent, the first and second grades it The relational terms of class are used merely to make a distinction an entity or operation with another entity or operation, And not necessarily require or imply between these entities or operation, there is any this actual relation or suitable Sequence.And, term " inclusion ", "comprising" or its any other variant are intended to nonexcludability Comprise, so that including a series of process of key elements, method, article or equipment not only include that A little key elements, but also include other key elements being not expressly set out, or also include for this process, Method, article or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " bag Including one " key element that limits is being it is not excluded that including the process of described key element, method, article or setting Also there is other identical element in standby.
Although by referring to some of the preferred embodiment of the invention, the present invention has been shown and Description, but it will be understood by those skilled in the art that can in the form and details it be made respectively Plant and change, without departing from the spirit and scope of the present invention.

Claims (10)

1. a kind of equipment use time recording method is it is characterised in that comprise the following steps:
When equipment is in running status, according to the update cycle to being stored in first, second, and third storage Represent in space that the data of described equipment use time is updated, wherein, according to first, second and Data in one described memory space is only entered when each update cycle expires by the order of three memory spaces Row updates;
When equipment is activated, read three groups of data in described memory space;If described three groups of data Middle have two groups of data that difference exceedes the twice update cycle, then choosing difference is the two of one times of update cycle Organize larger data in data as the primary data of equipment use time, if in described three groups of data not There are two groups of data that difference exceedes the twice update cycle, then choose maximum data conduct in three groups of data The primary data of equipment use time;By the data in described first, second, and third memory space all more New is the described primary data chosen;
Wherein, described first, second, and third memory space is in the nonvolatile memory.
2. equipment use time recording method according to claim 1 is it is characterised in that also wrap Include following steps:
When equipment is activated, by storage to should the data of device power-up number of times be updated.
3. equipment use time recording method according to claim 1 and 2 it is characterised in that The band electric erazable programmable that described nonvolatile memory has by described device interior micro-control unit Read only memory, and the described update cycle is by the timer conter triggering within described micro-control unit.
4. a kind of equipment use time recording method is it is characterised in that comprise the following steps:
When equipment is in running status, according to the update cycle to being stored in the four, the 5th and the 6th storage Represent in space that the data of described equipment use time is updated, wherein, when each update cycle expires Data priority in three described memory spaces is updated;
When equipment is activated, read three groups of data in described memory space;If described three groups of data One group of data of middle presence, this group data and the difference of any one in remaining two groups of data update week more than one times Phase, then two groups of data outside this group data are compared;If described comparative result is two groups of data Equal, then arbitrary group of data in two groups of data is elected as the primary data of equipment use time, if institute Stating comparative result is that two groups of data are unequal, then electing larger one group of data in two groups of data as equipment makes Primary data with the time;Data in four, the 5th and the 6th memory space is all updated to selection Described primary data;
Wherein, described four, the 5th and the 6th memory space is in the nonvolatile memory.
5. equipment use time recording method according to claim 4 is it is characterised in that in institute State the step of the described primary data being all updated to the data in the four, the 5th and the 6th memory space choose Before rapid, further comprising the steps of:
When equipment is activated, if the difference of any two groups of data is all little in the described three groups of data reading In or be equal to one times of update cycle, then maximum data in this three groups of data is elected as equipment use time Primary data.
6. a kind of equipment use time recording equipment is it is characterised in that include:
First updating block, for when equipment is in running status, according to the update cycle to being stored in First, second and the 3rd represents that the data of described equipment use time is updated in memory space, wherein, According to the order of first, second, and third memory space, only by described in one when each update cycle expires Data in memory space is updated;
First reading unit, for when equipment is activated, reading three groups of data in described memory space;
First selection unit, for poor when existing in described three groups of data that described first reading unit reads When value exceedes two groups of data of twice update cycle, choosing difference is in two groups of data of one times of update cycle As the primary data of equipment use time, there is not difference in described three groups of data and surpass in larger data Cross the twice update cycle two groups of data when, when choosing maximum data in three groups of data and using as equipment Between primary data;
Second updating block, for all updating the data in described first, second, and third memory space Described primary data for the described first selection unit selection;
Wherein, described first, second, and third memory space is in the nonvolatile memory.
7. equipment use time recording equipment according to claim 6 is it is characterised in that also wrap Include with lower unit:
3rd updating block, for when equipment is activated, by storage to should device power-up number of times Data be updated.
8. the equipment use time recording equipment according to claim 6 or 7 it is characterised in that The band electric erazable programmable that described nonvolatile memory has by described device interior micro-control unit Read only memory, and the described update cycle is by the timer conter triggering within described micro-control unit.
9. a kind of equipment use time recording equipment is it is characterised in that include:
4th updating block, for when equipment is in running status, according to the update cycle to being stored in 4th, represent that the data of described equipment use time is updated in the 5th and the 6th memory space, wherein, Data priority in three described memory spaces is updated when expiring by the update cycle every time;
Second reading unit, for when equipment is activated, reading three groups of data in described memory space;
Comparing unit, for when there is one group of data in described three groups of data, this group data with remaining two groups When in data, the difference of any one is more than one times of update cycle, two groups of data outside this group data are carried out Relatively;
Second selection unit, for when the comparative result of described comparing unit is that two groups of data are equal, inciting somebody to action Arbitrary group of data in two groups of data elects the primary data of equipment use time as, when described comparing unit Comparative result be two groups of data comparative result unequal when, by larger in two groups of data one group of data choosing Primary data for equipment use time;
5th updating block, for being all updated to institute by the data in the four, the 5th and the 6th memory space State primary data;
Wherein, described four, the 5th and the 6th memory space is in the nonvolatile memory.
10. equipment use time recording equipment according to claim 9 is it is characterised in that go back Including with lower unit:
3rd selection unit, for when equipment is activated, when described three groups of the second reading unit reading When in data, the difference of any two groups of data is both less than or is equal to one times of update cycle, by this three groups of data Maximum data elects the primary data of equipment use time as.
CN201510508873.8A 2015-08-18 2015-08-18 Equipment uses time recording method and its device Active CN106383775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510508873.8A CN106383775B (en) 2015-08-18 2015-08-18 Equipment uses time recording method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510508873.8A CN106383775B (en) 2015-08-18 2015-08-18 Equipment uses time recording method and its device

Publications (2)

Publication Number Publication Date
CN106383775A true CN106383775A (en) 2017-02-08
CN106383775B CN106383775B (en) 2019-03-08

Family

ID=57916497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510508873.8A Active CN106383775B (en) 2015-08-18 2015-08-18 Equipment uses time recording method and its device

Country Status (1)

Country Link
CN (1) CN106383775B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107799157A (en) * 2017-11-24 2018-03-13 苏州韦科韬信息技术有限公司 A kind of method for refreshing data

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845082A (en) * 2006-04-29 2006-10-11 北京飞天诚信科技有限公司 Safety writing method for flash memory
CN101025715A (en) * 2007-03-07 2007-08-29 北京飞天诚信科技有限公司 Power-fail protection method based on two continuous logical blocks for non-volatile memory
CN101226604A (en) * 2007-01-19 2008-07-23 东信和平智能卡股份有限公司 Smart card and data write-in method
WO2008086488B1 (en) * 2007-01-10 2008-10-23 Mobile Semiconductor Corp Adaptive memory system for enhancing the performance of an external computing device
CN102890647A (en) * 2012-07-04 2013-01-23 漳州科能电器有限公司 Method and device for storing and updating data
CN103295632A (en) * 2013-05-28 2013-09-11 中国电子科技集团公司第十研究所 Method for preventing accidental power failure from causing linear accumulated data mutation
CN103440205A (en) * 2013-08-21 2013-12-11 深圳市九洲电器有限公司 Method and device for storing data of set top box
CN103699030A (en) * 2013-12-06 2014-04-02 中联重科股份有限公司 Working parameter saving device, system and method of operating mechanisms of engineering machinery
CN103886902A (en) * 2012-12-19 2014-06-25 比亚迪股份有限公司 EEPROM storage apparatus and data storage method thereof
CN103914393A (en) * 2014-04-11 2014-07-09 四川华拓光通信股份有限公司 MCU-based (microprogrammed control unit-based) non-loss FLASH storage update method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845082A (en) * 2006-04-29 2006-10-11 北京飞天诚信科技有限公司 Safety writing method for flash memory
WO2008086488B1 (en) * 2007-01-10 2008-10-23 Mobile Semiconductor Corp Adaptive memory system for enhancing the performance of an external computing device
CN101226604A (en) * 2007-01-19 2008-07-23 东信和平智能卡股份有限公司 Smart card and data write-in method
CN101025715A (en) * 2007-03-07 2007-08-29 北京飞天诚信科技有限公司 Power-fail protection method based on two continuous logical blocks for non-volatile memory
CN102890647A (en) * 2012-07-04 2013-01-23 漳州科能电器有限公司 Method and device for storing and updating data
CN103886902A (en) * 2012-12-19 2014-06-25 比亚迪股份有限公司 EEPROM storage apparatus and data storage method thereof
CN103295632A (en) * 2013-05-28 2013-09-11 中国电子科技集团公司第十研究所 Method for preventing accidental power failure from causing linear accumulated data mutation
CN103440205A (en) * 2013-08-21 2013-12-11 深圳市九洲电器有限公司 Method and device for storing data of set top box
CN103699030A (en) * 2013-12-06 2014-04-02 中联重科股份有限公司 Working parameter saving device, system and method of operating mechanisms of engineering machinery
CN103914393A (en) * 2014-04-11 2014-07-09 四川华拓光通信股份有限公司 MCU-based (microprogrammed control unit-based) non-loss FLASH storage update method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107799157A (en) * 2017-11-24 2018-03-13 苏州韦科韬信息技术有限公司 A kind of method for refreshing data

Also Published As

Publication number Publication date
CN106383775B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
TWI677694B (en) Intelligent backup capacitor management
US8837248B2 (en) Non-volatile memory storage apparatus, memory controller and data storing method
RU2278426C2 (en) Methods for storing data in energy-independent memorizing devices
CN102880519A (en) Basic input output system (BIOS) configuration batch modification method
US9519436B1 (en) Memory erasing method, memory controller, and memory storage apparatus
EP3262508B1 (en) Patrol scrub periods based on power status
US20090307412A1 (en) Memory management method for non-volatile memory and controller using the same
CN100474271C (en) Multi-level buffering type memory system and method therefor
US9652377B2 (en) Memory system
CN101770809A (en) Recovery for non-volatile memory after power loss
CN101782871A (en) Information processing device, processor and memory management method
CN102750191A (en) Method for initiating a refresh operation in a solid-state nonvolatile memory device
JPH0456396B2 (en)
CN103378986A (en) System event log recording system and method
CN108228093B (en) Method and apparatus for monitoring memory using background media scanning
CN104794063A (en) Method for controlling solid state drive with resistive random-access memory
EP3069349A1 (en) Fail safe refresh of data stored in nand memory device
CN104778974A (en) Serial memory device alert of an external host to completion of an internally self-timed operation
CN106383775A (en) Equipment usage time recording method and device thereof
CN109325373B (en) Metadata storage method, device and equipment and readable storage medium
CN107608824B (en) Nonvolatile computing device and working method thereof
US9454437B2 (en) Non-volatile logic based processing device
CN107918569B (en) Method and device for monitoring RTC chip power-down and crystal oscillator vibration-stopping
CN108962322A (en) Implement the method and system of volatile counter using nonvolatile memory
CN111192607A (en) Power-down protection method and device for storage system and related components

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and device for recording equipment usage time

Effective date of registration: 20230616

Granted publication date: 20190308

Pledgee: The Bank of Shanghai branch Caohejing Limited by Share Ltd.

Pledgor: SHANGHAI JINGGE TECHNOLOGY Co.,Ltd.

Registration number: Y2023310000253