CN113055534A - Terminal control method and device, terminal and non-transitory storage medium - Google Patents

Terminal control method and device, terminal and non-transitory storage medium Download PDF

Info

Publication number
CN113055534A
CN113055534A CN202110335877.6A CN202110335877A CN113055534A CN 113055534 A CN113055534 A CN 113055534A CN 202110335877 A CN202110335877 A CN 202110335877A CN 113055534 A CN113055534 A CN 113055534A
Authority
CN
China
Prior art keywords
time
state
preset
mobile terminal
screen
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.)
Pending
Application number
CN202110335877.6A
Other languages
Chinese (zh)
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.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network 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 Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202110335877.6A priority Critical patent/CN113055534A/en
Publication of CN113055534A publication Critical patent/CN113055534A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The present disclosure provides a method and apparatus for terminal control, a terminal, and a non-transitory storage medium for a mobile terminal having a motion sensor. The method comprises the following steps: acquiring data of the motion sensor under a preset condition; determining the motion state of the mobile terminal within the preset time according to the data within the continuous preset time; when the motion state is a preset state, increasing the time corresponding to the preset state by preset time; and when the time is longer than the first time, the mobile terminal displays a prompt message preset mode. The terminal control method can trigger the prompt message according to the motion state of the mobile terminal.

Description

