Electronic device control method, device, electronic device and readable storage medium

By obtaining the combined acceleration parameters of the electronic device to determine the motion state and performing target operations, the problems of accidentally turning on the screen and waste of power during running are solved, and user safety is improved.

CN115442476BActive Publication Date: 2024-11-22VIVO MOBILE COMM CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202211145864.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-20
Publication Date
2024-11-22
Estimated Expiration
2042-09-20

AI Technical Summary

Technical Problem

Electronic devices are prone to accidentally illuminating the screen due to violent shaking during running, wasting electricity or posing safety hazards.

Method used

By obtaining the combined acceleration parameters of the electronic device, when the device is in a motion state, perform target operations, such as not responding to the bright screen trigger input, performing alarm operations, and switching to speaker playback when the external device plays audio to avoid accidentally lighting the screen and Improve safety.

Benefits of technology

It effectively avoids the screen of electronic devices accidentally when they are in motion, saves power, and improves the safety of users during exercise, ensuring that users can pay attention to the surrounding environment in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442476B_ABST
    Figure CN115442476B_ABST
Patent Text Reader

Abstract

The present application discloses a control method, device, electronic device and readable storage medium of an electronic device, belonging to the field of communication technology. The method comprises: obtaining target motion parameters of the electronic device, the target motion parameters comprising: the combined acceleration of the electronic device, and controlling the electronic device to perform a target operation when the electronic device is determined to be in a first motion state based on the target motion parameters; wherein the target operation comprises at least one of the following: when receiving a screen-on trigger input, not responding to the screen-on trigger input, performing an alarm operation, and switching to playing audio through a speaker of the electronic device when the electronic device plays audio through an external device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a control method and device for an electronic device, an electronic device, and a readable storage medium. Background Art

[0002] Currently, users can carry electronic devices while running and use them to record the number of steps, etc.

[0003] In the related art, when a user places an electronic device in a backpack and runs with the backpack, the electronic device shakes violently in the backpack, which can easily trigger the electronic device's lift-up to light up screen operation, causing the electronic device to light up the screen by mistake. Or when the user runs more vigorously, he or she can easily ignore the surrounding environment, so there may be safety hazards when running.

[0004] This may cause the screen of the electronic device to light up by mistake while the user is running, resulting in a waste of power or a potential safety hazard for the user during the running process. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a control method, device, electronic device and readable storage medium for an electronic device, which can solve the problem of the electronic device accidentally lighting up the screen while the user is running, resulting in power waste, or potential safety hazards for the user while running.

[0006] In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, the method comprising: obtaining target motion parameters of the electronic device, the target motion parameters comprising: a combined acceleration of the electronic device, and when it is determined based on the target motion parameters that the electronic device is in a first motion state, controlling the electronic device to perform a target operation; wherein the target operation comprises at least one of the following: when receiving a screen light trigger input, not responding to the screen light trigger input, performing an alarm operation, and when the electronic device plays audio through an external device, switching to playing audio through a speaker of the electronic device.

[0007] In a second aspect, an embodiment of the present application provides a control device for an electronic device, the device comprising: an acquisition module and a control module, wherein: the acquisition module is used to acquire target motion parameters of the electronic device; the target motion parameters include: the combined acceleration of the electronic device; the control module is used to control the electronic device to perform a target operation when it is determined that the electronic device is in a first motion state based on the target motion parameters acquired by the acquisition module; wherein the target operation includes at least one of the following: when receiving a screen light trigger input, not responding to the screen light trigger input, performing an alarm operation, and when the electronic device plays audio through an external device, switching to playing audio through a speaker of the electronic device.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, the control device of the electronic device obtains the target motion parameters of the electronic device, and the target motion parameters include: the combined acceleration of the electronic device, and when it is determined that the electronic device is in the first motion state based on the target motion parameters, the electronic device is controlled to perform a target operation; wherein the target operation includes at least one of the following: when receiving a screen-on trigger input, not responding to the screen-on trigger input, performing an alarm operation, and switching to playing audio through a speaker of the electronic device when the electronic device plays audio through an external device. Through this method, the control device of the electronic device can determine whether the electronic device is in the first motion state, and when the electronic device is in the first motion state, perform the target operation, so that when the electronic device is in the first motion state, the screen of the electronic device can be prevented from being mistakenly turned on in the motion state, thereby saving the power of the electronic device, or preventing the user carrying the electronic device from failing to pay attention to the surrounding environment in time in the motion state, causing safety problems, thereby improving the safety of the user in the motion state. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A schematic diagram of a flow chart of a control method of an electronic device provided in an embodiment of the present application;

[0014] Figure 2 A waveform diagram of a control method of an electronic device provided in an embodiment of the present application;

[0015] Figure 3 Another waveform diagram of the control method of the electronic device provided in the embodiment of the present application;

[0016] Figure 4 A schematic diagram of the structure of a control device of an electronic device provided in an embodiment of the present application;

[0017] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0018] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0020] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0021] The control method of the electronic device provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0022] Figure 1 A flow chart of a control method of an electronic device provided in an embodiment of the present application, such as Figure 1 As shown, the control method of the electronic device may include the following steps 201 and 202:

