CN111600986A - Screen use time detection method, system, storage medium and mobile terminal - Google Patents

Screen use time detection method, system, storage medium and mobile terminal Download PDF

Info

Publication number
CN111600986A
CN111600986A CN202010397294.1A CN202010397294A CN111600986A CN 111600986 A CN111600986 A CN 111600986A CN 202010397294 A CN202010397294 A CN 202010397294A CN 111600986 A CN111600986 A CN 111600986A
Authority
CN
China
Prior art keywords
mobile terminal
distance
screen
time
preset condition
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
CN202010397294.1A
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.)
JRD Communication Shenzhen Ltd
Jiekai Communications Shenzhen Co Ltd
Original Assignee
Jiekai Communications Shenzhen 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 Jiekai Communications Shenzhen Co Ltd filed Critical Jiekai Communications Shenzhen Co Ltd
Priority to CN202010397294.1A priority Critical patent/CN111600986A/en
Publication of CN111600986A publication Critical patent/CN111600986A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • G01S15/08Systems for measuring distance only
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

The application provides a screen use time detection method, a system, a storage medium and a mobile terminal. According to the method and the device, the mobile terminal sends the ultrasonic waves at intervals of preset time and receives the ultrasonic waves sent back, the distance L between the mobile terminal and a user is obtained according to the time interval between the sending and receiving of the ultrasonic waves, whether the user uses the mobile terminal is determined, and the timing function is executed, paused or resumed according to the corresponding condition, so that the real screen service time of the user is obtained.

Description

