Method and device for recording power-off duration of controller

文档序号:1950194 发布日期:2021-12-10 浏览:23次 中文

阅读说明:本技术 一种用于控制器记录断电时长的方法及装置 (Method and device for recording power-off duration of controller ) 是由 彭嘉欣 董玉红 敖道满 关富文 于 2021-09-06 设计创作,主要内容包括:本发明公开一种用于控制器记录断电时长的方法及装置。其中,该方法包括:在控制器上电的状态下,按照预设时间间隔记录时间点标记;判断时间点标记基于预设时间间隔是否是连续的;如果是不连续,则基于时间点标记的不连续情况确定断电时长。通过本发明,控制器可确定断电时长,断电时长的确定有利于为机组冷媒泄露情况提供判断依据,避免纠纷问题,进而有利于满足研发和售后需求。(The invention discloses a method and a device for recording power-off duration by a controller. Wherein, the method comprises the following steps: recording time point marks according to a preset time interval in a power-on state of the controller; determining whether the time point markers are continuous based on a preset time interval; and if the power-off duration is discontinuous, determining the power-off duration based on the discontinuous condition marked by the time point. According to the invention, the controller can determine the power-off time, and the determination of the power-off time is beneficial to providing a judgment basis for the refrigerant leakage condition of the unit, avoiding dispute problems and further being beneficial to meeting research and development and after-sale requirements.)

1. A method for a controller to record a power-off duration, the method comprising:

recording time point marks according to a preset time interval in a power-on state of the controller;

determining whether the time point marker is continuous based on the preset time interval;

and if the time point is discontinuous, determining the power-off time length based on the discontinuous condition of the time point mark.

2. The method of claim 1, wherein determining a power-off duration based on the discontinuity of the time point markers comprises:

when the time point marks are discontinuous, taking the previous time point mark of the time point mark missing period as a power-off starting time point, taking the next time point mark of the time point mark missing period as a power-off ending time point, and determining the power-off duration based on the power-off starting time point and the power-off ending time point.

3. The method of claim 1,

recording time point marks at preset time intervals, comprising:

recording the time point marks in each preset duration into a mark text according to the preset time interval based on the preset duration, and naming the mark text corresponding to each preset duration according to the time sequence information of the preset duration;

determining whether the time point marker is continuous based on the preset time interval comprises:

when the fact that a mark text different from the time sequence information of the current preset duration exists is detected, the mark text corresponding to the previous preset duration is read, and whether the time point mark in the previous preset duration is continuous or not based on the preset time interval is judged.

4. The method of claim 1,

recording time point marks at preset time intervals, comprising:

recording all the time point marks in a mark text according to the preset time interval, and dividing the time point mark corresponding to each preset time length according to the time sequence information of the preset time lengths on the basis of the preset time lengths;

determining whether the time point marker is continuous based on the preset time interval comprises:

and when the recording duration meets one preset duration, reading the time point mark corresponding to the previous preset duration, and judging whether the time point mark in the previous preset duration is continuous based on the preset time interval.

5. The method of any of claims 1-4, wherein determining whether the time point marker is continuous based on the preset time interval further comprises:

and recording judgment result information for the time point marks judged whether to be continuous or not, and deleting the records of the time point marks judged whether to be continuous or not.

6. An apparatus for a controller to record a power-off duration, the apparatus comprising:

the mark recording module is used for recording time point marks according to a preset time interval in a power-on state of the controller;

a judging module for judging whether the time point mark is continuous based on the preset time interval;

and the time length determining module is used for determining the power-off time length based on the discontinuous condition marked by the time point if the power-off time length is discontinuous.

7. The apparatus as claimed in claim 6, wherein the duration determining module is specifically configured to mark a previous time point of the time point marking missing period as a power-off start time point and mark a next time point of the time point marking missing period as a power-off end time point when the time point marking is discontinuous, and determine the power-off duration based on the power-off start time point and the power-off end time point.

8. The apparatus according to claim 6, wherein the mark recording module is configured to record the time point marks in each preset duration in one mark text according to the preset time interval based on preset durations, and name the mark text corresponding to each preset duration with the related time sequence information of the preset durations;

the judging module is used for reading a mark text corresponding to the previous preset time length when detecting that the mark text different from the time sequence information of the current preset time length exists, and judging whether the time point mark in the previous preset time length is continuous based on the preset time interval.