[0023] Step 201: Obtain target motion parameters of the electronic device.

[0024] Wherein, the above-mentioned target motion parameters include: the combined acceleration of the electronic device.

[0025] In an embodiment of the present application, the control device of the electronic device can obtain the acceleration values ​​of the three axes, namely, X-axis, Y-axis and Z-axis, of the acceleration sensor of the electronic device in real time, and then obtain the above-mentioned combined acceleration based on the acceleration values ​​of the three axes, namely, X-axis, Y-axis and Z-axis.

[0026] It should be noted that the acceleration sensor in the electronic device will collect acceleration data in three directions of the electronic device. The first direction is from left to right along the screen of the electronic device. The acceleration data collected in this direction is the acceleration data of the X-axis. The second direction is from top to bottom along the screen of the electronic device. The acceleration data collected in this direction is the acceleration data of the Y-axis. The third direction is perpendicular to the screen of the electronic device from the back to the front of the screen. The acceleration data collected in this direction is the acceleration data of the Z-axis.

[0027] Optionally, in the embodiment of the present application, the above-mentioned target motion parameter may also include speed, such as angular velocity.

[0028] Step 202: When it is determined based on the target motion parameters that the electronic device is in the first motion state, control the electronic device to perform a target operation.

[0029] The target operation includes at least one of the following:

[0030] When receiving a screen-lighting trigger input, do not respond to the screen-lighting trigger input;

[0031] Execute alarm operations;

[0032] When the electronic device plays audio through an external device, the audio is switched to be played through a speaker of the electronic device.

[0033] Optionally, in an embodiment of the present application, the first motion state includes: a motion state in which a target motion state and a complete weightlessness state appear periodically alternately.

[0034] Optionally, in an embodiment of the present application, the target motion state may be a motion state in which the electronic device is thrown upward by an upward force. For example, when a user places the electronic device in a carrier such as a backpack and runs with the backpack, the electronic device is thrown upward by the force of the backpack and then falls in a weightless state. During the user's running process, the electronic device is in an alternating state between the two motion states of throwing upward and falling (which can be regarded as a free fall).

[0035] Exemplarily, the upward force mentioned above refers to a force in an upward direction, and the upward direction refers to a direction perpendicular to the horizontal plane and opposite to the direction of gravity.

[0036] Optionally, in the embodiment of the present application, the electronic device being in the first motion state may be: the electronic device is in a first carrier and is performing a motion state of periodic up and down motion in the first carrier.

[0037] Exemplarily, the first carrier may be an object such as a backpack for carrying electronic devices.

[0038] It is understandable that when the user carries the first carrier to perform periodic alternating movements such as running, the electronic device in the first carrier will be subjected to the upward force of the backpack and the resistance of the air to periodically move up and down. Therefore, the movement state of the electronic device is related to the movement state of the user carrying the electronic device.

[0039] Optionally, in an embodiment of the present application, the above-mentioned triggering screen lighting input may include: at least one of: wrist raising input and double-clicking the screen input.

[0040] For example, when a user is running with an electronic device placed in a backpack, if an input of lifting the electronic device or a double-click on the screen of the electronic device is detected, the user may not respond to the action of lifting the electronic device or the double-click on the screen, that is, the screen-lighting operation of the electronic device may not be performed, thereby automatically shielding the electronic device's screen-lighting by raising the wrist and double-clicking the screen during the user's running, so as to avoid the electronic device's infrared sensor failing or misidentifying as unobstructed, causing the electronic device to mistakenly light up the screen, resulting in battery exhaustion or the screen being mistakenly locked.

[0041] In some embodiments of the present application, when a user is running with an electronic device placed in a backpack, the control device of the electronic device can turn off the screen-on trigger input detection function of the electronic device. Specifically, the electronic device may not detect whether there is currently an input of raising the wrist or lifting the electronic device, and whether a double-click input is received on the screen of the electronic device. In this way, the control device of the electronic device may not detect whether there is a screen-on trigger input for the electronic device, thereby avoiding the electronic device from accidentally lighting up the screen and saving power consumption of the electronic device.

[0042] Optionally, in an embodiment of the present application, the above-mentioned alarm operation includes at least one of outputting alarm audio and emitting alarm light.

[0043] Exemplarily, when it is detected that the electronic device is in the first motion state, the control device of the electronic device can output an alarm audio, for example, "Your current walking speed may be fast, please pay attention to the surrounding environment", and emit a warning light so that pedestrians, vehicles, etc. around can notice the user.

[0044] For example, when a user is running with an electronic device placed in a backpack, the control device of the electronic device can remind the user during or after the running process not to put sharp objects such as keys and the mobile phone in the bag to avoid impact and scratching the screen, thereby preventing the electronic device from colliding with other objects and being damaged.

[0045] Optionally, in an embodiment of the present application, the above-mentioned external device can be an audio output device such as an external wired headset, an external Bluetooth headset or a head-mounted headset.