Terminal control method and device, terminal and non-transitory storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling a terminal, and a non-transitory storage medium.
Background
Smart devices have now penetrated the lives of most people and become an indispensable item for many people. However, the use of smart devices such as cell phones for extended periods of time in sports can cause significant damage to the eyes of people.
Disclosure of Invention
To solve the existing problems, the present disclosure provides a method and apparatus for terminal control, a terminal, and a non-transitory storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides a terminal control method for a mobile terminal having a motion sensor, including:
acquiring data of the motion sensor under a preset condition;
determining the motion state of the mobile terminal within the preset time according to the data within the continuous preset time;
when the motion state is a preset state, increasing the time corresponding to the preset state by preset time; and when the time is longer than the first time, the mobile terminal displays a prompt message preset mode.
In some embodiments, the present disclosure provides an apparatus for schema management, comprising:
the acquisition module is used for acquiring data of the motion sensor under a preset condition;
the determining module is used for determining the motion state of the mobile terminal in the preset time according to the data in the continuous preset time; and
the processing module is used for increasing the time corresponding to the preset state by preset time when the motion state is the preset state; and when the time is longer than the first time, the mobile terminal displays prompt information.
In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor;
wherein the at least one memory is used for storing program codes, and the at least one processor is used for calling the program codes stored in the memory to execute the method.
In some embodiments, the present disclosure provides a non-transitory storage medium for storing program code for performing the above-described method.
The terminal control scheme provided by the disclosure can trigger prompt information according to the motion state of the mobile terminal.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flowchart of a terminal control method according to an embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a terminal control method according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of a terminal control device according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a flowchart of a terminal control method according to an embodiment of the present disclosure, for example, for a mobile terminal having a motion sensor, which may include the following steps.
And S100, acquiring data of the motion sensor under a preset condition.
The mobile terminal of the embodiments of the present disclosure may include, but is not limited to, a mobile terminal device provided with a screen, such as a mobile phone, a smart phone, a notebook computer, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), and the like. Specifically, the embodiment of the present disclosure may set the screen to be lit or unlocked as a preset condition. If a screen is detected to be lit or unlocked, embodiments of the present disclosure may acquire data from a motion sensor, such as an acceleration sensor. The acceleration sensor can detect accelerations of a three-dimensional coordinate system.
S200, determining the motion state of the mobile terminal in the preset time according to the data in the continuous preset time.
Specifically, the embodiment of the present disclosure may include acquiring a value of the acceleration sensor according to a preset frequency; determining a first displacement of the mobile terminal in a first direction and a second displacement of the mobile terminal in a second direction in unit time according to the preset frequency and the numerical value; and calculating a first variance of the first displacement and a second variance of the second displacement, respectively; and if the first variance is larger than a first threshold value and/or the second variance is larger than a second threshold value, judging that the mobile terminal is in the preset state. Wherein the numerical value comprises a first acceleration in the first direction and a second acceleration in the second direction. More specifically, the first acceleration is integrated, and a first speed of the mobile terminal in the first direction is obtained; integrating the first velocity to obtain the first displacement; integrating the second acceleration to obtain a second speed of the mobile terminal in the second direction; and integrating the second speed to obtain the second displacement.
Still taking a mobile phone as an example, the preset time in the embodiment of the present disclosure may be set by a user, and taking three minutes as an example, the embodiment of the present disclosure may set to evaluate the state of the mobile phone once every three minutes. Wherein the first direction and the second direction are, for example, a horizontal direction and a vertical direction, respectively. The preset frequency represents the sampling frequency of the numerical value of the acceleration sensor, for example, acceleration in the horizontal direction and the vertical direction is collected once every two seconds, ninety sample numerical values are collected after three minutes, the variance of displacement of the ninety sample numerical values is calculated, and the motion state of the mobile phone can be judged through a threshold value. The first threshold and the second threshold may be set according to requirements, may be the same or different, and are not limited herein. The judgment of the mobile terminal state can be based on any one of the first threshold and the second threshold, for example, the first variance in the horizontal direction is greater than the first threshold or the second variance in the vertical direction is greater than the second threshold; or, the first threshold and the second threshold may be exceeded simultaneously as a criterion, and may be specifically set according to actual needs. If the mobile phone is not in the preset condition or the preset state, the scheme cannot be triggered. The foregoing examples of times are illustrative only and are not to be construed as limiting the present disclosure.
S300, when the motion state is a preset state, increasing the time corresponding to the preset state by preset time; and when the time is longer than the first time, the mobile terminal displays prompt information.
The predetermined state in the disclosed embodiment may be a bumpy state. If the mobile terminal is in a bumpy state, the embodiment of the disclosure can accumulate and acquire the time of the mobile terminal in the bumpy state. If the first state determination result is a bumpy state, the embodiment of the disclosure may count for three minutes, and perform the evaluation again until the next three minutes, and if the evaluation result is still a bumpy state, the cumulative time may be six minutes, and so on. When the mobile phone is used in a bumpy state for more than a certain time, for example, thirty minutes, the display prompt message can be set.
In addition, the embodiment of the present disclosure may further include determining the motion state, detecting the state of the screen if the motion state is still the preset state, continuing to accumulate the time if the screen is still the lighting or unlocking state, and continuously detecting the state of the screen; if the state of the screen is switched from the lightening or unlocking state to the screen extinguishing state before the time is accumulated from the first time length to the second time length, and the time that the screen is in the screen extinguishing state exceeds a third time length, the time is reset to zero; and if the time is accumulated from the first time length to the second time length and the screen state is the lighting or unlocking state all the time, triggering a preset mode of the mobile terminal. Wherein the preset mode includes turning off a backlight of the screen. More specifically, embodiments of the present disclosure may also include zeroing the time; and continuously monitoring the state of the screen, and acquiring the motion state of the mobile terminal when the screen is switched to the lighting state again.
Further, the embodiment of the disclosure can set different modes respectively for the reminding modes with different durations in the bumpy state. For example, a prompt may be given if the bump time exceeds thirty minutes, and a preset mode such as auto-off may be triggered if the bump time exceeds one hour. The above-described durations and patterns are merely examples, and are not intended to be limiting of the present disclosure.
The third time length is set to prevent misjudgment caused by screen mis-off operation. For example, after the user turns off the screen by mistake, the user immediately wakes up the screen again, and the bumpy time is still calculated in an accumulated mode; the third time period can also be set according to requirements.
As shown in fig. 2, fig. 2 is a flowchart illustrating a terminal control method according to an embodiment of the disclosure. The mode management method of the present disclosure is exemplified by taking the case where the state is judged once every three minutes and the value is collected once every two seconds in the embodiment of the present disclosure. Firstly, the bumping time is zero in the initial state; detecting whether a screen is lighted, if so, starting sampling, and acquiring the acceleration in the horizontal direction and the acceleration in the vertical direction of the acceleration sensor once every two seconds to calculate the horizontal displacement and the vertical displacement; in the above manner, the state is judged once every three minutes; if the state is a bumping state, accumulating the bumping time; when the accumulated bumpy time exceeds a threshold value, such as a first time length, a first mode is triggered, such as sending out a reminding message; if the user has no feedback, the bumpy time is continuously accumulated, and when the bumpy time accumulation exceeds another threshold value, such as a second time length, the preset mode can be further entered; and if the judgment result in the flow is negative, returning to the step of judging whether the screen is lightened. Fig. 2 includes steps for executing the present scheme once, and when entering the next cycle, the jounce time length recorded last time is first zeroed, and then the operation is the same as above. Specific numbers in the above description are for illustration only and are not to be construed as limitations of the present disclosure.
The embodiment of the disclosure can judge whether the user uses the intelligent device such as a mobile phone for a long time in a bumpy environment. On one hand, whether the mobile phone is used for a long time can be judged according to the lightening or unlocking time of the screen; on the other hand, whether the mobile phone is in a bumpy environment can be judged by using a motion sensor, such as an acceleration sensor, in the mobile phone. The mobile terminal, such as an acceleration sensor in a mobile phone, can detect accelerations from three-dimensional coordinate systems, the accelerations are integrated to obtain velocities, the velocities are further integrated to obtain the displacement of the mobile phone in unit time, and the state of the mobile terminal can be further judged according to the displacement in unit time. The embodiment of the disclosure detects whether the mobile phone is in a bumpy state or not through a sensor on the mobile terminal, for example, the mobile phone, so that the eyes of a user are protected by adopting a certain strategy, such as time-limited reminding or automatic screen closing within a limited time.
As shown in fig. 3, fig. 3 is a schematic structural diagram of a terminal control device according to an embodiment of the present disclosure. The apparatus 10 provided in this embodiment may include an obtaining module 11, a determining module 13, and a processing module 15. The obtaining module 11 may be configured to obtain data of the motion sensor under a preset condition. The determining module 13 may be configured to determine the motion state of the mobile terminal within the preset time according to the data within the continuous preset time. The processing module 15 may be configured to increase a time corresponding to the preset state by a preset time when the motion state is the preset state; and when the time is longer than the first time, the mobile terminal displays prompt information.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The terminal control method and apparatus of the present disclosure have been described above based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a non-transitory storage medium, which are explained below.
Referring now to FIG. 4, a block diagram of an electronic device (e.g., mobile terminal) 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a terminal control method for a mobile terminal having a motion sensor, including:
acquiring data of the motion sensor under a preset condition;
determining the motion state of the mobile terminal within the preset time according to the data within the continuous preset time;
when the motion state is a preset state, increasing the time corresponding to the preset state by preset time; and when the time is longer than the first time, the mobile terminal displays prompt information.
In accordance with one or more embodiments of the present disclosure, there is provided a method characterized in that the mobile terminal includes a screen; the preset condition comprises that the screen is in a lighting or unlocking state.
In accordance with one or more embodiments of the present disclosure, there is provided a method characterized in that the motion sensor comprises an acceleration sensor;
wherein the determining the motion state of the mobile terminal within the preset time according to the data within the continuous preset time comprises:
acquiring the numerical value of the acceleration sensor according to a preset frequency;
determining a first displacement of the mobile terminal in a first direction and a second displacement of the mobile terminal in a second direction in unit time according to the preset frequency and the numerical value; and
calculating a first variance of the first displacement and a second variance of the second displacement, respectively; and if the first variance is larger than a first threshold value and/or the second variance is larger than a second threshold value, judging that the mobile terminal is in the preset state.
In accordance with one or more embodiments of the present disclosure, there is provided a method characterized in that the numerical value includes a first acceleration in the first direction and a second acceleration in the second direction;
wherein the obtaining a first displacement in a first direction and a second displacement in a second direction of the mobile terminal in a unit time according to the preset frequency and the numerical value comprises:
integrating the first acceleration to obtain a first speed of the mobile terminal in the first direction; integrating the first velocity to obtain the first displacement; and
integrating the second acceleration to obtain a second speed of the mobile terminal in the second direction; and integrating the second speed to obtain the second displacement.
In accordance with one or more embodiments of the present disclosure, there is provided a method, after the mobile terminal displays a prompt message, the method further comprising:
judging the motion state, if the motion state is still the preset state, detecting the state of the screen, if the screen is still the lighting or unlocking state, continuing to accumulate the time, and continuously detecting the state of the screen;
if the state of the screen is switched from the lightening or unlocking state to the screen extinguishing state before the time is accumulated from the first time length to the second time length, and the time that the screen is in the screen extinguishing state exceeds a third time length, the time is reset to zero;
and if the time is accumulated from the first time length to the second time length and the screen state is the lighting or unlocking state all the time, triggering a preset mode of the mobile terminal.
According to one or more embodiments of the present disclosure, there is provided a method, wherein the preset mode includes turning off a backlight of the screen.
In accordance with one or more embodiments of the present disclosure, there is provided a method, wherein after the triggering a preset mode of the mobile terminal, the method further comprises:
zeroing the time; and
and continuously monitoring the state of the screen, and acquiring the motion state of the mobile terminal when the screen is switched to the lighting state again.
According to one or more embodiments of the present disclosure, there is provided a terminal-controlled apparatus for a mobile terminal having a motion sensor, including:
the acquisition module is used for acquiring the data of the motion sensor under a preset condition;
the determining module is used for determining the motion state of the mobile terminal in the preset time according to the data in the continuous preset time; and
the processing module is used for increasing the time corresponding to the preset state by preset time when the motion state is the preset state; and when the time is longer than the first time, the mobile terminal displays prompt information.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor;
wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, there is provided a non-transitory storage medium for storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A terminal control method for a mobile terminal having a motion sensor, comprising:
acquiring data of the motion sensor under a preset condition;
determining the motion state of the mobile terminal within the preset time according to the data within the continuous preset time;
when the motion state is a preset state, increasing the time corresponding to the preset state by preset time; and when the time is longer than the first time, the mobile terminal displays prompt information.
2. The method of claim 1, wherein the mobile terminal comprises a screen; the preset condition comprises that the screen is in a lighting or unlocking state.
3. The method of claim 1, wherein the motion sensor comprises an acceleration sensor;
wherein the determining the motion state of the mobile terminal within the preset time according to the data within the continuous preset time comprises:
acquiring the numerical value of the acceleration sensor according to a preset frequency;
determining a first displacement of the mobile terminal in a first direction and a second displacement of the mobile terminal in a second direction in unit time according to the preset frequency and the numerical value; and
calculating a first variance of the first displacement and a second variance of the second displacement, respectively; and if the first variance is larger than a first threshold value and/or the second variance is larger than a second threshold value, judging that the mobile terminal is in the preset state.
4. The method of claim 3, wherein the value comprises a first acceleration in the first direction and a second acceleration in the second direction;
wherein the obtaining a first displacement in a first direction and a second displacement in a second direction of the mobile terminal in a unit time according to the preset frequency and the numerical value comprises:
integrating the first acceleration to obtain a first speed of the mobile terminal in the first direction; integrating the first velocity to obtain the first displacement; and
integrating the second acceleration to obtain a second speed of the mobile terminal in the second direction; and integrating the second speed to obtain the second displacement.
5. The method of claim 2, wherein after the mobile terminal displays the prompt message, the method further comprises:
judging the motion state, if the motion state is still the preset state, detecting the state of the screen, if the screen is still the lighting or unlocking state, continuing to accumulate the time, and continuously detecting the state of the screen;
if the state of the screen is switched from the lightening or unlocking state to the screen extinguishing state before the time is accumulated from the first time length to the second time length, and the time that the screen is in the screen extinguishing state exceeds a third time length, the time is reset to zero;
and if the time is accumulated from the first time length to the second time length and the screen state is the lighting or unlocking state all the time, triggering a preset mode of the mobile terminal.
6. The method of claim 5, wherein the preset mode comprises turning off a backlight of the screen.
7. The method according to claim 5, wherein after said triggering a preset mode of the mobile terminal, the method further comprises:
zeroing the time; and
and continuously monitoring the state of the screen, and acquiring the motion state of the mobile terminal when the screen is switched to the lighting state again.
8. A terminal-controlled apparatus for a mobile terminal having a motion sensor, comprising:
the acquisition module is used for acquiring the data of the motion sensor under a preset condition;
the determining module is used for determining the motion state of the mobile terminal in the preset time according to the data in the continuous preset time; and
the processing module is used for increasing the time corresponding to the preset state by preset time when the motion state is the preset state; and when the time is longer than the first time, the mobile terminal displays prompt information.
9. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 7.
10. A non-transitory storage medium for storing program code for performing the method of any one of claims 1 to 7.
CN202110335877.6A 2021-03-29 2021-03-29 Terminal control method and device, terminal and non-transitory storage medium Pending CN113055534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110335877.6A CN113055534A (en) 2021-03-29 2021-03-29 Terminal control method and device, terminal and non-transitory storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110335877.6A CN113055534A (en) 2021-03-29 2021-03-29 Terminal control method and device, terminal and non-transitory storage medium

