CN111880847B - Self-adjusting method, device, equipment and storage medium for working state of terminal - Google Patents

Self-adjusting method, device, equipment and storage medium for working state of terminal Download PDF

Info

Publication number
CN111880847B
CN111880847B CN202010617005.4A CN202010617005A CN111880847B CN 111880847 B CN111880847 B CN 111880847B CN 202010617005 A CN202010617005 A CN 202010617005A CN 111880847 B CN111880847 B CN 111880847B
Authority
CN
China
Prior art keywords
time
terminal
interval
self
data obtained
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.)
Active
Application number
CN202010617005.4A
Other languages
Chinese (zh)
Other versions
CN111880847A (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 Wanwei Technology Co ltd
Original Assignee
Shanghai Wanwei 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 Wanwei Technology Co ltd filed Critical Shanghai Wanwei Technology Co ltd
Priority to CN202010617005.4A priority Critical patent/CN111880847B/en
Publication of CN111880847A publication Critical patent/CN111880847A/en
Application granted granted Critical
Publication of CN111880847B publication Critical patent/CN111880847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Abstract

The invention discloses a self-adjusting method, a device, equipment and a storage medium for the working state of a terminal, wherein the self-adjusting method comprises the steps of obtaining the time for uploading data by the terminal for many times; calculating the interval between two adjacent times; adjusting the working state of the terminal according to the time interval; the self-adjusting method can better maintain the consistency of the actual state and the display state of the terminal by acquiring the time of the data of the terminal, adjusting the working state of the terminal according to the time interval and comprehensively considering the change of the online mode of the terminal, and provides reliable application for different application occasions.

Description

Self-adjusting method, device, equipment and storage medium for working state of terminal
Technical Field
The present invention relates to the field of terminals of internet of things, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting a working state of a terminal.
Background
The current states of the intelligent terminal of the Internet of things are mainly divided into an online state, a dormant state and an offline state. The duration of the three states depends primarily on manual settings or fixed times. For example, in most cases, the switching from online to dormant is that data of the internet of things terminal cannot be received within 1 hour, and the switching from dormant to offline is that data of the internet of things terminal cannot be received within 1 day. This approach is not flexible enough to be used in many dynamic scenarios and industries. For example, in some industries, data are uploaded for 1 time in 1 day by the internet of things terminal and fit the current calculation mode, while in some industries, data are uploaded for 1 week, for example, a smart meter, and in this case, the display state of the internet of things smart terminal cannot fit the actual state well.
Disclosure of Invention
In order to solve the problem that the working state of the existing terminal cannot be automatically adjusted according to the actual condition so as to waste energy and reduce the service life, the invention provides a method, a device, equipment and a storage device which can automatically adjust the working state of the terminal according to the actual condition.
In order to achieve the above object, an aspect of the present invention provides a method for self-adjusting an operating state of a terminal, including: acquiring the time of data uploading of the terminal for multiple times; calculating the interval between two adjacent times; and adjusting the working state of the terminal according to the time interval.
Wherein, the adjusting the working state of the terminal according to the time interval further comprises: comparing the size of the interval between two adjacent times; calculating the time to be adjusted according to the size of the interval between two adjacent times of time; and setting the time to be adjusted as the time for converting the terminal from the online state or the dormant state to the offline state.
In the above self-adjusting method, the calculating the time to be adjusted according to the size of the interval between two adjacent times further includes: if Δ t3 > Δ t2 and Δ t3 > Δ t1, then t is Δ t 3; if Δ t3 is less than or equal to Δ t2, then t ═ Δ t1+ Δ t2+ Δ t 3)/3; otherwise, t is (delta t2+ delta t 3)/2; wherein, Δ t1 is a time interval from the time of the terminal uploading data obtained for the first time to the time of the terminal uploading data obtained for the second time; the delta t2 is the time interval from the time of the terminal uploading data acquired for the second time to the time of the terminal uploading data acquired for the third time; Δ t3 is the time interval from the time of the terminal uploading data obtained for the third time to the time of the terminal uploading data obtained for the fourth time; t is the time to be adjusted.
As a preferable technical solution, the setting the time to be adjusted as the time when the terminal is switched from the sleep mode to the offline mode further includes: repeating the above steps to reset the time to be adjusted.
Preferably, the terminal is an internet of things terminal.
Based on the same inventive principle, the invention also provides a self-adjusting device for the working state of the terminal, which comprises: the acquisition module is used for acquiring the time of the terminal for uploading data; the processing module is used for calculating the interval between two adjacent times; and the setting module is used for adjusting the working state of the terminal according to the time interval.
In the self-adjusting device, the setting module is specifically configured to compare the size of the interval between two adjacent times; calculating the time to be adjusted according to the size of the interval between two adjacent times of time; and setting the time to be adjusted as the time for converting the terminal from the online state or the dormant state to the offline state.
In the above self-adjusting device, as a preferred technical solution, the terminal is an internet of things terminal.
In addition, based on the same inventive principle, the present invention also provides a self-adjusting device for terminal working state, where the device includes a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the computer program to implement the steps of the self-adjusting method for terminal working state as described above.
Based on the same inventive principle, the present invention further provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-mentioned method for self-adjusting the operating state of a terminal.
Compared with the prior art, the invention has the beneficial effects that: the self-adjusting method of the invention adjusts the working state of the terminal according to the time interval by acquiring the time of the data of the terminal, comprehensively considers the change of the online mode of the terminal, can better maintain the consistency of the actual state and the display state of the terminal, and provides reliable application for different application occasions.
Drawings
FIG. 1 is an overall flow chart of the self-tuning method of the present invention;
FIG. 2 is a partial flow diagram of a self-tuning method of the present invention;
FIG. 3 is a block diagram of the self-adjusting device of the present invention;
fig. 4 is a block diagram of the self-adjusting apparatus of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and 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.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
The relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description. Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
As shown in fig. 1, an embodiment of the present application provides a method for self-adjusting an operating state of a terminal, including the following steps:
s10: acquiring the time of data uploading of the terminal for multiple times; in this embodiment, the time for the terminal to upload data for the last four times is obtained.
It should be noted that, although in this embodiment, the time for the terminal to upload the data last four times is obtained, these times may be continuous or discontinuous, and if the time is discontinuous, the interval between two adjacent times of data obtained adjacently is the same.
Optionally, the terminal selects an internet of things terminal, the internet of things terminal belongs to intermediate devices of a sensing network layer and a transmission network layer and is also a key device of the internet of things, and various external sensing data can be collected and processed through conversion and acquisition of the terminal, and the data is transmitted to the internet through various network interface modes, such as a data acquisition terminal, an internet of things device in an intelligent home, and the like.
S20: calculating the interval between two adjacent times; in particular, Δ t1 ═ t2-t 1; Δ t2-t 3-t 2; Δ t3-t 4-t3, wherein t1 is the time when the data is uploaded by the terminal acquired for the first time; t2 time of terminal upload data acquired for the second time; t3 is the time of the terminal uploading data obtained for the third time; t4 is the time for the terminal to upload data obtained for the fourth time; Δ t1 is the time interval from the time when the data is uploaded by the terminal acquired for the first time to the time when the data is uploaded by the terminal acquired for the second time; the delta t2 is the time interval from the time of the terminal uploading data acquired for the second time to the time of the terminal uploading data acquired for the third time; Δ t3 is the time interval from the time of the terminal uploading data obtained for the third time to the time of the terminal uploading data obtained for the fourth time; t is the time to be adjusted.
S30: and adjusting the working state of the terminal according to the time interval.
As shown in fig. 2: the method also comprises the following steps:
s301: comparing the size of the interval between two adjacent times; specifically, the sizes of Δ t1, Δ t2, and Δ t3 are compared.
S302: and calculating the time to be adjusted according to the size of the interval between two adjacent times.
The specific adjustment method is as follows: if Δ t3 > Δ t2 and Δ t3 > Δ t1, then t is Δ t 3; if Δ t3 is less than or equal to Δ t2, then t ═ Δ t1+ Δ t2+ Δ t 3)/3; otherwise, t is (delta t2+ delta t 3)/2; wherein, Δ t1 is a time interval from the time of the terminal uploading data obtained for the first time to the time of the terminal uploading data obtained for the second time; the delta t2 is the time interval from the time of the terminal uploading data acquired for the second time to the time of the terminal uploading data acquired for the third time; Δ t3 is the time interval from the time of the terminal uploading data obtained for the third time to the time of the terminal uploading data obtained for the fourth time; t is the time to be adjusted.
For example, assuming that Δ t1, Δ t2, and Δ t3 are 24 hours, 36 hours, and 48 hours, respectively, t is 48 hours as shown in the formula t Δ t 3;
assuming that Δ t1, Δ t2 and Δ t3 are 24 hours, 36 hours and 24 hours, respectively, t is 28 hours according to the formula (Δ t1+ Δ t2+ Δ t 3)/3;
assuming that Δ t1, Δ t2, and Δ t3 are 48 hours, 24 hours, and 36 hours, respectively, t is 30 hours as shown by the formula (Δ t2+ Δ t 3)/2.
S303: and setting the time to be adjusted as the time for converting the terminal from the online state or the dormant state to the offline state.
Specifically, after the time t to be adjusted is calculated, the time t to be adjusted is set as the time for the terminal to change from the online state or the dormant state to the offline state, the time is calculated from the time when the terminal uploads data last time, and after the time reaches the set time to be adjusted, the terminal is changed from the online state or the dormant state to the offline state until being awakened next time, so that resources can be effectively saved, and meanwhile, the service life of the terminal can be prolonged.
Optionally, the above steps are repeated to reset the time to be adjusted. Specifically, data can be collected again at a certain time, and the steps are repeated, so that the working state of the terminal can be continuously adjusted according to the actual situation, the terminal can be more intelligent, and the terminal is convenient for a user to use.
As shown in fig. 3, in some embodiments, the present invention provides a self-adjusting apparatus 10 for terminal operating conditions, the self-adjusting apparatus comprising:
an obtaining module 101, configured to obtain time for a terminal to upload data; in this embodiment, it is the time for acquiring the last four times of data uploaded by the terminal.
A processing module 102, configured to calculate an interval between two adjacent times; in particular, Δ t1 ═ t2-t 1; Δ t2-t 3-t 2; Δ t3-t 4-t3, wherein t1 is the time when the data is uploaded by the terminal acquired for the first time; t2 time of terminal upload data acquired for the second time; t3 is the time of the terminal uploading data obtained for the third time; t4 is the time for the terminal to upload data obtained for the fourth time; Δ t1 is the time interval from the time when the data is uploaded by the terminal acquired for the first time to the time when the data is uploaded by the terminal acquired for the second time; the delta t2 is the time interval from the time of the terminal uploading data acquired for the second time to the time of the terminal uploading data acquired for the third time; Δ t3 is the time interval from the time of the terminal uploading data obtained for the third time to the time of the terminal uploading data obtained for the fourth time; t is the time to be adjusted.
And the setting module 103 is configured to adjust the working state of the terminal according to the time interval. Specifically, the method is used for comparing the size of the interval between two adjacent times, namely comparing the sizes of Δ t1, Δ t2 and Δ t 3; then, the time to be adjusted is calculated according to the size of the interval between two adjacent times, and the specific adjustment manner has been described in detail in the above self-adjustment method, and will not be described herein again. And finally, setting the time to be adjusted as the time for converting the terminal from the online state or the dormant state to the offline state.
As shown in fig. 4, in some embodiments, the present invention further provides a self-adjusting device 20 for terminal operation state, the data processing device includes a memory 201, a processor 202 and a computer program 203 stored in the memory and operable on the processor, and the processor executes the computer program to implement the steps of the self-adjusting method for terminal operation state described above.
Such devices include, but are not limited to, computers, smart phones, tablets, and the like.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus, the technical problems to be solved thereby, and the technical effects to be achieved thereby, refer to the corresponding process in the foregoing method embodiments, the technical problems to be solved thereby, and the technical effects to be achieved thereby, and are not described herein again.
In addition, in some embodiments, the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program, when executed, includes some or all steps of the self-adjusting method for the terminal operating state described in any of the above method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A self-adjusting method of a terminal working state is characterized by comprising the following steps:
acquiring the time of data uploading of the terminal for multiple times;
calculating the interval between two adjacent times;
adjusting the working state of the terminal according to the time interval;
the adjusting the working state of the terminal according to the time interval further comprises:
comparing the size of the interval between two adjacent times;
calculating the time to be adjusted according to the size of the interval between two adjacent times of time;
setting the time to be adjusted as the time for converting the terminal from the online state or the dormant state to the offline state;
the calculating the time to be adjusted according to the size of the interval between two adjacent times further comprises:
if Δ t3 > Δ t2 and Δ t3 > Δ t1, then t is Δ t 3;
if Δ t3 is less than or equal to Δ t2, then t ═ Δ t1+ Δ t2+ Δ t 3)/3;
otherwise, t is (delta t2+ delta t 3)/2;
wherein, Δ t1 is a time interval from the time of the terminal uploading data obtained for the first time to the time of the terminal uploading data obtained for the second time; Δ t2 is the time interval from the time of the terminal uploading data obtained for the second time to the time of the terminal uploading data obtained for the third time; Δ t3 is the time interval from the time of the terminal uploading data obtained for the third time to the time of the terminal uploading data obtained for the fourth time; t is the time to be adjusted.
2. The self-adjusting method of claim 1, wherein the setting the time to be adjusted as the time for the terminal to go from sleep to offline further comprises:
repeating the above steps to reset the time to be adjusted.
3. The self-adjustment method according to claim 1, characterized in that: the terminal is an internet of things terminal.
4. A self-adjusting apparatus of a terminal operating state, comprising:
the acquisition module is used for acquiring the time of the terminal for uploading data;
the processing module is used for calculating the interval between two adjacent times;
the setting module is used for adjusting the working state of the terminal according to the time interval;
the setting module is specifically used for comparing the size of the interval between two adjacent times;
calculating the time to be adjusted according to the size of the interval between two adjacent times of time;
setting the time to be adjusted as the time for converting the terminal from the online state or the dormant state to the offline state;
the calculating the time to be adjusted according to the size of the interval between two adjacent times comprises the following steps:
if Δ t3 > Δ t2 and Δ t3 > Δ t1, then t is Δ t 3;
if Δ t3 is less than or equal to Δ t2, then t ═ Δ t1+ Δ t2+ Δ t 3)/3;
otherwise, t is (delta t2+ delta t 3)/2;
wherein, Δ t1 is a time interval from the time of the terminal uploading data obtained for the first time to the time of the terminal uploading data obtained for the second time; Δ t2 is the time interval from the time of the terminal uploading data obtained for the second time to the time of the terminal uploading data obtained for the third time; Δ t3 is the time interval from the time of the terminal uploading data obtained for the third time to the time of the terminal uploading data obtained for the fourth time; t is the time to be adjusted.
5. The self-adjusting device of claim 4, wherein: the terminal is an internet of things terminal.
6. A self-adjusting device of the operating state of a terminal, said device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor, when executing said computer program, implements the steps of a self-adjusting method of the operating state of a terminal as claimed in any one of claims 1 to 3.
7. A storage medium storing a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of a method for self-adjusting the operating state of a terminal according to any one of claims 1 to 3.
CN202010617005.4A 2020-06-30 2020-06-30 Self-adjusting method, device, equipment and storage medium for working state of terminal Active CN111880847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010617005.4A CN111880847B (en) 2020-06-30 2020-06-30 Self-adjusting method, device, equipment and storage medium for working state of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010617005.4A CN111880847B (en) 2020-06-30 2020-06-30 Self-adjusting method, device, equipment and storage medium for working state of terminal