[0046] For example, when a user is running with an electronic device, the control device of the electronic device automatically switches to the speaker and the Bluetooth headset flashes to signal surrounding vehicles when it detects that the user is using a Bluetooth headset to listen to music or other audio. In this way, the user is prevented from not being able to hear the sounds in the surrounding environment during the running process, thereby ensuring the user's traffic safety.

[0047] In the control method of an electronic device provided in an embodiment of the present application, the control device of the electronic device obtains the target motion parameters of the electronic device, and the target motion parameters include: the combined acceleration of the electronic device, and when it is determined that the electronic device is in the first motion state based on the target motion parameters, the electronic device is controlled to perform a target operation; wherein the target operation includes at least one of the following: when receiving a screen-on trigger input, not responding to the screen-on trigger input, performing an alarm operation, and switching to playing audio through a speaker of the electronic device when the electronic device plays audio through an external device. Through this method, the control device of the electronic device can determine whether the electronic device is in the first motion state, and when the electronic device is in the first motion state, perform the target operation, so that when the electronic device is in the first motion state, the electronic device can be prevented from accidentally lighting up the screen in the motion state, thereby saving the power of the electronic device, or preventing the user carrying the electronic device from failing to pay attention to the surrounding environment in time in the motion state, causing safety problems, thereby improving the safety of the user in the motion state.

[0048] Optionally, in an embodiment of the present application, the control device of the electronic device determines that the electronic device is in the first motion state when the combined acceleration of the electronic device meets a preset condition.

[0049] In some possible embodiments, after the control device of the electronic device obtains the target motion parameter of the electronic device, it can determine whether the user is in a running state based on the target motion parameter. Further, the control device of the electronic device determines that the user is in a running state when the combined acceleration of the electronic device meets the above preset conditions.

[0050] Optionally, in the embodiment of the present application, the above-mentioned preset conditions may include:

[0051] The maximum value of the combined acceleration of the electronic device in the first sampling interval is greater than the first threshold;

[0052] The value of the combined acceleration of the electronic device is within the first value interval during the second sampling interval;

[0053] The maximum value of the combined acceleration of the electronic device in the third sampling interval is greater than the first threshold;

[0054] The first sampling interval, the second sampling interval and the third sampling interval are three consecutive sampling intervals.

[0055] Exemplarily, the first threshold may be 30 m / s2, 40 m / s2 or 50 m / s2, etc. The first threshold may be set according to actual needs, and this application does not limit this.

[0056] Exemplarily, the first numerical interval may be [0, 2]. The first numerical interval may be specifically set according to actual needs, and the present application does not impose any limitation on this.

[0057] It should be noted that, when the electronic device is in a backpack, if it is judged that the combined acceleration of the electronic device in the first sampling interval is greater than the first threshold value (for example, greater than 40m / s2), and the combined acceleration of the electronic device in the second sampling interval is in the first numerical range (for example, [0, 2]), then it indicates that the electronic device is in a state where the thrown-up state and the completely weightless state alternate periodically, which means that the backpack exerts a periodic force on the electronic device, and it can be determined that the electronic device is in the first motion state in the backpack and the user is in a running state.

[0058] The following describes changes in acceleration in various directions of the electronic device and the combined acceleration when the electronic device is in the first motion state and the user is in the running state.

[0059] Figure 2 The following is a waveform diagram of the acceleration and combined acceleration of the electronic device provided in the embodiment of the present application. Figure 2 In the waveform diagram, the horizontal axis represents the sampling time, and the size of each unit scale on the horizontal axis represents 100, and the unit is ms. The vertical axis represents the values ​​of acceleration and combined acceleration, and the size of each unit scale on the vertical axis represents 10, and the unit is m / s2. Figure 2 The waveform labeled “total acceleration” represents the total acceleration, the waveform labeled “X-axis acceleration” represents the X-axis acceleration, the waveform labeled “Y-axis acceleration” represents the Y-axis acceleration, and the waveform labeled “Z-axis acceleration” represents the Z-axis acceleration.

[0060] In the process of sampling through the acceleration sensor, according to the change of the combined acceleration, the entire sampling process can be divided into three stages, stage 1 corresponds to the first sampling interval, stage 2 corresponds to the second sampling interval, and stage 3 corresponds to the third sampling interval. The above-mentioned sampling interval can include multiple sampling point intervals, and each sampling point interval is 20ms. Figure 2 A point on the waveform curve represents a sampling point.

[0061] In order to avoid the four waveforms from overlapping, Figure 2 The middle is the waveform diagram after the waveform curve of the combined acceleration is translated upward by 5m / s2.

[0062] like Figure 2 As shown, in the process of sampling by the acceleration sensor, according to the changes of acceleration and combined acceleration, it can be divided into three stages, corresponding to Figure 2 The stages 1, 2 and 3 are marked in Figure 1.

[0063] In stage 1, the value of the combined acceleration of the electronic device decreases from a maximum value (i.e., the first threshold) of more than 40 m / s2 to less than 6 m / s2 after about four sampling intervals, and the values ​​of the acceleration of the X-axis, Y-axis, and Z-axis decrease from positive or negative values ​​with large absolute values ​​to zero after about four or five sampling intervals.