9. The apparatus of claim 8, wherein the mark recording module is further configured to record all the time point marks in one mark text according to the preset time interval, and based on preset durations, divide the time point mark corresponding to each preset duration according to the relevant time sequence information of the preset durations;

the judging module is further configured to read the time point mark corresponding to a previous preset duration when the recording duration satisfies one preset duration, and judge whether the time point mark in the previous preset duration is continuous based on the preset time interval.

10. The apparatus according to any one of claims 6 to 9, wherein the mark recording module is further configured to, after determining whether the time point mark is continuous based on the preset time interval, record determination result information for the time point mark determined to be continuous, and delete the record of the time point mark determined to be continuous.

11. A controller comprising the apparatus of any one of claims 6 to 10.

12. An air conditioning apparatus comprising the device of any one of claims 6 to 10.

13. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 5.

Technical Field

The invention relates to the technical field of air conditioning units, in particular to a method and a device for recording power-off duration by a controller.

Background

For a permanent magnet synchronous centrifugal unit of a commercial air conditioner, if the normal operation of the unit is required to be ensured, the power is not cut off for a long time. When dealing with after-sales problems, the refrigerant leakage of the unit may be caused by unit equipment or design problems, or may be caused by long-term power failure of the unit. If the unit cannot be powered off before delivery, if no technical means can prove that the unit is in a power-off state when the refrigerant of the unit leaks, a dispute can be caused.

The controller of the existing air conditioning unit cannot identify the condition of power failure, so that the controller cannot record the power failure before the power failure of the controller, and only can record the power-on time point when the power is on, so that the power failure time cannot be determined, and the research, development and after-sale requirements cannot be met.

Disclosure of Invention

The embodiment of the invention provides a method and a device for recording power-off duration by a controller, and aims to solve the problem that the controller cannot determine the power-off duration in the prior art.

In order to solve the technical problem, the present invention provides a method for a controller to record a power-off duration, wherein the method comprises: recording time point marks according to a preset time interval in a power-on state of the controller; determining whether the time point marker is continuous based on the preset time interval; and if the time point is discontinuous, determining the power-off time length based on the discontinuous condition of the time point mark.

Further, determining the power-off duration based on the discontinuity condition of the time point mark comprises: when the time point marks are discontinuous, taking the previous time point mark of the time point mark missing period as a power-off starting time point, taking the next time point mark of the time point mark missing period as a power-off ending time point, and determining the power-off duration based on the power-off starting time point and the power-off ending time point.

Further, recording the time point markers at preset time intervals includes: recording the time point marks in each preset duration into a mark text according to the preset time interval based on the preset duration, and naming the mark text corresponding to each preset duration according to the time sequence information of the preset duration; determining whether the time point marker is continuous based on the preset time interval comprises: when the fact that a mark text different from the time sequence information of the current preset duration exists is detected, the mark text corresponding to the previous preset duration is read, and whether the time point mark in the previous preset duration is continuous or not based on the preset time interval is judged.

Further, recording the time point markers at preset time intervals includes: recording all the time point marks in a mark text according to the preset time interval, and dividing the time point mark corresponding to each preset time length according to the time sequence information of the preset time lengths on the basis of the preset time lengths; determining whether the time point marker is continuous based on the preset time interval comprises: and when the recording duration meets one preset duration, reading the time point mark corresponding to the previous preset duration, and judging whether the time point mark in the previous preset duration is continuous based on the preset time interval.

Further, after determining whether the time point marker is continuous based on the preset time interval, the method further includes: and recording judgment result information for the time point marks judged whether to be continuous or not, and deleting the records of the time point marks judged whether to be continuous or not.

The invention also provides a device for recording the power-off duration by the controller, wherein the device comprises: the mark recording module is used for recording time point marks according to a preset time interval in a power-on state of the controller; a judging module for judging whether the time point mark is continuous based on the preset time interval; and the time length determining module is used for determining the power-off time length based on the discontinuous condition marked by the time point if the power-off time length is discontinuous.

Further, the duration determining module is specifically configured to, when the time point mark is discontinuous, mark a previous time point of the time point mark missing period as a power-off starting time point, mark a subsequent time point of the time point mark missing period as a power-off ending time point, and determine the power-off duration based on the power-off starting time point and the power-off ending time point.