Publications (2)

Publication Number Publication Date
CN111880847A CN111880847A (en) 2020-11-03
CN111880847B true CN111880847B (en) 2021-03-30

Family

ID=73157379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010617005.4A Active CN111880847B (en) 2020-06-30 2020-06-30 Self-adjusting method, device, equipment and storage medium for working state of terminal

Country Status (1)

Country Link
CN (1) CN111880847B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959295A (en) * 2010-09-21 2011-01-26 中兴通讯股份有限公司 Energy-saving management method, system and remote management server of wireless sensor network
CN102547944A (en) * 2012-03-11 2012-07-04 上海宜云物联科技有限公司 Gate of internet of things for implementing long-term operation in environment without electricity and implementation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140104156A (en) * 2013-02-20 2014-08-28 한국전자통신연구원 Apparatus and method for controlling terminal based on living pattern

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959295A (en) * 2010-09-21 2011-01-26 中兴通讯股份有限公司 Energy-saving management method, system and remote management server of wireless sensor network
CN102547944A (en) * 2012-03-11 2012-07-04 上海宜云物联科技有限公司 Gate of internet of things for implementing long-term operation in environment without electricity and implementation method

Also Published As

Publication number Publication date
CN111880847A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN101510167B (en) A kind of method of plug-in component operation, Apparatus and system
US20150341850A1 (en) Dynamic and adaptive channel scanning
US9460483B2 (en) Methods, systems and apparatus to manage power consumption of a graphics engine
CN105429300B (en) power monitoring method and system
CN106095047B (en) Control method and electronic equipment
CN105278353A (en) Method and system for acquiring data intelligently and data processing device
CN104007806A (en) Method and device for controlling CPU frequency in Android system and equipment
CN103838353A (en) Method and terminal for controlling processor operation
WO2016184048A1 (en) Method and device for frequency management for multi-core processor cpu
CN111880847B (en) Self-adjusting method, device, equipment and storage medium for working state of terminal
WO2017063446A1 (en) Charging method, mobile terminal, and storage medium
CN106912091B (en) Control method and device and electronic equipment
CN112615726A (en) Low-power-consumption processing method and device with variable wake-up time
CN115657570B (en) Intelligent chip control method and device in low power consumption mode and storage medium
CN110726214A (en) Method and device for controlling air conditioner
CN102662762A (en) Method for effectively controlling use of memory resource of fat node
WO2017030871A1 (en) A robust mechanism for adaptive power conservation in solid-state devices
CN112636564B (en) Converter control method and device, converter, electronic device and storage medium
WO2016054902A1 (en) Central processing unit clock management method, apparatus and storage medium
CN112178862A (en) Method for controlling air purifier, air purifier and storage medium
CN112015260A (en) Method and device for adjusting performance state of processor, UEFI (unified extensible firmware interface) and storage medium
CN113625949B (en) Method, system, equipment and medium for optimizing performance consistency of solid state disk
CN115811098B (en) Wind power storage station AGC instruction optimization method and system considering power margin
CN117500033B (en) Control method, device, medium and system of temperature sensor for fire disaster early warning
CN109066645B (en) Load control method and device for direct current power supply network of facility agriculture

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant