CN115442476A - Control method and device of electronic equipment, electronic equipment and readable storage medium - Google Patents

Control method and device of electronic equipment, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115442476A
CN115442476A CN202211145864.3A CN202211145864A CN115442476A CN 115442476 A CN115442476 A CN 115442476A CN 202211145864 A CN202211145864 A CN 202211145864A CN 115442476 A CN115442476 A CN 115442476A
Authority
CN
China
Prior art keywords
target
electronic device
electronic equipment
user
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211145864.3A
Other languages
Chinese (zh)
Inventor
王丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211145864.3A priority Critical patent/CN115442476A/en
Publication of CN115442476A publication Critical patent/CN115442476A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • H04M1/724631User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device by limiting the access to the user interface, e.g. locking a touch-screen or a keypad
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a control method and device of electronic equipment, the electronic equipment and a readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: obtaining target motion parameters of electronic equipment, wherein the target motion parameters comprise: the resultant acceleration of the electronic equipment controls the electronic equipment to execute the target operation under the condition that the electronic equipment is judged to be in the first motion state based on the target motion parameters; wherein the target operation comprises at least one of: and under the condition of receiving the bright screen trigger input, the electronic equipment does not respond to the bright screen trigger input, executes alarm operation, and under the condition that the electronic equipment plays audio through the external equipment, switches to playing the audio through a loudspeaker of the electronic equipment.

Description

Control method and device of electronic equipment, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a control method and device for electronic equipment, the electronic equipment and a readable storage medium.
Background
Currently, a user can carry an electronic device during running, and exercise steps and the like are recorded through the electronic device.
In the related art, when a user places the electronic device in a backpack and runs with the backpack, the electronic device is prone to triggering screen-lighting lifting operation of the electronic device due to severe shaking of the electronic device in the backpack, so that the electronic device is prone to mistakenly lighting the screen, or when the user runs violently, the surrounding environment is prone to being ignored, and therefore potential safety hazards may exist during running.
Therefore, the electronic equipment is turned on by mistake in the running process of the user, the electric quantity is wasted, or potential safety hazards exist in the running process of the user.
Disclosure of Invention
The embodiment of the application aims to provide a control method and device of electronic equipment, the electronic equipment and a readable storage medium, and the problems that the screen is turned on by mistake in the running process of a user, so that the electric quantity is wasted, or potential safety hazards may exist in the running process of the user can be solved.
In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, where the method includes: obtaining target motion parameters of electronic equipment, wherein the target motion parameters comprise: the resultant acceleration of the electronic equipment controls the electronic equipment to execute the target operation under the condition that the electronic equipment is judged to be in the first motion state based on the target motion parameters; wherein the target operation comprises at least one of: and under the condition of receiving the bright screen trigger input, the electronic equipment does not respond to the bright screen trigger input, executes alarm operation, and under the condition that the electronic equipment plays audio through the external equipment, switches to playing the audio through a loudspeaker of the electronic equipment.
In a second aspect, an embodiment of the present application provides a control apparatus for an electronic device, where the apparatus includes: an acquisition module and a control module, wherein: the acquisition module is used for acquiring target motion parameters of the electronic equipment; the target motion parameters include: a resultant acceleration of the electronic device; the control module is used for controlling the electronic equipment to execute the target operation under the condition that the electronic equipment is judged to be in the first motion state based on the target motion parameters acquired by the acquisition module; wherein the target operation comprises at least one of: and under the condition of receiving the bright screen trigger input, the electronic equipment does not respond to the bright screen trigger input, executes alarm operation, and under the condition that the electronic equipment plays audio through the external equipment, switches to playing the audio through a loudspeaker of the electronic equipment.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method according to the first aspect.
In this embodiment, a control device of an electronic device obtains a target motion parameter of the electronic device, where the target motion parameter includes: the resultant acceleration of the electronic equipment controls the electronic equipment to execute target operation under the condition that the electronic equipment is judged to be in a first motion state based on the target motion parameters; wherein the target operation comprises at least one of: and under the condition of receiving the bright screen trigger input, the bright screen trigger input is not responded, the alarm operation is executed, and under the condition that the electronic equipment plays the audio through the external equipment, the audio is played through a loudspeaker of the electronic equipment. By the method, the control device of the electronic equipment can judge whether the electronic equipment is in the first motion state or not, and execute the target operation under the condition that the electronic equipment is in the first motion state, so that the electronic equipment can be prevented from being mistakenly turned on under the motion state under the condition that the electronic equipment is in the first motion state, the electric quantity of the electronic equipment is saved, or the safety problem caused by the fact that a user carrying the electronic equipment cannot timely pay attention to the surrounding environment under the motion state is avoided, and the safety of the user under the motion state is improved.
Drawings
Fig. 1 is a schematic flowchart of a control method of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic waveform diagram of a control method of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic waveform diagram of another control method for an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a control device of an electronic apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a control method of an electronic device according to an embodiment of the present application with reference to the accompanying drawings and a specific embodiment and an application scenario thereof.
Fig. 1 is a flowchart of a control method for an electronic device according to an embodiment of the present application, and as shown in fig. 1, the control method for the electronic device may include the following steps 201 and 202:
step 201: and acquiring target motion parameters of the electronic equipment.
Wherein, the target motion parameters include: the resultant acceleration of the electronic device.
In this embodiment, the control device of the electronic device may obtain, in real time, acceleration values of three axes, i.e., an X axis, a Y axis, and a Z axis, of the acceleration sensor through the acceleration sensor of the electronic device, and then obtain the resultant acceleration based on the acceleration values of the three axes, i.e., the X axis, the Y axis, and the Z axis.
It should be noted that, an acceleration sensor in the electronic device may acquire acceleration data of the electronic device in three directions, a first direction is from left to right along a screen of the electronic device, the acceleration data acquired in the direction is acceleration data of an X axis, a second direction is from top to bottom along the screen of the electronic device, the acceleration data acquired in the direction is acceleration data of a Y axis, the second direction is perpendicular to the screen of the electronic device and points to a front surface of the screen from a back surface, and the acceleration data acquired in the direction is acceleration data of a Z axis.
Optionally, in this embodiment of the present application, the target motion parameter may further include a velocity, such as an angular velocity.
Step 202: and controlling the electronic equipment to execute the target operation under the condition that the electronic equipment is judged to be in the first motion state based on the target motion parameters.
Wherein the executing the target operation comprises at least one of the following:
not responding to the bright screen trigger input under the condition of receiving the bright screen trigger input;
executing alarm operation;
and under the condition that the electronic equipment plays the audio through the external equipment, switching to the mode that the audio is played through a loudspeaker of the electronic equipment.
Optionally, in an embodiment of the present application, the first motion state includes: the target motion state and the complete weightlessness state periodically alternate with the motion state.
Optionally, in this embodiment of the present application, the target motion state may be a motion state in which the electronic device is subjected to upward acting force to perform an upward throwing motion. 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 into a weightless state. During the running process of the user, the electronic equipment is in an alternative state of two motion states of upward throwing and falling (which can be regarded as free falling body).
Illustratively, the above-mentioned upward force refers to a force in an upward direction, and the upward direction refers to a direction perpendicular to the horizontal plane, opposite to the direction of gravity.
Optionally, in this embodiment of the application, the electronic device in the first motion state may be: the electronic equipment is in a first carrier and is in a motion state of periodically moving up and down in the first carrier.
For example, the first carrier may be a backpack or other object for carrying electronic devices.
It will be appreciated that when the user carries the first carrier for a periodic alternating movement of vacating and landing, such as running, the electronic equipment in the first carrier is subjected to the upward force of the backpack and the resistance of the air, etc. for periodic up-and-down movement. Thus, the motion state of the electronic device is related to the motion state of the user carrying the electronic device.
Optionally, in this embodiment of the present application, the triggering of the bright screen input may include: at least one of a wrist-up input and a double-click screen input.
For example, in the running condition that the user carries the electronic device placed in the backpack, if the input for lifting the electronic device or the double-click input on the screen of the electronic device is detected, the input for lifting the electronic device or the double-click input on the screen is not responded, that is, the screen-up operation on the electronic device is not executed, so that the wrist-lifting screen-up and the double-click screen-up of the electronic device are automatically shielded in the running process of the user, and the condition that the infrared sensor of the electronic device is invalid or the electronic device is mistakenly identified as being not shielded to cause the wrong screen-up of the electronic device to cause the electric quantity exhaustion or the wrong unlocking of the screen-up is avoided.
In some embodiments of the present application, in a running situation where a user carries an electronic device placed in a backpack, a control device of the electronic device may turn off a bright screen of the electronic device to trigger an input detection function. In particular, the electronic device may not detect whether there is currently a wrist-up or input lifting the electronic device, and whether a double-tap input is received on the screen of the electronic device. Therefore, the control device of the electronic equipment can not detect whether the electronic equipment has the screen-lighting triggering input or not, so that the screen lighting error of the electronic equipment is avoided, and the power consumption of the electronic equipment is saved.
Optionally, in this embodiment of the present application, the warning operation includes at least one of outputting a warning audio and emitting a warning light.
For example, in the case where it is detected that the electronic apparatus is in the first motion state, the control device of the electronic apparatus may output a warning audio, for example, "you may be fast walking, please keep track of the surrounding environment", and issue a warning light to enable surrounding pedestrian vehicles and the like to notice the user.
For example, in the case that the user runs with the electronic device placed in the backpack, the control device of the electronic device may prompt the user not to put a sharp object, such as a key, at the same position in the backpack as the mobile phone during or after the user runs, so as to avoid scratching the screen by impact, thereby preventing the electronic device from being damaged by impact with other objects during the user running.
Optionally, in this embodiment of the application, the external device may be an external wired earphone, an external bluetooth earphone, or a headset.
Illustratively, during running with the electronic device carried by the user, the control device of the electronic device automatically switches to speaker out and the bluetooth headset blinks to signal the surrounding vehicle when detecting that the user is listening to music or other audio using the bluetooth headset. Therefore, the situation that the user cannot hear the sound in the surrounding environment in the running process is avoided, and the traffic safety of the user is ensured.
In the method for controlling an electronic device provided in an embodiment of the present application, a control apparatus of the electronic device obtains a target motion parameter of the electronic device, where the target motion parameter includes: the resultant acceleration of the electronic equipment controls the electronic equipment to execute target operation under the condition that the electronic equipment is judged to be in a first motion state based on the target motion parameters; wherein the target operation comprises at least one of: and under the condition of receiving the bright screen trigger input, the electronic equipment does not respond to the bright screen trigger input, executes alarm operation, and under the condition that the electronic equipment plays audio through the external equipment, switches to playing the audio through a loudspeaker of the electronic equipment. By the method, the control device of the electronic equipment can judge whether the electronic equipment is in the first motion state or not, and execute the target operation under the condition that the electronic equipment is in the first motion state, so that the electronic equipment can be prevented from being mistakenly lightened under the motion state under the condition that the electronic equipment is in the first motion state, the electric quantity of the electronic equipment is saved, or the safety problem caused by the fact that a user carrying the electronic equipment cannot timely pay attention to the surrounding environment under the motion state is avoided, and the safety of the user under the motion state is improved.
Optionally, in this 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 resultant acceleration of the electronic device satisfies the preset condition.
In some possible embodiments, after the control device of the electronic device obtains the target motion parameter of the electronic device, it may be determined 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 the running state when the resultant acceleration of the electronic device satisfies the preset condition.
Optionally, in this embodiment of the present application, the meeting the preset condition may include:
the maximum value of the resultant acceleration of the electronic equipment at the first sampling interval is greater than a first threshold value;
the numerical value of the resultant acceleration of the electronic equipment is positioned in a first numerical value interval at a second sampling interval;
the maximum value of the total acceleration of the electronic equipment in the third sampling interval is larger than the first threshold value;
the first sampling interval, the second sampling interval and the third sampling interval are three continuous sampling intervals.
Illustratively, the first threshold may be 30m/s2, 40m/s2, or 50m/s2, and the first threshold may be specifically set according to actual requirements, and this is not limited in this application.
For example, the first value interval may be [0,2], and the first value interval may be specifically set according to an actual requirement, which is not limited in this application.
It should be noted that, in a case that the electronic device is in the backpack, if it is determined that the total acceleration of the electronic device in the first sampling interval is greater than a first threshold (e.g., exceeds 40m/s 2) and the total acceleration of the electronic device in the second sampling interval is in a first numerical range (e.g., [0,2 ]), it is indicated that the electronic device is in a state where the tossing state and the completely weightless state periodically and alternately appear, and it is determined that the backpack has a periodic acting force on the electronic device, and it may be determined that the electronic device is in the first exercise state in the backpack and the user is in the running state.
The following describes changes in acceleration and resultant acceleration of the electronic device in each direction when the electronic device is in the first exercise state and the user is in the running state.
Fig. 2 is a waveform diagram of acceleration and resultant acceleration of an electronic device according to an embodiment of the present disclosure. In fig. 2, the abscissa axis of the waveform diagram represents a sampling time, the size of each unit scale on the abscissa axis represents 100 in ms, the ordinate axis represents the acceleration and the resultant acceleration, and the size of each unit scale on the ordinate axis represents 10 in m/s2. The waveform labeled "combined acceleration" in fig. 2 represents combined acceleration, the waveform labeled "X-axis acceleration" represents X-axis acceleration, the waveform labeled "Y-axis acceleration" represents Y-axis acceleration, and the waveform labeled "Z-axis acceleration" represents Z-axis acceleration.
In the process of sampling by the acceleration sensor, the whole sampling process can be divided into three stages according to the change condition of the combined acceleration, wherein the stage 1 corresponds to a first sampling interval, the stage 2 corresponds to a second sampling interval, and the stage 3 corresponds to a third sampling interval. The one sampling interval may include a plurality of sampling point intervals, each of which is 20ms. The points on the wave curve in fig. 2 represent one sample point.
In order to avoid overlapping of the four wave curves, fig. 2 is a wave diagram in which the wave curves of the resultant acceleration are translated upward by 5m/s2 as a whole.
As shown in fig. 2, in the process of sampling by the acceleration sensor, three stages can be divided according to the change of the acceleration and the resultant acceleration, which correspond to stage 1, stage 2 and stage 3 labeled in fig. 2, respectively.
In phase 1, the value of the total acceleration of the electronic device is reduced from 40m/s2 or more, which is the maximum value (i.e., the first threshold), to 6m/s2 or less through about 4 sampling intervals, and the values of the accelerations of the X-axis, the Y-axis, and the Z-axis are reduced from positive values or negative values, which have large absolute values, to zero through about forty-five sampling intervals, respectively.
It can be understood that, in stage 1, when the user runs with the electronic device in the backpack, the user starts to empty, the electronic device is thrown into the air by the upward acting force of the backpack, and when the electronic device falls from a completely weightless state in the air to contact with the backpack, the backpack applies an upward acting force to the mobile phone, and the value of the resultant acceleration of the electronic device increases from near zero to a maximum value, for example, 40m/s2 or more, so that the downward falling speed of the electronic device is rapidly reduced to zero relative to the relative speed of the backpack (at this time, the acting force of the backpack reaches the maximum value), and then the speed of the electronic device gradually increases from zero to a value gradually increasing until 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 subjected to the acting force of the backpack and is in a completely weightless state, and at this time, the electronic device is thrown upward again, the value of the resultant acceleration gradually decreases from the maximum value of 40m/s2 or more, and when the upward speed of the electronic device is greater than or equal to a certain height, the electronic device is no longer in a completely weightless state, that is the value of the backpack 6m/s2 or less than the upward speed of the backpack.
It should be noted that the value of the acceleration sensor inside the mobile phone is not strictly zero, but is usually about 1m/s2 to 2m/s2, because of possible air resistance in the fully weightless state, some contact of the backpack or some overturn of the mobile phone.
In stage 2, the values of the X-axis, the Y-axis, the Z-axis and the resultant acceleration corresponding to the electronic device are all close to zero, specifically, the acceleration values of the X-axis, the Y-axis and the Z-axis are between-2 and 2, and have a unit of m/s2, and the value of the resultant acceleration lasts for about 9 sampling intervals, which is about 180ms, between 0 and 2 (i.e., the first value interval).
In combination with the explanation of the above stage 1, when the electronic device is no longer subjected to the acting force of the backpack and is in a complete weightless state, that is, the value of the resultant acceleration is reduced to below 6m/s2, the electronic device performs a free-fall motion from a high position, and in the process, the measured acceleration and the resultant acceleration are both close to 0.
It should be noted that, when the object performs free-fall motion, the acceleration of the object is g =9.8, but 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 attitude of the electronic device in the air is unknown when the acceleration sensor is completely weightless, that is, the relationship between the coordinate system of the electronic device and the geodetic coordinate system is unknown, the acceleration of each axis acquired in this case is close to zero in value.
In phase 3, the value of the resultant acceleration of the electronic device reaches a maximum value of 40m/s2 or more over about 4 sampling intervals (4 × 20ms =80 ms) from 6m/s2 or less, and then decreases to 6m/s2 or less immediately after about 4 sampling intervals (4 × 20ms =80 ms); the other three XYZ axes are those in which the acceleration suddenly increases and then decreases, and those in which the acceleration oscillates when the acceleration rises and falls, but the absolute values of all the three XYZ axes decrease to around 0 almost synchronously with the resultant acceleration.
In connection with the explanation of the above stage 1 and stage 2, in stage 3, the electronic device makes a free-fall motion from a high position to contact the backpack, in this case, the backpack applies an upward acting force to the electronic device to prevent the mobile phone from further falling, the acting force causes the resultant acceleration of the electronic device to rapidly increase from a vicinity of zero to a maximum value of 40m/s2 or more, then the electronic device is thrown upward under the action of the backpack, the speed of the electronic device gradually increases from zero to an upward speed during the rising process, and the resultant acceleration continuously decreases to below 6m/s2, in this case, the electronic device is no longer subjected to the acting force of the backpack and is in a falling motion state under a weightless state, and the value of the resultant acceleration measured during the falling process is in a vicinity of 1m/s2 to 2m/s2.
In the subsequent sampling process, the above 3 phases occur periodically, and one cycle may be regarded as one step cycle in a running state, and the cycle lengths of adjacent step cycles and the duration of the weightless state of the electronic device in the cycle are substantially the same.
It should be noted that, in a step period, when a user moves up and down in a running process, the backpack throws the electronic device upward, so that the electronic device has a period of upward free-fall motion, the accelerations of the X-axis, the Y-axis, the Z-axis, and the resultant acceleration show in the acceleration that the time is close to zero (i.e., stage 1 and stage 2), the electronic device is pushed upward by the upward acting force of the backpack after falling, the accelerations of the partial axes in the X-axis, the Y-axis, and the Z-axis, and the resultant acceleration of the electronic device increase and decrease first (i.e., stage 3), and in the whole running process, a motion state in which the resultant acceleration of the electronic device increases first and then decreases and a weightlessness state periodically and alternately appears occurs will occur.
In some possible implementations, if the resultant acceleration of the electronic device satisfies the variation of the resultant acceleration in the three phases, the electronic device may be considered to be in a backpack, and the user may perform a running exercise with the backpack.
It should be noted that the values of the combined acceleration in the above examples, such as the maximum value of 40m/s2, the smaller value of 6m/s2, etc., are only one example of the values of the combined acceleration provided in the embodiments of the present application, and do not constitute a limitation on the value of the combined acceleration.
Fig. 3 is another waveform diagram of the acceleration and the resultant acceleration of the electronic device provided in the embodiment of the present application, where the waveform diagram is also a waveform diagram of the electronic device when the electronic device is in a backpack for exercise, and the related explanation of fig. 3 may specifically refer to the related explanation of fig. 2, and is not repeated here.
As shown in fig. 3, during the running process of the user, since the electronic device is in the exercise state in the backpack, the exercise state in which the resultant acceleration of the electronic device is increased and then decreased and the weightlessness state alternately occur periodically occurs periodically.
Optionally, in this embodiment of the application, the controlling the electronic device to execute the target operation in step 202 may include the following step B1:
step B1: and controlling the electronic equipment to execute the target operation under the condition that the target motion information of the target user meets a first preset condition.
Wherein the target motion information of the target user is determined based on the target motion parameter; the target motion information includes: at least one of the number of exercise steps and energy possessed during exercise;
optionally, the first preset condition may be: at least one of the number of motion steps being greater than a second threshold and the energy possessed during the motion being greater than a third threshold.
For example, the control device of the electronic device may calculate the number of steps of the user's movement from data collected by the inertial sensor. The specific manner can be seen in the related art, and the embodiment of the present application is not limited in any way.
For example, the control device of the electronic device may acquire the acceleration of the electronic device during the running process of the user through an acceleration sensor, and then acquire the energy of the user during the running process based on the acceleration of the electronic device.
Specifically, the energy of the user during running can be calculated according to the energy of the electronic device, the energy of the electronic device refers to kinetic energy, and since the kinetic energy is positively correlated with the force under the condition that the mass of the electronic device is fixed, that is, positively correlated with the range of the acceleration amplitude value (that is, the maximum value minus the minimum value), the range of the acceleration can be multiplied by a preset fixed parameter to represent the energy of the exercise.
For example, the control device of the electronic apparatus may calculate the number of steps taken by the user during running and the energy possessed by the user during running, and determine whether to perform the target operation according to whether the number of steps and the energy exceed a threshold.
For example, during the running process of the user carrying the electronic device, if the number of steps of the user exceeds 10 steps (i.e. the second threshold) and the energy exceeds the preset energy threshold within 2s, it is indicated that the current running motion of the user is strenuous, and the control device of the electronic device may output an alarm audio, for example, "you are fast in current pace, please keep track of the surrounding environment", and emit an alarm light to enable pedestrians, vehicles, and the like around to pay attention to the user.
It should be noted that the number of running steps exceeds a preset threshold value, such as ten steps, which can be used to prevent some non-running states from being mistaken for a running state; energy exceeding a preset threshold indicates that this is not a very slow and very light jogging exercise, since for light jogging it is negligible and no recognition is needed to automatically take safety measures, which the algorithm recognizes and automatically takes when the energy exceeds the preset threshold can improve the safety of the user while running.
In this way, when the user electronic equipment suddenly starts to run when being placed in a backpack (or a handbag, a satchel and the like), the control device of the electronic equipment automatically detects that the user places the electronic equipment in the backpack to run by analyzing the characteristics and the stress of the motion acceleration sensor of the electronic equipment, and automatically takes safety measures in the running process, so that the running safety of the user is improved.
Optionally, in an embodiment of the present application, the target motion information further includes: the flight time of the target user's feet in M movement periods, M being a positive integer.
Optionally, the step 202 of controlling the electronic device to execute the target operation may include the following steps D1 and D2:
step D1: a first fraction is obtained.
Wherein, the first proportion is as follows: the foot loft time of the target user over the M movement periods is a proportion of the duration of the M movement periods.
Step D2: and controlling the electronic equipment to execute the target operation based on the first ratio.
For example, the control device of the electronic apparatus may control the electronic apparatus to output the first information based on the first duty ratio. Illustratively, 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 step strength and the health degree.
For example, the control device of the electronic device may acquire the speed and the acceleration of the electronic device through an inertial sensor, and calculate the feet vacation time during the running of the user based on the speed and the acceleration of the electronic device.
Illustratively, the example is that the M movement periods include 10 movement periods. The control device of the electronic equipment can count the feet vacating time of the user in 10 running periods, then calculate the ratio of the feet vacating time and the period duration, obtain the proportion of the feet vacating time in the period duration of 10 running periods, and display the proportion information for the user to be used as reference.
It can be understood that the higher the flight time ratio is, the stronger the step strength and the health degree of the user are considered to be, because if the flight time ratio is larger when the user runs, it indicates that the step is longer and the flight height is higher, and the time for rebounding after touchdown is shorter, and the strength of the leg muscle of the user can be judged to be stronger in an auxiliary manner, so that the value of the flight time ratio can be reported to the user for reference as an auxiliary judgment basis for the step strength and the health degree of the user.
It should be noted that one exercise cycle means one running cycle, i.e., one step cycle.
In this way, the control device of the electronic equipment can acquire the flight time ratio of the user and provide the ratio information for the user during the running process of the user, so that the user can know the step information of the user during exercise, and the user can conveniently evaluate the body condition of the user according to the step information.
Optionally, in this embodiment of the present application, the step D2 may include the following step E1:
step E1: and outputting target prompt information corresponding to the target threshold range when the first proportion is in the target threshold range.
The target prompt information is used for prompting a target health level corresponding to the health condition of the target user.
Illustratively, the target threshold range is one of a preset first threshold range, a second threshold range and a third threshold range. Illustratively, the first threshold range may be represented as (0, T1), the second threshold range may be represented as (T1, T2), and the third threshold range may be represented as (T2, T3), where T1< T2< T3.
Illustratively, T1 may be 30%, T2 may be 60%, and T3 may be 80%, it should be noted that the above threshold is only an example provided by the present application and does not constitute a limitation of the present application.
Illustratively, one threshold range may correspond to one health level. Illustratively, the health level may be: excellent, good and poor, or include: the higher the ranking of the level letters, the higher the level, and the higher the health degree.
For example, the health level for the third threshold range may be excellent or class a, the health level for the second threshold range may be good or class B, and the health level for the second threshold range may be poor or class C.
It can be understood that the larger the proportion of the flight time during running of the user is, the longer the step is taken, the higher the flight height is, and the shorter the time of the rebound of touchdown is, the stronger the strength of the step and the health degree of the leg of the user are considered.
For example, taking the case that the M exercise cycles include three exercise cycles, assuming that the duration of the three running cycles of the user is about 1s, and the foot-free time of the user is about 0.3s in the three running cycles, the foot-free time of the user is about 30%, and the foot-free time of the user is in the first threshold range, in this case, the control device of the electronic device may display a prompt message or output a prompt audio after the user runs: "your (leg) health status is poor, and attention is paid to the physical health status" to prompt the user health information for the user to refer to.
For example, taking the case that the M exercise cycles include three exercise cycles, assuming that the duration of the three running cycles of the user is about 1s, and the foot-free time of the user is about 0.5s in the three running cycles, the foot-free time of the user is about 50%, and the foot-free time of the user is in the second threshold range, in this case, the control device of the electronic device may display a prompt message or output a prompt audio after the user runs: "your (leg) health status is good, so as to prompt the user health information for the user to refer to. Therefore, the control device of the electronic equipment can preliminarily estimate the health condition of the user and prompt the user based on the foot-free time ratio in the running process of the user, so that the user can know the self health condition in time.
Further, in a case where the first proportion is within the first threshold range, the control device of the electronic apparatus evaluates the health condition of the target user based on the first proportion and second information of the target user, and outputs evaluation result information.
And the evaluation result information is used for reminding a target user whether health hidden dangers exist or not.
Wherein the second information comprises at least one of: step frequency, single-foot support time, and step amplitude.
For example, the control device of the electronic device may determine the step frequency, the single-foot supporting time, and the step amplitude of the user through data such as speed, angular velocity, and acceleration collected by an inertial sensor of the electronic device.
For example, when the control device of the electronic device determines that the feet vacation time of the target user is within the first threshold range, the health condition of the user may be comprehensively determined by combining information such as the step frequency, whether the left and right steps are symmetrical, the single-foot supporting time, and the step amplitude when the user recently moves.
For example, the control device of the electronic device may determine whether the recent user has a step frequency less than a fourth threshold, a single-foot supporting time less than a fifth threshold, and a step amplitude less than a sixth threshold during running, and when the above conditions are met, determine that the user has a poor health condition, and display evaluation result information to inform the user that the recent health condition is poor and a potential health hazard may exist.
It can be understood that, when the user runs and the like under the relatively good condition of the physical condition, the amplitude, the step frequency, the symmetry of the step and the single-foot supporting time of the step of the user are usually in the normal range, and if the parameters of the amplitude, the step frequency, the symmetry of the step and the single-foot supporting time are all lower than the normal range, the user has the conditions of smaller step, slow step and poor step stability, and the physical condition of the user can be represented to be poor, so that the potential health hazard can exist, and the user can be reminded of further examination and treatment.
It should be noted that, when the user runs, the feet-vacating time accounts for the first threshold range, and it indicates that the user is in a poor physical condition during the running process, so that the user can further comprehensively judge whether the user has a health hidden danger by combining the information such as the step frequency and the step amplitude during the recent movement of the user, and thus, the accuracy of judging the health condition of the user can be improved.
According to the control method of the electronic device provided by the embodiment of the application, the execution main body can be a control device of the electronic device. In the embodiment of the present application, a method for controlling an electronic device by a control device of the electronic device is taken as an example, and the control device of the electronic device provided in the embodiment of the present application is described.
Fig. 4 is a schematic structural diagram of a control apparatus of an electronic device according to an embodiment of the present application, and as shown in fig. 4, the control apparatus 400 of the electronic device includes: an acquisition module 401 and a control module 402, wherein:
the obtaining module 401 is configured to obtain a target motion parameter of the electronic device; the target motion parameters include: a resultant acceleration of the electronic device;
the control module is used for controlling the electronic equipment to execute target operation under the condition that the electronic equipment is judged to be in the first motion state based on the target motion parameters acquired by the acquisition module;
wherein performing the target operation comprises at least one of:
not responding to the bright screen trigger input under the condition of receiving the bright screen trigger input;
executing alarm operation;
and under the condition that the electronic equipment plays the audio through the external equipment, switching to the condition that the audio is played through a loudspeaker of the electronic equipment.
Optionally, in an embodiment of the present application, the first motion state includes: and the target motion state and the complete weightlessness state periodically alternate, and the target motion state is a motion state in which the electronic equipment moves upwards under the action of an upward acting force.
Alternatively, in the embodiments of the present application,
the control module is specifically used for controlling the electronic equipment to execute target operation under the condition that the target motion information of the target user meets a first preset condition;
wherein the target motion information of the target user is determined based on the target motion parameters; the object motion information includes: the number of exercise steps, the energy possessed during exercise;
the first preset condition includes at least one of the number of steps of the exercise being greater than a first threshold value and the energy possessed during the exercise being greater than a second threshold value.
Optionally, in this embodiment of the present application, the target motion information further includes: the flight time of the two feet of the target user in M movement periods, wherein M is a positive integer;
the acquisition module is further used for acquiring a first proportion, wherein the first proportion is as follows: the proportion of the feet vacation time of the target user in the M movement periods in the duration of the M movement periods;
and the control module is specifically used for controlling the electronic equipment to execute the target operation based on the first ratio.
Alternatively, in the embodiments of the present application,
the control module is specifically used for outputting target prompt information corresponding to the target threshold range under the condition that the first proportion belongs to the target threshold range, and the target prompt information is used for prompting that the health condition of a target user is in a target health level;
wherein the second information comprises at least one of: step frequency, single-foot support time, and step amplitude.
In a control apparatus of an electronic device provided in an embodiment of the present application, a control apparatus of the electronic device obtains a target motion parameter of the electronic device, where the target motion parameter includes: the resultant acceleration of the electronic equipment controls the electronic equipment to execute target operation under the condition that the electronic equipment is judged to be in the first motion state based on the target motion parameters; wherein the target operation comprises at least one of: and under the condition of receiving the bright screen trigger input, the bright screen trigger input is not responded, the alarm operation is executed, and under the condition that the electronic equipment plays the audio through the external equipment, the audio is played through a loudspeaker of the electronic equipment. By the method, the control device of the electronic equipment can judge whether the electronic equipment is in the first motion state or not, and execute the target operation under the condition that the electronic equipment is in the first motion state, so that the electronic equipment can be prevented from being mistakenly lightened under the motion state under the condition that the electronic equipment is in the first motion state, the electric quantity of the electronic equipment is saved, or the safety problem caused by the fact that a user carrying the electronic equipment cannot timely pay attention to the surrounding environment under the motion state is avoided, and the safety of the user under the motion state is improved.
The control device of the electronic device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (NAS), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The control device of the electronic device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 3, and is not described here again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in an embodiment of the present application, and includes a processor 501 and a memory 502, where the memory 502 stores a program or an instruction that can be executed on the processor 501, and when the program or the instruction is executed by the processor 501, the steps of the embodiment of the control method for an electronic device are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., 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, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 110 is configured to obtain a target motion parameter of the electronic device; the target motion parameters include: a resultant acceleration of the electronic device;
the processor 110 is used for controlling the electronic equipment to execute target operation under the condition that the electronic equipment is judged to be in the first motion state based on the target motion parameters acquired by the processor 110; wherein performing the target operation comprises at least one of:
not responding to the bright screen trigger input under the condition of receiving the bright screen trigger input;
executing alarm operation;
and under the condition that the electronic equipment plays the audio through the external equipment, switching to the condition that the audio is played through a loudspeaker of the electronic equipment.
Optionally, in an embodiment of the present application, the first motion state includes: the target motion state and the complete weightlessness state periodically alternate to appear, and the target motion state is a motion state in which the electronic equipment moves upwards under an upward acting force.
Alternatively, in the embodiments of the present application,
the processor 110 is specifically configured to control the electronic device to execute a target operation when the target motion information of the target user meets a first preset condition;
wherein the target motion information of the target user is determined based on the target motion parameters; the object motion information includes: the number of exercise steps, the energy possessed during exercise;
the first preset condition includes at least one of the number of steps of the exercise being greater than a first threshold value and the energy possessed during the exercise being greater than a second threshold value.
Optionally, in this embodiment of the present application, the target motion information further includes: the flight time of the two feet of the target user in M movement periods, wherein M is a positive integer;
the processor 110 is further configured to obtain a first ratio, where the first ratio is: the proportion of the feet vacation time of the target user in the M movement periods in the duration of the M movement periods;
the processor 110 is specifically configured to control the electronic device to perform the target operation based on the first ratio.
Alternatively, in the embodiments of the present application,
the processor 110 is specifically configured to, when the first proportion belongs to a target threshold range, output target prompt information corresponding to the target threshold range, where the target prompt information is used to prompt that the health condition of the target user is in a target health level;
wherein the second information comprises at least one of: step frequency, single-foot support time, and step amplitude.
In the electronic device provided in the embodiment of the present application, the electronic device obtains a target motion parameter of the electronic device, where the target motion parameter includes: the resultant acceleration of the electronic equipment controls the electronic equipment to execute target operation under the condition that the electronic equipment is judged to be in the first motion state based on the target motion parameters; wherein the target operation comprises at least one of: and under the condition of receiving the bright screen trigger input, the bright screen trigger input is not responded, the alarm operation is executed, and under the condition that the electronic equipment plays the audio through the external equipment, the audio is played through a loudspeaker of the electronic equipment. By the method, the electronic equipment can judge whether the electronic equipment is in the first motion state or not, and execute the target operation under the condition of being in the first motion state, so that the electronic equipment can be prevented from being turned on by mistake under the motion state under the condition that the electronic equipment is in the first motion state, the electric quantity of the electronic equipment is saved, the safety problem caused by the fact that a user carrying the electronic equipment cannot timely pay attention to the surrounding environment under the motion state is avoided, and the safety of the user under the motion state is improved.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing 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, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, memory 109 may include volatile memory or non-volatile memory, or memory 109 may include both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). Memory 109 in the embodiments of the subject application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor, which mainly handles operations related to the operating system, user interface, application programs, etc., and a modem processor, which mainly handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the control method embodiment of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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 or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the control method embodiment of the electronic device, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the control method embodiment of the electronic device, where the processes can achieve the same technical effect, and in order to avoid repetition, the descriptions of the processes are omitted here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method of controlling an electronic device, the method comprising:
acquiring target motion parameters of electronic equipment; the target motion parameters comprise the resultant acceleration of the electronic device;
under the condition that the target motion parameters represent that the electronic equipment is in a first motion state, controlling the electronic equipment to execute target operation;
wherein the performing the target operation comprises at least one of:
in the case of receiving a bright screen trigger input, not responding to the bright screen trigger input;
executing an alarm operation;
and under the condition that the electronic equipment plays the audio through the external equipment, switching to the mode that the audio is played through a loudspeaker of the electronic equipment.
2. The method of claim 1, wherein the first motion state comprises: the target motion state and the complete weightlessness state periodically alternate to appear, and the target motion state is a motion state in which the electronic equipment moves upwards under the action of an upward acting force.
3. The method of claim 1, wherein the controlling the electronic device to perform a target operation comprises:
under the condition that target motion information of a target user meets a first preset condition, controlling the electronic equipment to execute target operation;
wherein the target motion information of the target user is determined based on the target motion parameters; the object motion information includes: the number of exercise steps, the energy possessed during exercise;
the first preset condition includes at least one of the number of steps of the exercise being greater than a first threshold and the energy possessed during the exercise being greater than a second threshold.
4. The method of claim 3, wherein the object motion information further comprises: the flight time of the two feet of the target user in M movement periods, wherein M is a positive integer;
the controlling the electronic device to execute a target operation includes:
obtaining a first proportion, wherein the first proportion is as follows: a ratio of the target user's foot loft time over M movement periods to the duration of the M movement periods;
and controlling the electronic equipment to execute target operation based on the first ratio.
5. The method of claim 4, wherein controlling the electronic device to perform a target operation based on the first ratio comprises:
under the condition that the first proportion belongs to a target threshold range, outputting target prompt information corresponding to the target threshold range, wherein the target prompt information is used for prompting that the health condition of the target user is in a target health level;
wherein the second information comprises at least one of: step frequency, single-foot support time, and step amplitude.
6. An apparatus for controlling an electronic device, the apparatus comprising: an acquisition module and a control module, wherein:
the acquisition module is used for acquiring target motion parameters of the electronic equipment; the target motion parameter comprises a resultant acceleration of the electronic device;
the control module is configured to control the electronic device to execute a target operation when the target motion parameter acquired by the acquisition module represents that the electronic device is in a first motion state;
wherein the performing a target operation comprises at least one of:
in the case of receiving a bright screen trigger input, not responding to the bright screen trigger input;
executing an alarm operation;
and under the condition that the electronic equipment plays the audio through the external equipment, switching to the mode that the audio is played through a loudspeaker of the electronic equipment.
7. The apparatus of claim 6, wherein the first motion state comprises: and the target motion state and the complete weightlessness state periodically alternate, and the target motion state is a motion state in which the electronic equipment moves upwards under the action of an upward acting force.
8. The apparatus of claim 6,
the control module is specifically used for controlling the electronic equipment to execute target operation under the condition that target motion information of a target user meets a first preset condition;
wherein the target motion information of the target user is determined based on the target motion parameters; the object motion information includes: the number of exercise steps, the energy possessed during exercise;
the first preset condition includes at least one of the number of steps of the exercise being greater than a first threshold and the energy possessed during the exercise being greater than a second threshold.
9. The apparatus of claim 8, wherein the object motion information further comprises: the flight time of the two feet of the target user in M movement periods, wherein M is a positive integer;
the obtaining module is further configured to obtain a first ratio, where the first ratio is: a ratio of the target user's foot loft time over M movement periods to the duration of the M movement periods;
the control module is specifically configured to control the electronic device to execute a target operation based on the first ratio.
10. The apparatus of claim 9,
the control module is specifically configured to, when the first proportion falls within a target threshold range, output target prompt information corresponding to the target threshold range, where the target prompt information is used to prompt that the health status of the target user is at a target health level;
wherein the second information comprises at least one of: step frequency, single-foot support time, and step amplitude.
11. An electronic device, characterized in that it comprises a processor and a memory, said memory storing a program or instructions executable on said processor, said program or instructions, when executed by said processor, implementing the steps of the control method of an electronic device according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the control method of an electronic device according to any one of claims 1-5.
CN202211145864.3A 2022-09-20 2022-09-20 Control method and device of electronic equipment, electronic equipment and readable storage medium Pending CN115442476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211145864.3A CN115442476A (en) 2022-09-20 2022-09-20 Control method and device of electronic equipment, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211145864.3A CN115442476A (en) 2022-09-20 2022-09-20 Control method and device of electronic equipment, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115442476A true CN115442476A (en) 2022-12-06

Family

ID=84250088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211145864.3A Pending CN115442476A (en) 2022-09-20 2022-09-20 Control method and device of electronic equipment, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115442476A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101884439A (en) * 2010-07-08 2010-11-17 西北工业大学 Intelligent mountain bike helmet and realization method thereof
CN203183574U (en) * 2012-12-31 2013-09-11 山东汇祥健身器材有限公司 Motorized treadmill provided with Bluetooth speaker
CN104583893A (en) * 2012-05-23 2015-04-29 高通股份有限公司 Systems and methods for establishing group communication based on motion of mobile device and on voice command
JP2016051915A (en) * 2014-08-28 2016-04-11 京セラ株式会社 Earphone, portable terminal, electronic system, and control method of electronic system
WO2017133589A1 (en) * 2016-02-05 2017-08-10 中兴通讯股份有限公司 Safety monitoring method and device for terminal user
CN113031840A (en) * 2021-03-01 2021-06-25 维沃软件技术有限公司 False triggering prevention method and device for wrist-worn device, electronic device and storage medium
CN214315546U (en) * 2021-04-02 2021-09-28 广东得胜电子有限公司 Collar clip type Bluetooth dual-purpose player

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101884439A (en) * 2010-07-08 2010-11-17 西北工业大学 Intelligent mountain bike helmet and realization method thereof
CN104583893A (en) * 2012-05-23 2015-04-29 高通股份有限公司 Systems and methods for establishing group communication based on motion of mobile device and on voice command
CN203183574U (en) * 2012-12-31 2013-09-11 山东汇祥健身器材有限公司 Motorized treadmill provided with Bluetooth speaker
JP2016051915A (en) * 2014-08-28 2016-04-11 京セラ株式会社 Earphone, portable terminal, electronic system, and control method of electronic system
WO2017133589A1 (en) * 2016-02-05 2017-08-10 中兴通讯股份有限公司 Safety monitoring method and device for terminal user
CN113031840A (en) * 2021-03-01 2021-06-25 维沃软件技术有限公司 False triggering prevention method and device for wrist-worn device, electronic device and storage medium
CN214315546U (en) * 2021-04-02 2021-09-28 广东得胜电子有限公司 Collar clip type Bluetooth dual-purpose player