Screen use time detection method, system, storage medium and mobile terminal
Technical Field
The application relates to the technical field of mobile communication, in particular to a method, a system, a storage medium and a mobile terminal for detecting screen service time.
Background
With the popularity of smart phones, people's daily lives have been kept away from smart phones. More and more users spend more than a few hours of time on a smartphone per day. Generally, a smartphone is provided with a screen use time function, but the function only records screen bright time or the time when a certain application is started. However, when the smart phone is on the bright screen or when an application is in an on state, the user does not use the smart phone, so that the time recorded by the screen use time function is not the real use time of the user.
Therefore, the present application provides a method, a system, a storage medium and a mobile terminal for detecting screen usage time to solve the above problems.
Disclosure of Invention
The embodiment of the application provides a method and a system for detecting the service time of a screen, a storage medium and a mobile terminal, and solves the problem that the screen service time function of the existing mobile terminal cannot correctly record the real service time of a user.
According to a first aspect of the present application, an embodiment of the present application provides a screen use time detection method, which is applied to a mobile terminal, and the screen use time detection method includes: when the mobile terminal is in a bright screen state, acquiring the distance L between the mobile terminal and a user at preset time intervals; judging whether the distance L meets a preset condition, wherein the preset condition is that the distance a is more than or equal to L and less than or equal to b, and both the distance a and the distance b are positive real numbers; and executing a timing function to acquire the screen service time when the distance L is judged to meet the preset condition.
Further, when the distance L is judged not to meet the preset condition, the timing function is suspended; and recovering the timing function until the distance L meets the preset condition again.
Further, the timing function is reset every preset period.
Further, when the mobile terminal is in a bright screen state, the step of obtaining the distance L between the mobile terminal and the user at preset time intervals includes: the mobile terminal sends out ultrasonic waves and receives the ultrasonic waves sent back at preset time intervals; acquiring a time interval between sending and receiving ultrasonic waves; and acquiring the distance L between the mobile terminal and the user according to the time interval and the propagation speed of the ultrasonic waves in the air.
According to a second aspect of the present application, an embodiment of the present application provides a screen usage time detection system, which is applied to a mobile terminal, and the screen usage time detection system includes: the distance acquisition module is used for acquiring the distance L between the mobile terminal and a user at preset time intervals when the mobile terminal is in a bright screen state; the judging module is used for judging whether the distance L meets a preset condition, wherein the preset condition is that a is more than or equal to L and less than or equal to b, and both a and b are positive real numbers; and the execution module is used for executing a timing function to acquire the service time of the screen when the distance L is judged to meet the preset condition.
Further, the system further comprises a recovery module, wherein the recovery module is used for suspending the timing function when the distance L is judged not to meet the preset condition; and the pause module is used for recovering the timing function until the distance L meets the preset condition again.
Further, the system further comprises a reset module, wherein the reset module is used for resetting the timing function every preset period.
Further, the distance acquisition module includes: the ultrasonic unit is used for sending ultrasonic waves by the mobile terminal every preset time and receiving the ultrasonic waves sent back; a time acquisition unit for acquiring a time interval between transmission and reception of ultrasonic waves; and the distance acquisition unit is used for acquiring the distance L between the mobile terminal and the user according to the time interval and the propagation speed of the ultrasonic waves in the air.
According to a third aspect of the present application, an embodiment of the present application provides a storage medium having a plurality of instructions stored therein, the instructions being adapted to be loaded by a processor to perform the screen usage time detection method described above.
According to a fourth aspect of the present application, an embodiment of the present application provides a mobile terminal, which includes a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the screen usage time detection method.
The embodiment of the application provides a method, a system, a storage medium and a mobile terminal for detecting screen service time, wherein the mobile terminal sends ultrasonic waves at intervals of preset time and receives the ultrasonic waves sent back, the distance L between the mobile terminal and a user is obtained according to the time interval between the sending and receiving of the ultrasonic waves, whether the user uses the mobile terminal is determined, and a timing function is executed, paused or resumed according to corresponding conditions, so that the real screen service time of the user is obtained.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart illustrating steps of a method for detecting screen use time according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of step S11 shown in fig. 1.
Fig. 3 is a schematic structural diagram of a screen use time detection system according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of the distance acquisition module shown in fig. 3.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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 application.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
In particular embodiments, the drawings discussed below and the various embodiments used to describe the principles of the present disclosure are by way of illustration only and should not be construed to limit the scope of the present disclosure. Those skilled in the art will understand that the principles of the present application may be implemented in any suitably arranged system. Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. Further, a mobile terminal according to an exemplary embodiment will be described in detail with reference to the accompanying drawings. Like reference symbols in the various drawings indicate like elements.
The terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the concepts of the present application. Unless the context clearly dictates otherwise, expressions used in the singular form encompass expressions in the plural form. In the present specification, it will be understood that terms such as "including," "having," and "containing" are intended to specify the presence of the features, integers, steps, acts, or combinations thereof disclosed in the specification, and are not intended to preclude the presence or addition of one or more other features, integers, steps, acts, or combinations thereof. Like reference symbols in the various drawings indicate like elements.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Specifically, referring to fig. 1, an embodiment of the present application provides a method for detecting screen use time, where the method for detecting screen use time is used in a mobile terminal, and includes the following steps.
And step S11, when the mobile terminal is in a bright screen state, acquiring the distance L between the mobile terminal and a user at preset time intervals.
In the embodiment of the present application, the preset time may preferably be 30s, but is not limited thereto. If the time setting is too short, the distance measurement is frequent, and the electricity consumption is easy; if the setting time is too long, the distance between the two devices may change during the setting time, and the distance measurement is not accurate.
See fig. 2. Step S11 specifically includes the following steps.
And step S111, sending out ultrasonic waves by the mobile terminal every preset time and receiving the sent ultrasonic waves.
In step S112, the time interval between the transmission and reception of the ultrasonic wave is acquired.
And step S113, acquiring the distance L between the mobile terminal and the user according to the time interval and the propagation speed of the ultrasonic wave in the air.
In the embodiment of the present application, the distance L is obtained by an echo sounding method in ultrasonic ranging. Specifically, an ultrasonic transmitter (such as a receiver) of the mobile terminal transmits ultrasonic waves to a certain direction, a counter (arranged in the mobile terminal) starts timing at the same time of transmitting time, the ultrasonic waves are transmitted in the air and immediately reflected back after encountering a barrier (the face of a user) in the process of being blocked, and an ultrasonic receiver (such as a microphone) immediately stops timing after receiving the reflected ultrasonic waves. The propagation speed of the ultrasonic wave in the air is 340m/s, and the distance L of the emitting point from the obstacle (the face of the user) can be calculated according to the time recorded by the timer.
And step S12, judging whether the distance L meets a preset condition, wherein the preset condition is that L is more than or equal to a and less than or equal to b, and both a and b are positive real numbers. If yes, go to step S13. If not, step S14 is executed.
In the embodiment of the present application, in general, when a user uses a mobile terminal, the user is 8cm to 60cm away from the mobile terminal, so a may be preferably 8cm, and b may be preferably 60cm, but the value ranges of a and b are not limited thereto. If the setting a is too small, the screen is placed in a pocket of a user to be bright, the service time of the screen is also calculated, and if the setting b is too large, the screen is bright when the mobile terminal is not used, the service time of the screen is also calculated, so that the service time of the screen is inaccurate.
And step S13, when the distance L is judged to meet the preset condition, executing a timing function to acquire the screen service time.
In the embodiment of the present application, when the distance L satisfies the preset condition, it indicates that the user is using the mobile terminal, so that a timing function (a counter starts counting) is performed to obtain the screen usage time.
And step S14, when the distance L is judged not to meet the preset condition, the timing function is suspended.
In the embodiment of the present application, when the distance L does not satisfy the preset condition, it indicates that the user does not use the mobile terminal at this time, so that the timing function (the counter suspends counting) is suspended to avoid increasing the time that the user uses the screen.
Step S15, it is determined again whether the distance L satisfies the preset condition. If yes, go to step S16. If not, step S14 is executed.
And step S16, recovering the timing function until the distance L meets the preset condition again.
In the embodiment of the present application, when the user satisfies the preset condition again, it indicates that the user restarts using the mobile terminal at this time, so the counting function is resumed (the counter resumes counting on the basis of the previous time) to obtain the real screen usage time of the user.
In step S17, the timing function is reset every preset period.
In the embodiment of the present application, the preset period generally includes one day, and the timer function is reset to record the screen usage time of the user every day.
Referring to fig. 3, an embodiment of the present application provides a system for detecting screen use time, where the method for detecting screen use time is applied to a mobile terminal, and the system includes a distance obtaining module 301, a determining module 302, an executing module 303, a suspending module 304, a resuming module 305, and a resetting module 306.
The distance obtaining module 301 is configured to obtain a distance L between the mobile terminal and the user every preset time when the mobile terminal is in a bright screen state.
In the embodiment of the present application, the preset time may preferably be 30s, but is not limited thereto. If the time setting is too short, the distance measurement is frequent, and the electricity consumption is easy; if the setting time is too long, the distance between the two devices may change during the setting time, and the distance measurement is not accurate.
See fig. 4. The distance acquisition module 301 specifically includes an ultrasonic unit 401, a time acquisition unit 402, and a distance acquisition unit 403.
The ultrasonic unit 401 is configured to send an ultrasonic wave and receive the ultrasonic wave sent back at preset intervals.
The time acquisition unit 402 is used to acquire the time interval between the emission and reception of the ultrasonic waves.
The distance acquiring unit 403 is configured to acquire the distance L between the mobile terminal and the user according to the time interval and the propagation speed of the ultrasonic wave in the air.
In the embodiment of the present application, the distance L is obtained by an echo sounding method in ultrasonic ranging. Specifically, an ultrasonic transmitter (such as a receiver) of the mobile terminal transmits ultrasonic waves to a certain direction, a counter (arranged in the mobile terminal) starts timing at the same time of transmitting time, the ultrasonic waves are transmitted in the air and immediately reflected back after encountering a barrier (the face of a user) in the process of being blocked, and an ultrasonic receiver (such as a microphone) immediately stops timing after receiving the reflected ultrasonic waves. The propagation speed of the ultrasonic wave in the air is 340m/s, and according to the time recorded by the timer, the distance L of the emitting point from the surface of the obstacle (user) can be calculated.
The determining module 302 is configured to determine whether the distance L satisfies a preset condition, where a is greater than or equal to L and less than or equal to b, and a and b are both positive real numbers.
In the embodiment of the present application, in general, when a user uses a mobile terminal, the user is 8cm to 60cm away from the mobile terminal, so a may be preferably 8cm, and b may be preferably 60cm, but the value ranges of a and b are not limited thereto. If a is set to be too small, the screen is placed in a pocket of a user to be bright, the service time of the screen is also calculated, and if b is set to be too large, the screen is bright when the mobile terminal is not used, the service time of the screen is also calculated, so that the service time of the screen is inaccurate.
The execution module 303 is configured to execute a timing function to obtain the screen use time when it is determined that the distance L satisfies the preset condition.
In the embodiment of the present application, when the distance L satisfies the preset condition, it indicates that the user is using the mobile terminal, so that a timing function (a counter starts counting) is performed to obtain the screen usage time.
The suspending module 304 is configured to suspend the timing function when it is determined that the distance L does not satisfy the preset condition.
In the embodiment of the present application, when the distance L does not satisfy the preset condition, it indicates that the user does not use the mobile terminal at this time, so that the timing function (the counter suspends counting) is suspended to avoid increasing the time that the user uses the screen.
The recovering module 305 is configured to recover the timing function until the distance L satisfies the preset condition again.
In the embodiment of the present application, when the user satisfies the preset condition again, it indicates that the user restarts using the mobile terminal at this time, so the counting function is resumed (the counter resumes counting on the basis of the previous time) to obtain the real screen usage time of the user.
The reset module 306 is configured to reset the timing function every preset period.
In the embodiment of the present application, the preset period generally includes one day, and the timer function is reset to record the screen usage time of the user every day.
Referring to fig. 5, an embodiment of the present application further provides a mobile terminal 500, where the mobile terminal 500 may be a device such as a mobile phone, a tablet, and a computer. As shown in fig. 5, the mobile terminal 500 includes a processor 501, a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the mobile terminal 500, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile terminal.
In this embodiment, the mobile terminal 500 is provided with a plurality of memory partitions, where the plurality of memory partitions includes a system partition and a target partition, and the processor 501 in the mobile terminal 500 loads instructions corresponding to processes of one or more applications into the memory 502 according to the following steps, and the processor 501 runs the applications stored in the memory 502, so as to implement various functions:
when the mobile terminal is in a bright screen state, acquiring the distance L between the mobile terminal and a user at preset time intervals;
judging whether the distance L meets a preset condition, wherein the preset condition is that the distance a is more than or equal to L and less than or equal to b, and both the distance a and the distance b are positive real numbers; and
and when the distance L is judged to meet the preset condition, executing a timing function to acquire the service time of the screen.
Referring to fig. 6, fig. 6 is a block diagram illustrating a specific structure of a mobile terminal 600 according to an embodiment of the present application, where the mobile terminal 600 may be used to implement the screen usage time detection method provided in the foregoing embodiment. The mobile terminal 600 may be a mobile phone or a tablet. The mobile terminal 600 includes the following components.
The RF circuit 610 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 610 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 610 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (Microwave for Wireless), Max-1, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 620 may be used to store software programs and modules, such as program instructions/modules corresponding to the screen usage time detection method in the above-mentioned embodiments, and the processor 680 may execute various functional applications and data processing by running the software programs and modules stored in the memory 620, that is, to implement the functions of the screen usage time detection method. The memory 620 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 620 can further include memory located remotely from the processor 680, which can be connected to the mobile terminal 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 630 may include a touch sensitive surface 631 as well as other input devices 632. The touch sensitive surface 631, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on the touch sensitive surface 631 or near the touch sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) on or near the touch sensitive surface 631 and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch-sensitive surface 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in FIG. 6, the touch-sensitive surface 631 and the display panel 641 are implemented as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 may be integrated to implement input and output functions.
The mobile terminal 600 may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 641 and/or the backlight when the mobile terminal 600 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 600, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 may provide an audio interface between a user and the mobile terminal 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then passed through the RF circuit 610 to be transmitted to, for example, another terminal, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 600.
The mobile terminal 600, which can assist the user in e-mail, web browsing, and streaming media access, etc., provides the user with wireless broadband internet access through the transmission module 670 (e.g., a Wi-Fi module). Although fig. 6 shows the transmission module 670, it is understood that it does not belong to the essential constitution of the mobile terminal 600 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 680 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally monitoring the mobile phone. Optionally, processor 680 may include one or more processing cores; in some embodiments, processor 680 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The mobile terminal 600 also includes a power supply 660 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 680 through a power management system that may, in some embodiments, provide management of charging, discharging, and power consumption. The power supply 660 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 600 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when the mobile terminal is in a bright screen state, acquiring the distance L between the mobile terminal and a user at preset time intervals;
judging whether the distance L meets a preset condition, wherein the preset condition is that the distance a is more than or equal to L and less than or equal to b, and both the distance a and the distance b are positive real numbers; and
and when the distance L is judged to meet the preset condition, executing a timing function to acquire the service time of the screen.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the screen usage time detection methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any of the screen use time detection methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any of the screen use time detection methods provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described again here. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The application provides a method, a system, a storage medium and a mobile terminal for detecting screen service time, wherein the mobile terminal sends ultrasonic waves at intervals of preset time and receives the ultrasonic waves sent back, the distance L between the mobile terminal and a user is obtained according to the time interval between the sending and receiving of the ultrasonic waves, whether the user uses the mobile terminal is determined, and the timing function is executed, paused or resumed according to the corresponding condition, so that the real screen service time of the user is obtained.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The screen use time detection method, the system, the storage medium and the mobile terminal provided by the embodiment of the application are introduced in detail, a specific example is applied in the text to explain the principle and the implementation mode of the application, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A screen use time detection method is applied to a mobile terminal, and is characterized by comprising the following steps:
when the mobile terminal is in a bright screen state, acquiring the distance L between the mobile terminal and a user at preset time intervals;
judging whether the distance L meets a preset condition, wherein the preset condition is that the distance a is more than or equal to L and less than or equal to b, and both the distance a and the distance b are positive real numbers; and
and when the distance L is judged to meet the preset condition, executing a timing function to acquire the service time of the screen.
2. The screen age detection method of claim 1, further comprising:
when the distance L is judged not to meet the preset condition, the timing function is suspended; and
and recovering the timing function until the distance L meets the preset condition again.
3. The screen age detection method of claim 2, further comprising:
and resetting the timing function every preset period.
4. The screen usage time detection method of claim 1, wherein the step of obtaining the distance L between the mobile terminal and the user at every preset time when the mobile terminal is in a bright screen state comprises:
the mobile terminal sends out ultrasonic waves and receives the ultrasonic waves sent back at preset time intervals;
acquiring a time interval between sending and receiving ultrasonic waves; and
and acquiring the distance L between the mobile terminal and the user according to the time interval and the propagation speed of the ultrasonic waves in the air.
5. A screen use time detection system applied to a mobile terminal, the screen use time detection system comprising:
the distance acquisition module is used for acquiring the distance L between the mobile terminal and a user at preset time intervals when the mobile terminal is in a bright screen state;
the judging module is used for judging whether the distance L meets a preset condition, wherein the preset condition is that a is more than or equal to L and less than or equal to b, and both a and b are positive real numbers; and
and the execution module is used for executing a timing function to acquire the service time of the screen when the distance L is judged to meet the preset condition.
6. The screen age detection system of claim 5, further comprising:
the recovery module is used for suspending the timing function when the distance L is judged not to meet the preset condition; and
and the pause module is used for recovering the timing function until the distance L meets the preset condition again.
7. The screen age detection system of claim 6, wherein the system comprises:
and the resetting module is used for resetting the timing function every preset period.
8. The screen age detection system of claim 5, wherein the distance acquisition module comprises:
the ultrasonic unit is used for sending ultrasonic waves and receiving the sent ultrasonic waves by the mobile terminal at preset time intervals;
a time acquisition unit for acquiring a time interval between transmission and reception of ultrasonic waves; and
and the distance acquisition unit is used for acquiring the distance L between the mobile terminal and the user according to the time interval and the propagation speed of the ultrasonic wave in the air.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the screen age detection method of any of claims 1 to 4.
10. A mobile terminal, characterized by comprising a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the screen usage time detection method according to any one of claims 1 to 4.
CN202010397294.1A 2020-05-12 2020-05-12 Screen use time detection method, system, storage medium and mobile terminal Pending CN111600986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010397294.1A CN111600986A (en) 2020-05-12 2020-05-12 Screen use time detection method, system, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010397294.1A CN111600986A (en) 2020-05-12 2020-05-12 Screen use time detection method, system, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN111600986A true CN111600986A (en) 2020-08-28