[0064] It can be understood that in stage 1, when the user is running with the electronic device in the backpack, the user starts to fly, and the electronic device is thrown into the air by the upward force of the backpack. When the electronic device falls from the air in a completely weightless state until it touches the backpack, the backpack exerts an upward force on the mobile phone, and the value of the combined acceleration of the electronic device increases from near zero to a maximum value, for example, above 40m / s2, so that the speed of the electronic device falling downward is quickly reduced to zero relative to the backpack (at this time, the force of the backpack reaches a maximum value), and then the speed of the electronic device gradually increases from zero, and when it increases to the upward speed of the electronic device is greater than or equal to the upward speed of the backpack, the electronic device is no longer affected by the force of the backpack and is in a completely weightless state. At this time, the electronic device is thrown upward again, and the value of the combined acceleration gradually decreases from the maximum value of more than 40m / s2. When the upward speed of the electronic device is greater than or equal to the upward speed of the backpack, when it rises to a certain height, the electronic device is no longer affected by the force of the backpack and is in a completely weightless state, that is, the value of the combined acceleration is reduced to below 6m / s2.

[0065] It should be noted that due to the possibility of air resistance, contact with the backpack, or some flipping of the phone in a state of complete weightlessness, the value of the acceleration sensor inside the phone is not strictly zero, but is usually around 1m / s2 to 2m / s2.

[0066] In stage 2, the values ​​of the four axes corresponding to the electronic device, namely, the X-axis, Y-axis, Z-axis and the total acceleration, are close to zero. Specifically, the acceleration values ​​of the X-axis, Y-axis and Z-axis are between -2 and 2, in units of m / s2, and the value of the total acceleration is between 0 and 2 (i.e., the first numerical interval) for approximately 9 sampling intervals, which is approximately 180ms.

[0067] Combined with the explanation of Stage 1 above, when the electronic device is no longer affected by the force of the backpack and is in a state of complete weightlessness, that is, the value of the combined acceleration is reduced to below 6m / s2, the electronic device performs free fall from a height. During this process, the measured acceleration and the combined acceleration are both close to 0.

[0068] It should be noted that when an object is in free fall, its acceleration is g=9.8. However, since the three directions of the X-axis, Y-axis and Z-axis data of the acceleration sensor are relative to the electronic device, and the posture of the electronic device in the air is unknown when it is completely weightless, that is to say, the relationship between the coordinate system of the electronic device and the earth's coordinate system is unknown, the acceleration of each axis obtained in this case is close to zero in value.

[0069] In stage 3, the value of the combined acceleration of the electronic device reaches a maximum value of more than 40 m / s2 from less than 6 m / s2 after about 4 sampling intervals (4*20 milliseconds = 80 milliseconds), and then decreases to less than 6 m / s2 after about 4 sampling intervals (4*20 milliseconds = 80 milliseconds); the other three axes XYZ first increase suddenly and then decrease suddenly, and some rise and fall with oscillations, but the absolute values ​​of the three axes XYZ decrease to near 0 almost synchronously with the combined acceleration.

[0070] Combined with the explanations of the above-mentioned stages 1 and 2, in stage 3, the electronic device freely falls from a height and contacts the backpack. In this case, the backpack exerts an upward force on the electronic device to prevent the phone from falling further. This force causes the combined acceleration of the electronic device to rapidly increase from near zero to a maximum value of more than 40m / s2. The electronic device is then thrown upward by the force of the backpack. During the ascent, the speed of the electronic device gradually increases from zero to upward, and the combined acceleration continues to decrease to below 6m / s2. In this case, the electronic device is no longer affected by the force of the backpack and is in a falling state in a weightless state. The value of the combined acceleration measured during the fall is around 1m / s2 to 2m / s2.

[0071] In the subsequent sampling process, the above three stages appear periodically, and one cycle can be regarded as a step cycle in the running state. The cycle lengths of several adjacent step cycles and the duration of the weightlessness state of the electronic equipment within the cycle are basically the same.

[0072] It should be noted that in a step cycle, when the user moves up and down while running, the backpack will throw the electronic device upward, causing the electronic device to have a period of free fall motion. The acceleration is manifested in that the X-axis, Y-axis, Z-axis acceleration and the total acceleration are close to zero for a period of time (i.e., stage 1 and stage 2). After the electronic device falls, it is pushed upward by the upward force of the backpack. The acceleration of some axes in the X-axis, Y-axis, and Z-axis of the electronic device and the total acceleration first increase and then decrease (i.e., stage 3). During the entire running process, the total acceleration of the electronic device first increases and then decreases, and the weightlessness state periodically alternates.

[0073] In some possible implementations, if the combined acceleration of the electronic device satisfies the changes in the combined acceleration in the above three stages, it can be considered that the electronic device is in a backpack, and the user is running with the backpack.

[0074] It should be noted that the values ​​of the combined acceleration in the above examples, such as the maximum value 40m / s2 and the minimum value 6m / s2, are only examples of the combined acceleration values ​​provided in the embodiments of the present application, and do not constitute a limitation on the combined acceleration values.