Further, the mark recording module is configured to record the time point marks in each preset duration into one mark text according to the preset time interval based on preset durations, and name the mark text corresponding to each preset duration with the relevant time sequence information of the preset durations; the judging module is used for reading a mark text corresponding to the previous preset time length when detecting that the mark text different from the time sequence information of the current preset time length exists, and judging whether the time point mark in the previous preset time length is continuous based on the preset time interval.

Further, the mark recording module is further configured to record all the time point marks in one mark text according to the preset time interval, and based on a preset time length, divide the time point mark corresponding to each preset time length according to the relevant time sequence information of the preset time length; the judging module is further configured to read the time point mark corresponding to a previous preset duration when the recording duration satisfies one preset duration, and judge whether the time point mark in the previous preset duration is continuous based on the preset time interval.

Further, the mark recording module is further configured to record judgment result information for the time point mark judged to be continuous or not after judging whether the time point mark is continuous based on the preset time interval, and delete the record of the time point mark judged to be continuous or not.

In the embodiment of the invention, the time point marks are recorded according to the preset time interval in the power-on state of the controller, so that the time point marks can be continuously recorded as long as the controller is powered on, the time point marks cannot be recorded when the controller is powered off, the condition that the time point marks are discontinuous can occur, whether the time point marks are continuous based on the preset time interval is further judged, if the time point marks are discontinuous, the time period of time point mark loss can be determined according to the discontinuous condition of the time point marks, the power-off time length can be further determined by the controller, the determination of the power-off time length is favorable for providing judgment basis for the refrigerant leakage condition of a unit, the dispute problem is avoided, and further the research, development and after-sale requirements are favorably met.

Drawings

FIG. 1 is a flow chart of a method for a controller to record outage durations according to an embodiment of the present invention;

FIG. 2 is a flowchart of a method for a controller to record a power-off duration as described above according to an embodiment of the present invention;

fig. 3 is a block diagram of an apparatus for a controller to record a power-off duration according to an embodiment of the present invention;

fig. 4 is a schematic diagram of an apparatus for a controller to record a power-off duration according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.

It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.

It should be understood that although the terms first, second, third, etc. may be used to describe the first display unit and the second display unit in the embodiments of the present invention, these first display unit and second display unit should not be limited to these terms. These terms are used only to distinguish the first display unit from the second display unit. For example, the first display unit may also be referred to as a second display unit, and similarly, the second display unit may also be referred to as a first display unit without departing from the scope of embodiments of the present invention.

The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.

It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in the article or device in which the element is included.

Alternative embodiments of the present invention are described in detail below with reference to the accompanying drawings.

Example 1

Fig. 1 is a flowchart of a method for a controller to record a power-off duration according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:

step S101, recording time point marks according to a preset time interval in a power-on state of a controller;

step S102, judging whether the time point mark is continuous based on the preset time interval;

and step S103, if the time point mark is discontinuous, determining the power-off time length based on the discontinuous condition of the time point mark.

As shown in fig. 1, in this embodiment, it is proposed that, in a power-on state of the controller, the time point marks are recorded according to a preset time interval, so that the time point marks can be continuously recorded as long as the controller is powered on, and the time point marks cannot be recorded when the controller is powered off, so that a discontinuous condition of the time point marks occurs, and then whether the time point marks are continuous based on the preset time interval is determined, if the time point marks are discontinuous, a missing time period of the time point marks can be determined according to the discontinuous condition of the time point marks, and then the power-off duration can be determined by the controller, and the determination of the power-off duration is beneficial to providing a determination basis for a refrigerant leakage condition of a unit, avoiding a dispute problem, and further being beneficial to meeting research and development and after-sale requirements.

During specific implementation, the inventor of the application finds that the power-off condition cannot be recorded after the controller is powered off, so that the time point mark is recorded in the power-on state of the controller, namely the time point mark can be continuously recorded as long as the controller is powered on, the time point mark cannot be recorded when the controller is powered off, the time point mark is absent at the moment, namely the time point mark is discontinuous, so that the missing time period of the time point mark can be determined as long as the discontinuous condition of the time point mark is judged, and the power-off time duration can be conveniently determined.

In specific implementation, the duration of the preset time interval may be determined according to specific conditions, and the application is not particularly limited, and may be, for example, 1 second, 2 seconds, 3 seconds, tens of seconds, several minutes, and the like.