Publications (1)

Publication Number Publication Date
CN113055534A true CN113055534A (en) 2021-06-29

Family

ID=76516023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110335877.6A Pending CN113055534A (en) 2021-03-29 2021-03-29 Terminal control method and device, terminal and non-transitory storage medium

Country Status (1)

Country Link
CN (1) CN113055534A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513752A (en) * 2021-12-30 2022-05-17 山东信通电子股份有限公司 Mobile terminal positioning control method, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150088574A1 (en) * 2013-09-20 2015-03-26 Evernote Corporation Reminders and action items for personal interactions
CN105516454A (en) * 2015-11-23 2016-04-20 东莞酷派软件技术有限公司 Terminal control method and device
CN106055101A (en) * 2016-05-26 2016-10-26 广东欧珀移动通信有限公司 Anti-addiction prompt method, and device of mobile terminal and mobile terminal
CN106973153A (en) * 2017-03-22 2017-07-21 广东小天才科技有限公司 Eyesight protection method and device
CN108021242A (en) * 2017-12-06 2018-05-11 广东欧珀移动通信有限公司 Gyro data processing method, mobile terminal and computer-readable recording medium
CN110493459A (en) * 2019-07-31 2019-11-22 Oppo广东移动通信有限公司 Screen state control method, device, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150088574A1 (en) * 2013-09-20 2015-03-26 Evernote Corporation Reminders and action items for personal interactions
CN105516454A (en) * 2015-11-23 2016-04-20 东莞酷派软件技术有限公司 Terminal control method and device
CN106055101A (en) * 2016-05-26 2016-10-26 广东欧珀移动通信有限公司 Anti-addiction prompt method, and device of mobile terminal and mobile terminal
CN106973153A (en) * 2017-03-22 2017-07-21 广东小天才科技有限公司 Eyesight protection method and device
CN108021242A (en) * 2017-12-06 2018-05-11 广东欧珀移动通信有限公司 Gyro data processing method, mobile terminal and computer-readable recording medium
CN110493459A (en) * 2019-07-31 2019-11-22 Oppo广东移动通信有限公司 Screen state control method, device, mobile terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513752A (en) * 2021-12-30 2022-05-17 山东信通电子股份有限公司 Mobile terminal positioning control method, equipment and medium
CN114513752B (en) * 2021-12-30 2024-02-27 山东信通电子股份有限公司 Mobile terminal positioning control method, mobile terminal positioning control equipment and mobile terminal positioning control medium