[0075] Figure 3 Another waveform diagram of the acceleration and combined acceleration of the electronic device provided in the embodiment of the present application, which is also a waveform diagram of the electronic device moving in a backpack. Figure 3 For detailed explanations, please refer to Figure 2 The relevant explanations will not be repeated here.

[0076] like Figure 3 As shown, during the user's running process, since the electronic device is in motion in the backpack, a motion state in which the combined acceleration of the electronic device first increases and then decreases and a weightlessness state periodically alternates occurs.

[0077] Optionally, in the embodiment of the present application, controlling the electronic device to perform the target operation in the above step 202 may include the following steps B1:

[0078] Step B1: When the target motion information of the target user meets a first preset condition, control the electronic device to perform a target operation.

[0079] The target motion information of the target user is determined based on the target motion parameters; the target motion information includes at least one of the number of motion steps and the energy available during motion;

[0080] Optionally, the first preset condition may be: at least one of the number of movement steps being greater than a second threshold and the energy possessed during movement being greater than a third threshold.

[0081] For example, the control device of the electronic device can calculate the number of steps of the user through the data collected by the inertial sensor. The specific method can be referred to the relevant technology, and the embodiment of the present application does not limit this.

[0082] Exemplarily, the control device of the electronic device can obtain the acceleration of the electronic device when the user is running through an acceleration sensor, and then obtain the energy of the user when running based on the acceleration of the electronic device.

[0083] Specifically, the energy of the user when running can be calculated based on the energy of the electronic device. The energy of the electronic device refers to kinetic energy. Since the mass of the electronic device is fixed, the kinetic energy is positively correlated with the force, that is, it is positively correlated with the range of the acceleration amplitude (that is, the maximum value minus the minimum value). Therefore, the range of acceleration multiplied by a preset fixed parameter can be used to represent the energy of the movement.

[0084] Exemplarily, the control device of the electronic device can calculate the number of steps of the user when running and the energy possessed by the user when running, and determine whether to perform the above-mentioned target operation according to whether the number of steps and the energy exceed a threshold.

[0085] For example, when a user is running with an electronic device, if the number of steps counted within 2 seconds exceeds 10 (i.e., the second threshold) and the energy exceeds the preset energy threshold, it indicates that the user's current running exercise is relatively intense. The control device of the electronic device can output an alarm audio, for example, "You are currently walking at a fast speed, please pay attention to the surrounding environment", and emit a warning light so that pedestrians and vehicles around can notice the user.

[0086] It should be noted that the number of running steps exceeds the preset threshold, such as ten steps, which can be used to prevent some non-running states from being misjudged as running states; the energy exceeds the preset threshold, which means that this is not a very slow and light jogging exercise, because light jogging can be ignored and does not require recognition to automatically take safety measures. When the energy exceeds the preset threshold, the algorithm recognizes it and automatically takes safety measures to improve the safety of the user when running.

[0087] In this way, when the user puts the electronic device in a backpack (or handbag, shoulder bag, etc.) and suddenly starts running, the control device of the electronic device automatically detects the motion acceleration sensor characteristics and force analysis of the electronic device, and automatically takes safety measures during the running process to improve the safety of the user when running.

[0088] Optionally, in an embodiment of the present application, the target motion information further includes: the time that both feet of the target user are in the air during M motion cycles, where M is a positive integer.

[0089] Optionally, in step 202, controlling the electronic device to perform the target operation may include the following steps D1 and D2:

[0090] Step D1: Obtain a first proportion.

[0091] The first proportion is: the proportion of the target user's feet-off-the-air time in the M exercise cycles to the duration of the M exercise cycles.

[0092] Step D2: Based on the first proportion, control the electronic device to perform a target operation.

[0093] Exemplarily, the control device of the electronic device may control the electronic device to output the first information based on the first proportion. Exemplarily, the first information may include proportion information corresponding to the first proportion, and the first information may be used to remind the user of the footstep strength and health level.

[0094] For example, the control device of the electronic device may obtain the speed and acceleration of the electronic device through an inertial sensor, and calculate the time that the user's feet are in the air during running based on the speed and acceleration of the electronic device.

[0095] For example, taking the case where M exercise cycles include 10 exercise cycles, the control device of the electronic device can count the time when the user's feet are free in the 10 running cycles, and then calculate the ratio of the time when the feet are free to the cycle duration, to obtain the proportion of the time when the feet are free in the cycle duration of the 10 running cycles, and display the proportion information for the user as a reference.

[0096] It is understandable that the greater the proportion of air time, the stronger the user's footsteps and healthier the user is considered to be. This is because if the proportion of air time when the user is running is larger, it means that the steps are longer and the height of the air is higher, and the time to rebound from the ground is shorter, which can help determine that the user's leg muscles are relatively strong. Therefore, the value of the proportion of air time can be reported to the user for reference as an auxiliary basis for judging the user's footsteps and healthier status.

[0097] It should be noted that one exercise cycle represents one running cycle, that is, one step cycle.

[0098] In this way, the control device of the electronic device can obtain the user's air time ratio during the user's running and provide the ratio information to the user, so that the user can know the pace information during exercise, thereby facilitating the user to evaluate his or her physical condition based on the pace information.