Family

ID=72183636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010397294.1A Pending CN111600986A (en) 2020-05-12 2020-05-12 Screen use time detection method, system, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111600986A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140062903A1 (en) * 2012-08-31 2014-03-06 Institute For Information Industry Screen unlocking method with time information screen unlocking system with time information, and recording medium
CN105608353A (en) * 2014-11-06 2016-05-25 深圳富泰宏精密工业有限公司 System and method for automatically controlling usage time of electronic apparatus
CN107992393A (en) * 2017-11-27 2018-05-04 上海斐讯数据通信技术有限公司 A kind of statistical method and system of electronic curtain usage time
CN110162188A (en) * 2019-06-20 2019-08-23 广东小天才科技有限公司 Screen eye care method, device and terminal device
CN110769082A (en) * 2018-07-26 2020-02-07 北京小米移动软件有限公司 Display module and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140062903A1 (en) * 2012-08-31 2014-03-06 Institute For Information Industry Screen unlocking method with time information screen unlocking system with time information, and recording medium
CN105608353A (en) * 2014-11-06 2016-05-25 深圳富泰宏精密工业有限公司 System and method for automatically controlling usage time of electronic apparatus
CN107992393A (en) * 2017-11-27 2018-05-04 上海斐讯数据通信技术有限公司 A kind of statistical method and system of electronic curtain usage time
CN110769082A (en) * 2018-07-26 2020-02-07 北京小米移动软件有限公司 Display module and mobile terminal
CN110162188A (en) * 2019-06-20 2019-08-23 广东小天才科技有限公司 Screen eye care method, device and terminal device