Similar Documents

Publication Publication Date Title
RU2663945C1 (en) Method and device for administration of videos, and also terminal and server
CN108076218B (en) Charging reminding method and mobile terminal
EP3162284A1 (en) Communication method, apparatus and system for wearable device
CN108323237B (en) Terminal behavior triggering method and terminal
CN110287810B (en) Vehicle door motion detection method, device and computer readable storage medium
CN106655358B (en) Battery charge controller and method between a kind of mobile terminal
WO2015015047A1 (en) Distance estimation
US10373476B2 (en) Preventing the loss of wireless accessories for mobile devices
CN113741755A (en) Information processing method and device, terminal and storage medium
CN110619027B (en) House source information recommendation method and device, terminal equipment and medium
CN104994125A (en) Information sending method and device and information displaying method and device
CN113032172A (en) Abnormity detection method and device and electronic equipment
CN110673955B (en) Method, device, system, terminal and storage medium for optimizing memory
CN113055534A (en) Terminal control method and device, terminal and non-transitory storage medium
CN113093980B (en) Terminal control method and device, terminal and storage medium
CN111623799B (en) Terminal state detection method and device, terminal and storage medium
CN111935640B (en) Terminal control method and device, terminal and storage medium
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
CN112867119B (en) Terminal control method, device, terminal and storage medium
CN113055524A (en) Terminal control method and device, terminal and storage medium
CN114006988A (en) Doorbell response method, device, equipment and storage medium
CN111698368A (en) Terminal control method and device, terminal and storage medium
CN112019685A (en) Terminal control method and device, terminal and storage medium
CN110147989A (en) A kind of triggering system, the method and device of security process
CN111826883A (en) Washing control method and device, washing machine and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210629