[0099] Optionally, in the embodiment of the present application, the above step D2 may include the following steps E1:

[0100] Step E1: when the first proportion is within the target threshold range, output target prompt information corresponding to the target threshold range.

[0101] The target prompt information is used to prompt the target health level corresponding to the health status of the target user.

[0102] Exemplarily, the target threshold range is one of the preset first threshold range, the second threshold range and the third threshold range. Exemplarily, the first threshold range can be expressed as (0, T1], the second threshold range can be expressed as (T1, T2], and the third threshold range can be expressed as (T2, T3], where T1 <T2<T3。

[0103] Exemplarily, T1 may be 30%, T2 may be 60%, and T3 may be 80%. It should be noted that the above thresholds are merely examples provided in the present application and do not constitute a limitation to the present application.

[0104] For example, a threshold range may correspond to a health level. For example, the health level may be: excellent, good and poor, or include: A, B and C. The higher the alphabetical order of the level, the higher the level and the higher the health level.

[0105] Exemplarily, the health level corresponding to the third threshold range may be excellent or Class A, the health level corresponding to the second threshold range may be good or Class B, and the health level corresponding to the third threshold range may be poor or Class C.

[0106] It can be understood that the greater the proportion of time the user is in the air during running, the longer the steps are and the higher the height of the air is, and the shorter the time of rebounding from the ground is, which means that the user's footsteps are stronger and the (leg) healthier.

[0107] Exemplarily, taking M exercise cycles including three exercise cycles as an example, assuming that the duration of the user's three running cycles is about 1 second, and the time that the user's feet are in the air is about 0.3 seconds in the three running cycles, then the proportion of the user's feet in the air is about 30%, and the proportion of the user's feet in the air is within the first threshold range. In this case, the control device of the electronic device can display a prompt message or output a prompt audio after the user finishes running: "Your (leg) health is poor, pay attention to your physical health" to prompt the user's health information for the user's reference.

[0108] Exemplarily, taking M exercise cycles including three exercise cycles as an example, assuming that the duration of the user's three running cycles is about 1 second, and the time that the user's feet are in the air during the three running cycles is about 0.5 seconds, then the proportion of the user's feet in the air is about 50%, and the proportion of the user's feet in the air is within the second threshold range. In this case, the control device of the electronic device can display a prompt message or output a prompt audio after the user finishes running: "Your (leg) health is good" to prompt the user's health information for reference. In this way, the control device of the electronic device can preliminarily estimate the user's health status based on the proportion of the user's feet in the air during the running process and prompt the user, so that the user can know his or her health status in time.

[0109] Further, when the first proportion is within the first threshold range, the control device of the electronic device evaluates the health status of the target user based on the first proportion and the second information of the target user, and outputs evaluation result information.

[0110] Among them, the above-mentioned evaluation result information is used to remind the target user whether there are any health risks.

[0111] The second information includes at least one of the following: step frequency, single-leg support time, and step amplitude.

[0112] For example, the control device of the electronic device can determine the user's step frequency, single-leg support time, and step amplitude through data such as speed, angular velocity, and acceleration collected by the inertial sensor of the electronic device.

[0113] Exemplarily, when the control device of the electronic device determines that the target user's feet are in the air time within the above-mentioned first threshold range, it can comprehensively judge the user's health status based on information such as the user's recent exercise step frequency, whether the left and right steps are symmetrical, the single-leg support time, and the amplitude of the steps.

[0114] Exemplarily, the control device of the electronic device can determine whether the user's step frequency is less than a fourth threshold, whether the single-leg support time is less than a fifth threshold, and whether the stride amplitude is less than a sixth threshold when the user is running recently. When all the above conditions are met, it is determined that the user's health condition is poor, and the evaluation result information is displayed to inform the user that the user's health condition is poor recently and there may be health risks.

[0115] It can be understood that when the user is in relatively good physical condition and engages in exercise such as running, the user's step amplitude, step frequency, step symmetry, and single-leg support time are usually within the normal range. If the step amplitude, step frequency, step symmetry, single-leg support time and other parameters are all lower than the normal range, it means that the user's steps are small, slow, and lack stability, which may indicate that the user is in poor physical health and may have health risks, which may remind the user that further examination and treatment are needed.

[0116] It should be noted that when the proportion of the time when the user's feet are in the air while running is within the first threshold range, it means that the user is in poor physical condition during this running process. Therefore, based on the user's recent exercise information such as step frequency and stride amplitude, it is possible to further comprehensively judge whether the user has health risks. In this way, the accuracy of the judgment of the user's health status can be improved.

[0117] The electronic device control method provided in the embodiment of the present application can be executed by a control device of the electronic device. In the embodiment of the present application, the electronic device control method is executed by a control device of the electronic device as an example to illustrate the electronic device control device provided in the embodiment of the present application.

[0118] Figure 4 A schematic diagram of the structure of a control device of an electronic device provided in an embodiment of the present application, such as Figure 4 The control device 400 of the electronic device includes: an acquisition module 401 and a control module 402, wherein:

