CN107566627B - Auxiliary reminding system and method for bad use habits of users - Google Patents

Auxiliary reminding system and method for bad use habits of users Download PDF

Info

Publication number
CN107566627B
CN107566627B CN201710752104.1A CN201710752104A CN107566627B CN 107566627 B CN107566627 B CN 107566627B CN 201710752104 A CN201710752104 A CN 201710752104A CN 107566627 B CN107566627 B CN 107566627B
Authority
CN
China
Prior art keywords
judging
user
value
unit
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710752104.1A
Other languages
Chinese (zh)
Other versions
CN107566627A (en
Inventor
周盛春
刘建国
罗雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201710752104.1A priority Critical patent/CN107566627B/en
Publication of CN107566627A publication Critical patent/CN107566627A/en
Application granted granted Critical
Publication of CN107566627B publication Critical patent/CN107566627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The utility model provides a user bad use habit's supplementary warning system for mobile intelligent terminal device, user bad use habit's supplementary warning system includes: the system comprises a screen judgment module, an application program judgment module, a walking judgment module and a warning mark reminding module. The walking judgment module comprises an initialization unit, a gravity sensor parameter reading unit, a g parameter operation unit, a g parameter judgment unit, a wave crest interval time judgment unit, a step number value processing unit, a step number updating interval time judgment unit and a step number value judgment unit. The invention also provides an auxiliary reminding method for bad use habits of the user. The auxiliary reminding system and the method for bad use habits of the user can not monitor constantly, and can start monitoring only when the auxiliary reminding system is awakened under the condition of bright screen, and meanwhile, the auxiliary reminding system and the method do not relate to calculation and operation with higher power consumption, such as camera capturing, image processing and the like, so the auxiliary reminding system and the method have the advantages of low power consumption and long standby time.

Description

Auxiliary reminding system and method for bad use habits of users
Technical Field
The invention belongs to the field of consumer electronics, and particularly relates to an auxiliary reminding system and method capable of reminding a user when the user has bad use habits.
Background
With the development of mobile internet and computer technology, mobile intelligent terminal devices have become an extremely important part of people's lives, wherein the most typical mobile intelligent terminal devices are smart phones and tablet computers (PAD). The rich functions provided by the smart phone really bring much convenience to the life of people, and almost cover services in various aspects such as clothes, food, live, walk, entertainment and the like. The smart phone can meet the use requirement of people only through two hands in any occasions as a handheld device, but brings a lot of bad habits such as using the smart phone with a low head, using the smart phone with a hand while walking, lying down and looking up, lying down and using the smart phone, using the smart phone under a low-light environment, and the like. These bad usage habits can cause a number of safety and health problems. For example: (1) when the user lowers the head, the hand can deepen the neck wrinkles and increase the bearing pressure of the cervical vertebra; (2) people who bend over and hump back when watching mobile phones while walking, and people who have hump back deformation are increasing after the smart phones are provided according to the research of the website of RecordJapan. Meanwhile, the user can bring serious potential safety hazard when watching the news while walking, and the news that the mobile phone falls down or is hit by a vehicle is reported when watching the news while walking; (3) the use of a hand in a flat lying, supine, side lying and low light environment can cause serious visual risks. Therefore, a method capable of detecting and prompting a user of bad mobile phone habits, which can operate in a smart phone and is not dependent on any other equipment, is urgently needed. At present, some methods have realized the detection of partial bad habits, but the existing technology has the disadvantages that: (1) the method is lack of a system detection method, some existing methods only consider detection of a single behavior such as walking and watching at the same time, and do not comprehensively consider bad use habits of various mobile phones; (2) the prior art method needs to rely on a camera to collect the face data of a user and usually carries out automatic snapshot in a background under the condition that the user is unknown. There are three main problems with this solution: (a) the front-facing camera is called regularly to adopt the face data of the user, the frequency is generally once in 60 seconds, and the acquisition frequency can cause the great increase of the power consumption of the mobile phone, thereby reducing the standby time of the mobile phone; (b) the background automatic snapshot has serious personal privacy safety problems under the condition that the user is unknown; (c) under the condition of low light, the quality of the pictures shot by the camera is poor, and the method for acquiring the face data of the user by the camera is invalid. (3) The prior art methods do not distinguish what applications the user is currently using, such as making phone calls, navigation, flashlights, WeChat, games, etc. For example, tool-like applications such as a user making a phone call while walking, navigating on foot, or using a flashlight are unavoidable and normal behaviors, have little impact on safety and health, and do not last long. What is really needed to prompt the user is to use recreational applications such as entertainment and games on the premise of the above-mentioned bad usage habits.
Disclosure of Invention
Aiming at the technical problems in the prior art, the invention provides a novel user walking auxiliary reminding system and method capable of reminding a user not to play a mobile phone when the user walks.
The invention provides an auxiliary reminding system for bad use habits of a user, which is used for mobile intelligent terminal equipment, and comprises:
the screen judging module is used for judging whether the screen of the mobile intelligent terminal device is in a bright screen state or not;
the application program judging module is used for judging the application types currently used by the mobile intelligent terminal equipment, wherein the application types comprise basic applications and tool applications;
the walking judgment module is used for judging whether a user of the mobile intelligent terminal device is in a walking state at present, and comprises an initialization unit, a gravity sensor parameter reading unit, a G parameter value operation unit, a G parameter value judgment unit, a wave crest interval time judgment unit, a step number value processing unit, a step number updating interval time judgment unit and a step number value judgment unit, wherein the initialization unit initializes the step number value to 0 and initializes the G parameter value to 0, and the gravity sensor parameter reading unit reads the indication number G of the gravity sensor in the directions of x, y and z at preset time intervalsx、GyAnd GzThe g parameter value calculation unit updates the g parameter value after each reading by the gravity sensor parameter reading unit as follows:
Figure BDA0001391368260000021
the g parameter value judging unit is used for judging whether the currently updated g parameter value is the same as the last g parameter value or not, and if so, judging that the currently updated g parameter value is not the same as the last g parameter valueIf the current g parameter value is the peak, the peak interval time judging unit detects whether the time interval between the current peak and the previous peak is greater than a preset time value, if so, the step number value processing unit adds 1 to the step number value, the step number updating interval time judging unit is used for judging whether the time interval between the last step number updating time and the current step number updating time is greater than an updating time threshold, if so, the step number judging unit judges whether the current step number value is greater than the step number threshold, and if so, the user is judged to be in a walking state;
and the warning mark reminding module is used for popping up warning mark prompts on a screen of the mobile intelligent terminal equipment.
Further, the auxiliary reminding system for bad use habits of the user further comprises:
the use posture judgment module is used for judging the current use posture of a user and comprises a parameter operation unit, a transverse screen judgment unit and a comparison unit, wherein the parameter operation unit is used for reading readings G in the x direction, the y direction and the z direction obtained by a gravity sensor parameter reading unit in the walking judgment modulex、GyAnd GzThe operation is performed according to the following formula:
Figure BDA0001391368260000031
Figure BDA0001391368260000032
to obtain the included angles A between the mobile intelligent terminal equipment and the X plane, the Y plane and the Z planex、AyAnd AzThe transverse screen judging unit is used for judging whether the current mobile intelligent terminal device is in a vertical screen state, and if the current mobile intelligent terminal device is in the vertical screen state, the comparison unit judges Ax=π/2、-π/4≤AyPi/4 or less and pi/4 or less AzWhether or not less than 3 pi/4 is true, if soIf the mobile intelligent terminal device is in the horizontal screen state, the comparison unit judges that-pi/4 is not more than Ax≤π/4、AyPi/2 and pi/4. ltoreq.AzWhether the current position is less than or equal to 3 pi/4 is true or not, if true, judging that the mobile intelligent terminal equipment is in a correct use posture, and if not, judging that the mobile intelligent terminal equipment is in a bad use posture; and the warning mark reminding module is also used for popping up a warning mark prompt on a screen of the mobile intelligent terminal equipment when the mobile intelligent terminal equipment is judged to be in a bad use posture.
Furthermore, the auxiliary reminding system for bad use habits of the user further comprises an illumination condition judging module, wherein the illumination condition judging module comprises a light sensor parameter reading unit and a comparing unit, the light sensor parameter reading unit is used for reading a light value sensed by the light sensor, the comparing unit is used for comparing whether the read light value is smaller than a threshold value, and if the light value is smaller than the threshold value, the user is judged to be in a low illumination condition at the moment; the warning mark reminding module is also used for popping up a warning mark prompt on a screen of the mobile intelligent terminal equipment when the mobile intelligent terminal equipment is judged to be in the low light condition.
Furthermore, the auxiliary reminding system for bad use habits of the user further comprises a vibration module, and the vibration module is used for popping up a warning mark on a screen of the mobile intelligent terminal device and then calling the vibration function of the mobile intelligent terminal device after countdown of preset time is carried out.
Furthermore, the system for assisting the user in walking to remind also comprises a first delay module and a second delay module, wherein the first delay module is used for continuing to enable the screen judgment module to judge whether the screen of the mobile phone is in the bright screen state again after the screen judgment module judges that the screen of the mobile phone is not in the bright screen state and the delay of preset time is passed; the second time delay module is used for continuing to enable the screen judgment module to judge whether the screen of the mobile phone is in a bright screen state again after the vibration module calls the vibration function of the mobile phone and the time delay of another preset time is passed.
The basic application comprises a call function and a short message function, and the tool application at least comprises: navigation function applications, lighting function applications.
Furthermore, the walking assistance reminding system for the user further comprises a user-defined module, and the user-defined module is used for the user to set the type of the tool application.
The invention also provides an auxiliary reminding method of bad use habits of a user, which is used for mobile intelligent terminal equipment, and the auxiliary reminding method of the bad use habits of the user comprises the following steps:
judging whether the mobile intelligent terminal device is bright;
judging the current application type of the mobile intelligent terminal equipment, wherein the application type comprises a basic application and a tool application;
judging whether the user is in a walking state at present, including:
the initialization step value is 0 and the initialization g parameter value is 0;
reading readings G of the gravity sensor in the x direction, the y direction and the z direction at preset time intervalsx、GyAnd GzAnd taking the updated g parameter value as:
Figure BDA0001391368260000051
judging whether the currently updated g parameter value is the same as the last g parameter value;
if the current updated g parameter value is judged to be different from the last g parameter value, judging whether the current g parameter value is a wave crest;
if the current g parameter value is a peak, detecting whether the time interval between the current peak and the previous peak is greater than a preset time value;
if the step number is greater than the preset time value, adding 1 to the step number, and judging whether the time interval between the last step number updating time and the current step number updating time is greater than an updating time threshold value or not;
if the time interval is greater than the update time threshold, judging whether the current step value is greater than the step threshold; and
if the current step value is larger than the step threshold value, judging that the user is in a walking state currently; and
and popping up a warning mark on a screen of the mobile intelligent terminal equipment to prompt a user.
Further, the auxiliary reminding method for bad use habits of the user further comprises the following steps:
judging whether the current using posture of the user is correct or not, wherein the judging step comprises the following steps:
reading readings G of the gravity sensor in the x, y and z directionsx、GyAnd GzAnd the operation is carried out according to the following formula:
Figure BDA0001391368260000052
Figure BDA0001391368260000053
to obtain the included angles A between the mobile intelligent terminal equipment and the X plane, the Y plane and the Z planex、AyAnd Az
Judging whether the current mobile intelligent terminal equipment is in a vertical screen state or not;
if the screen is in the vertical screen state, judging Ax=π/2、-π/4≤AyPi/4 or less and pi/4 or less AzWhether the current position is less than or equal to 3 pi/4 is true or not is judged, and if not, the mobile intelligent terminal equipment is judged to be in a bad use posture; and
if the screen is in the horizontal screen state, judging that-pi/4 is not more than Ax≤π/4、AyPi/2 and pi/4. ltoreq.AzAnd whether the ratio is less than or equal to 3 pi/4 is satisfied, if not, judging that the mobile intelligent terminal equipment is in a bad use posture at the moment.
Further, the auxiliary reminding method for bad use habits of the user further comprises the following steps:
judging whether the user is currently in a low-light condition or not comprises the following steps:
reading a light value sensed by a light sensor;
comparing whether the read light value is smaller than a threshold value; and
and if the light value is smaller than the threshold value, judging that the user is in a low-light condition at the moment.
The auxiliary reminding system and method for bad use habits of the user can complete the reminding function by calling the functions of the mobile phone system, and are convenient and practical and low in cost. Moreover, the principle shows that the monitoring can not be carried out all the time, the monitoring can be started only when the monitoring is awakened under the condition of bright screen, and meanwhile, the calculation and operation with higher power consumption, such as camera capturing, image processing and the like, are not involved, so that the monitoring system has the advantages of low power consumption and long standby time compared with other similar patents.
Drawings
Fig. 1 is a block diagram of a first preferred embodiment of an auxiliary reminding system for bad using habits of a user according to the invention.
Fig. 2 is a block diagram of a preferred embodiment of the travel determination module of fig. 1.
FIG. 3 is a block diagram of a second preferred embodiment of the auxiliary reminding system for bad using habits of the user according to the invention.
FIG. 4 is a block diagram of a preferred embodiment of the gesture determination module used in FIG. 3.
Fig. 5 is a block diagram of a third preferred embodiment of the auxiliary reminding system for bad using habits of the user according to the invention.
Fig. 6 is a block diagram of a preferred embodiment of the illumination condition determining module of fig. 5.
FIG. 7 is a flowchart illustrating a method for assisting a user to remind him of bad habits according to a first preferred embodiment of the present invention.
FIG. 8 is a flowchart of the preferred embodiment of step S3 in FIG. 7.
FIG. 9 is a flowchart illustrating a method for assisting a user to remind him of bad habits according to a second preferred embodiment of the present invention.
FIG. 10 is a flowchart illustrating a method for assisting in reminding a user of bad habits according to a third preferred embodiment of the present invention.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further explained below by combining the specific drawings.
In the description of the present invention, it should 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; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Referring to fig. 1, a block diagram of an auxiliary reminding system for bad user habits according to a preferred embodiment of the present invention is shown. The embodiment is described by taking a mobile phone as an example, but the invention can also be applied to other electronic terminals, such as a tablet computer.
The preferred embodiment of the auxiliary reminding system for bad use habits of the user comprises a screen judgment module 1, an application program judgment module 2, a walking judgment module 3, a warning mark reminding module 5, a vibration module 6, a first delay module 20 and a second delay module 21.
The screen judging module 1 is used for judging whether the screen of the mobile phone is in a bright screen state. In this embodiment, the screen determining module 1 may invoke a POWER _ SERVICE system SERVICE of the mobile phone system, and if the isScreenOn function returns a tube, it determines that the mobile phone is in a bright screen state, otherwise, it returns false, and determines that the mobile phone is in a black screen state. Of course, in other embodiments, the screen determining module 1 may be replaced by a triggering module, where the triggering module is configured to receive a triggering signal when the screen is lit, so as to trigger the whole auxiliary reminding system, that is, when the screen is lit, the auxiliary reminding system starts to operate, and the application determining module 2 starts to determine the application type currently used by the mobile phone.
The application program judging module 2 is used for judging the application type currently used by the mobile phone. In this embodiment, the application types may be divided into a basic application and a tool application, where the basic application includes a call function and a short message function, and the tool application at least includes: navigation functions, flashlight illumination functions, and the like. Meanwhile, in other embodiments, the system for assisting the user in walking may further include: and the user self-defining module 7 is used for setting the types of the tool applications by the user. In addition, the tool class applications may also include work class applications (such as office OA) and learning class applications (such as job help), as desired.
The walking judgment module 3 is used for judging whether the user is in a walking state at present. In this embodiment, the walking determination module 3 determines whether the user is in a walking state by calling a gravity sensor of the mobile phone. Specifically, as shown in fig. 2, the walking determination module 3 includes an initialization unit 30, a gravity sensor parameter reading unit 31, a g parameter value computing unit 32, a g parameter value determining unit 33, a peak determining unit 35, a peak interval time determining unit 36, a step number value processing unit 37, a step number value update interval time determining unit 38, and a step number value determining unit 39.
The initialization unit 30 is configured to initialize a step value nstep to 0 and an initialization g parameter value to 0. The gravity sensor parameter reading unit 31 is used for reading readings G of the gravity sensor in three directions of x, y and z at preset time intervalsx、GyAnd Gz. The g parameter value operation unit 32 is configured to update the g parameter value after each reading by the gravity sensor parameter reading unit 31 as:
Figure BDA0001391368260000091
the G parameter value determining unit 33 is configured to determine whether the currently updated G parameter value is the same as the previous G parameter value, and if the two G parameter values are the same, the gravity sensor parameter reading unit 31 continues to read readings G of the gravity sensor in the x, y, and z directionsx、GyAnd Gz(ii) a If the current updated g parameter value is determined to be different from the previous g parameter value, the peak determining unit 35 determines whether the current g parameter value is a peak, and the basis for determining whether the current g parameter value is a peak is as follows: the current g parameter value is larger than the last g parameter value, the last g parameter value is larger than the last g parameter value, and the current g parameter value is larger than a preset threshold value Peak. And if the current g parameter value meets the condition, the current g parameter value is considered as a peak.
After the current g parameter value is determined to be a peak, the peak interval time determining unit 36 is configured to detect whether a time interval between the current peak and a previous peak is greater than a predetermined time value, if so, the step number processing unit 37 adds 1 to the step number nstep, otherwise, the step number nstep is kept unchanged. Meanwhile, the step value updating interval time judging unit 38 is configured to judge whether a time interval between a last time of updating the step value and a current time of updating the step value is greater than a threshold updatetime, judge whether the current step value is greater than a threshold Tstep through the step value judging unit 39 if the time interval is greater than the threshold updatetime, and judge that the user is currently in a walking state if the current step value is greater than the threshold Tstep; and if the time interval between the last step value updating time and the current step value updating time is not more than the threshold updatetime, resetting the step values.
The warning mark reminding module 5 is used for popping up a warning mark on a screen of the mobile phone to remind a user of 'not using the mobile phone when walking'. The vibration module 6 is used for calling the vibration function of the mobile phone after popping up the warning mark on the screen of the mobile phone and counting down the preset time.
The first delay module 20 is configured to continue to enable the screen determining module 1 to determine whether the screen of the mobile phone is in the bright screen state again after a preset time delay (such as 3 seconds) elapses after the screen determining module 1 determines that the screen of the mobile phone is not in the bright screen state.
The second delay module 21 is configured to continue to enable the screen determining module 1 to determine whether the screen of the mobile phone is in the bright screen state again after a preset time delay (such as 3 minutes) elapses after the vibration module 6 invokes the vibration function of the mobile phone.
Please refer to fig. 3, which is a block diagram illustrating a second preferred embodiment of an auxiliary reminding system for bad habits of a user according to the present invention. Compared to the first embodiment, the second embodiment further comprises a use gesture determination module 10. The use gesture determining module 10 is used for determining whether the current use gesture of the user is correct. In the present embodiment, the use posture determining module 10 determines whether the user is in the correct use posture by calling a gravity sensor of the mobile phone. Specifically, as shown in fig. 4, the using posture determining module 10 includes a parameter calculating unit 101, a horizontal screen determining unit 102, and a comparing unit 103.
The parameter operation unit 101 is configured to obtain readings G of the gravity sensor parameter reading unit 31 in the walking determination module 3 in the x, y, and z directionsx、GyAnd GzThe operation is performed according to the following formula:
Figure BDA0001391368260000101
to obtain the included angle A between the mobile phone and the X plane, the Y plane and the Z planex、Ay、AzThe horizontal screen judging unit 102 is configured to judge whether the current mobile phone is in a vertical screen state. In the present embodiment, the correct usage posture of the mobile phone is defined as follows: (1) for the mobile phone in the vertical screen state, the included angles between the three axes of the mobile phone and the vertical axis of the world coordinate system are respectively as follows: the included angle between the Y axis and the X axis is pi/2, the included angle between the Y axis and the Y axis is-pi/4 to + pi/4, and the included angle between the Z axis and the Z axis is pi/4 to 3 pi/4; (2) for the mobile phone in the horizontal screen state, the included angles between the three axes of the mobile phone and the vertical axis of the world coordinate system are respectively as follows: the included angle between the Y axis and the Y axis is pi/2, the included angle between the X axis and the X axis is-pi/4 to + pi/4, and the included angle between the Z axis and the Z axis is pi/4 to 3 pi/4.
If the current mobile phone is in the vertical screen state, the comparison unit 103 judges Ax、AyAnd AzIf A isx=π/2、-π/4≤AyPi/4 or less and pi/4 or less AzIf the value is less than or equal to 3 pi/4, judging that the mobile phone is in a correct use posture at the moment; if the above condition is not satisfied, it is determined that the mobile phone is in a bad use posture at this time. If the mobile phone is currently in the landscape state, the comparison unit 103 determines that A is the current mobile phonex、AyAnd AzA value of (a) if-pi/4 is not more thanx≤π/4、AyPi/2 and pi/4. ltoreq.AzIf the value is less than or equal to 3 pi/4, judging that the mobile phone is in a correct use posture at the moment; if the above condition is not satisfied, it is determined that the mobile phone is in a bad use posture at this time.
The warning mark reminding module 5 is also used for popping up a warning mark on a screen of the mobile phone to prompt that the mobile phone use posture is the bad posture when the mobile phone is judged to be in the bad use posture.
Please refer to fig. 5, which is a block diagram illustrating a third preferred embodiment of an auxiliary reminding system for bad habits of a user according to the present invention. Compared with the first embodiment, the third embodiment further comprises a lighting condition judging module 11. The illumination condition judgment module 11 is configured to judge whether the user is currently in a low illumination condition. In this embodiment, the illumination condition determining module 11 determines whether the user is in a low illumination condition by calling a light sensor of the mobile phone. Specifically, as shown in fig. 6, the illumination condition determining module 11 includes a light sensor parameter reading unit 110 and a comparing unit 112.
The light sensor parameter reading unit 110 is configured to read a light value sensed by the light sensor, and the comparing unit 112 is configured to compare whether the read light value is smaller than a threshold tLightAnd if the light value is smaller than the threshold value, judging that the user is in a low-light condition at the moment.
The warning mark reminding module 5 is also used for popping up a warning mark prompt on a screen of the mobile phone when the mobile phone is judged to be in the low light condition, namely 'the mobile phone is not required to be used in the low light condition'.
Please refer to fig. 7, which is a flowchart illustrating an auxiliary reminding method for bad habits of a user according to a first preferred embodiment of the present invention. The preferred implementation mode of the auxiliary reminding method for the bad use habits of the user comprises the following steps:
step S1: and judging whether the mobile phone is on screen. If the mobile phone is in the bright screen state, step S2 is executed, otherwise, step S1 is returned after the count-down is performed at t 1.
Specifically, the step S1 includes: and calling the POWER _ SERVICE system SERVICE of the mobile phone system, and judging the return result of the isScreenOn function. If the result returned by the isScreenOn function is true, judging that the mobile phone is in a bright screen state; and if the returned result of the issscreen on function is false, judging that the mobile phone is in a black screen state.
Step S2: and judging the current application type of the mobile phone, if the current application type is the basic application or the tool application, counting down for 3 seconds, and executing the step S1, otherwise, executing the step S3. Specifically, in this embodiment, the auxiliary reminding method for the bad use habit of the user obtains the current foreground running process by obtaining the system SERVICE active _ SERVICE, and calling the getreporting tasks (1), get (0), topActivity interface, and determining whether the process belongs to the basic or tool application.
In this embodiment, the basic application includes a call function and a short message function, and the tool application at least includes: navigation function, flashlight and other lighting functions. Meanwhile, in other embodiments, before step S1, the method may further include: and step of user self-defining, wherein the user can set the type of the tool application by himself through the step of user self-defining.
Step S3: and judging whether the user is in a walking state at present. Specifically, the auxiliary reminding method for bad use habits of the user judges whether the user is in a walking state or not by calling the gravity sensor carried by the mobile phone. With continued reference to fig. 8, the step S3 includes the following steps:
step S31: the initialization step value nstep is 0 and the initialization g parameter value is 0.
Step S32: reading readings G of the gravity sensor in the x direction, the y direction and the z direction at preset time intervalsx、GyAnd GzAnd updating the value of the g parameter after each reading as:
Figure BDA0001391368260000131
step S33: and judging whether the current updated parameter value is the same as the last parameter value, and if the two parameter values are the same, returning to the step S32. If the two parameter values are different, step S34 is executed.
Step S34: and judging whether the current g parameter value is a peak or not. If the current g parameter value is determined to be the peak, step S35 is executed. If the current value of the g parameter is determined not to be the peak, the process returns to step S32.
Step S35: and detecting whether the time interval between the current peak and the previous peak is larger than a preset time value. If the time interval between the two peaks is greater than the predetermined time value, step S36 is executed, otherwise step S37 is executed.
Step S36: the step number nstep is increased by 1. Step S38 is then performed.
Step S37: the step number nstep is kept constant.
Step S38: and judging whether the time interval between the last updating step value nstep and the current updating step value nstep is greater than a threshold update time or not. If the time interval between two updates of the step value nstep is greater than the threshold updatetime, step S39 is executed. If the time interval between two updates of the step value nstep is not greater than the threshold updatetime, the process returns to step S32.
Step S39: and judging whether the current step value nstep is larger than a threshold value Tstep. If the current step value nstep is greater than the threshold value Tstep, step S40 is executed. If the current step value nstep is not greater than the threshold value Tstep, the process returns to step S32.
Step S40: and judging to obtain the current walking state of the user.
Step S4: and a warning mark pops up on the screen of the mobile phone to prompt the user to 'do not use the mobile phone when walking'.
Step S5: and calling the vibration function of the mobile phone after counting down for a preset time.
Please refer to fig. 9, which is a flowchart illustrating an auxiliary reminding method for bad habits of a user according to a second preferred embodiment of the present invention. Compared with the first embodiment, the second preferred embodiment of the auxiliary reminding method for bad use habits of the user further comprises the following steps:
step S10: indications G of three directions of x, y and z of readingx、GyAnd GzThe operation is performed according to the following formula:
Figure BDA0001391368260000141
to obtain the included angle A between the mobile phone and the X plane, the Y plane and the Z planex、Ay、Az
Step S11: and judging whether the current mobile phone is in a vertical screen state, if so, executing the step S12, otherwise, executing the step S13.
Step S12: judgment Ax=π/2、-π/4≤AyPi/4 or less and pi/4 or less AzAnd if not, executing the step S14, otherwise, executing the step S15.
Step S13: judging whether-pi/4 is equal to or less than Ax≤π/4、AyPi/2 and pi/4. ltoreq.AzAnd if not, executing the step S14, otherwise, executing the step S15.
Step S14: and judging to obtain the correct use posture of the mobile phone at the moment.
Step S15: at this time, it is determined that the mobile phone is in a poor use posture, and step S16 is executed.
Step S16: and popping up a warning mark on a screen of the mobile phone to prompt that the using posture of the mobile phone is a bad posture, and displaying the correct using posture of the mobile phone.
Please refer to fig. 10, which is a flowchart illustrating an auxiliary reminding method for bad habits of a user according to a third preferred embodiment of the present invention. Compared with the first embodiment, the third preferred embodiment of the auxiliary reminding method for bad use habits of the user further comprises the following steps:
step S20: and reading the light value sensed by the light sensor.
Step S21: and comparing whether the read light value is smaller than the threshold tLight, if so, executing the step S22, otherwise, returning to the step S20.
Step S22: it is determined that the user is in a low light condition at this time, and then step S23 is performed.
Step S23: and a warning mark is popped up on the screen of the mobile phone to prompt that the mobile phone is not used under the low-light condition.
The auxiliary reminding system and method for bad use habits of the user can complete the reminding function by calling the functions of the mobile phone system, and are convenient and practical and low in cost. Moreover, the principle shows that the monitoring can not be carried out all the time, the monitoring can be started only when the monitoring is awakened under the condition of bright screen, and meanwhile, the calculation and operation with higher power consumption, such as camera capturing, image processing and the like, are not involved, so that the monitoring system has the advantages of low power consumption and long standby time compared with other similar patents.
Meanwhile, in other embodiments, the auxiliary reminding system for the bad use habits of the user according to the present invention may further include a screen closing module, where the screen closing module is configured to close the mobile phone screen after the warning indication reminding module pops up the warning indication on the mobile phone screen to remind the user and the vibration module calls the vibration function of the mobile phone, so as to prevent the user from continuing to use the mobile phone badly. In addition, the system for assisting in reminding bad use habits of the user can further comprise a management module, the management module is connected with the user-defined module through a network, the management module is used for checking the types of tool applications set by the user, so as to judge whether the user sets the applications such as games and the like into the tool applications, and can edit and modify the types of the tool applications set by the user, and the function is suitable for supervision and management of parents or teachers on mobile phones for students.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures made by using the contents of the present specification and the drawings can be directly or indirectly applied to other related technical fields, and are within the scope of the present invention.

Claims (8)

1. The utility model provides a user bad use habit's supplementary warning system for mobile intelligent terminal device, user bad use habit's supplementary warning system includes:
the screen judging module is used for judging whether the screen of the mobile intelligent terminal device is in a bright screen state or not; the screen judging module calls a POWER _ SERVICE system SERVICE of a mobile phone system, if the isScreenOn function returns a tube, the mobile phone is judged to be in a bright screen state, and if the isScreenOn function returns false, the mobile phone is judged to be in a black screen state;
the application program judging module is used for judging the application types currently used by the mobile intelligent terminal equipment, wherein the application types comprise basic applications and tool applications; the basic application comprises a call function and a short message function, and the tool application at least comprises: navigation function applications, lighting function applications; the application program judging module calls getRning tasks (1), get (0) and topActivity interfaces to obtain a current foreground running process by obtaining a system SERVICE ACTIVITY _ SERVICE and judges whether the process belongs to a basic or tool application;
the user self-defining module is used for the user to set the type of the tool application;
the management module is used for checking the types of the tool applications set by the user and editing and modifying the types of the tool applications set by the user;
the walking judgment module is used for judging whether a user of the mobile intelligent terminal device is in a walking state at present, and comprises an initialization unit, a gravity sensor parameter reading unit, a g parameter value operation unit, a g parameter value judgment unit, a wave crest interval time judgment unit, a step number value processing unit, a step number updating interval time judgment unit and a step number value judgment unit, wherein the initialization unit initializes the step number value to 0 and initializesThe G parameter value is 0, and the gravity sensor parameter reading unit reads readings G of the gravity sensor in the x direction, the y direction and the z direction at preset intervalsx、GyAnd GzThe g parameter value calculation unit updates the g parameter value after each reading by the gravity sensor parameter reading unit as follows:
Figure FDA0002483600120000021
the g parameter value judging unit is used for judging whether the current updated g parameter value is the same as the previous g parameter value or not, if the current updated g parameter value is judged to be different from the previous g parameter value, the wave crest judging unit judges whether the current g parameter value is a wave crest or not, if the current g parameter value is the wave crest, the wave crest interval time judging unit detects whether the time interval between the current wave crest and the previous wave crest is larger than a preset time value or not, if the time interval is larger than the preset time value, the step number processing unit adds 1 to the step number value, the step number updating interval time judging unit is used for judging whether the time of the last step number value and the time interval of the current updated step number value are larger than an updating time threshold or not, and if the time interval is larger than the updating time threshold, the step number judging unit judges whether the current step number value is larger than the step number threshold or not, if the current step value is larger than the step threshold value, judging that the user is in a walking state currently;
and the warning mark reminding module is used for popping up warning mark prompts on a screen of the mobile intelligent terminal equipment.
2. The system of claim 1, wherein the system comprises: the auxiliary reminding system for bad use habits of the user further comprises:
the use posture judgment module is used for judging the current use posture of a user and comprises a parameter operation unit, a transverse screen judgment unit and a comparison unit, wherein the parameter operation unit is used for reading readings G in the x direction, the y direction and the z direction obtained by a gravity sensor parameter reading unit in the walking judgment modulex、GyAnd GzThe operation is performed according to the following formula:
Figure FDA0002483600120000022
Figure FDA0002483600120000023
to obtain the included angles A between the mobile intelligent terminal equipment and the X plane, the Y plane and the Z planex、AyAnd AzThe transverse screen judging unit is used for judging whether the current mobile intelligent terminal device is in a vertical screen state, and if the current mobile intelligent terminal device is in the vertical screen state, the comparison unit judges Ax=π/2、-π/4≤AyPi/4 or less and pi/4 or less AzWhether the current mobile intelligent terminal equipment is in a horizontal screen state or not is judged by the comparing unit, and the comparison unit judges that-pi/4 is not more than Ax≤π/4、AyPi/2 and pi/4. ltoreq.AzWhether the current position is less than or equal to 3 pi/4 is true or not, if true, judging that the mobile intelligent terminal equipment is in a correct use posture, and if not, judging that the mobile intelligent terminal equipment is in a bad use posture; and the warning mark reminding module is also used for popping up a warning mark prompt on a screen of the mobile intelligent terminal equipment when the mobile intelligent terminal equipment is judged to be in a bad use posture.
3. The system of claim 1, wherein the system comprises: the auxiliary reminding system for the bad use habits of the user further comprises an illumination condition judging module, wherein the illumination condition judging module comprises a light sensor parameter reading unit and a comparing unit, the light sensor parameter reading unit is used for reading a light value sensed by the light sensor, the comparing unit is used for comparing whether the read light value is smaller than a threshold value, and if the light value is smaller than the threshold value, the user is judged to be in a low illumination condition at the moment; the warning mark reminding module is also used for popping up a warning mark prompt on a screen of the mobile intelligent terminal equipment when the mobile intelligent terminal equipment is judged to be in the low light condition.
4. The system of claim 1, wherein the system comprises: the auxiliary reminding system for the bad use habits of the user further comprises a vibration module, and the vibration module is used for popping up a warning mark on a screen of the mobile intelligent terminal device and calling a vibration function of the mobile intelligent terminal device after countdown of preset time is carried out.
5. The system of claim 4, wherein the system comprises: the system comprises a screen judgment module, a first delay module and a second delay module, wherein the screen judgment module is used for judging whether the screen of the mobile phone is in a bright screen state or not; the second time delay module is used for continuing to enable the screen judgment module to judge whether the screen of the mobile phone is in a bright screen state again after the vibration module calls the vibration function of the mobile phone and the time delay of another preset time is passed.
6. An auxiliary reminding method for bad use habits of a user is used for a mobile intelligent terminal device, and comprises the following steps:
judging whether the mobile intelligent terminal device is bright; calling a POWER _ SERVICE system SERVICE of a mobile phone system, if the isScreenOn function returns a tube, judging that the mobile phone is in a bright screen state, and if not, returning a false, judging that the mobile phone is in a black screen state;
judging the current application type of the mobile intelligent terminal equipment, wherein the application type comprises a basic application and a tool application; acquiring a system SERVICE ACTIVITY _ SERVICE, calling a getRacquiring tasks (1), get (0) and topActivity interface to acquire a current foreground running process, and judging whether the process belongs to a basic or tool application; the basic application comprises a call function and a short message function, and the tool application at least comprises: navigation function applications, lighting function applications;
the user can also set the type of the tool application by himself; the types of the tool applications set by the user can be checked, and the types of the tool applications set by the user can be edited and modified;
judging whether the user is in a walking state at present, including:
the initialization step value is 0 and the initialization g parameter value is 0;
reading readings G of the gravity sensor in the x direction, the y direction and the z direction at preset time intervalsx、GyAnd GzAnd taking the updated g parameter value as:
Figure FDA0002483600120000041
judging whether the currently updated g parameter value is the same as the last g parameter value;
if the current updated g parameter value is judged to be different from the last g parameter value, judging whether the current g parameter value is a wave crest;
if the current g parameter value is a peak, detecting whether the time interval between the current peak and the previous peak is greater than a preset time value;
if the step number is greater than the preset time value, adding 1 to the step number, and judging whether the time interval between the last step number updating time and the current step number updating time is greater than an updating time threshold value or not;
if the time interval is greater than the update time threshold, judging whether the current step value is greater than the step threshold; and
if the current step value is larger than the step threshold value, judging that the user is in a walking state currently; and
and popping up a warning mark on a screen of the mobile intelligent terminal equipment to prompt a user.
7. The method for assisting in reminding a user of bad usage habits according to claim 6, wherein: further comprising the steps of:
judging whether the current using posture of the user is correct or not, wherein the judging step comprises the following steps:
reading readings G of the gravity sensor in the x, y and z directionsx、GyAnd GzAnd the operation is carried out according to the following formula:
Figure FDA0002483600120000051
Figure FDA0002483600120000052
to obtain the included angles A between the mobile intelligent terminal equipment and the X plane, the Y plane and the Z planex、AyAnd Az
Judging whether the current mobile intelligent terminal equipment is in a vertical screen state or not;
if the screen is in the vertical screen state, judging Ax=π/2、-π/4≤AyPi/4 or less and pi/4 or less AzWhether the current position is less than or equal to 3 pi/4 is true or not is judged, and if not, the mobile intelligent terminal equipment is judged to be in a bad use posture; and
if the screen is in the horizontal screen state, judging that-pi/4 is not more than Ax≤π/4、AyPi/2 and pi/4. ltoreq.AzAnd whether the ratio is less than or equal to 3 pi/4 is satisfied, if not, judging that the mobile intelligent terminal equipment is in a bad use posture at the moment.
8. The method for assisting in reminding a user of bad usage habits according to claim 6, wherein: further comprising the steps of:
judging whether the user is currently in a low-light condition or not comprises the following steps:
reading a light value sensed by a light sensor;
comparing whether the read light value is smaller than a threshold value; and
and if the light value is smaller than the threshold value, judging that the user is in a low-light condition at the moment.
CN201710752104.1A 2017-08-28 2017-08-28 Auxiliary reminding system and method for bad use habits of users Active CN107566627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710752104.1A CN107566627B (en) 2017-08-28 2017-08-28 Auxiliary reminding system and method for bad use habits of users

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710752104.1A CN107566627B (en) 2017-08-28 2017-08-28 Auxiliary reminding system and method for bad use habits of users

Publications (2)

Publication Number Publication Date
CN107566627A CN107566627A (en) 2018-01-09
CN107566627B true CN107566627B (en) 2020-06-30

Family

ID=60977536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710752104.1A Active CN107566627B (en) 2017-08-28 2017-08-28 Auxiliary reminding system and method for bad use habits of users

Country Status (1)

Country Link
CN (1) CN107566627B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459509B (en) * 2018-01-31 2021-08-03 霍尼韦尔环境自控产品(天津)有限公司 Control method and control system of intelligent equipment
CN109043944B (en) * 2018-06-28 2022-04-29 佛山市豪洋电子有限公司 Intelligent headboard
CN111800542A (en) * 2020-06-30 2020-10-20 联想(北京)有限公司 Information prompting method, information prompting platform and terminal
CN114627615A (en) * 2022-03-01 2022-06-14 重庆邮电大学 Danger prompting method for using mobile phone during walking

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231112A (en) * 2016-08-22 2016-12-14 得豆科技(北京)有限公司 Walking guard method for mobile terminal
CN106572251A (en) * 2016-10-31 2017-04-19 珠海市魅族科技有限公司 Mode switching method, mode switching device and terminal

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8568312B2 (en) * 2010-03-12 2013-10-29 MaryRose Cusimano Reaston Electro diagnostic functional assessment unit (EFA-3)
CN102413241A (en) * 2011-11-18 2012-04-11 上海华勤通讯技术有限公司 Mobile terminal and environmental brightness reminding method
CN103167069A (en) * 2012-05-08 2013-06-19 深圳市金立通信设备有限公司 System and method for achieving automatic warning of mobile phone based on ambient brightness
US20140181715A1 (en) * 2012-12-26 2014-06-26 Microsoft Corporation Dynamic user interfaces adapted to inferred user contexts
CN104378494A (en) * 2013-08-16 2015-02-25 联想移动通信科技有限公司 Reminding method and mobile terminal
CN103970277A (en) * 2014-05-27 2014-08-06 福建天晴数码有限公司 Method and device for healthy reading monitoring based on handheld electronic device
CN105701963A (en) * 2014-11-27 2016-06-22 英业达科技有限公司 Hazard warning method and mobile device with application of hazard warning method
CN104580693B (en) * 2014-12-05 2017-12-19 三星电子(中国)研发中心 A kind of user's heads-down posture detection method and device
CN105812551A (en) * 2014-12-31 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Health warning and control method and system of terminal and mobile terminal
CN105577945A (en) * 2016-03-11 2016-05-11 厦门美图移动科技有限公司 Eyesight protection control method and device and mobile terminal
CN105939415B (en) * 2016-04-14 2019-10-11 Tcl集团股份有限公司 A kind of safety prompt function method and system under external auditory masked state
CN106488014A (en) * 2016-09-28 2017-03-08 上海斐讯数据通信技术有限公司 The safety prompt function method and system of mobile terminal
CN106953982B (en) * 2017-03-31 2019-10-18 南京大学 One kind is bowed race's walking safety alarm method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231112A (en) * 2016-08-22 2016-12-14 得豆科技(北京)有限公司 Walking guard method for mobile terminal
CN106572251A (en) * 2016-10-31 2017-04-19 珠海市魅族科技有限公司 Mode switching method, mode switching device and terminal

Also Published As

Publication number Publication date
CN107566627A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN107566627B (en) Auxiliary reminding system and method for bad use habits of users
CN103491230B (en) Can the mobile terminal of automatic regulating volume and font and Automatic adjustment method thereof
CN110456938A (en) A kind of the false-touch prevention method and electronic equipment of Curved screen
CN109381165B (en) Skin detection method and mobile terminal
CN109558837B (en) Face key point detection method, device and storage medium
CN107803030B (en) Refreshing method and device for resource site on virtual map
CN111092748B (en) Alarm rule setting method, device, equipment and storage medium for Internet of things equipment
CN105227855B (en) A kind of image processing method and terminal
JP2022546453A (en) FITNESS AID METHOD AND ELECTRONIC DEVICE
CN110059686B (en) Character recognition method, device, equipment and readable storage medium
US10635892B2 (en) Display control method and apparatus
CN108737635A (en) message display method, device, mobile terminal and storage medium
CN108427873A (en) A kind of biological feather recognition method and mobile terminal
CN109525837B (en) Image generation method and mobile terminal
CN105282409B (en) Camera apparatus and camera apparatus control method
CN110602387B (en) Shooting method and electronic equipment
CN109173254A (en) Game data display methods, mobile terminal and computer readable storage medium
CN108229420A (en) A kind of face identification method, mobile terminal
WO2016065746A1 (en) Terminal device wakeup method and apparatus and storage medium
CN117032612B (en) Interactive teaching method, device, terminal and medium based on high beam imaging learning machine
US20130117591A1 (en) Electronic device
CN108307031B (en) Screen processing method, device and storage medium
CN109743448A (en) Reminding method and terminal device
CN108564196B (en) Method and device for forecasting flood
WO2019174506A1 (en) Display assembly, display control method, display control apparatus, and 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
GR01 Patent grant
GR01 Patent grant