CN111157016B - Step recording method and electronic equipment - Google Patents

Step recording method and electronic equipment Download PDF

Info

Publication number
CN111157016B
CN111157016B CN201911383562.8A CN201911383562A CN111157016B CN 111157016 B CN111157016 B CN 111157016B CN 201911383562 A CN201911383562 A CN 201911383562A CN 111157016 B CN111157016 B CN 111157016B
Authority
CN
China
Prior art keywords
signal
axis motor
digital
value
digital signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911383562.8A
Other languages
Chinese (zh)
Other versions
CN111157016A (en
Inventor
周伟
夏天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201911383562.8A priority Critical patent/CN111157016B/en
Publication of CN111157016A publication Critical patent/CN111157016A/en
Application granted granted Critical
Publication of CN111157016B publication Critical patent/CN111157016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • G01C22/006Pedometers

Abstract

The invention provides a step recording method and electronic equipment. The electronic equipment comprises an X-axis motor and a Z-axis motor, and the step recording method comprises the following steps: under the condition that the step recording function of the electronic equipment is started, performing analog-to-digital conversion on a first electric signal output by an X-axis motor to obtain a first digital signal, and performing analog-to-digital conversion on a second electric signal output by a Z-axis motor to obtain a second digital signal; and if the first digital signal and the second digital signal are the first preset value, updating the step value corresponding to the step recording function. The invention realizes the step recording function of the electronic equipment through the X-axis motor and the Z-axis motor, not only can reduce the step recording function realization cost of the electronic equipment, but also can further save the internal space of the electronic equipment.

Description

Step recording method and electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a step recording method and an electronic device.
Background
As the update iteration of the electronic device is increasingly faster, the electronic device also has more and more functions. For example, a mobile phone in an electronic device generally has other various convenient functions, such as a step-recording function, while implementing a communication function, so that a user can view step values at any time.
The scheme for realizing the step recording function in the prior art comprises the following steps: a plurality of sensors are provided in the electronic device to implement a step-counting function, wherein the plurality of sensors include a gyroscope, a gravity sensor, acceleration sensing, and the like.
However, the prior art scheme for implementing the step-recording function has the following disadvantages: because need set up a plurality of sensors in electronic equipment and realize the note step function, lead to realizing with high costs, and it is big that a plurality of sensors occupy electronic equipment inner space, be unfavorable for reducing electronic equipment cost and saving electronic equipment inner space.
Disclosure of Invention
The embodiment of the invention provides a step recording method and electronic equipment, which can solve the problems of high cost and large occupied space of a step recording function implementation scheme in the prior art.
In order to solve the technical problem, the invention is realized as follows: a step recording method is applied to an electronic device, the electronic device comprises an X-axis motor and a Z-axis motor, and the step recording method comprises the following steps:
under the condition that a step recording function of the electronic equipment is started, performing analog-to-digital conversion on a first electric signal output by the X-axis motor to obtain a first digital signal, and performing analog-to-digital conversion on a second electric signal output by the Z-axis motor to obtain a second digital signal;
and if the first digital signal and the second digital signal are the first preset value, updating the step number value corresponding to the step recording function.
In a first aspect, an embodiment of the present invention further provides an electronic device, including an X-axis motor and a Z-axis motor, where the electronic device further includes:
the signal processing module is used for carrying out analog-to-digital conversion on a first electric signal output by the X-axis motor into a first digital signal and carrying out analog-to-digital conversion on a second electric signal output by the Z-axis motor into a second digital signal under the condition that a step recording function of the electronic equipment is started;
and the step number value updating module is used for updating the step number value corresponding to the step recording function if the first digital signal and the second digital signal are the first preset value.
In a second aspect, an embodiment of the present invention additionally provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the pacing method as described above.
In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the step-counting method as described above.
In the embodiment of the invention, the electronic device is provided with the X-axis motor and the Z-axis motor, and when the step recording function of the electronic device is started, the first electric signal output by the X-axis motor is subjected to analog-to-digital conversion into the first digital signal, and the second electric signal output by the Z-axis motor is subjected to analog-to-digital conversion into the second digital signal, and if the first digital signal and the second digital signal are the first preset value, the step value corresponding to the step recording function is updated. According to the embodiment of the invention, the step recording function of the electronic equipment is realized through the X-axis motor and the Z-axis motor, so that the step recording function realization cost of the electronic equipment can be reduced, and the internal space of the electronic equipment can be further saved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
Fig. 1 is a schematic front structure diagram of an electronic device in an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of a step-counting method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a step-counting method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in a fourth embodiment of the present invention;
FIG. 6 is a schematic diagram of an internal circuit structure of an electronic device according to a fourth embodiment of the present invention
FIG. 7 is a schematic view of the structure of an X-axis motor;
fig. 8 is a schematic diagram of a hardware structure of an electronic device in the fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
A step recording method provided in an embodiment of the present invention is described in detail.
Specifically, the step recording method is applied to an electronic device, and referring to fig. 1, the electronic device may include an X-axis motor 1 and a Z-axis motor 2, where the X-axis motor 1 is a motor corresponding to a width direction of the electronic device, the Z-axis motor 2 is a motor corresponding to a length direction of the electronic device, and the X-axis motor 1 and the Z-axis motor 2 may respectively detect a vibration in the width direction of the electronic device and a vibration in the length direction of the electronic device and output corresponding electrical signals. The X-axis motor 1 and the Z-axis motor 2 may be disposed at any position in the electronic apparatus, and the positions of the X-axis motor 1 and the Z-axis motor 2 in the electronic apparatus include, but are not limited to, the positions illustrated in fig. 1.
Referring to fig. 2, a flowchart illustrating steps of a step recording method according to a first embodiment of the present invention is shown.
Step 210, performing analog-to-digital conversion on the first electric signal output by the X-axis motor into a first digital signal and performing analog-to-digital conversion on the second electric signal output by the Z-axis motor into a second digital signal when the step recording function of the electronic device is turned on.
Step 210 may detect whether the step recording function of the electronic device is turned on, and when it is detected that the step recording function of the electronic device is turned on, obtain a first electrical signal output by the X-axis motor and a second electrical signal output by the Z-axis motor, and further perform analog-to-digital conversion on the first electrical signal into a first digital signal, and perform analog-to-digital conversion on the second electrical signal into a second digital signal. Step 210 may be implemented by any prior art, and the present invention is not limited thereto. Specifically, the first electrical signal may be a current signal or a voltage signal, and the second electrical signal may be a current signal or a voltage signal.
The step recording function of the electronic device may be a step recording function of an application program related to the motion type in the electronic device, and the step recording function may be automatically turned on by default of the electronic device or manually turned on by a user of the electronic device.
Step 220, if the first digital signal and the second digital signal are the first preset value, the step value corresponding to the step recording function is updated.
Specifically, step 220 may determine a step number value of the electronic device user walking according to the first digital signal and the second digital signal, and update a step number value corresponding to the step recording function according to the step number value of the electronic device user walking. If the first digital signal and the second digital signal are the first preset value, the step number of the electronic equipment user walking is larger than 0, and the step number corresponding to the step recording function can be updated according to the step number of the user walking. Wherein, the first preset value can be 1 or 0.
In addition, if the first digital signal and/or the second digital signal are not the first preset value and the step number of the electronic device user walking is equal to 0, the step number corresponding to the current step recording function is maintained.
Step 220 determines that the user walks only when the first digital signal and the second digital signal are the first preset values, so that updating of the step value corresponding to the step recording function under the condition that the user only causes vibration in the width direction of the electronic device or only causes vibration in the length direction of the electronic device is avoided, and accuracy and reliability of the step recording function are ensured.
In the first embodiment of the present invention, the electronic device is configured to include an X-axis motor and a Z-axis motor, and when the step-counting function of the electronic device is turned on, a first electrical signal output by the X-axis motor is analog-to-digital converted into a first digital signal, and a second electrical signal output by the Z-axis motor is analog-to-digital converted into a second digital signal; and if the first digital signal and the second digital signal are the first preset value, updating the step value corresponding to the step recording function. According to the embodiment of the invention, the step recording function of the electronic equipment is realized through the X-axis motor and the Z-axis motor, so that the step recording function realization cost of the electronic equipment can be reduced, and the internal space of the electronic equipment can be further saved.
Example two
A step recording method provided by the second embodiment of the present invention is described in detail.
Specifically, the step recording method is applied to an electronic device, and referring to fig. 1, the electronic device may include an X-axis motor 1 and a Z-axis motor 2, where the X-axis motor 1 is a motor corresponding to a width direction of the electronic device, the Z-axis motor 2 is a motor corresponding to a length direction of the electronic device, and the X-axis motor 1 and the Z-axis motor 2 may respectively detect a vibration in the width direction of the electronic device and a vibration in the length direction of the electronic device and output corresponding electrical signals. The X-axis motor 1 and the Z-axis motor 2 may be disposed at any position in the electronic apparatus, and the positions of the X-axis motor 1 and the Z-axis motor 2 in the electronic apparatus include, but are not limited to, the positions illustrated in fig. 1.
Alternatively, the X-axis motor 1 and the Z-axis motor 2 may be any motors that cut magnetic induction lines and output electric signals when vibrating, such as linear motors.
Alternatively, the X-axis motor 1 may be one or more motors, and the Z-axis motor 2 may be one or more motors.
In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, a smart audio, a PSP (PlayStation Portable), and the like.
Referring to fig. 3, a flowchart illustrating steps of a step recording method according to a second embodiment of the present invention is shown.
In step 310, when the step-counting function of the electronic device is turned on, a first electrical signal output by the X-axis motor is analog-to-digital converted into a first digital signal, and a second electrical signal output by the Z-axis motor is analog-to-digital converted into a second digital signal.
Step 310 may detect whether the step recording function of the electronic device is turned on, and when it is detected that the step recording function of the electronic device is turned on, obtain a first electrical signal output by the X-axis motor and a second electrical signal output by the Z-axis motor, and then perform analog-to-digital conversion on the first electrical signal into a first digital signal, and perform analog-to-digital conversion on the second electrical signal into a second digital signal. Step 310 may be implemented by any prior art, and the present invention is not limited thereto. Specifically, the first electrical signal may be a current signal or a voltage signal, and the second electrical signal may be a current signal or a voltage signal.
The step recording function of the electronic device may be a step recording function of a sports-related application program in the electronic device, and the step recording function may be automatically turned on by default of the electronic device or manually turned on by a user of the electronic device.
Optionally, in an embodiment of the present invention, the step 310 of analog-to-digital converting the first electric signal output by the X-axis motor into a first digital signal may include:
step 311, determine whether the first electrical signal is greater than a first preset signal value and a signal duration of the first electrical signal greater than the first preset signal value is greater than a first duration.
If the first electric signal is greater than the first preset signal value, it is indicated that the X-axis motor detects the vibration of the electronic device in the width direction, and if the signal duration of the first electric signal greater than the first preset signal value is greater than the first duration, it is indicated that the X-axis motor detects the vibration of the electronic device in the width direction greater than the first duration. Specifically, the first preset signal value may be set according to an average value or a minimum value of the electric signal output from the X-axis motor when a large number of users walk, and the first time period may be set according to an average value or a minimum value of the time period of the electric signal output from the X-axis motor when a large number of users walk.
If yes, the first digital signal is set to a first preset value, step 312.
Step 313, if not, setting the first digital signal to a second preset value.
Specifically, the first preset value and the second preset value may be 1 or 0, where if the first preset value is 1, the second preset value is 0, and if the first preset value is 0, the second preset value is 1.
Optionally, in an embodiment of the present invention, the step 310 of performing analog-to-digital conversion on the first electric signal output by the X-axis motor to a first digital signal may include:
in step 314, a first electrical signal output by the X-axis motor is acquired.
And 315, amplifying the first electric signal output by the X-axis motor according to the first preset gain.
The first preset gain may be set according to a minimum electrical signal required for analog-to-digital conversion, that is, a product of the first electrical signal output by the X-axis motor and the first preset gain is greater than or equal to the minimum electrical signal required for analog-to-digital conversion. The first electric signal output by the X-axis motor is amplified according to the first preset gain, so that the situation that the first electric signal output by the X-axis motor is too small to perform analog-to-digital conversion can be avoided, and the reliable realization of the step recording function is facilitated.
Step 316, converting the amplified first electrical signal into a first digital signal.
The step 316 of converting the amplified first electrical signal into the first digital signal may be implemented by steps 311 to 313, and may also be implemented by any existing technology, which is not limited in the present invention.
Optionally, in an embodiment of the present invention, the step 310 of analog-to-digital converting the second electrical signal output by the Z-axis motor into a second digital signal may include:
step 317, it is determined whether the second electrical signal is greater than a second predetermined signal value and a signal duration of the second electrical signal greater than the second predetermined signal value is greater than a second duration.
If the second electrical signal is greater than the second preset signal value, it is indicated that the Z-axis motor detects the vibration of the electronic device in the length direction, and if the signal duration of the second electrical signal greater than the second preset signal value is greater than the second duration, it is indicated that the Z-axis motor detects the vibration of the electronic device in the length direction greater than the second duration. Specifically, the second preset signal value may be set according to an average value or a minimum value of the electric signal output from the Z-axis motor when a large number of users walk, and the second time period may be set according to an average value or a minimum value of the time period of the electric signal output from the Z-axis motor when a large number of users walk.
If yes, the second digital signal is set to the first preset value, step 318.
If not, the second digital signal is set to a second preset value, step 319.
Specifically, the first preset value and the second preset value may be 1 or 0, where if the first preset value is 1, the second preset value is 0, and if the first preset value is 0, the second preset value is 1.
Optionally, in an embodiment of the present invention, the step 310 of analog-to-digital converting the second electrical signal output by the Z-axis motor into a second digital signal may include:
and step 320, acquiring a second electric signal output by the Z-axis motor.
Step 321, amplifying the second electrical signal output by the Z-axis motor according to a second preset gain.
The second preset gain may be set according to a minimum electrical signal required for analog-to-digital conversion, that is, a product of the second electrical signal output by the Z-axis motor and the second preset gain needs to be greater than or equal to the minimum electrical signal required for analog-to-digital conversion. The second electric signal output by the Z-axis motor is amplified according to the second preset gain, so that the situation that the second electric signal output by the Z-axis motor is too small to perform analog-to-digital conversion can be avoided, and the reliable realization of the step recording function is favorably ensured.
Step 322, converting the amplified second electrical signal into a second digital signal.
The step 322 of converting the amplified second electrical signal into the second digital signal may be implemented by steps 317 to 319, and may also be implemented by any prior art, which is not limited in the present invention.
In step 330, if the first digital signal and the second digital signal are the first preset value, the step value corresponding to the step-recording function is updated.
Specifically, step 330 may determine a step number value of the electronic device user walking according to the first digital signal and the second digital signal, and update a step number value corresponding to the step recording function according to the step number value of the electronic device user walking. If the first digital signal and the second digital signal are the first preset value, the step number value of the electronic equipment user walking is determined to be larger than 0, and the step number value corresponding to the step recording function can be updated according to the step number value of the user walking. Wherein, the first preset value can be 1 or 0.
In addition, if the first digital signal and/or the second digital signal are not the first preset value, the step number of the electronic device user walking is equal to 0, and the step number corresponding to the current step recording function is maintained.
Step 330 determines that the user is walking when the first digital signal and the second digital signal are the first preset value, that is, when the first electrical signal is greater than the first preset signal value and the signal duration of the first electrical signal that is greater than the first preset signal value is greater than the first duration, the second electrical signal is greater than the second preset signal value and the signal duration of the second electrical signal that is greater than the second preset signal value is greater than the second duration, so as to avoid that the user only causes the vibration of the electronic device in the width direction or only causes the vibration of the electronic device in the length direction or only updates the step value corresponding to the step recording function when the user performs momentary motions such as shaking, and ensure the accuracy and reliability of the step recording function.
Optionally, the step of updating the step value corresponding to the step-counting function in step 330 may include:
step 331, a first step value obtained by adding one to the step value corresponding to the step recording function is obtained.
That is, when the first digital signal and the second digital signal are the first preset value, step 330 determines that the user walks one step.
Alternatively, step 331 may use any prior art technique to obtain the first step value after adding one to the step value corresponding to the step-counting function.
Step 332, the first step value is used as the step value corresponding to the new step-counting function.
Specifically, after step 332, the process returns to step 310, and the step number value corresponding to the step counting function in step 330 is the step number value corresponding to the new step counting function, and the step counting can be continued by repeating this procedure.
Optionally, the step recording method may further include:
and under the condition that the step recording function of the electronic equipment is closed, stopping carrying out analog-to-digital conversion on the first electric signal output by the X-axis motor into a first digital signal, and stopping carrying out analog-to-digital conversion on the second electric signal output by the Z-axis motor into a second digital signal.
Therefore, only when the step recording function of the electronic device is turned on, the step 310 performs analog-to-digital conversion on the first electric signal output by the X-axis motor into the first digital signal and performs analog-to-digital conversion on the second electric signal output by the Z-axis motor into the second digital signal, so that the step recording function is realized, and the power consumption of the electronic device is reduced.
In the second embodiment of the present invention, the electronic device is configured to include an X-axis motor and a Z-axis motor, and when the step recording function of the electronic device is turned on, the first electrical signal output by the X-axis motor is analog-to-digital converted into a first digital signal, and the second electrical signal output by the Z-axis motor is analog-to-digital converted into a second digital signal, if the first electrical signal is greater than a first preset signal value and a signal duration of the first electrical signal that is greater than the first preset signal value is greater than a first duration, and the second electrical signal is greater than a second preset signal value and a signal duration of the second electrical signal that is greater than the second preset signal value is greater than a second duration, a first step value obtained by adding one to a step value corresponding to the step recording function is obtained, and the first step value is used as a new step value corresponding to the step recording function. According to the embodiment of the invention, the step recording function of the electronic equipment is realized through the X-axis motor and the Z-axis motor, so that the step recording function realization cost of the electronic equipment can be reduced, and the internal space of the electronic equipment can be further saved.
EXAMPLE III
An electronic device provided by the third embodiment of the invention is described in detail.
Referring to fig. 4, a schematic structural diagram of an electronic device in a third embodiment of the present invention is shown. As shown in fig. 1, the electronic apparatus includes an X-axis motor 1 and a Z-axis motor 2. The electronic device of the third embodiment of the present invention may further include:
the signal processing module 410 is configured to perform analog-to-digital conversion on a first electrical signal output by the X-axis motor into a first digital signal and perform analog-to-digital conversion on a second electrical signal output by the Z-axis motor into a second digital signal when the step-counting function of the electronic device is turned on.
The step number updating module 420 is configured to update the step number corresponding to the step recording function if the first digital signal and the second digital signal are the first preset value.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 2, and is not described here again to avoid repetition.
In the third embodiment of the present invention, the electronic device is configured to include an X-axis motor and a Z-axis motor, and when the step-counting function of the electronic device is turned on, the first electrical signal output by the X-axis motor is analog-to-digital converted into a first digital signal, and the second electrical signal output by the Z-axis motor is analog-to-digital converted into a second digital signal; and if the first digital signal and the second digital signal are the first preset value, updating the step value corresponding to the step recording function. According to the embodiment of the invention, the step recording function of the electronic equipment is realized through the X-axis motor and the Z-axis motor, so that the step recording function realization cost of the electronic equipment can be reduced, and the internal space of the electronic equipment can be further saved.
Example four
An electronic device provided by the fourth embodiment of the present invention is described in detail.
Referring to fig. 5, a schematic structural diagram of an electronic device in a fourth embodiment of the present invention is shown. As shown in fig. 1, the electronic apparatus includes an X-axis motor 1 and a Z-axis motor 2. The electronic device according to the fourth embodiment of the present invention may further include:
the signal processing module 510 is configured to perform analog-to-digital conversion on a first electrical signal output by the X-axis motor into a first digital signal and perform analog-to-digital conversion on a second electrical signal output by the Z-axis motor into a second digital signal when the step-counting function of the electronic device is turned on.
Optionally, the signal processing module 510 may include:
the first determining unit 511 is configured to determine whether the first electrical signal is greater than a first preset signal value and a signal duration of the first electrical signal that is greater than the first preset signal value is greater than a first duration.
The first setting unit 512 is configured to set the first digital signal to a first preset value when the first electrical signal is greater than a first preset signal value and a signal duration of the first electrical signal that is greater than the first preset signal value is greater than a first duration.
A second setting unit 513, configured to set the first digital signal to a second preset value when the first electrical signal is not greater than the first preset signal value or a signal duration of the first electrical signal greater than the first preset signal value is not greater than the first duration.
Optionally, the signal processing module 510 may include:
a second acquiring unit 514, configured to acquire the first electrical signal output by the X-axis motor.
The first amplifying unit 515 is configured to amplify the first electrical signal output by the X-axis motor according to a first preset gain.
Optionally, the first amplifying unit 515 may amplify the first electrical signal output by the X-axis motor according to a first preset gain through the first power amplifying module, where an input end of the first power amplifying module is connected to an output end of the X-axis motor. Alternatively, the first power amplifying module may have any structure.
A first conversion unit 516, configured to convert the amplified first electrical signal into a first digital signal.
Optionally, the first conversion unit 516 may convert the amplified first electrical signal into a first digital signal through a first analog-to-digital conversion module (an analog-to-digital converter or an analog-to-digital conversion circuit, etc.), where an input end of the first analog-to-digital conversion module is connected to an output end of the first power amplification module.
Optionally, the signal processing module 510 may include:
the second determining unit 517 is configured to determine whether the second electrical signal is greater than a second preset signal value and a signal duration of the second electrical signal that is greater than the second preset signal value is greater than a second duration.
The third setting unit 518 is configured to set the second digital signal to the first preset value when the second electrical signal is greater than the second preset signal value and a signal duration of the second electrical signal that is greater than the second preset signal value is greater than the second duration.
The fourth setting unit 519 is configured to set the second digital signal to the second preset value when the second electrical signal is not greater than the second preset signal value or a signal duration of the second electrical signal that is greater than the second preset signal value is not greater than the second duration.
Optionally, the signal processing module 510 may include:
and a third acquiring unit 520 for acquiring a second electrical signal output by the Z-axis motor.
And a second amplifying unit 521, configured to amplify the second electrical signal output by the Z-axis motor according to a second preset gain.
Optionally, the second amplifying unit 521 may amplify the second electrical signal output by the Z-axis motor according to a second preset gain through a second power amplifying module, where an input end of the second power amplifying module is connected to an output end of the Z-axis motor. Alternatively, the second power amplifying module may have any structure.
A second conversion unit 522, configured to convert the amplified second electrical signal into a second digital signal.
Optionally, the second converting unit 522 may convert the amplified second electrical signal into a second digital signal through a second analog-to-digital converting module (an analog-to-digital converter or an analog-to-digital converting circuit, etc.), where an input end of the second analog-to-digital converting module is connected to an output end of the second power amplifying module.
The step number updating module 530 is configured to update the step number corresponding to the step recording function if the first digital signal and the second digital signal are the first preset value.
Optionally, the step number updating module 530 may include:
the first obtaining unit 531 is configured to obtain a first step value obtained by adding one to a step value corresponding to the step recording function.
A step number updating unit 532, configured to use the first step number as a step number corresponding to the new step recording function.
Optionally, the electronic device may further include:
and the stopping module is used for stopping carrying out analog-to-digital conversion on the first electric signal output by the X-axis motor into a first digital signal and stopping carrying out analog-to-digital conversion on the second electric signal output by the Z-axis motor into a second digital signal under the condition that the step recording function of the electronic equipment is closed.
Optionally, the electronic device may include a first switch module and a second switch module, the first switch module is connected to an output end of the X-axis motor, the second switch module is connected to an output end of the Z-axis motor, and the stopping module stops acquiring the first electrical signal output by the X-axis motor and the second electrical signal output by the Z-axis motor by disconnecting the first switch module and the second switch module when the step-counting function of the electronic device is turned off, so as to stop performing analog-to-digital conversion on the first electrical signal output by the X-axis motor into the first digital signal, and stop performing analog-to-digital conversion on the second electrical signal output by the Z-axis motor into the second digital signal.
Alternatively, if the electronic device includes a first switch module and a second switch module, the signal processing module 510 controls the first switch module and the second switch module to be turned on when the step-counting function of the electronic device is turned on, so as to obtain a first electrical signal output by the X-axis motor and a second electrical signal output by the Z-axis motor.
Alternatively, the first and second switch modules may have any configuration.
In an embodiment of the present invention, a schematic structure diagram of the X-axis motor 1, the first switch module 2, the first power amplifying module 3, and the first analog-to-digital conversion module 4 is shown in fig. 6.
In fig. 6, the first power amplifying module 3 includes a first operational amplifier OPA1, a second operational amplifier OPA2, and a third operational amplifier OPA3, wherein a first voltage output terminal of the X-axis motor 1 is connected to one terminal of the first switching module 2, a non-inverting input terminal of the first operational amplifier OPA1 is connected to the other terminal of the first switching module 2, an inverting input terminal of the second operational amplifier OPA2 is connected to the second voltage output terminal of the X-axis motor 1, an inverting input terminal of the third operational amplifier OPA3 is connected to an output terminal of the first operational amplifier OPA1, a non-inverting input terminal of the third operational amplifier OPA3 is connected to an output terminal of the second operational amplifier OPA2, the first analog-to-digital conversion module 4 is connected to an output terminal of the third operational amplifier OPA3, the first operational amplifier OPA1 and the second operational amplifier OPA2 are used to amplify the first electric signal output from the X-axis motor 1, the third operational amplifier OPA3 is used to calculate the difference between the voltage at the output of the first operational amplifier OPA1 and the voltage at the output of the second operational amplifier OPA 2.
In fig. 6, a first resistor R1 is provided between the inverting input terminal of the third operational amplifier OPA3 and the output terminal of the first operational amplifier OPA1, a second resistor R2 is provided between the inverting input terminal and the output terminal of the third operational amplifier OPA3, a third resistor R3 is provided between the non-inverting input terminal of the third operational amplifier OPA3 and the output terminal of the second operational amplifier OPA2, a fourth resistor R4 is provided between the non-inverting input terminal of the third operational amplifier OPA3 and ground, the first resistor R1 and the second resistor R2 are used for gain adjustment of the first operational amplifier OPA1, the third resistor R3 and the fourth resistor R4 are used for gain adjustment of the second operational amplifier OPA2, the resistance value of the first resistor R1 is equal to that of the third resistor R3, and the resistance value of the second resistor R2 is equal to that of the fourth resistor R4.
In addition, the structural diagram of the X-axis motor 1 can be shown in fig. 7, 101 is a motor housing, 102 is a mass, 103 is a magnet, and has two magnetic poles N and S, a magnetic field in a free field is directed from N to S, the mass 102 outputs a vibration force under the influence of the movement of the magnet 103, 104 is a current of a coil, a vertical plane is inward, and 105 is a current of the coil, and a vertical plane is outward.
The working principle of the circuit in fig. 6 is as follows: as the electronic device vibrates, the vibrator (including the mass 102 and the magnet 103) in the motor slides freely, and when the vibrator moves in a magnetic field, the magnetic induction lines are cut, so that corresponding electric signals (current signals and voltage signals) are generated in the coil. The voltage value of the first output end of the motor is VP, the voltage value of the second output end of the motor is VM, the voltage value V of the output end of the third operational amplifier OPA3 is (VP-VM) × (R2/R1), R2/R1 is a first preset gain, the first analog-to-digital conversion module 4 performs analog-to-digital conversion on the voltage value V of the output end of the third operational amplifier OPA3, when V is greater than a preset value and the duration of V is greater than the preset duration, the first analog-to-digital conversion module 4 outputs a digital 1, and otherwise, the first analog-to-digital conversion module 4 outputs a digital 0.
It should be noted that the connection relationship and the operation principle between the Z-axis motor, the second switch module, the second power amplification module, and the second analog-to-digital conversion module are similar to those in fig. 6, and are not described in detail below.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 3, and is not described herein again to avoid repetition.
In the fourth embodiment of the present invention, the electronic device is configured to include an X-axis motor and a Z-axis motor, and when the step recording function of the electronic device is turned on, the first electrical signal output by the X-axis motor is analog-to-digital converted into a first digital signal, and the second electrical signal output by the Z-axis motor is analog-to-digital converted into a second digital signal, if the first electrical signal is greater than a first preset signal value and a signal duration of the first electrical signal that is greater than the first preset signal value is greater than a first duration, and the second electrical signal is greater than a second preset signal value and a signal duration of the second electrical signal that is greater than the second preset signal value is greater than a second duration, a first step value obtained by adding one to a step value corresponding to the step recording function is obtained, and the first step value is used as a new step value corresponding to the step recording function. According to the embodiment of the invention, the step recording function of the electronic equipment is realized through the X-axis motor and the Z-axis motor, so that the step recording function realization cost of the electronic equipment can be reduced, and the internal space of the electronic equipment can be further saved.
EXAMPLE five
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, a power supply 811, an X-axis motor, a Z-axis motor, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a smart audio, a PSP (PlayStation Portable), a pedometer, and the like.
A processor 810, configured to perform analog-to-digital conversion on a first electrical signal output by the X-axis motor into a first digital signal and perform analog-to-digital conversion on a second electrical signal output by the Z-axis motor into a second digital signal when a step recording function of the electronic device is turned on;
and if the first digital signal and the second digital signal are the first preset value, updating the step number value corresponding to the step recording function.
In the embodiment of the invention, the electronic equipment comprises an X-axis motor and a Z-axis motor, and under the condition that the step recording function of the electronic equipment is started, a first electric signal output by the X-axis motor is subjected to analog-to-digital conversion into a first digital signal, and a second electric signal output by the Z-axis motor is subjected to analog-to-digital conversion into a second digital signal; and if the first digital signal and the second digital signal are the first preset value, updating the step value corresponding to the step recording function. According to the embodiment of the invention, the step recording function of the electronic equipment is realized through the X-axis motor and the Z-axis motor, so that the step recording function realization cost of the electronic equipment can be reduced, and the internal space of the electronic equipment can be further saved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 802, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The electronic device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the electronic device 800 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 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.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 808 is an interface for connecting an external device to the electronic apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby monitoring the whole electronic device. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 800 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor 810, the memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the foregoing step-recording method embodiment, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the foregoing step-recording method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a 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, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A step recording method is applied to electronic equipment, and is characterized in that the electronic equipment comprises an X-axis motor and a Z-axis motor, and the step recording method comprises the following steps:
under the condition that a step recording function of the electronic equipment is started, performing analog-to-digital conversion on a first electric signal output by the X-axis motor to obtain a first digital signal, and performing analog-to-digital conversion on a second electric signal output by the Z-axis motor to obtain a second digital signal;
if the first digital signal and the second digital signal are a first preset value, updating a step value corresponding to the step recording function;
the step of performing analog-to-digital conversion on the first electric signal output by the X-axis motor into a first digital signal comprises:
judging whether the first electric signal is greater than a first preset signal value or not and the signal duration of the first electric signal which is greater than the first preset signal value is greater than a first duration;
if yes, setting the first digital signal to be the first preset value;
if not, setting the first digital signal to be a second preset value;
the step of performing analog-to-digital conversion on the second electric signal output by the Z-axis motor into a second digital signal comprises:
judging whether the second electric signal is greater than a second preset signal value or not and the signal duration of the second electric signal which is greater than the second preset signal value is greater than a second duration;
if yes, setting the second digital signal to be the first preset value;
and if not, setting the second digital signal to be a second preset value.
2. The method of claim 1, wherein the step of analog-to-digital converting the first electrical signal output by the X-axis motor into a first digital signal comprises:
acquiring a first electric signal output by the X-axis motor;
amplifying a first electric signal output by the X-axis motor according to a first preset gain;
and converting the amplified first electric signal into the first digital signal.
3. The method of claim 1, wherein the step of analog-to-digital converting the second electrical signal output by the Z-axis motor to a second digital signal comprises:
acquiring a second electric signal output by the Z-axis motor;
amplifying a second electric signal output by the Z-axis motor according to a second preset gain;
and converting the amplified second electric signal into the second digital signal.
4. The method of claim 1, wherein the step of updating the step value corresponding to the step-counting function comprises:
acquiring a first step numerical value obtained by adding one to the step numerical value corresponding to the step recording function;
and taking the first step value as a new step value corresponding to the step recording function.
5. The method of claim 1, wherein the pacing method further comprises:
and under the condition that the step recording function of the electronic equipment is closed, stopping carrying out analog-to-digital conversion on the first electric signal output by the X-axis motor into a first digital signal, and stopping carrying out analog-to-digital conversion on the second electric signal output by the Z-axis motor into a second digital signal.
6. An electronic apparatus comprising an X-axis motor and a Z-axis motor, the electronic apparatus further comprising:
the signal processing module is used for carrying out analog-to-digital conversion on a first electric signal output by the X-axis motor into a first digital signal and carrying out analog-to-digital conversion on a second electric signal output by the Z-axis motor into a second digital signal under the condition that a step recording function of the electronic equipment is started;
the step number updating module is used for updating the step number corresponding to the step recording function if the first digital signal and the second digital signal are the first preset value;
the signal processing module is further configured to:
judging whether the first electric signal is greater than a first preset signal value or not and the signal duration of the first electric signal which is greater than the first preset signal value is greater than a first duration;
if yes, setting the first digital signal to be the first preset value;
if not, setting the first digital signal to be a second preset value;
the signal processing module is further configured to:
judging whether the second electric signal is greater than a second preset signal value or not and the signal duration of the second electric signal which is greater than the second preset signal value is greater than a second duration;
if yes, setting the second digital signal to be the first preset value;
and if not, setting the second digital signal to be a second preset value.
7. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the pacing method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the pacing method according to one of claims 1 to 5.
CN201911383562.8A 2019-12-27 2019-12-27 Step recording method and electronic equipment Active CN111157016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911383562.8A CN111157016B (en) 2019-12-27 2019-12-27 Step recording method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911383562.8A CN111157016B (en) 2019-12-27 2019-12-27 Step recording method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111157016A CN111157016A (en) 2020-05-15
CN111157016B true CN111157016B (en) 2021-12-21

Family

ID=70558804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911383562.8A Active CN111157016B (en) 2019-12-27 2019-12-27 Step recording method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111157016B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909699A (en) * 2006-08-01 2007-02-07 华为技术有限公司 Method and device for realizing mobile terminal step function
CN201387327Y (en) * 2008-12-31 2010-01-20 叶静文 Speed meter with pedometer function
CN101668075A (en) * 2008-09-04 2010-03-10 株式会社卡西欧日立移动通信 Electronic device and control program thereof
JP2010088100A (en) * 2008-09-04 2010-04-15 Casio Hitachi Mobile Communications Co Ltd Electronic device, and program
WO2013190835A3 (en) * 2012-06-22 2014-03-06 Seiko Epson Corporation Portable device including an acceleration sensor capable of detecting accelerations in three-axis directions
CN104713566A (en) * 2013-12-16 2015-06-17 中国移动通信集团公司 Step counting method, step counting apparatus and pedometer
CN106231131A (en) * 2016-09-20 2016-12-14 努比亚技术有限公司 A kind of method and apparatus adding up step number

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909699A (en) * 2006-08-01 2007-02-07 华为技术有限公司 Method and device for realizing mobile terminal step function
CN101668075A (en) * 2008-09-04 2010-03-10 株式会社卡西欧日立移动通信 Electronic device and control program thereof
JP2010088100A (en) * 2008-09-04 2010-04-15 Casio Hitachi Mobile Communications Co Ltd Electronic device, and program
CN201387327Y (en) * 2008-12-31 2010-01-20 叶静文 Speed meter with pedometer function
WO2013190835A3 (en) * 2012-06-22 2014-03-06 Seiko Epson Corporation Portable device including an acceleration sensor capable of detecting accelerations in three-axis directions
CN104713566A (en) * 2013-12-16 2015-06-17 中国移动通信集团公司 Step counting method, step counting apparatus and pedometer
CN106231131A (en) * 2016-09-20 2016-12-14 努比亚技术有限公司 A kind of method and apparatus adding up step number

Also Published As

Publication number Publication date
CN111157016A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN108600546B (en) Environment light detection method and mobile terminal
CN110049192B (en) Detection method and mobile terminal
CN108362304B (en) Data processing method and mobile terminal
CN110139018B (en) Camera control module, camera movement control method and terminal
CN108289270B (en) Loudspeaker and mobile terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN109739394B (en) SAR value processing method and mobile terminal
CN110531915B (en) Screen operation method and terminal equipment
CN109888928B (en) Terminal and wireless charging control method
CN111443815A (en) Vibration reminding method and electronic equipment
CN108512615B (en) Signal intensity display method and mobile terminal
CN110456923B (en) Gesture sensing data processing method and electronic equipment
CN107749306B (en) Vibration optimization method and mobile terminal
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN111142618A (en) Method for detecting folding angle and electronic equipment
CN108196663B (en) Face recognition method and mobile terminal
CN106851050B (en) Motion detection method and device and mobile equipment
CN109451146B (en) Vibration processing method and terminal
CN109124647B (en) Laser module, detection method of laser module and terminal
CN111370026A (en) Equipment state detection method and electronic equipment
CN110764650A (en) Key trigger detection method and electronic equipment
CN108062465B (en) Unlocking method and mobile terminal
CN108228357B (en) Memory cleaning method and mobile terminal

Legal Events

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