[0119] The acquisition module 401 is used to acquire target motion parameters of the electronic device; the target motion parameters include: the combined acceleration of the electronic device;

[0120] A control module, configured to control the electronic device to perform a target operation when it is determined that the electronic device is in a first motion state based on the target motion parameters acquired by the acquisition module;

[0121] The target operation includes at least one of the following:

[0122] When receiving a screen-lighting trigger input, do not respond to the screen-lighting trigger input;

[0123] Execute alarm operations;

[0124] When the electronic device plays audio through an external device, switch to playing the audio through a speaker of the electronic device.

[0125] Optionally, in an embodiment of the present application, the first motion state includes: a motion state in which a target motion state and a complete weightlessness state appear periodically alternately, and the target motion state is a motion state in which the electronic device moves upward due to an upward force.

[0126] Optionally, in the embodiment of the present application,

[0127] The control module is specifically used to control the electronic device to perform a target operation when the target motion information of the target user meets a first preset condition;

[0128] The target motion information of the target user is determined based on the target motion parameters; the target motion information includes: the number of motion steps and the energy possessed during motion;

[0129] The first preset condition includes at least one of the number of movement steps being greater than a first threshold and the energy possessed during movement being greater than a second threshold.

[0130] Optionally, in the embodiment of the present application, the target motion information further includes: the time when the feet of the target user are in the air within M motion cycles, where M is a positive integer;

[0131] The acquisition module is further used to acquire a first proportion, where the first proportion is: the proportion of the target user's feet being airborne time in the M exercise cycles to the duration of the M exercise cycles;

[0132] The control module is specifically used to control the electronic device to perform a target operation based on the first proportion.

[0133] Optionally, in the embodiment of the present application,

[0134] A control module, specifically configured to output target prompt information corresponding to the target threshold range when the first proportion falls within the target threshold range, the target prompt information being used to prompt the target user that the health condition is at the target health level;

[0135] The second information includes at least one of the following: step frequency, single-leg support time, and step amplitude.

[0136] In the control device of the electronic device provided in the embodiment of the present application, the control device of the electronic device obtains the target motion parameters of the electronic device, and the target motion parameters include: the combined acceleration of the electronic device, and when it is determined that the electronic device is in the first motion state based on the target motion parameters, the electronic device is controlled to perform the target operation; wherein the target operation includes at least one of the following: when receiving the screen-on trigger input, not responding to the screen-on trigger input, performing an alarm operation, and switching to playing audio through the speaker of the electronic device when the electronic device plays audio through an external device. Through this method, the control device of the electronic device can determine whether the electronic device is in the first motion state, and when the electronic device is in the first motion state, perform the target operation, so that when the electronic device is in the first motion state, the electronic device can be prevented from accidentally lighting up the screen in the motion state, thereby saving the power of the electronic device, or preventing the user carrying the electronic device from failing to pay attention to the surrounding environment in time in the motion state, causing safety problems, thereby improving the safety of the user in the motion state.

[0137] The control device of the electronic device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0138] The control device of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0139] The control device of the electronic device provided in the embodiment of the present application can achieve Figures 1 to 3To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0140] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores programs or instructions that can be executed on the processor 501, and when the program or instructions are executed by the processor 501, the various steps of the control method embodiment of the above-mentioned electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0141] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0142] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0143] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0144] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0145] The processor 110 is used to obtain target motion parameters of the electronic device; the target motion parameters include: the combined acceleration of the electronic device;

[0146] The processor 110 is configured to control the electronic device to perform a target operation when it is determined that the electronic device is in a first motion state based on the target motion parameter acquired by the processor 110; wherein the performing of the target operation includes at least one of the following:

[0147] When receiving a screen-lighting trigger input, do not respond to the screen-lighting trigger input;

[0148] Execute alarm operations;

[0149] When the electronic device plays audio through an external device, switch to playing the audio through a speaker of the electronic device.

[0150] Optionally, in an embodiment of the present application, the first motion state includes: a motion state in which a target motion state and a complete weightlessness state appear periodically alternately, and the target motion state is a motion state in which the electronic device moves upward due to an upward force.

[0151] Optionally, in the embodiment of the present application,

[0152] The processor 110 is specifically configured to control the electronic device to perform a target operation when the target motion information of the target user meets a first preset condition;

[0153] The target motion information of the target user is determined based on the target motion parameters; the target motion information includes: the number of motion steps and the energy possessed during motion;

[0154] The first preset condition includes at least one of the number of movement steps being greater than a first threshold and the energy possessed during movement being greater than a second threshold.

[0155] Optionally, in the embodiment of the present application, the target motion information further includes: the time when the feet of the target user are in the air within M motion cycles, where M is a positive integer;

[0156] The processor 110 is further configured to obtain a first proportion, where the first proportion is: a proportion of the time when the feet of the target user are in the air during the M exercise cycles to the duration of the M exercise cycles;

[0157] The processor 110 is specifically configured to control the electronic device to perform a target operation based on the first ratio.

[0158] Optionally, in the embodiment of the present application,