In specific implementation, in order to more accurately and quickly determine the continuous condition of the time point mark and the power-off time length, in this embodiment, the time point mark includes time point information of a time length level of a preset time interval, that is, the time point information included in the time point mark is accurate to the time length level of the preset time interval, for example, when the preset time interval is a time length of a second level, the time point information included in the time point mark may be accurate to the second, and when the preset time interval is a time length of a minute level, the time point information included in the time point mark may be accurate to the minute, so that the continuous condition of the recorded time point mark may be determined based on the time length of the preset time interval. In addition, the time point stamp may further include time information such as date and hour.

Specifically, the specific form of the time point mark is not limited in this application as long as the time point information of the duration level of the preset time interval is included, and for example, the time point mark may be in the form of time information, such as a date + a specific time point, or a combination of the time information and any character or symbol.

In order to take efficiency, accuracy and avoid the problem of resource waste into account, in this embodiment, it is proposed that whether the time point marks are continuous or not can be judged according to preset time, that is, the operation of judging whether the time point marks are continuous or not is triggered at intervals of the preset time. For example, recording time point marks at preset time intervals includes: recording the time point marks in each preset duration into a mark text according to the preset time interval on the basis of the preset durations, namely, each preset duration corresponds to one mark text, and naming the mark text corresponding to each preset duration according to the time sequence information of the preset durations; determining whether the time point marker is continuous based on the preset time interval comprises: when the fact that a mark text different from the time sequence information of the current preset duration exists is detected, the mark text corresponding to the previous preset duration is read, and whether the time point mark in the previous preset duration is continuous or not based on the preset time interval is judged.

In specific implementation, the preset time period may be determined according to specific situations, and may be, for example, one day, one week, one month, and the like. The time sequence information of the preset duration may be information indicating a chronological sequence of each preset duration, for example, when the preset duration is one day, the time sequence information may be date information, and when the preset duration is one week, one month, etc., the time sequence information may be a number of weeks or months, such as 1 week, 2 weeks … … or 1 month, 2 months … …, etc.

In specific implementation, the time point marks in each preset duration are respectively recorded in the process of one mark text, the time point marks are recorded in one mark text in the current preset duration, the mark text is named by the time sequence information of the current preset duration, along with the lapse of recording time, when the time sequence information of the preset duration changes, namely the current preset duration is over, a new mark text is built, the time sequence information of the next preset duration is used for naming the newly built mark text, and the recording of the time point marks in the next preset duration is started.

In specific implementation, in the process of detecting whether the markup text different from the current preset time duration time sequence information exists, real-time detection can be performed, and in order to improve the detection efficiency, periodic detection can be performed, for example, a detection period is less than a preset time duration or the detection period is less than 2 preset time durations and is greater than a preset time duration, so that the markup text different from the current preset time duration time sequence information can be efficiently detected.

In specific implementation, in this embodiment, a method for determining continuity of time point marks according to a preset duration is further provided, for example, recording time point marks according to a preset time interval includes: recording all the time point marks in a mark text according to the preset time interval, and dividing the time point mark corresponding to each preset time length according to the time sequence information of the preset time lengths on the basis of the preset time lengths; that is, all time point marks are recorded in a mark text, and the time point mark corresponding to each preset duration is divided in the mark text according to the time sequence information of the preset durations, for example, the time point mark corresponding to each preset duration is divided into a set according to the time sequence information of the preset durations, or the time point mark corresponding to each preset duration is divided at intervals of the time sequence information; determining whether the time point marker is continuous based on the preset time interval comprises: and when the recording duration meets one preset duration, reading the time point mark corresponding to the previous preset duration, and judging whether the time point mark in the previous preset duration is continuous based on the preset time interval.

In specific implementation, when all the time point marks are uniformly recorded in one mark text, whether one preset time length is met or not can be judged by judging the recording time length of the mark text or the change of time sequence information in the mark text, for example, the preset time length is taken as an example of one day, when the recording time length of the mark text meets the time length of one day or the date of the time sequence information in the mark text changes, the recording time length can be judged to meet the preset time length, the recording of the time point mark in the current preset time length is completed, at this time, the reading of the time point mark in the previous preset time length can be triggered, and the continuity condition of the time point mark in the previous preset time length based on the preset time interval is judged.