Similar Documents

Publication Publication Date Title
CN108900231B (en) Dynamic antenna adjustment method and related product
KR20170132240A (en) Communication message transmission method and device
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
WO2015062235A1 (en) Electronic device, battery protecting method and apparatus
CN108681498B (en) CPU occupancy rate monitoring method and device and mobile terminal
CN110505638B (en) Measurement control method, terminal and network side equipment
CN106911848B (en) Method for outputting prompt message and terminal equipment
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN106940997B (en) Method and device for sending voice signal to voice recognition system
CN107104763B (en) Method and device for setting timeout retransmission duration
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN111885748B (en) Method for releasing RRC connection, terminal equipment and network equipment
CN108681413B (en) Control method of display module and mobile terminal
CN113507720A (en) Terminal measurement mode management method and device, storage medium and electronic terminal
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN103546632A (en) Method and device for alarm ringing of mobile terminal and mobile terminal
CN108810261B (en) Antenna switching method in call and related product
CN108476441A (en) Cell switching method and terminal device
CN108307075B (en) Incoming call processing method and mobile terminal
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN110908586A (en) Keyboard display method and device and terminal equipment
CN105635379B (en) Noise suppression method and device
CN111600986A (en) Screen use time detection method, system, storage medium and mobile terminal

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

Application publication date: 20200828

RJ01 Rejection of invention patent application after publication