[0159] The processor 110 is specifically configured to output target prompt information corresponding to the target threshold range when the first proportion is within the target threshold range, where the target prompt information is used to prompt that the health status of the target user is at the target health level;

[0160] The second information includes at least one of the following: step frequency, single-leg support time, and step amplitude.

[0161] In the electronic device provided in the embodiment of the present application, the electronic device obtains the target motion parameters of the electronic device, and the target motion parameters include: the combined acceleration of the electronic device, and when it is determined that the electronic device is in the first motion state based on the target motion parameters, the electronic device is controlled to perform a target operation; wherein the target operation includes at least one of the following: when receiving a screen-on trigger input, not responding to the screen-on trigger input, performing an alarm operation, and switching to playing audio through the speaker of the electronic device when the electronic device plays audio through an external device. Through this method, the electronic device can determine whether the electronic device is in the first motion state, and when it is in the first motion state, perform the target operation, so that when the electronic device is in the first motion state, the screen can be prevented from being mistakenly turned on in the motion state, thereby saving the power of the electronic device, and preventing the user carrying the electronic device from failing to pay attention to the surrounding environment in time in the motion state, causing safety problems, thereby improving the safety of the user in the motion state.

[0162] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0163] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0164] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0165] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0166] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0167] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0168] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0169] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the electronic device as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0170] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0171] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0172] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A control method for an electronic device, characterized in that: The method comprises: Acquiring target motion parameters of the electronic device; the target motion parameters include a combined acceleration of the electronic device; When the target motion parameter indicates that the electronic device is in a first motion state and the target motion information of the target user meets a first preset condition, controlling the electronic device to perform a target operation; The target operation includes at least one of the following: In the case of receiving a screen-lighting trigger input, not responding to the screen-lighting trigger input; Execute alarm operations; When the electronic device plays audio through an external device, switching to playing the audio through a speaker of the electronic device; The first motion state includes: a motion state in which a target motion state and a complete weightlessness state appear periodically alternately, and the target motion state is a motion state in which the electronic device moves upward due to an upward force; the first preset condition includes that the number of motion steps is greater than a first threshold and the energy possessed during motion is greater than a second threshold.

2. The method according to claim 1, characterized in that The target motion information of the target user is determined based on the target motion parameters; the target motion information includes: the number of motion steps and the energy possessed during motion.

3. The method according to claim 2, characterized in that The target motion information also includes: the time that the feet of the target user are in the air during M motion cycles, where M is a positive integer; The controlling the electronic device to perform a target operation includes: Obtaining a first proportion, where the first proportion is: the proportion of the time when the feet of the target user are in the air during the M exercise cycles to the duration of the M exercise cycles; Based on the first proportion, the electronic device is controlled to perform a target operation.

4. The method according to claim 3, characterized in that The controlling the electronic device to perform a target operation based on the first proportion includes: In a case where the first proportion is within a target threshold range, target prompt information corresponding to the target threshold range is output, where the target prompt information is used to prompt that the health status of the target user is at a target health level.

5. A control device for an electronic device, characterized in that: The device comprises: an acquisition module and a control module, wherein: The acquisition module is used to acquire target motion parameters of the electronic device; the target motion parameters include the combined acceleration of the electronic device; The control module is configured to control the electronic device to perform a target operation when the target motion parameter acquired by the acquisition module indicates that the electronic device is in a first motion state and the target motion information of the target user meets a first preset condition; The target operation includes at least one of the following: In the case of receiving a screen-lighting trigger input, not responding to the screen-lighting trigger input; When the electronic device plays audio through an external device, switching to playing the audio through a speaker of the electronic device; The first motion state includes: a motion state in which a target motion state and a complete weightlessness state appear periodically alternately, and the target motion state is a motion state in which the electronic device moves upward due to an upward force; the first preset condition includes that the number of motion steps is greater than a first threshold and the energy possessed during motion is greater than a second threshold.

6. The device according to claim 5, characterized in that The target motion information of the target user is determined based on the target motion parameters; the target motion information includes: the number of motion steps and the energy possessed during motion.

7. The device according to claim 6, characterized in that The target motion information also includes: the time that the feet of the target user are in the air during M motion cycles, where M is a positive integer; The acquisition module is further used to acquire a first proportion, where the first proportion is: the proportion of the time when the feet of the target user are in the air during the M exercise cycles to the duration of the M exercise cycles; The control module is specifically configured to control the electronic device to perform a target operation based on the first ratio.

8. The device according to claim 7, characterized in that The control module is specifically configured to output target prompt information corresponding to the target threshold range when the first proportion is within the target threshold range, wherein the target prompt information is configured to prompt that the health status of the target user is at a target health level.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device as described in any one of claims 1 to 4 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Method and device for counting steps, method for correcting paces and method for measuring distance

    CN101354265A

  • Stride correction method, ranging method and step-counting device

    CN101881625A

  • Intelligent mountain bike helmet and realization method thereof

    CN101884439A

  • Systems and methods for establishing group communication based on motion of mobile device and on voice command

    CN104583893A

  • Anti-false-triggering method and device for wrist-worn equipment, electronic equipment and storage medium

    CN113031840A