Similar Documents

Publication Publication Date Title
JP6539272B2 (en) Computer-implemented method, non-transitory computer-readable medium, and single device
CN102246125B (en) Mobile devices with motion gesture recognition
CN110112984A (en) A kind of vibration control method and mobile terminal of linear motor
CN108021224B (en) Screen lighting method and device
US8797283B2 (en) Method and apparatus for performing user-defined macros
CN106441350A (en) Step counting method and terminal
CN107291317B (en) The selection method and device of target in a kind of virtual scene
CN104536569A (en) Mobile terminal and method and device for controlling mobile terminal
CN103918344A (en) Detection of user activities by portable device
CN108319421A (en) A kind of display triggering method and mobile terminal
CN105824612A (en) Safety indication method and mobile terminal
CN113031840B (en) False triggering prevention method and device for wrist-worn device, electronic device and storage medium
CN109041148A (en) A kind of mobile terminal operating method and mobile terminal
CN105797319A (en) Badminton motion data processing method and device
CN102902374A (en) Information processing apparatus, information processing method, and program
JPWO2017104227A1 (en) Information processing apparatus, information processing method, and program
CN108924914A (en) fall detection method and related product
CN109995936A (en) Screen lighting method, mobile terminal and storage medium
CN110796918A (en) Training method and device and mobile terminal
CN106525024B (en) A kind of reminding method of mobile terminal, device and mobile terminal
CN103777846B (en) Information processing method and electronic equipment
CN108063861A (en) The method, apparatus and mobile terminal that a kind of state is reminded
CN104978488B (en) The behavior analysis method and device of game role
CN115442476A (en) Control method and device of electronic equipment, electronic equipment and readable storage medium
WO2023207989A1 (en) Method and apparatus for controlling virtual object, and device and storage medium

Legal Events

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