In order to reduce the memory consumption in the specific implementation, in this embodiment, it is further proposed to record judgment result information for the time point markers judged whether to be continuous, and delete the record of the time point markers judged whether to be continuous. For example, after determining whether the time point mark in the previous preset duration is continuous, the determination result information may be recorded in the power failure event text (for example, the determination result information may include information such as continuous or non-continuous power failure, or discontinuous or power failure, specific related time point mark in the discontinuous case, and the like, so as to determine the power failure duration), and then delete the mark text corresponding to the previous preset duration or delete the record of the time point mark in the previous preset duration in the mark text.

In specific implementation, in order to determine the power-off duration more accurately, in this embodiment, the process of determining the power-off duration based on the discontinuity condition of the time point markers is implemented through the following steps, for example, when the time point markers are continuous, there is no power-off period, and the power-off duration does not need to be determined; when the time point marks are discontinuous, taking the previous time point mark of the time point mark missing period as a power-off starting time point, taking the next time point mark of the time point mark missing period as a power-off ending time point, and determining the power-off duration based on the power-off starting time point and the power-off ending time point.

For example, when the time point marks are not continuous, according to the chronological order, there are two time point mark missing periods, the previous time point of the first time point mark missing period is marked as the first time point, the next time point of the first time point mark missing period is marked as the second time point, the previous time point of the second time point mark missing period is marked as the third time point, the next time point of the second time point mark missing period is marked as the fourth time point, at this time, the first time point is the power-off starting time point of the first time point mark missing period, the second time point is the power-off ending time point of the first time point mark missing period, the third time point is the power-off starting time point of the second time point mark missing period, the fourth time point is the power-off ending time point of the second time point mark missing period, and then, the time length between the first time point and the second time point can be determined based on the time relationship between the first time point and the second time point, the time length is the power-off time length corresponding to the first time point mark missing time period, the time length between the third time point and the fourth time point is determined based on the time relationship between the third time point and the fourth time point, and the time length is the power-off time length corresponding to the second time point mark missing time period.

In specific implementation, after the power-off duration is determined, besides the information such as the previous time point mark and the next time point mark of a specific power-off period can be recorded in a background power-off event text, the specific power-off duration of each power-off period can be recorded for subsequent query.

In specific implementation, as shown in fig. 2, the implementation of the method for recording the power-off duration by the controller may include the following steps:

in step S201, it is assumed that the preset time interval mentioned in the embodiment is set to T seconds, that is, the controller records a time point mark in the mark text every T seconds (e.g., every 1 second) for analyzing the power-off duration.

Step S202, after the controller is powered on, a time point mark is recorded every T seconds, and the time point mark may include: date/time (time accurate to at least seconds). The preset time length mentioned in the embodiments is taken as an example of a day, that is, a time point mark in each day is separately recorded as a mark text, the corresponding mark text in each day is named by the date of the day, and the mark text is periodically stored according to a required preset precision (for example, every 10 minutes).

Step S203, in the process of recording the time point mark, if the controller detects that the date changes and indicates that one day is finished, naming the mark text by the date of the day, simultaneously creating a new mark text, and naming the newly created mark text by the date of the new day for recording the time point mark in the new day. It should be noted that when the controller is powered off, no data is recorded into the markup text because the controller is not operational. The data of the mark-up text records will not be continuous.

Step S204, the controller may detect the markup text in real time or at regular time, and if the controller detects that there is a markup text different from the current date (indicating that there is at least a markup text of the previous day), the controller automatically reads the markup text of the previous day, and traverses the data of the markup text, and determines whether the time point markup stored in the markup text is periodically continuous according to the preset time interval, if so, step S205 is executed, and if not, step S206 is executed.

Step S205, if the time point markers in the above-mentioned mark text are recorded every T seconds (e.g. every 1 second), which indicates that the time point marker is not missing, the mark text records all the time point markers of the previous day, which indicates that the power is not turned off all day of the previous day, at this time, the controller determines that the power is not turned off on the previous day, and records the previous day as "no-power-off record" in the power-off event recording document in the background. For the purpose of reducing memory consumption, the tagged text tagged with the time point of the previous day may be selected to be deleted.

Step S206, if the time point mark is found to be lacked when traversing the mark text of the previous day, namely the time point mark is discontinuous, the previous day is powered off. The controller extracts and records the previous time point mark and the next time point mark which lack the time point mark period, and records the time point mark and the next time point mark in a power failure event recording document in the background as follows: the first recorded time point is marked as the power-off starting time point of the first power-off period, the second time point is marked as the power-off ending time point of the first power-off period, the third time point is marked as the power-off starting time point of the second power-off period, the fourth time point is marked as the power-off ending time point of the second power-off period, and so on. The traversed markup text may be selected for deletion for the purpose of reducing memory consumption.

For the marked text of the current date, the traversal analysis is performed when the marked text is copied or a page for viewing records is opened, so that program loss is reduced. And after the dates are switched, the marked text of the current date is the marked text of the previous day, the current date is analyzed again according to the steps, and the text is deleted after the analysis is finished.

Example two

Corresponding to the method for the controller to record the outage duration introduced in fig. 1, the present embodiment provides an apparatus for the controller to record the outage duration, as shown in fig. 3, which includes:

a mark recording module 10, configured to record a time point mark according to a preset time interval in a state where the controller is powered on;

a judging module 20, connected to the mark recording module 10, for judging whether the time point mark is continuous based on the preset time interval;

and a time length determining module 30, connected to the judging module 20, for determining the power-off time length based on the discontinuity condition of the time point mark if the power-off time length is discontinuous.

In an embodiment, the duration determining module is specifically configured to, when the time point mark is discontinuous, mark a previous time point of the time point mark missing period as a power-off start time point, mark a subsequent time point of the time point mark missing period as a power-off end time point, and determine the power-off duration based on the power-off start time point and the power-off end time point.

In an embodiment, the mark recording module is configured to record the time point marks in each preset duration into one mark text according to the preset time interval based on preset durations, and name the mark text corresponding to each preset duration with the relevant time sequence information of the preset durations; the judging module is used for reading a mark text corresponding to the previous preset time length when detecting that the mark text different from the time sequence information of the current preset time length exists, and judging whether the time point mark in the previous preset time length is continuous based on the preset time interval.

In an embodiment, the mark recording module is further configured to record all the time point marks in one mark text according to the preset time interval, and based on a preset time length, divide the time point mark corresponding to each preset time length according to the relevant time sequence information of the preset time length; the judging module is further configured to read the time point mark corresponding to a previous preset duration when the recording duration satisfies one preset duration, and judge whether the time point mark in the previous preset duration is continuous based on the preset time interval.

In specific implementation, in the process of recording the time point mark by the mark recording module, the time may be timed by a timing device such as a timing unit and may be implemented by a storage device such as a storage unit, for example, as shown in fig. 4, the time may be timed by a T-timer, a preset time interval is set to T, and then the time point mark may be recorded according to the preset time interval T by the storage device such as the storage unit.

In specific implementation, the above-mentioned determining module may determine whether the time mark in the previous preset duration is continuous or not, and the duration determining module determines the power-off duration through a data processing device such as a data processing unit, for example, as shown in fig. 4, the data processing unit is triggered to execute the process of determining whether the time mark in the previous preset duration is continuous or not through the timing of a timing device such as a timer, for example, the preset duration may be set to T1 through the timing of a T1 timer, and when the data processing unit detects that there is a marked text different from the time sequence information of the current preset duration or the recording duration satisfies a preset duration, the marked text corresponding to the previous preset duration or the time mark corresponding to the previous preset duration is called and traversed, and then the analyzing and determining whether the time mark in the previous preset duration is continuous or not, and specific relevant time point marks under the discontinuous condition can be extracted and stored so as to determine the power-off duration.

In an embodiment, the mark recording module is further configured to, after determining whether the time point mark is continuous based on the preset time interval, record determination result information for the time point mark determined to be continuous, and delete the record of the time point mark determined to be continuous.

EXAMPLE III

The embodiment provides an air conditioning equipment, which can comprise any device for recording the power-off time length by the controller.

Example four

The present embodiment provides a controller, which may include any of the above-mentioned devices for recording the power-off duration.

In specific implementation, the controller can be applied to air conditioning equipment, and can also be applied to other equipment with a recording, storing and operating system, for example, equipment such as a touch screen and a display panel.

EXAMPLE five

The embodiment of the present invention provides software for implementing the technical solutions described in the above embodiments and preferred embodiments.

Embodiments of the present invention provide a non-volatile computer storage medium, where a computer-executable instruction is stored in the computer storage medium, and the computer-executable instruction may execute the method for editing content in a document in any of the above method embodiments.

The storage medium stores the software, and the storage medium includes but is not limited to: optical disks, floppy disks, hard disks, erasable memory, etc.

The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.

Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种面向多类型空调末端的物联智能控制系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!