WO2019061543A1 - State determination method and portable device - Google Patents

State determination method and portable device Download PDF

Info

Publication number
WO2019061543A1
WO2019061543A1 PCT/CN2017/105163 CN2017105163W WO2019061543A1 WO 2019061543 A1 WO2019061543 A1 WO 2019061543A1 CN 2017105163 W CN2017105163 W CN 2017105163W WO 2019061543 A1 WO2019061543 A1 WO 2019061543A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
value
portable device
equal
maximum value
Prior art date
Application number
PCT/CN2017/105163
Other languages
French (fr)
Chinese (zh)
Inventor
董辰
陈霄汉
陈宜欣
王宇
杨帆
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780082038.XA priority Critical patent/CN110168547B/en
Priority to PCT/CN2017/105163 priority patent/WO2019061543A1/en
Publication of WO2019061543A1 publication Critical patent/WO2019061543A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a state determining method and a portable device.
  • Portable devices are widely used in all aspects of life and work because of their small size, low power consumption and convenient carrying. For example, when the user moves (for example, walking or running), the stepping can be performed by the portable device, thereby calculating motion information such as the exercise distance, the step frequency, the step size, the pace, or the calories based on the step result. For example, a schematic diagram of a scene when a user walks can be seen in FIG. 1a.
  • the portable device when the portable device is worn on the user's hand, the portable device needs to call the hand step counting algorithm to perform the step counting.
  • the portable device When the portable device is worn on the user's foot, the portable device needs to call the foot counting algorithm to perform the step counting. That is to say, the parts worn by the portable device are different, and the counting algorithm called by the portable device is also different.
  • the portable device prior to invoking the pedometer algorithm, the portable device needs to first identify the wearing site.
  • the portable device identifies the wearing part by determining whether the feature of the measurement data of the at least one accelerometer conforms to the preset feature.
  • the measurement data of the accelerometer is strongly correlated with the wearing angle of the portable device, when the wearing angle of the portable device is different, the characteristics of the measurement data of the accelerometer are different; and the user is wearing Portable devices cannot be worn at the same angle every time, and there is usually a certain deviation.
  • the wearing parts are the same, the characteristics of the measurement data of the accelerometer obtained after re-wearing the portable device are different, so that the characteristics of the measurement data of the accelerometer are easily deviated from the preset features, which affects the recognition accuracy of the wearing part.
  • the embodiment of the present application provides a state determining method, which can identify a wearing part according to a modulus length of the measurement data of the accelerometer in the portable device, and the wearing angle of the portable device does not affect the recognition accuracy of the wearing part.
  • the first aspect provides a state determination method, comprising: first, a portable device collects measurement data of an accelerometer, and the measurement data of the accelerometer includes three coordinate axis components. Second, the portable device calculates the modulus length corresponding to the measurement data of the accelerometer. Then, the portable device determines the state of the portable device according to a plurality of die lengths and at least one preset condition, and the state of the portable device includes a stationary state, a foot motion state, or a hand motion state.
  • the modulus of the accelerometer's measurement data is a scalar rather than a vector, independent of the direction, it is not as strong as the accelerometer's measurement data, and the wearing angle of the wearable device is not affected. The recognition accuracy of the state of the portable device.
  • the foot motion state is used to indicate that the portable device is worn on the user's ankle, foot or calf position, and the portable device is in motion.
  • the hand motion state is used to indicate that the portable device is worn on the user's hand, wrist or arm, and the portable device is in motion.
  • the ankle, foot or calf part can be called the foot related part
  • the hand, wrist, or arm part can be called the hand related part. That is, the wearable device can determine the wearing of the wearable device according to the die length.
  • the site is the relevant part of the foot or the relevant part of the hand.
  • the modulus of the measurement data of the accelerometer is a scalar instead of a vector, it is independent of the direction, and thus is not related to the wearing angle of the wearable device like the measurement data of the accelerometer, so that the wearing angle of the wearing device is not Affect the recognition accuracy of the wearing part. Therefore, the state determination method provided by the embodiment of the present application can improve the recognition accuracy of the wearing part.
  • the determining, by the portable device, the state of the portable device according to the multiple modulo lengths and the at least one preset condition includes: if the multiple modulo lengths satisfy the first pre- With the condition, the portable device determines that the state of the portable device is a stationary state. If the plurality of modulo lengths satisfy the second preset condition or the third preset condition, the portable device determines that the state of the portable device is the foot motion state. If the plurality of modulo lengths do not satisfy the first preset condition, the second preset condition, and the third preset condition, the portable device determines that the state of the portable device is a hand motion state.
  • the portable device can determine whether the state of the portable device is a stationary state, a hand motion state, or a foot motion state according to the plurality of die lengths, the first preset condition, the second preset condition, or the third preset condition.
  • the determining, by the portable device, the state of the portable device according to the multiple modulo lengths and the at least one preset condition includes: when the two adjacent second presets When the difference d of the average energy of the measurement data of the accelerometer corresponding to the duration is greater than or equal to the twentieth preset value, the portable device determines the state of the portable device according to the plurality of die lengths and at least one preset condition.
  • the portable device can determine that the state of the portable device is a stationary state, a hand motion state, or a foot motion state when it is determined that the average energy variation within the adjacent second preset duration is large.
  • the determining, by the portable device, the state of the portable device according to the multiple modulus lengths and the at least one preset condition comprises: the portable device periodically according to the multiple modes The length and at least one preset condition determine the state of the portable device.
  • the portable device can determine that the state of the portable device is a stationary state, a hand motion state, or a foot motion state after being separated by a preset period length.
  • the method further includes: the portable device prompting the user The status of the portable device.
  • the portable device can promptly notify the user of the status and wearing position of the portable device determined by the portable device.
  • a second aspect provides a portable device comprising an accelerometer, a computing unit, and a determining unit.
  • the accelerometer is used to collect the measurement data of the accelerometer, and the measurement data of the accelerometer includes three coordinate axis components.
  • the calculation unit is used to calculate the modulus length corresponding to the measurement data of the accelerometer.
  • the determining unit is configured to determine a state of the portable device according to the plurality of die lengths and the at least one preset condition, and the state of the portable device includes a stationary state, a foot motion state, or a hand motion state.
  • the determining unit is specifically configured to: if the plurality of modulo lengths meet the first preset condition, determine that the state of the portable device is a quiescent state. If the plurality of die lengths meet the second preset condition or the third preset condition, it is determined that the state of the portable device is the foot motion state. If the plurality of modulo lengths do not satisfy the first preset condition, the second preset condition, and the third preset condition, determining that the state of the portable device is a hand motion state.
  • the determining unit is specifically configured to: when the difference between the average energy of the measurement data of the accelerometer corresponding to the two adjacent second preset durations When d is greater than or equal to the twentieth preset value, the state of the portable device is determined according to the plurality of die lengths and the at least one preset condition. Alternatively, the state of the portable device is determined periodically based on the plurality of die lengths and the at least one preset condition.
  • the portable device further includes a prompting unit, configured to prompt the user of the state of the portable device after the determining unit determines the state of the portable device.
  • the third aspect provides a method for automatically calculating a walking or running distance when the portable device detects that the portable device is worn on an arm, a hand or a wrist; the portable device detects that the user is portable when viewed.
  • the device displays the step result and identifies the step result that is worn on the arm, hand or wrist.
  • the portable device detects that the portable device is worn on the ankle, the calf or the foot, the portable device automatically adopts a second algorithm to calculate the walking or running distance; when the portable device detects the user viewing, the portable device displays the step result while The logo is the result of walking on the ankle, calf or foot.
  • the first algorithm may be a general-purpose algorithm or a step-calculating algorithm suitable for a portable device to be worn on an arm, a hand or a wrist.
  • the second algorithm can be a general purpose algorithm or a step counter algorithm suitable for portable devices to wear on the ankle, calf or foot. This method can provide users with a novel experience.
  • the first algorithm may also be the same as the second algorithm.
  • the portable device when the portable device detects that the portable device is worn around the neck, the portable device automatically adopts a third algorithm to calculate the walking or running distance.
  • the portable device detects the user's viewing, the portable device identifies the step result that is worn on the neck while displaying the step result.
  • the third algorithm may be a general-purpose algorithm or a step-counting algorithm suitable for a portable device to wear around the neck. This method can provide users with a novel experience.
  • the third algorithm may also be the same as the first calculation method or the second algorithm.
  • the portable device when the portable device detects that the portable device is worn on the ankle, the calf or the foot, the portable device automatically turns off the blood pressure, and/or the heartbeat and the like. Parameter detection module. This implementation can avoid unnecessary power consumption and improve the working time of portable devices.
  • the portable device when the portable device detects that the portable device is worn around the neck, the portable device automatically turns off the blood pressure, and/or heartbeat and other physiological parameter detecting modules. Adopting this implementation avoids unnecessary power consumption and improves the working time of the portable device.
  • the portable device determines a method for wearing the portable device, such as the state determining method of any of the first aspects.
  • an embodiment of the present application provides a portable device, including a sensor, a processor, and a memory, where the sensor includes a gyroscope and an accelerometer, the memory is configured to store an instruction, and the processor is configured to execute the instruction to enable the portable device to perform the first aspect.
  • the embodiment of the present application provides a computer readable storage medium, including instructions, when operating on a portable device, causing the portable device to perform the state in any one of the first aspect or the third aspect. Determine the method.
  • the embodiment of the present application provides a computer program product including instructions, when the device is running on a portable device, causing the portable device to perform the state determining method according to any one of the first aspect or the third aspect .
  • an embodiment of the present application provides a device, where the device exists in a product form of a chip, where the device includes a processor and a memory, where the memory is used to be coupled with the processor, and is configured to save program instructions and data of the device, and process The program is configured to execute program instructions stored in the memory, such that the device performs the function of data processing in the state determining method in any one of the first aspect or the third aspect.
  • the first preset condition includes: the plurality of moduli lengths include a first curved section, and the duration of the corresponding moments at the beginning and the end of the first curved section is greater than Or equal to the first preset duration, the modulus length corresponding to the first curve segment is greater than or equal to the first preset value and less than or equal to the second preset value, wherein the first preset value is less than the gravity acceleration, and the second preset value is The difference between the second preset value and the first preset value is greater than or equal to the third preset value.
  • the second preset condition includes: the multiple modulo lengths include a first target maximum value; or The duration of the corresponding moment is equal to the second preset duration, and the plurality of modular lengths include m first target maximum values, m is greater than or equal to the fourth preset value; the first target maximum value satisfies the fourth preset condition, and the fourth The preset condition includes: the first target maximum value is greater than or equal to the fifth preset value; and the third minimum time value in which the time corresponding to the first target maximum value further includes the first minimum value and the second minimum value
  • the first minimum value is a minimum value adjacent to the first target maximum value before the time corresponding to the first target maximum value, and the second minimum value is after the time corresponding to the first target maximum value
  • the fourth preset condition further includes: the first target maximum value corresponding to the half-bit width is less than or equal to the ninth preset value;
  • the half width is the absolute value of the difference between the first time and the second time, and the first time and the second time are within the third preset time, a time when the minimum value corresponds to the mode length represented by the sum of the half of the upward slope difference, and the first time and the second time are between the time corresponding to the first minimum value and the time corresponding to the second minimum value;
  • the half width is the absolute value of the difference between the third time and the fourth time, and the third time and the fourth time are within the third preset time, the second minimum The two times corresponding to the mode length indicated by the sum of the half of the downslope drop, and the third time and the fourth time are between the time
  • the fourth preset condition further includes: a sum of an uphill drop and a downhill drop and a first bit corresponding to the first target maximum The width ratio is greater than or equal to the tenth preset value.
  • the third preset condition includes: the multiple modulo lengths include a second curved section; or The duration is equal to the second preset duration, and the plurality of modulo lengths includes k second curved segments, and k is greater than or equal to the eleventh preset value.
  • the second curve segment satisfies the fifth preset condition, and the fifth preset condition includes: the duration of the corresponding moments of the first and last ends of the second curve segment is greater than or equal to the fifth preset duration and less than the first preset duration; the second curve segment corresponds to The modulus is greater than or The value is equal to the twelfth preset value and is less than or equal to the thirteenth preset value, and the difference between the thirteenth preset value and the twelfth preset value is less than or equal to the fourteenth preset value.
  • the fifth preset condition further includes: after the second curved section, the multiple modulus lengths further include the second target maximum value, the target a minimum value and a third target maximum value; the second target maximum value is an extreme value adjacent to the second curved segment after the second curved segment; the target minimum value is after the second target maximum value, and the first The second target maximum value is adjacent to the extreme value; the third target maximum value is a maximum value after the target minimum value, and the third target maximum value is a maximum value of the plurality of mode lengths in the sixth preset time period.
  • the fifth preset condition further includes at least one of the following conditions: the target minimum value is less than or equal to the fifteenth preset value; The second target width corresponding to the second target maximum value is less than or equal to the sixteenth preset value, and the second bit width is the difference between the time corresponding to the target minimum value and the end time of the second curved segment; The ratio of the value to the second target maximum value is greater than or equal to the seventeenth preset value; the third target maximum value further includes another second curved segment, the start time of the second second curved segment and the third target The difference between the moments corresponding to the maximum value is less than or equal to the eighteenth preset value.
  • the fifth preset condition further includes: the duration of the corresponding moments of the first and second ends of the plurality of modulo lengths is equal to the second preset duration, and the multiple moduli The sum s of the absolute values of the differences of the three coordinate axis components corresponding to each two adjacent moduli lengths in the length is greater than or equal to the nineteenth preset value; wherein s is expressed as:
  • (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the ith sampling time in the second preset duration
  • (x i+1 , y i+1 , z i+1 ) represents three coordinate axis components of the measurement data of the accelerometer corresponding to the i+1th sampling time in the second preset duration
  • the value range of i is each time within the second preset duration One sampling moment.
  • d is expressed as:
  • (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the i-th sampling time within the q+1th second preset time period
  • (x j , y j , z j ) represents the three coordinate axis components of the measurement data of the accelerometer corresponding to the jth sampling time in the qth second preset time period
  • q is an integer
  • n is included in the second preset duration
  • the number of sampling instants, n is a positive integer
  • the range of i is a positive integer less than or equal to n
  • the range of j is a positive integer less than or equal to n.
  • FIG. 1a is a schematic diagram of a user motion scene
  • FIG. 1b is a flow chart of a method for identifying a wearing part provided in the prior art
  • FIG. 2a is a schematic diagram of the appearance of a wearable device according to an embodiment of the present application.
  • 2b is a schematic diagram of a main body according to an embodiment of the present application.
  • 2c is a schematic diagram of wearing a main body according to an embodiment of the present application.
  • FIG. 3a is a schematic diagram of wearing a wearable device according to an embodiment of the present application.
  • FIG. 3b is a schematic diagram of wearing a wearable device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of wearing a wearable device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of wearing a wearable device according to an embodiment of the present disclosure.
  • 3 e is a schematic diagram of wearing a wearable device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of wearing a wearable device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of wearing a wearable device according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a wearable device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a mobile phone according to an embodiment of the present application.
  • FIG. 6 is a flowchart of a state determining method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a mold length provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of another state determining method according to an embodiment of the present application.
  • 9a is a schematic diagram of a first curved section provided by an embodiment of the present application.
  • FIG. 9b is a schematic diagram of a user in a static state according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a first target maximum value according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a first bit width provided by an embodiment of the present application.
  • FIG. 12 is a corresponding relationship diagram of a time corresponding to a first target maximum value and a third preset duration according to an embodiment of the present disclosure
  • FIG. 13 is a schematic diagram of a half width according to an embodiment of the present application.
  • FIG. 14 is a schematic diagram of another half width provided by an embodiment of the present application.
  • FIG. 15 is a schematic diagram of comparison of impacts of different half widths according to an embodiment of the present application.
  • 16 is a schematic diagram of a model length curve according to an embodiment of the present application.
  • 17 is a schematic diagram of a second curved section provided by an embodiment of the present application.
  • FIG. 18 is a schematic diagram of another mode length curve provided by an embodiment of the present application.
  • FIG. 19 is a schematic diagram of a second bit width according to an embodiment of the present application.
  • 20 is a schematic diagram of another mode length curve provided by an embodiment of the present application.
  • FIG. 21 is a schematic diagram of another mode length curve provided by an embodiment of the present application.
  • FIG. 22 is a schematic diagram of prompting a state of a portable device according to an embodiment of the present application.
  • FIG. 22b is a schematic diagram of a prompt state of another portable device according to an embodiment of the present disclosure.
  • FIG. 23 is a schematic diagram of prompting another state of a portable device according to an embodiment of the present disclosure.
  • FIG. 24a is a graph showing a measured die length according to an embodiment of the present application.
  • FIG. 24b is another measured die length curve diagram according to an embodiment of the present application.
  • Figure 24c is a graph showing another measured die length provided by an embodiment of the present application.
  • Figure 24d is a graph showing another measured die length provided by an embodiment of the present application.
  • 24 e is another measured die length curve diagram provided by an embodiment of the present application.
  • FIG. 24f is another graph of measured die lengths according to an embodiment of the present application.
  • FIG. 25 is a schematic diagram showing a step counting result according to an embodiment of the present application.
  • FIG. 26 is a schematic diagram showing another step counting result provided by an embodiment of the present application.
  • FIG. 27 is a schematic structural diagram of a portable device according to an embodiment of the present application.
  • FIG. 29 is a schematic structural diagram of another portable device according to an embodiment of the present disclosure.
  • the wearing angle of the portable device affects the characteristics of the measurement data of the accelerometer, and the like, and thus it is easy to deviate from the preset feature. Therefore, the recognition accuracy is poor.
  • the method provided by the embodiment of the present application can determine the wearing part of the portable device according to the modulus of the measurement data of the accelerometer in the portable device, and the mode length is a value greater than 0, regardless of the direction, and thus the wearing angle of the portable device does not affect the wearing. The recognition accuracy of the part.
  • Portable devices including but not limited to mobile phones, tablets (eg iPad), personal digital assistants (PDAs), wearable devices (including but not limited to: smart watches, smart bracelets, sports rings, smart glasses, etc. ).
  • Wearable device A portable device that is worn directly on the body or integrated into the user's clothing or accessories.
  • Maxima If a function has a certain value at each point in a neighborhood of a point, the value at that point is greater than the value at other points in the neighborhood, and the value at that point is a maximum.
  • Minimum value If a function has a certain value at each point in a neighborhood of a point, the value at that point is smaller than the value at other points in the neighborhood, and the value at that point is a minimum value.
  • Modulus length The length of the space vector. If the space vector is (x, y, z), where x, y, and z are the coordinates on the three axes, respectively, the modulus length is
  • first X, the second X...the twentieth X... are only used to facilitate the distinction between the individual Xs, without the meaning of the order.
  • X includes, but is not limited to, preset duration, preset value, curve segment, bit width, target maximum value, target minimum value, time, preset condition, algorithm, and the like.
  • any two of the first X, the second X...the twentieth X... are usually different, for some parameters (preset duration, preset value, curve segment, target maximum value, target minimum value, bit)
  • the width of the algorithm may be the same.
  • the first preset duration and the second preset duration may be the same.
  • the first preset value and the second preset value may also be the same. .
  • the portable device can be used to sense the motion state of the user.
  • Portable device can pack This includes, but is not limited to, devices such as cell phones, tablets, wearables, or personal digital assistants.
  • FIG. 2a provides a schematic view of the appearance of the wearable device 10.
  • the wearable device 10 can include a body 11 and a connector 12 that can include a screen 13, a button 14, and the like.
  • the screen 13 can be used to prompt the user with various information such as time, speed of movement, distance of movement, calories burned, and the like.
  • the screen 13 and the button 14 can be used to input user's indication information, such as power on, power off, pause, and the like.
  • the connector 12 can be used to wear the wearable device to a certain part of the user.
  • the main body 11 may further include components such as an earpiece 15, a microphone 16, and the like, which may be used to issue a voice prompt, perform music playback, input a user's voice indication, and the like.
  • the body 11 may also include other components, such as a USB interface or the like.
  • the connecting member 12 can be a latching member, and can be used for fastening the wearable device 10 to a wrist, an ankle, an arm, a leg, or the like, or the connecting member 12 can also be a fixing strap, and the wearable device 10 can be used. It is fixed on the wrist, ankle, arm, leg and other parts.
  • the main body 11 can also be used separately from the connector 12.
  • the main body 11 can be placed in a pocket, held in a hand, or the like.
  • the main body 11 can also be worn as an ornament on a user's neck, ankle or wrist, waist, clothing surface, and the like.
  • the annular body 11 can be worn as a necklace on the neck of the user.
  • the state determination algorithm and other functions such as the timing function
  • the state determination algorithm provided by the embodiment of the present application may be started, and other functions may be started.
  • the manner in which the main body 11 is triggered may be many, for example, when the main body 11 is detected to be worn at a preset portion.
  • the predetermined portion may include an ankle, a heel, a calf, a hand, a wrist, an arm, a boom, and the like as shown in Figures 3a-3g.
  • FIG. 4 provides a schematic structural view of another wearable device 20.
  • the wearable device 20 may include a sensor 21, a processing module 22, a storage module 23, an input module 24, a prompting module 25, and the like.
  • the sensor 21 can be used to monitor the real-time status of the wearable device 20, and specifically includes an accelerometer, a gyroscope, and the like.
  • the processing module 22 can be used to process the detected data of the sensor 21.
  • the storage module 23 can be used to store the detection data of the sensor 21, store the detected data processed by the processing module 22, and store the control instructions.
  • the input module 24 can be used to receive indication information input by the user, such as screen 13, button 14 or microphone 16 in Figure 2a.
  • the prompting module 25 can be used to display various prompt information to the user, such as screen 13 or earpiece 15 in Figure 2a.
  • wearable device 20 may also include other modules, such as wireless transmission module 26 and the like.
  • FIG. 5 provides a schematic structural diagram of the mobile phone 30.
  • the mobile phone 30 may include components such as a screen 31, a processor 32, a memory 33, a power source 34, a radio frequency (RF) circuit 35, a sensor 36, and an audio circuit 37. These components may be connected by a bus or may be straight. Connected. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more components than those illustrated, or some components may be combined, or different component arrangements.
  • RF radio frequency
  • the screen 31 may specifically be a touch display screen or a non-touch display screen, and may be used for user interface display.
  • the processor 32 is the control center of the handset 30, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 33, and recalling data stored in the memory 33, The functions and processing data of the mobile phone 30 are executed to perform overall monitoring of the mobile phone 30.
  • Memory 33 can be used to store data, software programs, and modules.
  • the power source 34 can be logically coupled to the processor 32 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the RF circuit 35 can be used to transmit and receive information and receive and transmit signals during a call.
  • the sensor 36 may include an accelerometer for collecting the magnitude of the acceleration of the mobile phone in various directions (generally three axes). When stationary, the magnitude and direction of the gravity may be collected, which may be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related). Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping). Sensor 36 may also include other sensors such as pressure sensors, light sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, and the like. Audio circuitry 37 can be used to provide an audio interface between the user and handset 30. Although not shown, the mobile phone 30 may further include a global positioning system (GPS) module, a wireless fidelity (Wi-Fi) module, a Bluetooth module, a camera, and the like, and will not be described herein. .
  • GPS global positioning system
  • Wi-Fi wireless fidelity
  • Bluetooth Bluetooth
  • the state determination method provided by the embodiment of the present application is described in detail below by taking the wearable device shown in FIG. 2a and FIG. 4 as an example for the purpose of the present invention.
  • the state determining method provided by the embodiment of the present application may include:
  • Step 201 The wearable device collects measurement data of the accelerometer, and the measurement data of the accelerometer includes three coordinate axis components.
  • the wearable device can collect the measurement data of the accelerometer at each sampling time according to a preset sampling interval or sampling frequency.
  • the sampling frequency may be 50 Hz or 100 Hz
  • the sampling interval may be 0.02 s or 0.01 s or the like.
  • the accelerometer here is a three-axis accelerometer
  • the measurement data of each group of accelerometers may include three coordinate axis components corresponding to three coordinate axes of the accelerometer, and the three coordinate axis components may be combined into one vector, that is, an accelerometer
  • the measured data is a vector.
  • the measurement data of a set of accelerometers can be expressed as (x, y, z), and x, y, z represent the three coordinate axis components of the measurement data of the accelerometer, respectively.
  • Step 202 The wearable device calculates a modulus length corresponding to the measurement data of the accelerometer.
  • the wearable device can calculate a modulus length corresponding to the measurement data of each group of accelerometers according to the measurement data of each group of accelerometers corresponding to each sampling moment.
  • the modulus length is a scalar greater than 0, and if the measurement data of the set of accelerometers is (x, y, z), the modulus corresponding to the measurement data of the set of accelerometers is A plurality of die lengths corresponding to a plurality of consecutive sampling moments may form a die length curve.
  • the top curve is the modulus curve (the uppermost axis corresponds to the largest value of the other three curves), and the other three curves correspond to the three coordinate axes of the accelerometer. curve.
  • Step 203 The wearable device determines a state of the wearable device according to the plurality of die lengths and the at least one preset condition, where the state of the wearable device includes a stationary state, a foot motion state, or a hand motion state.
  • the wearable device may determine whether the state of the wearable device is a stationary state, a foot motion state, or a hand motion state according to the plurality of die lengths and the at least one preset condition.
  • the foot motion state is used to indicate that the wearable device is worn on the user's ankle, foot (eg, heel) or calf, and the wearable device is in motion.
  • the hand motion state is used to indicate that the wearable device is worn on the user's hand, wrist or arm, and the wearable device is in motion.
  • the state of the wearable device is a foot motion state or a hand motion state, it may be stated that the user wearing the wearable device is in a motion state.
  • the user is in motion to indicate that the user is exercising, running, going upstairs, going downstairs, etc.
  • the arm portion may include an arm, a boom or an elbow.
  • FIG. 3a-3g A schematic view of the wearable device worn on the user's ankle, heel, calf, hand, wrist, arm or arm, as shown in Figures 3a-3g, respectively.
  • the state of the wearable device is a stationary state, it can be stated that the user wearing the wearable device is at a standstill.
  • the ankle, foot or calf portion may be referred to as a foot related portion
  • the hand, wrist, or arm portion may be referred to as a hand related portion. That is to say, the wearable device can determine whether the wearing part of the wearable device is a foot related part or a hand related part according to the mold length.
  • the modulus of the accelerometer's measurement data is a scalar rather than a vector, independent of the direction, it is not as strong as the accelerometer's measurement data, and the wearing angle of the wearable device is not affected.
  • the recognition accuracy of the wearing part Therefore, the state determination method provided by the embodiment of the present application can improve the recognition accuracy of the wearing part.
  • step 203 may include:
  • Step 2031 If the plurality of modulo lengths meet the first preset condition, the wearable device determines that the state of the wearable device is a quiescent state.
  • Step 2032 If the plurality of die lengths meet the second preset condition or the third preset condition, the wearable device determines that the state of the wearable device is a foot motion state.
  • Step 2033 If the plurality of die lengths do not satisfy the first preset condition, the second preset condition, and the third preset condition, the wearable device determines that the state of the wearable device is a hand motion state.
  • the first preset condition may include: the plurality of moduli lengths include a first curved section, and the duration of the corresponding moments at the beginning and the end of the first curved section is greater than or equal to the first preset duration.
  • the modulus length corresponding to the first curved segment is greater than or equal to the first preset value and less than or equal to the second preset value.
  • the first preset value is smaller than the gravity acceleration
  • the second preset value is greater than the gravity acceleration
  • the difference between the second preset value and the first preset value is less than or equal to the third preset value.
  • the second preset value is compared with the first preset value because the modulus length corresponding to the first curved segment is greater than or equal to the first preset value and less than or equal to the second preset value.
  • the difference is less than or equal to the third preset value, so that it can be stated that the amplitude of the modulus length corresponding to the first curved segment fluctuates within a small range.
  • the second preset value is greater than the gravitational acceleration, so that the amplitude of the mode length corresponding to the first curved segment is smaller than the gravitational acceleration of 1 g. Fluctuations within the scope.
  • the first preset value may be 0.9 g
  • the second preset value may be 1.1 g.
  • the duration of the modulus length satisfying the first preset condition is greater than the first preset duration
  • the amplitude of the mode length fluctuates within a relatively small range of the gravitational acceleration 1 g in a long period of time.
  • the first preset duration may be 1 s (seconds). Referring to Figure 9b, when the state of the wearable device is stationary, it can be indicated that the user is currently still at rest.
  • the wearable device can determine whether the first preset condition is satisfied within the first preset time period, thereby determining whether it is a stationary state.
  • the first preset duration is usually small, for example, 1 s, and the wearable device can determine whether the state of the wearable device is static in a short period of time, and thus the wearable device has high processing efficiency. And the memory footprint is low.
  • the determining, by the wearable device, whether the plurality of modulo lengths meet the second preset condition or the third preset condition may include: the wearable device may first determine whether the plurality of modulo lengths meet the second preset If the second preset condition is not met, the method may determine whether the plurality of modulo lengths meet the third preset condition; or the wearable device may first determine whether the plurality of modulo lengths meet the third preset condition, if the third preset condition is met, The three preset conditions may determine whether the plurality of die lengths satisfy the second preset condition.
  • the second preset condition may include: the plurality of die lengths include a first target maximum value, and the first target maximum value satisfies the fourth preset condition.
  • the wearable device may determine that the second preset condition is met, so that the state of the wearable device may be determined to be a foot. State of movement.
  • the fourth preset condition may include the following conditions:
  • the first target maximum value is greater than or equal to the fifth preset value.
  • the third preset duration in which the time corresponding to the first target maximum value further includes a first minimum value and a second minimum value, where the first minimum value corresponds to the first target maximum value A minimum value adjacent to the first target maximum value before the time, and the second minimum value is a minimum value adjacent to the first target maximum value after the time corresponding to the first target maximum value.
  • the uphill drop is greater than or equal to a sixth preset value, and the uphill drop is the absolute value of the difference between the first minimum value and the first target maximum value.
  • the downhill drop is greater than or equal to the seventh preset value, and the downhill drop is the difference between the first target maximum value and the second minimum value.
  • the first bit width corresponding to the first target maximum value is less than or equal to the eighth preset value, and the first bit width is a difference between the time corresponding to the second minimum value and the time corresponding to the first minimum value.
  • the first target maximum value corresponding to the first bit width is a schematic diagram. See FIG. 11 .
  • the first target maximum value is a maximum value of the plurality of module lengths in the fourth preset duration, and the fourth preset duration is greater than the third preset duration.
  • the wearable device may first detect whether there is a maximum value among the plurality of die lengths. When the wearable device detects a maximum value, it can be determined whether all of the above fourth preset conditions are satisfied. If all the conditions in the fourth preset condition are not met, the maximum value is not the first target maximum value, and the wearable device can detect whether the next maximum value satisfies all the conditions in the fourth preset condition; If all the conditions in the fourth preset condition are met, the wearable device determines that the detected maximum value is the first target maximum value, thereby determining that the second preset condition is met, and thus determining the state of the wearable device For the state of foot movement.
  • the wearable device may determine whether the maximum value is greater than or equal to a fifth preset value (ie, the foregoing (1) condition), if the maximum value is greater than the fifth preset. a value, the wearable device may determine a third preset duration including the maximum value, and further determine whether a first minimum value and a second minimum value are included in the third preset duration (ie, the foregoing 2) condition), and then continue to determine whether the maximum value satisfies other conditions in the fourth preset condition.
  • a fifth preset value ie, the foregoing (1) condition
  • the wearable device may determine a third preset duration including the maximum value, and further determine whether a first minimum value and a second minimum value are included in the third preset duration (ie, the foregoing 2) condition), and then continue to determine whether the maximum value satisfies other conditions in the fourth preset condition.
  • the wearable device determines a third preset duration including the maximum value
  • the maximum value is determined as the intermediate time of the third preset duration, so that it is more convenient to determine whether there is a first minimum value before the maximum value within the third preset duration, and whether there is a maximum value after the maximum value The second minimum.
  • the third preset duration is 0.2 s
  • the maximum value is located at an intermediate moment of the third preset duration.
  • the fourth preset duration may be 0.4 s, that is, the first target maximum value may be a plurality of modes corresponding to the 0.4 s at the time corresponding to the first target maximum value.
  • the moment at which the first target maximum value is located may be an intermediate moment of the fourth preset duration.
  • the measurement result of the meter is instantaneously increased, so that the mold length corresponding to the measurement data of the foot landing time accelerometer also corresponds to a large impact.
  • the first target maximum value in FIG. 10 can be understood as the highest point of the impact of the die length corresponding to the foot landing time.
  • the wearable device can determine whether the second preset condition is satisfied within the fourth preset time period, thereby determining whether it is a foot motion state.
  • the fourth preset duration is usually small, for example, 0.4s, and the wearable device can determine whether the state of the wearable device is a foot motion state in a short time, and thus the processing efficiency is high, and the memory usage is low. .
  • the fourth preset condition may further include: the half-bit width corresponding to the first target maximum value is less than or equal to the ninth preset value.
  • the half width is the absolute value of the difference between the first time and the second time
  • the first time and the second time are two moments corresponding to the mode length indicated by the sum of the first minimum value and the half of the upward slope difference within the third preset time period, that is, the first target maximum value and the upward slope difference
  • the difference between the half of the two represents the two moments corresponding to the mode length
  • the first time and the second time are between the time corresponding to the first minimum value and the time corresponding to the second minimum value.
  • the half width is the absolute value of the difference between the third time and the fourth time
  • the third The time and the fourth time are two times corresponding to the mode length indicated by the sum of the second minimum value and the half of the downhill fall within the third preset time period, that is, the first target maximum value and the half of the downhill drop
  • the difference indicated by the difference is the two moments corresponding to the mode length
  • the third time and the fourth time are between the time corresponding to the first minimum value and the time corresponding to the second minimum value.
  • the first target maximum value may be the highest point of the impact, and the half width of the first target maximum value may also be referred to as the half width of the impact.
  • the half width of the first target maximum value is less than or equal to the ninth preset value, it may be stated that the half width of the impact corresponding to the first target maximum value is narrow.
  • the fourth preset condition may further include: a ratio of the sum of the uphill drop and the downhill drop to the first bit width corresponding to the first target maximum value is greater than or equal to the tenth preset value.
  • the first bit width corresponding to the first target maximum value is the difference between the time corresponding to the second minimum value and the time corresponding to the first minimum value.
  • the ratio of the upper slope difference and the downhill drop sum to the first bit width corresponding to the first target maximum value may be referred to as the total slope of the impact corresponding to the first target maximum value, that is, the impact corresponding to the first target maximum value
  • the total slope is large.
  • the second preset condition in the step 2032 may include: the duration of the corresponding moments of the first and last ends of the plurality of modulo lengths is equal to the second preset duration, and the plurality of modulo lengths Including m A target maximum value, m is greater than or equal to a fourth preset value.
  • the wearable device may determine that the state of the wearable device is a foot motion state.
  • the wearable device can avoid erroneous recognition of the state of the wearable device due to erroneous detection of the first target maximum value, so that the state of the wearable device and the recognition reliability of the wearing portion can be improved.
  • the third preset condition may include: the plurality of die lengths include one second curve segment, and the second curve segment satisfies the fifth preset condition.
  • the wearable device may detect a second curved segment that satisfies the fifth preset condition, it may be determined that the third preset condition is satisfied, so that the state of the wearable device may be determined to be the foot motion state.
  • the fifth preset condition may include: a duration of a corresponding moment of the first and last ends of the second curved section is greater than or equal to a fifth preset duration and less than a first preset duration, and a modulus length corresponding to the second curved section is greater than Or equal to the twelfth preset value and less than or equal to the thirteenth preset value, and the difference between the thirteenth preset value and the twelfth preset value is less than or equal to the fourteenth preset value.
  • the twelfth preset value may be the same as the first preset value
  • the thirteenth preset value may be the same as the second preset value
  • the fourteenth preset value may be the third preset value Set the same value.
  • the duration of the second curved section in Fig. 17 is shorter.
  • the first preset duration is 1 s
  • the duration of the first curved segment that is, the duration of the corresponding time at the beginning and the end of the first curved segment
  • the fifth preset duration may be 0.4 s, that is, The duration of the second curved segment may be greater than 0.4 s and less than 1 s.
  • the wearable device can determine whether the third preset condition is met within a time period less than the first preset duration, thereby determining whether it is a foot motion state, and the first preset duration is usually small, for example, 1 s, Therefore, the wearable device has higher processing efficiency and lower memory usage.
  • the fifth preset condition may further include: after the second curved section, the plurality of modulo lengths further include a second target maximum value, a target minimum value, and a third target maximum value, and second The target maximum value is an extreme value adjacent to the second curved segment after the second curved segment, and the target minimum value is an extreme value adjacent to the second target maximum value after the second target maximum value, and third The target maximum value is a maximum value after the target minimum value, and the third target maximum value is a maximum value of the plurality of modulus lengths within the sixth preset time length.
  • the mode length corresponding to the second curve segment satisfying the fifth preset condition and the mode length after the second curve segment are "flat convex and concave".
  • "flat” is the position corresponding to the second curve segment
  • "convex” is the position corresponding to the second target maximum value
  • "concave” is the position corresponding to the target minimum value
  • "chong” is the third target maximum value Corresponding location.
  • the third target maximum value in FIG. 18 can be understood as the highest point of the impact of the die length corresponding to the foot landing time.
  • the time corresponding to the third target maximum value may be an intermediate time of the sixth preset duration, and the sixth preset duration may be 0.4 s.
  • the fifth preset condition may further include at least one of the following conditions:
  • the target minimum value is less than or equal to the fifteenth preset value.
  • the second bit width corresponding to the second target maximum value is less than or equal to the sixteenth preset value.
  • the second bit width is the difference between the time corresponding to the target minimum value and the end time of the second curved segment.
  • the difference t 0 of the time at which the start time of the other second curved segment corresponds to the third target maximum value can be seen in FIG. 20 .
  • the fifth preset condition may further include: a duration of a corresponding moment of the first and second ends of the plurality of modulo lengths is equal to a second preset duration, and three coordinate axes components corresponding to each two adjacent modulo lengths of the plurality of modulo lengths The sum s of the absolute values of the differences is greater than or equal to the nineteenth preset value; where s is expressed as:
  • (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the ith sampling time in the second preset duration
  • (x i+1 , y i+1 , z i+1 ) represents three coordinate axis components of the measurement data of the accelerometer corresponding to the i+1th sampling time in the second preset duration
  • the value range of i is each time within the second preset duration One sampling moment.
  • the second preset duration is 5s
  • the wearable device can determine whether the sum s of the absolute values of the differences of the three coordinate axis components corresponding to each two adjacent die lengths is greater than the plurality of die lengths within 5 seconds. Or equal to the nineteenth preset value.
  • the sum s of the absolute values of the differences of the three coordinate axis components corresponding to each two adjacent die lengths is greater than or equal to the nineteenth preset value, it can be indicated that the mode length curve is not very smooth. Normally, when the wearable device is worn on the relevant part of the foot, the curve length is not very smooth, and when the wearable device is worn on the relevant part of the hand, the curve of the mold length is smoother.
  • the third preset condition in the step 2032 may include: the duration of the corresponding moments of the first and second ends of the plurality of modulo lengths is equal to the second preset duration, and the plurality of modulo lengths The k second curve segments are included, and k is greater than or equal to the eleventh preset value.
  • the wearable device may determine that the state of the wearable device is a foot motion state.
  • the wearable device can avoid erroneous recognition of the state of the wearable device due to erroneous detection of the second curved segment, thereby improving the recognition accuracy and reliability of the state of the wearable device and the wearing portion.
  • the wearable device may determine whether the second or third preset condition is met within the second preset duration, thereby determining whether it is a foot motion state, and the second preset duration is usually small, for example, It can be 5 s, so the wearable device determines the state of the wearable device and the wearing portion is more efficient, and the memory usage is low. Thereby, it is possible to make the delay in calling the step counting algorithm related to the wearing part smaller after determining the state of the wearable device and the wearing part.
  • the method for determining the state of the wearable device according to the modulo length provided by the embodiment of the present application has lower computational complexity, and thus the occupied memory is smaller, so that the power consumption of the wearable device is also smaller.
  • the sampling frequency is 100 Hz
  • the state of the wearable device is determined by using the method provided by the embodiment of the present application, the number of addition operations in 5 seconds is only about 200,000 times.
  • the wearable device may determine whether there is a first target maximum value that satisfies the fourth preset condition within the fourth preset time period, thereby determining whether the plurality of mode lengths meet the second preset condition;
  • the wearable device needs to determine whether the plurality of die lengths meet the feature of “flat convex and concave punch” in a time period longer than the fifth preset time length, thereby determining whether the plurality of die lengths meet the third preset condition, and the fourth preset duration It can usually be less than or equal to the fifth preset duration.
  • the time period during which the wearable device determines whether the plurality of modulo lengths meet the second preset condition may be less than a period of time during which the wearable device determines whether the plurality of modulo lengths meet the third preset condition. Therefore, in an optional implementation manner of step 2032, the wearable device may preferentially determine whether the plurality of modulo lengths meet the second preset condition, thereby preferentially processing the modulo length signal in the short period of time; When the condition is preset, the wearable device determines whether the third preset condition is met, that is, the signal in the long period of time is processed again, so that the power consumption of the wearable device is low.
  • the step 203 may specifically include: when the difference d of the average energy of the measurement data of the accelerometer corresponding to the two adjacent second preset durations is greater than or equal to The twentieth preset value determines the state of the wearable device according to the plurality of modulo lengths and the at least one preset condition.
  • the energy when the difference d of the average energy of the measurement data of the accelerometer corresponding to the two adjacent second preset durations is greater than or equal to the twentieth preset value, the energy may be significantly changed.
  • the reason may be that the state of the wearable device is changed, for example, from the stationary state to the foot motion state, and thus the state of the wearable device can be determined at this time.
  • d can be expressed as:
  • d can be expressed as:
  • (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the i-th sampling time within the q+1th second preset time period
  • (x j , y j , z j ) represents the three coordinate axis components of the measurement data of the accelerometer corresponding to the jth sampling time in the qth second preset time period
  • q is an integer
  • n is included in the second preset duration
  • the number of sampling instants, n is a positive integer
  • the range of i is a positive integer less than or equal to n
  • the range of j is a positive integer less than or equal to n.
  • the twentieth preset value may be 0.2 g.
  • the foregoing step 203 may include: the wearable device periodically determines the state of the wearable device according to the plurality of die lengths and the at least one preset condition.
  • the period here can be set according to actual needs.
  • the period may be set to 30 s, that is, the wearable device may determine the state of the wearable device according to step 203 every 30 s.
  • the wearable device may determine the state of the wearable device according to step 203 when receiving the indication information of the user.
  • the user may trigger the indication information by means of voice, button, touch screen or gesture (eg, continuously shaking the wearable device) to indicate that the wearable device determines the state of the wearable device according to step 203.
  • the method may further include:
  • Step 204 The wearable device prompts the user for the status of the wearable device.
  • the wearable device can prompt the user for the state of the wearable device by using a screen, a voice, a light, a vibration, or the like.
  • the wearable device can prompt the user through the screen to determine the status of the wearable device.
  • the wearable device can display a hand icon (or English of the hand, or a phonetic acronym of the hand) on the screen to prompt the user to determine the state of the wearable device as Hand movement status.
  • the wearable device can display a pictorial representation of the foot (or the English of the foot, or the pinyin acronym of the foot) on the screen to prompt the user to determine the state of the wearable device as foot motion. status.
  • the wearable device can promptly indicate to the user through the microphone that the state of the wearable device is a stationary state, a foot motion state, or a hand motion state.
  • the wearable device can also prompt the user to determine the state of the wearable device as the hand motion state by shaking once, and prompt the user to determine the state of the wearable device as the foot motion state by shaking twice.
  • the method may further include:
  • Step 205 The wearable device filters the measurement data or the mode length of the accelerometer.
  • Filtering the measurement data or the mode length of the accelerometer can filter out some of the glitch generated by the noise, so that the modulus length corresponding to the plurality of mode lengths used to determine the state of the wearable device in step 203 is smoother, and the noise is reduced.
  • the resulting glitch misjudges the maximum or minimum value of the die length, improving the accuracy and efficiency of determining the state of the wearable device.
  • the specific value of the first preset duration to the sixth preset duration may be set according to actual needs, and the application is implemented.
  • the examples are not specifically limited.
  • the data collected by the accelerometer in the wearable device may be cached into the storage unit, and the processing unit in the wearable device may periodically read from the storage unit.
  • the measurement data of the accelerometer is used to calculate the modulus length corresponding to the measurement data of the accelerometer, and then the state of the wearable device is determined according to the plurality of die lengths and at least one preset condition.
  • the period during which the wearable device reads the measurement data of the accelerometer may be 1 s.
  • the curve and the die length curve corresponding to the three coordinate axis components of the actually measured accelerometer can be seen in FIG. 24a to FIG. 24e, and in FIG. 24a to FIG. 24e, the top curve is the die length curve.
  • the vertical axis value is the largest compared to the other three
  • the other three curves are the curves corresponding to the three coordinate axis components of the accelerometer.
  • the curve in Fig. 24a is the curve actually worn when the user goes upstairs, and the curve in Fig. 24b is the curve actually worn when the user walks, and the curve is shown in Fig. 24c.
  • the curve in Fig. 24d is the curve actually worn when the user walks on the wrist, and the curve is the wrist worn in Fig. 24e, and the user The actual measured curve while running.
  • the die length curve in FIG. 24a and FIG. 24b corresponding to the ankle portion conforms to a third preset condition, such as a mode
  • a third preset condition such as a mode
  • the trend of the long curve conforms to the feature of "flat convex and concave punch”
  • the die length curve in Fig. 24c corresponding to the ankle portion conforms to the second preset condition, for example, the feature conforming to the first target maximum value
  • the trend of the die length curve is "vibration and convexity", in which "vibration” means oscillation
  • the mode length curve in Fig. 24d and Fig. 24e corresponding to the wrist portion does not satisfy the second preset condition and the third preset condition, and does not satisfy the first preset condition.
  • 24f also provides a measured graph in which the portion indicated by the arrow indicates the modulus curve of the user in a stationary state, which is a first curved segment having a longer duration. Moreover, the experimental results show that when the state determination method provided by the embodiment of the present application is used to determine the state of the wearable device, the accuracy may be greater than or equal to 98%.
  • the embodiment of the present application further provides a method, the method may include: when the wearable device detects that the wearable device is worn on an arm, a hand or a wrist, the wearable device uses a first algorithm to calculate walking or running Distance, when the wearable device detects the user's view, the wearable device displays the step result and identifies the step result worn on the arm, hand or wrist.
  • the wearable device detects that the wearable device is worn on the ankle, the calf or the foot
  • the wearable device uses a second algorithm to calculate the walking or running distance
  • the wearable device displays the step result when viewed by the wearable device user. It also identifies the step-by-step results of wearing on the ankle, calf or foot.
  • the first algorithm may be a general-purpose algorithm or a step-and-step algorithm suitable for wearing a wearable device on an arm, a hand or a wrist.
  • the second algorithm can be a general purpose algorithm or a step counter algorithm suitable for portable devices to wear on the ankle, calf or foot.
  • the first algorithm may be the same as the second algorithm.
  • the wearable device when the wearable device detects that the wearable device is worn on the arm, the hand or the wrist, the wearable device can display the same flag while displaying the step result to identify the wearable device being worn on the arm and the hand. On the wrist or wrist, the corresponding symbol of the arm, hand or wrist can also be displayed to identify whether the wearable device is worn on the arm, the hand or the wrist.
  • the wearable device when the wearable device detects that the wearable device is worn on the arm, the hand or the wrist, the wearable device can display the icon of the hand and the pinyin of the hand while displaying the step result.
  • the wearable device when the wearable device detects that the wearable device is worn on the arm, the wearable device can display the icon of the arm, the pinyin abbreviation of the arm, or the English of the arm, etc., while displaying the step result.
  • the current wearing position is an arm; when the wearable device detects that the wearable device is worn on the wrist, the wearable device can display the icon of the wrist, the acronym of the wrist, and the English of the wrist while displaying the step result. To identify the current wearing position as the wrist.
  • the wearable device When the wearable device detects that the wearable device is worn on the ankle, the calf or the foot, the wearable device can display the same sign to indicate that the wearable device is worn on the ankle, the calf or the foot while displaying the step result. It is also possible to respectively display a logo corresponding to the ankle, calf or foot to identify whether the wearable device is specifically worn on the ankle, the calf or the foot.
  • the wearable device when the wearable device detects that the wearable device is worn on the ankle, the calf or the foot, the wearable device can display the pictogram of the foot and the pinyin initial of the foot while displaying the step result.
  • the wearable device may display the icon of the ankle, the pinyin acronym of the ankle or the English of the ankle, etc., while displaying the step result.
  • the current wearing position is an ankle; when the wearable device detects that the wearable device is worn on the lower leg, the wearable device can display while displaying the step result
  • the wearable device when the wearable device detects that the wearable device is worn around the neck, the wearable device can employ a third algorithm to calculate the walking or running distance.
  • the wearable device When the wearable device detects the user's view, it displays the step result and identifies the step result that is worn around the neck (for example, a graphic showing the neck, or the English of the neck, or the Chinese pinyin initials of the neck) Abbreviations, etc.).
  • the third algorithm may be a general-purpose algorithm or a step-counting algorithm suitable for wearing a wearable device around the neck. As a possible implementation, the third algorithm may also be the same as the first algorithm or the second algorithm.
  • the wearable device when the wearable device detects that the wearable device is worn on the ankle, the calf or the foot, the wearable device can automatically turn off the blood pressure, and/or the heartbeat and other physiological parameter detecting module to save the wearable device. Power consumption, extending the life of wearable devices.
  • the wearable device when the wearable device detects that the wearable device is worn around the neck, the wearable device can automatically turn off the blood pressure, and/or the physiological parameter detecting module such as a heartbeat to save the power consumption of the wearable device. Extend the life of your wearable device.
  • the method for determining the wearing position of the portable device by the portable device is the state determining method provided by the foregoing method embodiment of the present application.
  • the portable device may determine that the wearing portion of the portable device is a foot-related portion, such as an ankle, a calf or a foot; when the portable device determines the state of the portable device as a hand In the state of motion, the portable device can determine that the wearing portion of the portable device is a hand-related portion, such as an arm, a hand, or a wrist.
  • the wearable device detects the user's view, including: the wearable device detects that the user clicks on the power button of the wearable device; or the wearable device detects that the user clicks on the touch screen of the wearable device; or, the wearable device detects The wearable device is operated to the user in a preset manner (for example, the wearable device is continuously shaken twice); or the wearable device detects the voice command of the user; or the wearable device detects that the user has stopped for more than the preset duration.
  • a preset manner for example, the wearable device is continuously shaken twice
  • the wearable device detects the voice command of the user
  • the wearable device detects that the user has stopped for more than the preset duration.
  • the wearable device detects that the user raises his hand to view the wearable device, or the wearable device detects that the user picks up the wearable device for viewing; or the wearable device detects that the user is on the lower leg (or an ankle, or a toe) Remove the wearable device and pick up the wearable device for viewing.
  • the portable device includes a corresponding hardware structure and/or software module for executing each function.
  • the present application can be implemented in a combination of hardware or hardware and computer software in combination with the algorithmic steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
  • the embodiment of the present application may divide the function module into the portable device according to the foregoing method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 27 shows a possible composition diagram of the portable device 40 involved in the above and the embodiments.
  • the portable device 40 may include: Accelerometer 41, calculation unit 42 and determination unit 43, accelerometer 41 can be used according to preset sampling room
  • the measurement data of the accelerometer is included in the measurement data of the accelerometer, and includes three coordinate axis components.
  • the calculation unit 42 can be used to calculate the modulus length corresponding to the measurement data of the accelerometer.
  • the determining unit 43 may be configured to determine a state of the portable device according to the plurality of die lengths and the at least one preset condition, the state of the portable device including a stationary state, a foot motion state, or a hand motion state.
  • the portable device 40 may further include a prompting unit for prompting the user of the state of the portable device after the determining unit determines the state of the portable device.
  • accelerometers can also be used in other processes of the techniques described herein.
  • FIG. 28 shows another possible composition diagram of the portable device 50 involved in the above and the embodiments.
  • the portable device 50 may include: Accelerometer 51 and processor 52.
  • the accelerometer 51 can be used to perform step 201 in FIG. 6, that is, collecting measurement data of the accelerometer, the measurement data of the accelerometer includes three coordinate axis components; the processor 52 can be used to support the portable device 50 to perform the operation in FIG.
  • Steps 202-203 that is, the portable device calculates a modulus length corresponding to the measurement data of the accelerometer, and determines a state of the portable device according to the plurality of modulus lengths and at least one preset condition, and the state of the portable device includes a stationary state and a foot motion state. Or hand movement status.
  • the foot motion state is used to indicate that the portable device is worn on the user's ankle, foot or calf, and the portable device is in a state of motion;
  • the hand motion state is used to indicate that the portable device is worn on the user's hand, wrist or arm. And the portable device is in motion.
  • processor 52 can also be used to support the portable device 50 to perform step 2031, step 2032, step 2033 and step 204 of FIG. 8, and steps 205 of the above method embodiments, and/or for the techniques described herein. Other processes.
  • the portable device 50 provided by the embodiment of the present application is configured to perform the above state determination method, and thus the same effect as the above state determination method can be achieved.
  • FIG. 29 shows another possible composition diagram of the portable device 60 involved in the above embodiment.
  • the portable device 60 may include a processing module 61 and a storage module 62.
  • the processing module 61 is configured to control and manage the actions of the portable device.
  • the processing module 61 is configured to support the portable device to perform steps 201-205 and steps 2031-2033 in the foregoing method embodiments, and/or for the description herein. Other processes of technology.
  • the storage module 62 is configured to store program codes and data of the portable device.
  • the processing module 61 can be a processor or a controller. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a digital signal processor (DSP) and a microprocessor, and the like.
  • DSP digital signal processor
  • the processing module 61 in FIG. 29 may specifically be the processor 52 in FIG. 28, and the processor 52 may specifically be a coprocessor sensor hub or the like.
  • the storage module 62 can be a memory.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • the above-described integrated unit can be stored in a readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product.
  • the technical solution of the embodiments of the present application may be embodied in the form of a computer program product in the form of a computer program product, or a part of the technical solution, which is essential to the prior art, and the computer program product is stored in a
  • the storage medium includes instructions for causing a device (which may be a microcontroller, chip, etc.) or a processor to perform all or part of the steps of the various embodiments of the present application.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A state determination method relates to the technical field of terminals, and is capable of identifying a part where a portable device is mounted on the basis of norms of measurement data of an acceleration meter in the portable device. The main solution comprises: a portable device collecting measurement data of an acceleration meter (201), the measurement data of the acceleration meter comprising three coordinate axis components; calculating to obtain norms corresponding to the measurement data of the acceleration meter (202); and determining, according to multiple norms and at least one preset condition, a state of the portable device, the states of the portable device comprising a motionless state, a foot and lower leg motion state or a hand and arm motion state (203).

Description

一种状态确定方法及便携设备State determination method and portable device 技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种状态确定方法及便携设备。The present application relates to the field of terminal technologies, and in particular, to a state determining method and a portable device.
背景技术Background technique
便携设备由于具有体积小、功耗小、携带方便等特点,因而被广泛应用在生活、工作中的各个方面。例如,在用户运动(例如走路或跑步)时,可以通过便携设备进行计步,从而根据计步结果计算运动距离、步频、步长、配速或卡路里等运动信息。例如,用户走路时的场景示意图可以参见图1a。Portable devices are widely used in all aspects of life and work because of their small size, low power consumption and convenient carrying. For example, when the user moves (for example, walking or running), the stepping can be performed by the portable device, thereby calculating motion information such as the exercise distance, the step frequency, the step size, the pace, or the calories based on the step result. For example, a schematic diagram of a scene when a user walks can be seen in FIG. 1a.
其中,当便携设备佩戴于用户手部时,便携设备需要调用手部计步算法进行计步,当便携设备佩戴于用户足部时,便携设备需要调用足部计步算法进行计步。也就是说,便携设备佩戴的部位不同,便携设备调用的计步算法也不同。因而,在调用计步算法之前,便携设备需要首先识别佩戴部位。Wherein, when the portable device is worn on the user's hand, the portable device needs to call the hand step counting algorithm to perform the step counting. When the portable device is worn on the user's foot, the portable device needs to call the foot counting algorithm to perform the step counting. That is to say, the parts worn by the portable device are different, and the counting algorithm called by the portable device is also different. Thus, prior to invoking the pedometer algorithm, the portable device needs to first identify the wearing site.
在现有技术提供的一种佩戴部位识别方案中,便携设备通过确定至少一个加速度计的测量数据的特征是否符合预设特征,从而识别佩戴部位。在该方案中,参见图1b,由于加速度计的测量数据与便携设备的佩戴角度强相关,当便携设备的佩戴角度不同时,加速度计的测量数据的方向等特征也不同;并且,用户在佩戴便携设备时不可能每次都佩戴在相同的角度,而通常会有一定的偏差。因而,即使佩戴部位相同,每次重新佩戴便携设备后得到的加速度计的测量数据的特征也不同,从而容易使得加速度计的测量数据的特征与预设特征产生偏差,影响佩戴部位的识别精度。In a wearing part identification scheme provided by the prior art, the portable device identifies the wearing part by determining whether the feature of the measurement data of the at least one accelerometer conforms to the preset feature. In this solution, referring to FIG. 1b, since the measurement data of the accelerometer is strongly correlated with the wearing angle of the portable device, when the wearing angle of the portable device is different, the characteristics of the measurement data of the accelerometer are different; and the user is wearing Portable devices cannot be worn at the same angle every time, and there is usually a certain deviation. Therefore, even if the wearing parts are the same, the characteristics of the measurement data of the accelerometer obtained after re-wearing the portable device are different, so that the characteristics of the measurement data of the accelerometer are easily deviated from the preset features, which affects the recognition accuracy of the wearing part.
发明内容Summary of the invention
本申请实施例提供一种状态确定方法,能够根据便携设备中加速度计的测量数据的模长识别佩戴部位,便携设备的佩戴角度不会影响佩戴部位的识别精度。The embodiment of the present application provides a state determining method, which can identify a wearing part according to a modulus length of the measurement data of the accelerometer in the portable device, and the wearing angle of the portable device does not affect the recognition accuracy of the wearing part.
为达到上述目的,本申请实施例采用如下技术方案:To achieve the above objective, the embodiment of the present application adopts the following technical solutions:
第一方面提供一种状态确定方法,包括:首先,便携设备采集加速度计的测量数据,加速度计的测量数据包括三个坐标轴分量。其次,便携设备计算加速度计的测量数据对应的模长。而后,便携设备根据多个模长和至少一个预设条件确定便携设备的状态,便携设备的状态包括静止状态、足部运动状态或手部运动状态。The first aspect provides a state determination method, comprising: first, a portable device collects measurement data of an accelerometer, and the measurement data of the accelerometer includes three coordinate axis components. Second, the portable device calculates the modulus length corresponding to the measurement data of the accelerometer. Then, the portable device determines the state of the portable device according to a plurality of die lengths and at least one preset condition, and the state of the portable device includes a stationary state, a foot motion state, or a hand motion state.
由于加速度计的测量数据的模长是一个标量而不是向量,与方向无关,因而不会像加速度计的测量数据那样与可穿戴设备的佩戴角度强相关,即可穿戴设备的佩戴角度不会影响便携设备的状态的识别精度。Since the modulus of the accelerometer's measurement data is a scalar rather than a vector, independent of the direction, it is not as strong as the accelerometer's measurement data, and the wearing angle of the wearable device is not affected. The recognition accuracy of the state of the portable device.
结合第一方面,在一种可能的实现方式中,足部运动状态用于表示便携设备佩戴于用户的脚踝、足部或小腿部位,且便携设备处于运动状态。手部运动状态用于表示便携设备佩戴于用户的手部、手腕或手臂部位,且便携设备处于运动状态。In conjunction with the first aspect, in one possible implementation, the foot motion state is used to indicate that the portable device is worn on the user's ankle, foot or calf position, and the portable device is in motion. The hand motion state is used to indicate that the portable device is worn on the user's hand, wrist or arm, and the portable device is in motion.
其中,脚踝、足部或小腿部位可以称为足部相关部位,手部、手腕、或手臂部位可以称为手部相关部位。也就是说,可穿戴设备可以根据模长确定可穿戴设备的佩戴 部位是足部相关部位,还是手部相关部位。又由于加速度计的测量数据的模长是一个标量而不是向量,与方向无关,因而不会像加速度计的测量数据那样与可穿戴设备的佩戴角度强相关,即可穿戴设备的佩戴角度不会影响佩戴部位的识别精度。因此,本申请实施例提供的状态确定方法可以提高佩戴部位的识别精度。Among them, the ankle, foot or calf part can be called the foot related part, and the hand, wrist, or arm part can be called the hand related part. That is, the wearable device can determine the wearing of the wearable device according to the die length. The site is the relevant part of the foot or the relevant part of the hand. Moreover, since the modulus of the measurement data of the accelerometer is a scalar instead of a vector, it is independent of the direction, and thus is not related to the wearing angle of the wearable device like the measurement data of the accelerometer, so that the wearing angle of the wearing device is not Affect the recognition accuracy of the wearing part. Therefore, the state determination method provided by the embodiment of the present application can improve the recognition accuracy of the wearing part.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,便携设备根据多个模长和至少一个预设条件确定便携设备的状态包括:若多个模长满足第一预设条件,则便携设备确定便携设备的状态为静止状态。若多个模长满足第二预设条件或第三预设条件,则便携设备确定便携设备的状态为足部运动状态。若多个模长不满足第一预设条件、第二预设条件和第三预设条件,则便携设备确定便携设备的状态为手部运动状态。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the determining, by the portable device, the state of the portable device according to the multiple modulo lengths and the at least one preset condition includes: if the multiple modulo lengths satisfy the first pre- With the condition, the portable device determines that the state of the portable device is a stationary state. If the plurality of modulo lengths satisfy the second preset condition or the third preset condition, the portable device determines that the state of the portable device is the foot motion state. If the plurality of modulo lengths do not satisfy the first preset condition, the second preset condition, and the third preset condition, the portable device determines that the state of the portable device is a hand motion state.
这样,便携设备可以根据多个模长、第一预设条件,第二预设条件或第三预设条件确定便携设备的状态是静止状态、手部运动状态还是足部运动状态。In this way, the portable device can determine whether the state of the portable device is a stationary state, a hand motion state, or a foot motion state according to the plurality of die lengths, the first preset condition, the second preset condition, or the third preset condition.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,便携设备根据多个模长和至少一个预设条件确定便携设备的状态包括:当相邻两个第二预设时长对应的加速度计的测量数据的平均能量的差值d大于或者等于第二十预设值时,便携设备根据多个模长和至少一个预设条件确定便携设备的状态。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the determining, by the portable device, the state of the portable device according to the multiple modulo lengths and the at least one preset condition includes: when the two adjacent second presets When the difference d of the average energy of the measurement data of the accelerometer corresponding to the duration is greater than or equal to the twentieth preset value, the portable device determines the state of the portable device according to the plurality of die lengths and at least one preset condition.
这样,便携设备可以在确定相邻第二预设时长内的平均能量变化较大时,确定便携设备的状态为静止状态、手部运动状态或足部运动状态。In this way, the portable device can determine that the state of the portable device is a stationary state, a hand motion state, or a foot motion state when it is determined that the average energy variation within the adjacent second preset duration is large.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,便携设备根据多个模长和至少一个预设条件确定便携设备的状态包括:便携设备周期性地根据多个模长和至少一个预设条件确定便携设备的状态。With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining, by the portable device, the state of the portable device according to the multiple modulus lengths and the at least one preset condition comprises: the portable device periodically according to the multiple modes The length and at least one preset condition determine the state of the portable device.
这样,便携设备可以间隔预设的周期长度后,确定便携设备的状态为静止状态、手部运动状态或足部运动状态。In this way, the portable device can determine that the state of the portable device is a stationary state, a hand motion state, or a foot motion state after being separated by a preset period length.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在根据多个模长和至少一个预设条件确定便携设备的状态之后,该方法还包括:便携设备向用户提示便携设备的状态。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, after determining the state of the portable device according to the multiple modulus lengths and the at least one preset condition, the method further includes: the portable device prompting the user The status of the portable device.
这样,便携设备可以及时通知用户便携设备确定的便携设备的状态和佩戴部位。In this way, the portable device can promptly notify the user of the status and wearing position of the portable device determined by the portable device.
第二方面提供一种便携设备,包括加速度计、计算单元和确定单元。其中,加速度计用于采集加速度计的测量数据,加速度计的测量数据包括三个坐标轴分量。计算单元用于计算加速度计的测量数据对应的模长。确定单元用于,根据多个模长和至少一个预设条件确定便携设备的状态,便携设备的状态包括静止状态、足部运动状态或手部运动状态。A second aspect provides a portable device comprising an accelerometer, a computing unit, and a determining unit. Among them, the accelerometer is used to collect the measurement data of the accelerometer, and the measurement data of the accelerometer includes three coordinate axis components. The calculation unit is used to calculate the modulus length corresponding to the measurement data of the accelerometer. The determining unit is configured to determine a state of the portable device according to the plurality of die lengths and the at least one preset condition, and the state of the portable device includes a stationary state, a foot motion state, or a hand motion state.
结合第二方面,在一种可能的实现方式中,确定单元具体用于:若多个模长满足第一预设条件,则确定便携设备的状态为静止状态。若多个模长满足第二预设条件或第三预设条件,则确定便携设备的状态为足部运动状态。若多个模长不满足第一预设条件、第二预设条件和第三预设条件,则确定便携设备的状态为手部运动状态。With reference to the second aspect, in a possible implementation, the determining unit is specifically configured to: if the plurality of modulo lengths meet the first preset condition, determine that the state of the portable device is a quiescent state. If the plurality of die lengths meet the second preset condition or the third preset condition, it is determined that the state of the portable device is the foot motion state. If the plurality of modulo lengths do not satisfy the first preset condition, the second preset condition, and the third preset condition, determining that the state of the portable device is a hand motion state.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,确定单元具体用于:当相邻两个第二预设时长对应的加速度计的测量数据的平均能量的差值d大于或者等于第二十预设值时,根据多个模长和至少一个预设条件确定便携设备的状态。 或者,周期性地根据多个模长和至少一个预设条件确定便携设备的状态。With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the determining unit is specifically configured to: when the difference between the average energy of the measurement data of the accelerometer corresponding to the two adjacent second preset durations When d is greater than or equal to the twentieth preset value, the state of the portable device is determined according to the plurality of die lengths and the at least one preset condition. Alternatively, the state of the portable device is determined periodically based on the plurality of die lengths and the at least one preset condition.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,便携设备还包括提示单元,用于在确定单元确定便携设备的状态之后,向用户提示便携设备的状态。In conjunction with the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the portable device further includes a prompting unit, configured to prompt the user of the state of the portable device after the determining unit determines the state of the portable device.
第三方面提供一种方法,当便携设备检测到该便携设备佩戴在手臂、手部或手腕上时,便携设备自动采用第一算法来计算走路或跑步距离;便携设备检测到用户查看时,便携设备显示计步结果的同时标识出是佩戴在手臂、手部或手腕上的计步结果。当该便携设备检测到该便携设备佩戴在脚踝、小腿或足部时,便携设备自动采用第二算法来计算走路或跑步距离;便携设备检测到用户查看时,便携设备在显示计步结果的同时标识出是佩戴在脚踝、小腿或足部的计步结果。其中,第一算法可以为通用的算法或适用于便携设备佩戴在手臂、手部或手腕上的计步算法。第二算法可以为通用的算法或适用于便携设备佩戴在脚踝、小腿或足部上的计步算法。采用此方法可以给用户提供一种新奇的体验。The third aspect provides a method for automatically calculating a walking or running distance when the portable device detects that the portable device is worn on an arm, a hand or a wrist; the portable device detects that the user is portable when viewed. The device displays the step result and identifies the step result that is worn on the arm, hand or wrist. When the portable device detects that the portable device is worn on the ankle, the calf or the foot, the portable device automatically adopts a second algorithm to calculate the walking or running distance; when the portable device detects the user viewing, the portable device displays the step result while The logo is the result of walking on the ankle, calf or foot. Wherein, the first algorithm may be a general-purpose algorithm or a step-calculating algorithm suitable for a portable device to be worn on an arm, a hand or a wrist. The second algorithm can be a general purpose algorithm or a step counter algorithm suitable for portable devices to wear on the ankle, calf or foot. This method can provide users with a novel experience.
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,第一算法也可以与第二算法相同。In combination with the third aspect and the foregoing possible implementation manners, in another possible implementation manner, the first algorithm may also be the same as the second algorithm.
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,当便携设备检测到便携设备佩戴在脖子上时,便携设备自动采用第三算法来计算走路或跑步距离。便携设备检测到用户查看时,便携设备在显示计步结果的同时标识出是佩戴在脖子上的计步结果。其中,第三算法可以为通用算法,或者是适用于便携设备佩戴在脖子上的计步算法。采用此方法可以给用户提供一种新奇的体验。In combination with the third aspect and the above possible implementation manners, in another possible implementation manner, when the portable device detects that the portable device is worn around the neck, the portable device automatically adopts a third algorithm to calculate the walking or running distance. When the portable device detects the user's viewing, the portable device identifies the step result that is worn on the neck while displaying the step result. The third algorithm may be a general-purpose algorithm or a step-counting algorithm suitable for a portable device to wear around the neck. This method can provide users with a novel experience.
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,第三算法也可以与第一计算法或第二算法相同。In combination with the third aspect and the foregoing possible implementation manners, in another possible implementation manner, the third algorithm may also be the same as the first calculation method or the second algorithm.
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,当便携设备检测到便携设备佩戴在脚踝、小腿或足部时,便携设备自动关闭血压,和/或心跳等生理参数检测模块。采用这种实现方式可以避免不必要的耗电,提高便携设备的工作时间。In combination with the third aspect and the above possible implementation manner, in another possible implementation manner, when the portable device detects that the portable device is worn on the ankle, the calf or the foot, the portable device automatically turns off the blood pressure, and/or the heartbeat and the like. Parameter detection module. This implementation can avoid unnecessary power consumption and improve the working time of portable devices.
结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,当便携设备检测到便携设备佩戴在脖子上时,便携设备自动关闭血压,和/或心跳等生理参数检测模块。采用这种实现方式有避免不必要的耗电,提高便携设备的工作时间。In combination with the third aspect and the above possible implementation manners, in another possible implementation manner, when the portable device detects that the portable device is worn around the neck, the portable device automatically turns off the blood pressure, and/or heartbeat and other physiological parameter detecting modules. Adopting this implementation avoids unnecessary power consumption and improves the working time of the portable device.
结合第三方面和上述可能的实现方式,便携设备确定便携设备佩戴部位的方法如第一方面任一项状态确定方法。In combination with the third aspect and the above possible implementation manner, the portable device determines a method for wearing the portable device, such as the state determining method of any of the first aspects.
第四方面,本申请实施例提供一种便携设备,包括传感器、处理器和存储器,传感器包括陀螺仪和加速度计,存储器用于存储指令,处理器用于执行指令以使得便携设备执行如第一方面任一项或第三方面任一项中的状态确定方法。In a fourth aspect, an embodiment of the present application provides a portable device, including a sensor, a processor, and a memory, where the sensor includes a gyroscope and an accelerometer, the memory is configured to store an instruction, and the processor is configured to execute the instruction to enable the portable device to perform the first aspect. The state determining method of any one of the third aspect or the third aspect.
第五方面,本申请实施例提供一种计算机可读存储介质,包括指令,当其在便携设备上运行时,使得便携设备执行如第一方面任一项或第三方面任一项中的状态确定方法。In a fifth aspect, the embodiment of the present application provides a computer readable storage medium, including instructions, when operating on a portable device, causing the portable device to perform the state in any one of the first aspect or the third aspect. Determine the method.
第六方面,本申请实施例提供一种包含指令的计算机程序产品,当其在便携设备上运行时,使得便携设备执行如第一方面任一项或第三方面任一项中的状态确定方法。 In a sixth aspect, the embodiment of the present application provides a computer program product including instructions, when the device is running on a portable device, causing the portable device to perform the state determining method according to any one of the first aspect or the third aspect .
第七方面,本申请实施例提供一种设备,设备以芯片的产品形态存在,设备的结构中包括处理器和存储器,存储器用于与处理器耦合,用于保存设备的程序指令和数据,处理器用于执行存储器中存储的程序指令,使得设备执行如第一方面任一项或第三方面任一项中的状态确定方法中数据处理的功能。In a seventh aspect, an embodiment of the present application provides a device, where the device exists in a product form of a chip, where the device includes a processor and a memory, where the memory is used to be coupled with the processor, and is configured to save program instructions and data of the device, and process The program is configured to execute program instructions stored in the memory, such that the device performs the function of data processing in the state determining method in any one of the first aspect or the third aspect.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,第一预设条件包括:多个模长包括第一曲线段,第一曲线段首尾两端对应时刻的时长大于或者等于第一预设时长,第一曲线段对应的模长大于或者等于第一预设值且小于或者等于第二预设值,其中,第一预设值小于重力加速度,第二预设值大于重力加速度,第二预设值与第一预设值的差值小于或者等于第三预设值。In combination with any of the foregoing aspects and the foregoing possible implementation manners, in another possible implementation manner, the first preset condition includes: the plurality of moduli lengths include a first curved section, and the duration of the corresponding moments at the beginning and the end of the first curved section is greater than Or equal to the first preset duration, the modulus length corresponding to the first curve segment is greater than or equal to the first preset value and less than or equal to the second preset value, wherein the first preset value is less than the gravity acceleration, and the second preset value is The difference between the second preset value and the first preset value is greater than or equal to the third preset value.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,第二预设条件包括:多个模长包括一个第一目标极大值;或者,多个模长首尾两端对应时刻的时长等于第二预设时长,多个模长包括m个第一目标极大值,m大于或者等于第四预设值;第一目标极大值满足第四预设条件,第四预设条件包括:第一目标极大值大于或者等于第五预设值;第一目标极大值对应的时刻所在的第三预设时长内还包括第一极小值和第二极小值,第一极小值为在第一目标极大值对应的时刻之前与第一目标极大值相邻的极小值,第二极小值为在第一目标极大值对应的时刻之后与第一目标极大值相邻的极小值;上坡落差大于或者等于第六预设值,上坡落差是指第一极小值与第一目标极大值之间的差值的绝对值;下坡落差大于或者等于第七预设值,下坡落差是指第一目标极大值与第二极小值之间的差值;第一目标极大值对应的第一位宽小于或者等于第八预设值,第一位宽为第二极小值对应的时刻与第一极小值对应的时刻的差值;第一目标极大值为第四预设时长内多个模长的最大值,第四预设时长大于第三预设时长。In combination with any of the foregoing aspects and the foregoing possible implementation manners, in another possible implementation manner, the second preset condition includes: the multiple modulo lengths include a first target maximum value; or The duration of the corresponding moment is equal to the second preset duration, and the plurality of modular lengths include m first target maximum values, m is greater than or equal to the fourth preset value; the first target maximum value satisfies the fourth preset condition, and the fourth The preset condition includes: the first target maximum value is greater than or equal to the fifth preset value; and the third minimum time value in which the time corresponding to the first target maximum value further includes the first minimum value and the second minimum value The first minimum value is a minimum value adjacent to the first target maximum value before the time corresponding to the first target maximum value, and the second minimum value is after the time corresponding to the first target maximum value The minimum value of the first target maximum value adjacent to each other; the uphill drop difference is greater than or equal to the sixth preset value, and the uphill drop difference is the absolute value of the difference between the first minimum value and the first target maximum value The downhill drop is greater than or equal to the seventh preset value, and the downhill drop is the first a difference between the target maximum value and the second minimum value; the first bit width corresponding to the first target maximum value is less than or equal to the eighth preset value, and the first bit width is the time corresponding to the second minimum value a difference between the times corresponding to the first minimum value; the first target maximum value is a maximum value of the plurality of mode lengths in the fourth preset time length, and the fourth preset time length is greater than the third preset time length.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,第四预设条件还包括:第一目标极大值对应的半位宽小于或者等于第九预设值;其中,当上坡落差小于或者等于下坡落差时,半位宽为第一时刻和第二时刻之间的差值的绝对值,第一时刻和第二时刻为在第三预设时长内,第一极小值与上坡落差的一半的和表示的模长对应的两个时刻,第一时刻和第二时刻在第一极小值对应的时刻和第二极小值对应的时刻之间;当上坡落差大于下坡落差时,半位宽为第三时刻和第四时刻之间的差值的绝对值,第三时刻和第四时刻为在第三预设时长内,第二极小值与下坡落差的一半的和表示的模长对应的两个时刻,第三时刻和第四时刻在第一极小值对应的时刻和第二极小值对应的时刻之间。With reference to any of the foregoing aspects and the foregoing possible implementation manners, in another possible implementation manner, the fourth preset condition further includes: the first target maximum value corresponding to the half-bit width is less than or equal to the ninth preset value; When the uphill drop is less than or equal to the downhill drop, the half width is the absolute value of the difference between the first time and the second time, and the first time and the second time are within the third preset time, a time when the minimum value corresponds to the mode length represented by the sum of the half of the upward slope difference, and the first time and the second time are between the time corresponding to the first minimum value and the time corresponding to the second minimum value; When the upslope drop is greater than the downslope drop, the half width is the absolute value of the difference between the third time and the fourth time, and the third time and the fourth time are within the third preset time, the second minimum The two times corresponding to the mode length indicated by the sum of the half of the downslope drop, and the third time and the fourth time are between the time corresponding to the first minimum value and the time corresponding to the second minimum value.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,第四预设条件还包括:上坡落差和下坡落差的和与第一目标极大值对应的第一位宽的比值大于或者等于第十预设值。In combination with any of the foregoing aspects and the foregoing possible implementation manners, in another possible implementation manner, the fourth preset condition further includes: a sum of an uphill drop and a downhill drop and a first bit corresponding to the first target maximum The width ratio is greater than or equal to the tenth preset value.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,第三预设条件包括:多个模长包括一个第二曲线段;或者,多个模长首尾两端对应时刻的时长等于第二预设时长,多个模长包括k个第二曲线段,k大于或者等于第十一预设值。第二曲线段满足第五预设条件,第五预设条件包括:第二曲线段首尾两端对应时刻的时长大于或者等于第五预设时长且小于第一预设时长;第二曲线段对应的模长大于或 者等于第十二预设值且小于或者等于第十三预设值,第十三预设值与第十二预设值的差值小于或者等于第十四预设值。In combination with any of the foregoing aspects and the foregoing possible implementation manners, in another possible implementation manner, the third preset condition includes: the multiple modulo lengths include a second curved section; or The duration is equal to the second preset duration, and the plurality of modulo lengths includes k second curved segments, and k is greater than or equal to the eleventh preset value. The second curve segment satisfies the fifth preset condition, and the fifth preset condition includes: the duration of the corresponding moments of the first and last ends of the second curve segment is greater than or equal to the fifth preset duration and less than the first preset duration; the second curve segment corresponds to The modulus is greater than or The value is equal to the twelfth preset value and is less than or equal to the thirteenth preset value, and the difference between the thirteenth preset value and the twelfth preset value is less than or equal to the fourteenth preset value.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,第五预设条件还包括:在第二曲线段之后,多个模长还包括第二目标极大值、目标极小值和第三目标极大值;第二目标极大值为在第二曲线段之后,与第二曲线段相邻的极值;目标极小值为在第二目标极大值之后,与第二目标极大值相邻的极值;第三目标极大值为目标极小值之后的极大值,且第三目标极大值为第六预设时长内多个模长的最大值。In combination with any of the foregoing aspects and the foregoing possible implementation manners, in another possible implementation manner, the fifth preset condition further includes: after the second curved section, the multiple modulus lengths further include the second target maximum value, the target a minimum value and a third target maximum value; the second target maximum value is an extreme value adjacent to the second curved segment after the second curved segment; the target minimum value is after the second target maximum value, and the first The second target maximum value is adjacent to the extreme value; the third target maximum value is a maximum value after the target minimum value, and the third target maximum value is a maximum value of the plurality of mode lengths in the sixth preset time period.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,第五预设条件还包括以下条件中的至少一个:目标极小值小于或者等于第十五预设值;第二目标极大值对应的第二位宽小于或者等于第十六预设值,第二位宽为目标极小值对应的时刻与第二曲线段的结束时刻的差值;第三目标极大值与第二目标极大值的比值大于或者等于第十七预设值;第三目标极大值之后还包括另一个第二曲线段,另一个第二曲线段的起始时刻与第三目标极大值对应的时刻的差值小于或者等于第十八预设值。In combination with any of the foregoing aspects and the foregoing possible implementation manners, in another possible implementation manner, the fifth preset condition further includes at least one of the following conditions: the target minimum value is less than or equal to the fifteenth preset value; The second target width corresponding to the second target maximum value is less than or equal to the sixteenth preset value, and the second bit width is the difference between the time corresponding to the target minimum value and the end time of the second curved segment; The ratio of the value to the second target maximum value is greater than or equal to the seventeenth preset value; the third target maximum value further includes another second curved segment, the start time of the second second curved segment and the third target The difference between the moments corresponding to the maximum value is less than or equal to the eighteenth preset value.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,第五预设条件还包括:多个模长首尾两端对应时刻的时长等于第二预设时长,多个模长中每两个相邻模长对应的三个坐标轴分量的差分的绝对值的和s大于或者等于第十九预设值;其中,s表示为:In combination with any of the foregoing aspects and the foregoing possible implementation manners, in another possible implementation manner, the fifth preset condition further includes: the duration of the corresponding moments of the first and second ends of the plurality of modulo lengths is equal to the second preset duration, and the multiple moduli The sum s of the absolute values of the differences of the three coordinate axis components corresponding to each two adjacent moduli lengths in the length is greater than or equal to the nineteenth preset value; wherein s is expressed as:
Figure PCTCN2017105163-appb-000001
Figure PCTCN2017105163-appb-000001
其中,(xi,yi,zi)表示第二预设时长内的第i个采样时刻对应的加速度计的测量数据包括的三个坐标轴分量,(xi+1,yi+1,zi+1)表示第二预设时长内的第i+1个采样时刻对应的加速度计的测量数据包括的三个坐标轴分量,i的取值范围为第二预设时长内的每个采样时刻。Wherein (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the ith sampling time in the second preset duration, (x i+1 , y i+1 , z i+1 ) represents three coordinate axis components of the measurement data of the accelerometer corresponding to the i+1th sampling time in the second preset duration, and the value range of i is each time within the second preset duration One sampling moment.
结合上述任意方面和上述可能的实现方式,在另一种可能的实现方式中,d表示为:In combination with any of the above aspects and the above possible implementation manners, in another possible implementation manner, d is expressed as:
Figure PCTCN2017105163-appb-000002
Figure PCTCN2017105163-appb-000002
or
Figure PCTCN2017105163-appb-000003
Figure PCTCN2017105163-appb-000003
其中,(xi,yi,zi)表示第q+1个第二预设时长内,第i个采样时刻对应的加速度计的测量数据包括的三个坐标轴分量,(xj,yj,zj)表示第q个第二预设时长内,第j个采样时刻对应的加速度计的测量数据包括的三个坐标轴分量,q为整数,n为第二预设时长内包括的采样时刻的数量,n为正整数,i的取值范围为小于或者等于n的正整数,j的取值范围为小于或者等于n的正整数。Wherein, (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the i-th sampling time within the q+1th second preset time period, (x j , y j , z j ) represents the three coordinate axis components of the measurement data of the accelerometer corresponding to the jth sampling time in the qth second preset time period, q is an integer, and n is included in the second preset duration The number of sampling instants, n is a positive integer, the range of i is a positive integer less than or equal to n, and the range of j is a positive integer less than or equal to n.
附图说明 DRAWINGS
图1a为一种用户运动场景示意图;FIG. 1a is a schematic diagram of a user motion scene;
图1b为现有技术中提供的一种佩戴部位识别方法流程图;FIG. 1b is a flow chart of a method for identifying a wearing part provided in the prior art;
图2a为本申请实施例提供的一种可穿戴设备的外观示意图;2a is a schematic diagram of the appearance of a wearable device according to an embodiment of the present application;
图2b为本申请实施例提供的一种主体的示意图;2b is a schematic diagram of a main body according to an embodiment of the present application;
图2c为本申请实施例提供的一种主体的佩戴示意图;2c is a schematic diagram of wearing a main body according to an embodiment of the present application;
图3a为本申请实施例提供的一种可穿戴设备的佩戴示意图;FIG. 3a is a schematic diagram of wearing a wearable device according to an embodiment of the present application;
图3b为本申请实施例提供的一种可穿戴设备的佩戴示意图;FIG. 3b is a schematic diagram of wearing a wearable device according to an embodiment of the present application;
图3c为本申请实施例提供的一种可穿戴设备的佩戴示意图;FIG. 3 is a schematic diagram of wearing a wearable device according to an embodiment of the present application;
图3d为本申请实施例提供的一种可穿戴设备的佩戴示意图;FIG. 3 is a schematic diagram of wearing a wearable device according to an embodiment of the present disclosure;
图3e为本申请实施例提供的一种可穿戴设备的佩戴示意图;3 e is a schematic diagram of wearing a wearable device according to an embodiment of the present application;
图3f为本申请实施例提供的一种可穿戴设备的佩戴示意图;FIG. 3 is a schematic diagram of wearing a wearable device according to an embodiment of the present application;
图3g为本申请实施例提供的一种可穿戴设备的佩戴示意图;FIG. 3 is a schematic diagram of wearing a wearable device according to an embodiment of the present application;
图4为本申请实施例提供的一种可穿戴设备的结构示意图;4 is a schematic structural diagram of a wearable device according to an embodiment of the present application;
图5为本申请实施例提供的一种手机的结构示意图;FIG. 5 is a schematic structural diagram of a mobile phone according to an embodiment of the present application;
图6为本申请实施例提供的一种状态确定方法流程图;FIG. 6 is a flowchart of a state determining method according to an embodiment of the present application;
图7为本申请实施例提供的一种模长曲线图;FIG. 7 is a schematic diagram of a mold length provided by an embodiment of the present application; FIG.
图8为本申请实施例提供的另一种状态确定方法流程图;FIG. 8 is a flowchart of another state determining method according to an embodiment of the present application;
图9a为本申请实施例提供的一种第一曲线段示意图;9a is a schematic diagram of a first curved section provided by an embodiment of the present application;
图9b为本申请实施例提供的一种用户处于静止状态的示意图;FIG. 9b is a schematic diagram of a user in a static state according to an embodiment of the present application; FIG.
图10为本申请实施例提供的一种第一目标极大值的示意图;FIG. 10 is a schematic diagram of a first target maximum value according to an embodiment of the present application;
图11为本申请实施例提供的一种第一位宽的示意图;FIG. 11 is a schematic diagram of a first bit width provided by an embodiment of the present application;
图12为本申请实施例提供的一种第一目标极大值对应的时刻与第三预设时长的对应关系图;FIG. 12 is a corresponding relationship diagram of a time corresponding to a first target maximum value and a third preset duration according to an embodiment of the present disclosure;
图13为本申请实施例提供的一种半位宽的示意图;FIG. 13 is a schematic diagram of a half width according to an embodiment of the present application; FIG.
图14为本申请实施例提供的另一种半位宽的示意图;FIG. 14 is a schematic diagram of another half width provided by an embodiment of the present application; FIG.
图15为本申请实施例提供的一种不同半位宽的冲击的对比示意图;FIG. 15 is a schematic diagram of comparison of impacts of different half widths according to an embodiment of the present application; FIG.
图16为本申请实施例提供的一种模长曲线特征示意图;16 is a schematic diagram of a model length curve according to an embodiment of the present application;
图17为本申请实施例提供的一种第二曲线段示意图;17 is a schematic diagram of a second curved section provided by an embodiment of the present application;
图18为本申请实施例提供的另一种模长曲线特征示意图;FIG. 18 is a schematic diagram of another mode length curve provided by an embodiment of the present application; FIG.
图19为本申请实施例提供的一种第二位宽示意图;FIG. 19 is a schematic diagram of a second bit width according to an embodiment of the present application; FIG.
图20为本申请实施例提供的另一种模长曲线特征示意图;20 is a schematic diagram of another mode length curve provided by an embodiment of the present application;
图21为本申请实施例提供的另一种模长曲线特征示意图;FIG. 21 is a schematic diagram of another mode length curve provided by an embodiment of the present application; FIG.
图22a为本申请实施例提供的一种便携设备的状态的提示示意图;FIG. 22 is a schematic diagram of prompting a state of a portable device according to an embodiment of the present application;
图22b为本申请实施例提供的另一种便携设备的状态的提示示意图;FIG. 22b is a schematic diagram of a prompt state of another portable device according to an embodiment of the present disclosure;
图23为本申请实施例提供的另一种便携设备的状态的提示示意图;FIG. 23 is a schematic diagram of prompting another state of a portable device according to an embodiment of the present disclosure;
图24a为本申请实施例提供的一种实测模长曲线图;FIG. 24a is a graph showing a measured die length according to an embodiment of the present application; FIG.
图24b为本申请实施例提供的另一种实测模长曲线图;FIG. 24b is another measured die length curve diagram according to an embodiment of the present application; FIG.
图24c为本申请实施例提供的另一种实测模长曲线图;Figure 24c is a graph showing another measured die length provided by an embodiment of the present application;
图24d为本申请实施例提供的另一种实测模长曲线图; Figure 24d is a graph showing another measured die length provided by an embodiment of the present application;
图24e为本申请实施例提供的另一种实测模长曲线图;24 e is another measured die length curve diagram provided by an embodiment of the present application;
图24f为本申请实施例提供的另一种实测模长曲线图;FIG. 24f is another graph of measured die lengths according to an embodiment of the present application; FIG.
图25为本申请实施例提供的一种计步结果显示示意图;FIG. 25 is a schematic diagram showing a step counting result according to an embodiment of the present application;
图26为本申请实施例提供的另一种计步结果显示示意图;FIG. 26 is a schematic diagram showing another step counting result provided by an embodiment of the present application; FIG.
图27为本申请实施例提供的一种便携设备的结构示意图;FIG. 27 is a schematic structural diagram of a portable device according to an embodiment of the present application;
图28为本申请实施例提供的另一种便携设备的结构示意图;28 is a schematic structural diagram of another portable device according to an embodiment of the present application;
图29为本申请实施例提供的另一种便携设备的结构示意图。FIG. 29 is a schematic structural diagram of another portable device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
由于现有技术需要根据便携设备中的加速度计的测量数据确定便携设备的佩戴部位,而便携设备的佩戴角度会影响加速度计的测量数据具有的方向等特征,从而容易与预设特征发生偏差,因而识别精度较差。本申请实施例提供的方法可以根据便携设备中加速度计的测量数据的模长确定便携设备的佩戴部位,而模长为大于0的数值,与方向无关,因而便携设备的佩戴角度不会影响佩戴部位的识别精度。Since the prior art needs to determine the wearing part of the portable device according to the measurement data of the accelerometer in the portable device, the wearing angle of the portable device affects the characteristics of the measurement data of the accelerometer, and the like, and thus it is easy to deviate from the preset feature. Therefore, the recognition accuracy is poor. The method provided by the embodiment of the present application can determine the wearing part of the portable device according to the modulus of the measurement data of the accelerometer in the portable device, and the mode length is a value greater than 0, regardless of the direction, and thus the wearing angle of the portable device does not affect the wearing. The recognition accuracy of the part.
为了便于理解,示例的给出了部分与本申请实施例相关概念的说明以供参考。如下所示:For ease of understanding, the description of some of the concepts related to the embodiments of the present application is given for reference. As follows:
便携设备:包括但不限于手机,平板电脑(例如,iPad),个人数字助理(personal digital assistant,PDA),可穿戴设备(包括但不限于:智能手表,智能手环,运动环,智能眼镜等)。Portable devices: including but not limited to mobile phones, tablets (eg iPad), personal digital assistants (PDAs), wearable devices (including but not limited to: smart watches, smart bracelets, sports rings, smart glasses, etc. ).
可穿戴设备:即直接穿戴在身上,或是整合到用户的衣服或配件的一种便携设备。Wearable device: A portable device that is worn directly on the body or integrated into the user's clothing or accessories.
极值:极大值和极小值的统称。Extreme value: A general term for the maximum and minimum values.
极大值:如果一个函数在一点的一个邻域内的各点都有确定的值,该点处的值比邻域内其他各点处的值大,该点处的值就是一个极大值。Maxima: If a function has a certain value at each point in a neighborhood of a point, the value at that point is greater than the value at other points in the neighborhood, and the value at that point is a maximum.
极小值:如果一个函数在一点的一个邻域内的各点都有确定的值,该点处的值比邻域内其他各点处的值小,该点处的值就是一个极小值。Minimum value: If a function has a certain value at each point in a neighborhood of a point, the value at that point is smaller than the value at other points in the neighborhood, and the value at that point is a minimum value.
模长:空间向量的长度。若空间向量为(x,y,z),其中x,y,z分别是三轴上的坐标,则模长为
Figure PCTCN2017105163-appb-000004
Modulus length: The length of the space vector. If the space vector is (x, y, z), where x, y, and z are the coordinates on the three axes, respectively, the modulus length is
Figure PCTCN2017105163-appb-000004
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise stated, "/" means the meaning of or, for example, A/B may represent A or B; "and/or" herein is merely a description of the associated object. The association relationship indicates that there may be three relationships, for example, A and/or B, which may indicate that there are three cases in which A exists separately, A and B exist at the same time, and B exists separately. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
应理解:第一X,第二X…第二十X…,仅仅用于便于区分各个X,没有顺序的含义。X包括但不限于预设时长,预设值,曲线段,位宽,目标极大值,目标极小值,时刻,预设条件,算法等。另外,第一X,第二X…第二十X…中任意两个通常是不同的,对于一些参数(预设时长,预设值,曲线段,目标极大值,目标极小值,位宽,算法)也有可能是相同的,例如,第一预设时长和第二预设时长可能是相同的,第一预设值和第二预设值也可能是相同的,此处不再赘述。It should be understood that the first X, the second X...the twentieth X... are only used to facilitate the distinction between the individual Xs, without the meaning of the order. X includes, but is not limited to, preset duration, preset value, curve segment, bit width, target maximum value, target minimum value, time, preset condition, algorithm, and the like. In addition, any two of the first X, the second X...the twentieth X... are usually different, for some parameters (preset duration, preset value, curve segment, target maximum value, target minimum value, bit) The width of the algorithm may be the same. For example, the first preset duration and the second preset duration may be the same. The first preset value and the second preset value may also be the same. .
本申请实施例涉及的便携设备,可以用于感测用户的运动状态。便携设备可以包 括但不限于手机、平板电脑、可穿戴设备或个人数字助理等设备。示例性的,当该便携设备为可穿戴设备时,图2a提供了一种可穿戴设备10的外观示意图。该可穿戴设备10可以包括主体11和连接件12,主体11可以包括屏幕13、按钮14等。其中,屏幕13可以用于向用户提示各种信息,例如时间、运动速度、运动距离、消耗的卡路里等。当该屏幕13为触控屏时,该屏幕13与按钮14可以用于输入用户的指示信息,例如开机、关机、暂停等。连接件12可以用于将可穿戴设备佩戴在用户身上的某个部位。主体11还可以包括听筒15、麦克风16等部件,可以用于发出语音提示、进行音乐播放、输入用户的语音指示等。此外,可以理解的是,主体11还可以包括其它部件,例如USB接口等。The portable device according to the embodiment of the present application can be used to sense the motion state of the user. Portable device can pack This includes, but is not limited to, devices such as cell phones, tablets, wearables, or personal digital assistants. Illustratively, when the portable device is a wearable device, FIG. 2a provides a schematic view of the appearance of the wearable device 10. The wearable device 10 can include a body 11 and a connector 12 that can include a screen 13, a button 14, and the like. Among them, the screen 13 can be used to prompt the user with various information such as time, speed of movement, distance of movement, calories burned, and the like. When the screen 13 is a touch screen, the screen 13 and the button 14 can be used to input user's indication information, such as power on, power off, pause, and the like. The connector 12 can be used to wear the wearable device to a certain part of the user. The main body 11 may further include components such as an earpiece 15, a microphone 16, and the like, which may be used to issue a voice prompt, perform music playback, input a user's voice indication, and the like. Moreover, it will be appreciated that the body 11 may also include other components, such as a USB interface or the like.
其中,连接件12具体可以为卡扣件,可以用于将可穿戴设备10卡扣在手腕、脚踝、手臂、腿部等部位,或者连接件12还可以为固定带,可以将可穿戴设备10固定在在手腕、脚踝、手臂、腿部等部位。The connecting member 12 can be a latching member, and can be used for fastening the wearable device 10 to a wrist, an ankle, an arm, a leg, or the like, or the connecting member 12 can also be a fixing strap, and the wearable device 10 can be used. It is fixed on the wrist, ankle, arm, leg and other parts.
此外,参见图2b,主体11还可以与连接件12分离而独立使用。例如,主体11可以放置在口袋里、握在手中等。并且,主体11还可以作为装饰品,佩戴于用户的脖子、脚踝或者手腕、腰间、衣服表面等部位。例如,参见图2c,环状的主体11可以作为项链佩戴在用户的脖子部位。具体的,当主体11仅作为装饰品使用时,可以不启动本申请实施例提供的状态确定算法以及其它功能(例如计时功能)。主体11在被触发时,可以启动本申请实施例提供的状态确定算法,也可以启动其它功能。其中,主体11被触发的方式可以有很多,例如当主体11被检测到佩戴在预设部位时可以被触发。示例性的,预设部位可以包括如图3a-3g所示的脚踝、脚后跟、小腿、手部、手腕、小臂、大臂等部位。Further, referring to Fig. 2b, the main body 11 can also be used separately from the connector 12. For example, the main body 11 can be placed in a pocket, held in a hand, or the like. Moreover, the main body 11 can also be worn as an ornament on a user's neck, ankle or wrist, waist, clothing surface, and the like. For example, referring to Figure 2c, the annular body 11 can be worn as a necklace on the neck of the user. Specifically, when the main body 11 is used only as an ornament, the state determination algorithm and other functions (such as the timing function) provided by the embodiments of the present application may not be activated. When the main body 11 is triggered, the state determination algorithm provided by the embodiment of the present application may be started, and other functions may be started. The manner in which the main body 11 is triggered may be many, for example, when the main body 11 is detected to be worn at a preset portion. Illustratively, the predetermined portion may include an ankle, a heel, a calf, a hand, a wrist, an arm, a boom, and the like as shown in Figures 3a-3g.
图4提供了另一种可穿戴设备20的结构示意图。参见图4,该可穿戴设备20可以包括传感器21、处理模块22、存储模块23、输入模块24和提示模块25等。其中,传感器21可以用于监测可穿戴设备20的实时状态,具体可以包括加速度计、陀螺仪等。处理模块22可以用于对传感器21的检测数据进行处理。存储模块23可以用于存储传感器21的检测数据,存储处理模块22处理后的检测数据,以及存储控制指令。输入模块24可以用于接收用户输入的指示信息,例如可以是图2a中的屏幕13、按钮14或麦克风16。提示模块25可以用于向用户显示各种提示信息,例如可以是图2a中的屏幕13或听筒15。此外,可穿戴设备20还可以包括其它模块,例如无线传输模块26等。FIG. 4 provides a schematic structural view of another wearable device 20. Referring to FIG. 4, the wearable device 20 may include a sensor 21, a processing module 22, a storage module 23, an input module 24, a prompting module 25, and the like. The sensor 21 can be used to monitor the real-time status of the wearable device 20, and specifically includes an accelerometer, a gyroscope, and the like. The processing module 22 can be used to process the detected data of the sensor 21. The storage module 23 can be used to store the detection data of the sensor 21, store the detected data processed by the processing module 22, and store the control instructions. The input module 24 can be used to receive indication information input by the user, such as screen 13, button 14 or microphone 16 in Figure 2a. The prompting module 25 can be used to display various prompt information to the user, such as screen 13 or earpiece 15 in Figure 2a. In addition, wearable device 20 may also include other modules, such as wireless transmission module 26 and the like.
当该便携设备为手机时,图5提供了一种手机30的结构示意图。该手机30可以包括:屏幕31、处理器32、存储器33、电源34、射频(radio frequency,RF)电路35、传感器36和音频电路37等部件,这些部件之间可以以总线连接,也可以直连连接。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多的部件,或者组合某些部件,或者不同的部件布置。When the portable device is a mobile phone, FIG. 5 provides a schematic structural diagram of the mobile phone 30. The mobile phone 30 may include components such as a screen 31, a processor 32, a memory 33, a power source 34, a radio frequency (RF) circuit 35, a sensor 36, and an audio circuit 37. These components may be connected by a bus or may be straight. Connected. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more components than those illustrated, or some components may be combined, or different component arrangements.
其中,屏幕31具体可以是触摸显示屏或非触摸显示屏,可以用于用户界面显示。处理器32是手机30的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器33内的软件程序和/或模块,以及调用存储在存储器33内的数据,执行手机30的各种功能和处理数据,从而对手机30进行整体监控。存储器 33可用于存储数据、软件程序以及模块。电源34可以通过电源管理系统与处理器32逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。RF电路35可用于收发信息或通话过程中,信号的接收和发送。传感器36可以包括加速度计,用于采集手机在各个方向上(一般为三轴)加速度的大小,静止时可采集出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。传感器36还可以包括压力传感器、光传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等其它传感器。音频电路37可以用于提供用户与手机30之间的音频接口。尽管未示出,手机30还可以包括全球定位系统(global positioning system,GPS)模块、无线保真(wireless fidelity,Wi-Fi)模块、蓝牙模块、摄像头等功能模块,在此不再一一赘述。The screen 31 may specifically be a touch display screen or a non-touch display screen, and may be used for user interface display. The processor 32 is the control center of the handset 30, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 33, and recalling data stored in the memory 33, The functions and processing data of the mobile phone 30 are executed to perform overall monitoring of the mobile phone 30. Memory 33 can be used to store data, software programs, and modules. The power source 34 can be logically coupled to the processor 32 through a power management system to manage functions such as charging, discharging, and power management through the power management system. The RF circuit 35 can be used to transmit and receive information and receive and transmit signals during a call. The sensor 36 may include an accelerometer for collecting the magnitude of the acceleration of the mobile phone in various directions (generally three axes). When stationary, the magnitude and direction of the gravity may be collected, which may be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related). Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping). Sensor 36 may also include other sensors such as pressure sensors, light sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, and the like. Audio circuitry 37 can be used to provide an audio interface between the user and handset 30. Although not shown, the mobile phone 30 may further include a global positioning system (GPS) module, a wireless fidelity (Wi-Fi) module, a Bluetooth module, a camera, and the like, and will not be described herein. .
应理解:平板电脑和个人数字助理的结构与图5中手机的结构类似,此处不再赘述。It should be understood that the structure of the tablet and the personal digital assistant is similar to that of the mobile phone in FIG. 5 and will not be described here.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将以图2a和图4所示的可穿戴设备为例,对本申请实施例提供的状态确定方法进行详细描述。The state determination method provided by the embodiment of the present application is described in detail below by taking the wearable device shown in FIG. 2a and FIG. 4 as an example for the purpose of the present invention.
参见图6,本申请实施例提供的状态确定方法可以包括:Referring to FIG. 6, the state determining method provided by the embodiment of the present application may include:
步骤201、可穿戴设备采集加速度计的测量数据,加速度计的测量数据包括三个坐标轴分量。Step 201: The wearable device collects measurement data of the accelerometer, and the measurement data of the accelerometer includes three coordinate axis components.
可穿戴设备可以根据预设的采样间隔或采样频率,在每个采样时刻采集加速度计的测量数据。示例性的,采样频率可以为50Hz或100Hz,采样间隔可以为0.02s或0.01s等。其中,这里的加速度计为三轴加速度计,每组加速度计的测量数据可以包括加速度计的三个坐标轴对应的三个坐标轴分量,这三个坐标轴分量可以合成一个向量,即加速度计的测量数据是一个向量。例如,一组加速度计的测量数据可以表示为(x,y,z),x,y,z分别表示加速度计的测量数据的三个坐标轴分量。The wearable device can collect the measurement data of the accelerometer at each sampling time according to a preset sampling interval or sampling frequency. Exemplarily, the sampling frequency may be 50 Hz or 100 Hz, and the sampling interval may be 0.02 s or 0.01 s or the like. Wherein, the accelerometer here is a three-axis accelerometer, and the measurement data of each group of accelerometers may include three coordinate axis components corresponding to three coordinate axes of the accelerometer, and the three coordinate axis components may be combined into one vector, that is, an accelerometer The measured data is a vector. For example, the measurement data of a set of accelerometers can be expressed as (x, y, z), and x, y, z represent the three coordinate axis components of the measurement data of the accelerometer, respectively.
步骤202、可穿戴设备计算加速度计的测量数据对应的模长。Step 202: The wearable device calculates a modulus length corresponding to the measurement data of the accelerometer.
可穿戴设备可以根据每个采样时刻对应的每组加速度计的测量数据,计算每组加速度计的测量数据对应的一个模长。其中,该模长是大于0的标量,若一组加速度计的测量数据为(x,y,z),则该组加速度计的测量数据对应的模长为
Figure PCTCN2017105163-appb-000005
连续多个采样时刻对应的多个模长可以形成一条模长曲线。
The wearable device can calculate a modulus length corresponding to the measurement data of each group of accelerometers according to the measurement data of each group of accelerometers corresponding to each sampling moment. Wherein, the modulus length is a scalar greater than 0, and if the measurement data of the set of accelerometers is (x, y, z), the modulus corresponding to the measurement data of the set of accelerometers is
Figure PCTCN2017105163-appb-000005
A plurality of die lengths corresponding to a plurality of consecutive sampling moments may form a die length curve.
示例性的,参见图7,最上方的一条曲线为模长曲线(与其它三条相比,最上方的曲线对应的纵轴数值最大),其它三条曲线分别为加速度计三个坐标轴分量对应的曲线。Exemplarily, referring to Figure 7, the top curve is the modulus curve (the uppermost axis corresponds to the largest value of the other three curves), and the other three curves correspond to the three coordinate axes of the accelerometer. curve.
步骤203、可穿戴设备根据多个模长和至少一个预设条件确定可穿戴设备的状态,可穿戴设备的状态包括静止状态、足部运动状态或手部运动状态。Step 203: The wearable device determines a state of the wearable device according to the plurality of die lengths and the at least one preset condition, where the state of the wearable device includes a stationary state, a foot motion state, or a hand motion state.
在计算获得加速度计的测量数据对应的模长后,可穿戴设备可以根据多个模长和至少一个预设条件确定可穿戴设备的状态是静止状态、足部运动状态或手部运动状态。After calculating the modulus length corresponding to the measurement data of the accelerometer, the wearable device may determine whether the state of the wearable device is a stationary state, a foot motion state, or a hand motion state according to the plurality of die lengths and the at least one preset condition.
其中,足部运动状态用于表示可穿戴设备佩戴于用户的脚踝、足部(例如脚跟)或小腿部位,且可穿戴设备处于运动状态。手部运动状态用于表示可穿戴设备佩戴于用户的手部、手腕或手臂部位,且可穿戴设备处于运动状态。当可穿戴设备的状态为足部运动状态或手部运动状态时,可以说明佩戴该可穿戴设备的用户处于运动状态。 用户处于运动状态可以表明用户正在进行走路、跑步、上楼、下楼等运动。其中,手臂部位可以包括小臂、大臂或肘部。可穿戴设备佩戴于用户的脚踝、脚跟、小腿、手部、手腕、小臂或大臂部位的示意图,可以分别参见图3a-图3g。当可穿戴设备的状态为静止状态时,可以说明佩戴该可穿戴设备的用户处于静止状态。Wherein, the foot motion state is used to indicate that the wearable device is worn on the user's ankle, foot (eg, heel) or calf, and the wearable device is in motion. The hand motion state is used to indicate that the wearable device is worn on the user's hand, wrist or arm, and the wearable device is in motion. When the state of the wearable device is a foot motion state or a hand motion state, it may be stated that the user wearing the wearable device is in a motion state. The user is in motion to indicate that the user is exercising, running, going upstairs, going downstairs, etc. Wherein, the arm portion may include an arm, a boom or an elbow. A schematic view of the wearable device worn on the user's ankle, heel, calf, hand, wrist, arm or arm, as shown in Figures 3a-3g, respectively. When the state of the wearable device is a stationary state, it can be stated that the user wearing the wearable device is at a standstill.
在本申请实施例中,脚踝、足部或小腿部位可以称为足部相关部位,手部、手腕、或手臂部位可以称为手部相关部位。也就是说,可穿戴设备可以根据模长确定可穿戴设备的佩戴部位是足部相关部位,还是手部相关部位。In the embodiment of the present application, the ankle, foot or calf portion may be referred to as a foot related portion, and the hand, wrist, or arm portion may be referred to as a hand related portion. That is to say, the wearable device can determine whether the wearing part of the wearable device is a foot related part or a hand related part according to the mold length.
由于加速度计的测量数据的模长是一个标量而不是向量,与方向无关,因而不会像加速度计的测量数据那样与可穿戴设备的佩戴角度强相关,即可穿戴设备的佩戴角度不会影响佩戴部位的识别精度。因此,本申请实施例提供的状态确定方法可以提高佩戴部位的识别精度。Since the modulus of the accelerometer's measurement data is a scalar rather than a vector, independent of the direction, it is not as strong as the accelerometer's measurement data, and the wearing angle of the wearable device is not affected. The recognition accuracy of the wearing part. Therefore, the state determination method provided by the embodiment of the present application can improve the recognition accuracy of the wearing part.
具体的,参见图8,步骤203可以包括:Specifically, referring to FIG. 8, step 203 may include:
步骤2031、若多个模长满足第一预设条件,则可穿戴设备确定可穿戴设备的状态为静止状态。Step 2031: If the plurality of modulo lengths meet the first preset condition, the wearable device determines that the state of the wearable device is a quiescent state.
步骤2032、若多个模长满足第二预设条件或第三预设条件,则可穿戴设备确定可穿戴设备的状态为足部运动状态。Step 2032: If the plurality of die lengths meet the second preset condition or the third preset condition, the wearable device determines that the state of the wearable device is a foot motion state.
步骤2033、若多个模长不满足第一预设条件、第二预设条件和第三预设条件,则可穿戴设备确定可穿戴设备的状态为手部运动状态。Step 2033: If the plurality of die lengths do not satisfy the first preset condition, the second preset condition, and the third preset condition, the wearable device determines that the state of the wearable device is a hand motion state.
在步骤2031中,第一预设条件可以包括:多个模长包括第一曲线段,第一曲线段首尾两端对应时刻的时长大于或者等于第一预设时长。第一曲线段对应的模长大于或者等于第一预设值且小于或者等于第二预设值。其中,第一预设值小于重力加速度,第二预设值大于重力加速度,第二预设值与第一预设值的差值小于或者等于第三预设值。In step 2031, the first preset condition may include: the plurality of moduli lengths include a first curved section, and the duration of the corresponding moments at the beginning and the end of the first curved section is greater than or equal to the first preset duration. The modulus length corresponding to the first curved segment is greater than or equal to the first preset value and less than or equal to the second preset value. The first preset value is smaller than the gravity acceleration, the second preset value is greater than the gravity acceleration, and the difference between the second preset value and the first preset value is less than or equal to the third preset value.
参见图9a,在第一预设条件中,由于第一曲线段对应的模长大于或者等于第一预设值且小于或者等于第二预设值,第二预设值与第一预设值的差值小于或者等于第三预设值,因而可以说明第一曲线段对应的模长的幅值在一个较小的范围内波动。并且,在第一预设条件中,由于第一预设值小于重力加速度,第二预设值大于重力加速度,因而可以说明第一曲线段对应的模长的幅值在重力加速度1g附近较小的范围内波动。示例性的,第一预设值可以为0.9g,第二预设值可以为1.1g。Referring to FIG. 9a, in the first preset condition, the second preset value is compared with the first preset value because the modulus length corresponding to the first curved segment is greater than or equal to the first preset value and less than or equal to the second preset value. The difference is less than or equal to the third preset value, so that it can be stated that the amplitude of the modulus length corresponding to the first curved segment fluctuates within a small range. Moreover, in the first preset condition, since the first preset value is less than the gravitational acceleration, the second preset value is greater than the gravitational acceleration, so that the amplitude of the mode length corresponding to the first curved segment is smaller than the gravitational acceleration of 1 g. Fluctuations within the scope. Exemplarily, the first preset value may be 0.9 g, and the second preset value may be 1.1 g.
当第一曲线段首尾两端对应时刻的时长大于或者等于第一预设时长(满足第一预设条件的模长的持续时间大于第一预设时长),即模长的幅值在重力加速度1g附近较小的范围内波动的模长的持续时间大于第一预设时长时,可以说明模长的幅值在较长的时间段内在重力加速度1g附近较小的范围内波动,此时可以表明可穿戴设备处于静止状态。示例性的,第一预设时长可以为1s(秒)。参见图9b,当可穿戴设备的状态为静止状态时,可以表明用户当前也处于静止状态。When the time corresponding to the first and last ends of the first curved section is greater than or equal to the first preset duration (the duration of the modulus length satisfying the first preset condition is greater than the first preset duration), that is, the magnitude of the modulus length is in the gravitational acceleration When the duration of the mode length of the fluctuation in the smaller range near 1 g is greater than the first preset duration, it can be stated that the amplitude of the mode length fluctuates within a relatively small range of the gravitational acceleration 1 g in a long period of time. Indicates that the wearable device is at rest. Exemplarily, the first preset duration may be 1 s (seconds). Referring to Figure 9b, when the state of the wearable device is stationary, it can be indicated that the user is currently still at rest.
这样,可穿戴设备可以在第一预设时长内确定是否满足第一预设条件,从而确定是否为静止状态。而第一预设时长通常较小,例如可以为1s,可穿戴设备可以在较短的时间内确定可穿戴设备的状态是否为静止状态,因而可穿戴设备的处理效率较高, 且内存占用较低。In this way, the wearable device can determine whether the first preset condition is satisfied within the first preset time period, thereby determining whether it is a stationary state. The first preset duration is usually small, for example, 1 s, and the wearable device can determine whether the state of the wearable device is static in a short period of time, and thus the wearable device has high processing efficiency. And the memory footprint is low.
在上述步骤2032可能的实现方式中,可穿戴设备确定多个模长是否满足第二预设条件或第三预设条件可以包括:可穿戴设备可以首先确定多个模长是否满足第二预设条件,若不满足第二预设条件,则可以确定多个模长是否满足第三预设条件;或者,可穿戴设备可以首先确定多个模长是否满足第三预设条件,若不满足第三预设条件,则可以确定多个模长是否满足第二预设条件。In a possible implementation manner of the foregoing step 2032, the determining, by the wearable device, whether the plurality of modulo lengths meet the second preset condition or the third preset condition may include: the wearable device may first determine whether the plurality of modulo lengths meet the second preset If the second preset condition is not met, the method may determine whether the plurality of modulo lengths meet the third preset condition; or the wearable device may first determine whether the plurality of modulo lengths meet the third preset condition, if the third preset condition is met, The three preset conditions may determine whether the plurality of die lengths satisfy the second preset condition.
具体的,在步骤2032中,第二预设条件可以包括:多个模长包括一个第一目标极大值,第一目标极大值满足第四预设条件。Specifically, in step 2032, the second preset condition may include: the plurality of die lengths include a first target maximum value, and the first target maximum value satisfies the fourth preset condition.
在该种情况下,若可穿戴设备检测到模长包括一个满足第四预设条件的第一目标极大值,则可以确定满足第二预设条件,从而可以确定可穿戴设备的状态为足部运动状态。In this case, if the wearable device detects that the mode length includes a first target maximum value that satisfies the fourth preset condition, it may determine that the second preset condition is met, so that the state of the wearable device may be determined to be a foot. State of movement.
其中,参见图10,第四预设条件可以包括以下几个条件:Wherein, referring to FIG. 10, the fourth preset condition may include the following conditions:
(1)、第一目标极大值大于或者等于第五预设值。(1) The first target maximum value is greater than or equal to the fifth preset value.
(2)、第一目标极大值对应的时刻所在的第三预设时长内还包括第一极小值和第二极小值,第一极小值为在第一目标极大值对应的时刻之前与第一目标极大值相邻的极小值,第二极小值为在第一目标极大值对应的时刻之后与第一目标极大值相邻的极小值。(2) the third preset duration in which the time corresponding to the first target maximum value further includes a first minimum value and a second minimum value, where the first minimum value corresponds to the first target maximum value A minimum value adjacent to the first target maximum value before the time, and the second minimum value is a minimum value adjacent to the first target maximum value after the time corresponding to the first target maximum value.
(3)、上坡落差大于或者等于第六预设值,上坡落差是指第一极小值与第一目标极大值之间的差值的绝对值。(3) The uphill drop is greater than or equal to a sixth preset value, and the uphill drop is the absolute value of the difference between the first minimum value and the first target maximum value.
(4)、下坡落差大于或者等于第七预设值,下坡落差是指第一目标极大值与第二极小值之间的差值。(4) The downhill drop is greater than or equal to the seventh preset value, and the downhill drop is the difference between the first target maximum value and the second minimum value.
(5)、第一目标极大值对应的第一位宽小于或者等于第八预设值,第一位宽为第二极小值对应的时刻与第一极小值对应的时刻的差值。(5) The first bit width corresponding to the first target maximum value is less than or equal to the eighth preset value, and the first bit width is a difference between the time corresponding to the second minimum value and the time corresponding to the first minimum value. .
其中,第一目标极大值对应的第一位宽的是示意图可以参见图11。The first target maximum value corresponding to the first bit width is a schematic diagram. See FIG. 11 .
(6)、第一目标极大值为第四预设时长内多个模长的最大值,第四预设时长大于第三预设时长。(6) The first target maximum value is a maximum value of the plurality of module lengths in the fourth preset duration, and the fourth preset duration is greater than the third preset duration.
可穿戴设备在步骤2032中确定多个模长是否满足第二预设条件时,可以首先检测多个模长中是否有极大值。当可穿戴设备检测到一个极大值时,可以判断是否满足上述第四预设条件中的全部条件。若不满足上述第四预设条件中的全部条件,则该极大值不是第一目标极大值,可穿戴设备可以检测下一个极大值是否满足上述第四预设条件中的全部条件;若满足上述第四预设条件中的全部条件,则可穿戴设备确定检测到的该极大值为第一目标极大值,从而确定满足第二预设条件,因而可以确定可穿戴设备的状态为足部运动状态。When the wearable device determines in step 2032 whether the plurality of die lengths meet the second preset condition, it may first detect whether there is a maximum value among the plurality of die lengths. When the wearable device detects a maximum value, it can be determined whether all of the above fourth preset conditions are satisfied. If all the conditions in the fourth preset condition are not met, the maximum value is not the first target maximum value, and the wearable device can detect whether the next maximum value satisfies all the conditions in the fourth preset condition; If all the conditions in the fourth preset condition are met, the wearable device determines that the detected maximum value is the first target maximum value, thereby determining that the second preset condition is met, and thus determining the state of the wearable device For the state of foot movement.
具体的,当检测到一个极大值时,可穿戴设备可以判断该极大值是否大于或者等于第五预设值(即上述第(1)条件),若该极大值大于第五预设值,则可穿戴设备可以确定一个包括该极大值的第三预设时长,进而确定在该第三预设时长内是否包括一个第一极小值和第二极小值(即上述第(2)条件),进而继续判断该极大值是否满足上述第四预设条件中的其它条件。Specifically, when a maximum value is detected, the wearable device may determine whether the maximum value is greater than or equal to a fifth preset value (ie, the foregoing (1) condition), if the maximum value is greater than the fifth preset. a value, the wearable device may determine a third preset duration including the maximum value, and further determine whether a first minimum value and a second minimum value are included in the third preset duration (ie, the foregoing 2) condition), and then continue to determine whether the maximum value satisfies other conditions in the fourth preset condition.
其中,参见图12,当可穿戴设备确定一个包括该极大值的第三预设时长时,可以 将该极大值确定为第三预设时长的中间时刻,这样更便于确定在第三预设时长内,在该极大值之前是否存在第一极小值,在该极大值之后是否存在第二极小值。示例性的,第三预设时长可以为0.2s时,该极大值位于该第三预设时长的中间时刻。Wherein, referring to FIG. 12, when the wearable device determines a third preset duration including the maximum value, The maximum value is determined as the intermediate time of the third preset duration, so that it is more convenient to determine whether there is a first minimum value before the maximum value within the third preset duration, and whether there is a maximum value after the maximum value The second minimum. Exemplarily, when the third preset duration is 0.2 s, the maximum value is located at an intermediate moment of the third preset duration.
示例性的,在上述第(6)条件中,第四预设时长可以为0.4s,即第一目标极大值可以为第一目标极大值对应的时刻所在的0.4s对应的多个模长中的最大值。第一目标极大值所在的时刻可以为第四预设时长的中间时刻。Exemplarily, in the above condition (6), the fourth preset duration may be 0.4 s, that is, the first target maximum value may be a plurality of modes corresponding to the 0.4 s at the time corresponding to the first target maximum value. The maximum value of the long. The moment at which the first target maximum value is located may be an intermediate moment of the fourth preset duration.
其中,由于当可穿戴设备佩戴在足部相关部位时,在用户运动过程中的脚与地面接触时的脚着地时刻,地面对可穿戴设备中的加速度计产生较大的冲击,从而导致加速度计的测量结果瞬间增大,因而脚着地时刻加速度计的测量数据对应的模长也对应一个较大的冲击。图10中的第一目标极大值即可以理解为脚着地时刻对应的模长的冲击的最高点。Wherein, since the foot touches the ground when the wearable device is worn on the foot-related part, the foot hits the ground when the foot is in contact with the ground during the movement of the foot, the ground has a large impact on the accelerometer in the wearable device, thereby causing acceleration The measurement result of the meter is instantaneously increased, so that the mold length corresponding to the measurement data of the foot landing time accelerometer also corresponds to a large impact. The first target maximum value in FIG. 10 can be understood as the highest point of the impact of the die length corresponding to the foot landing time.
这样,可穿戴设备可以在第四预设时长内确定是否满足第二预设条件,从而确定是否为足部运动状态。而第四预设时长通常较小,例如可以为0.4s,可穿戴设备可以在较短的时间内确定可穿戴设备的状态是否为足部运动状态,因而处理效率较高,且内存占用较低。In this way, the wearable device can determine whether the second preset condition is satisfied within the fourth preset time period, thereby determining whether it is a foot motion state. The fourth preset duration is usually small, for example, 0.4s, and the wearable device can determine whether the state of the wearable device is a foot motion state in a short time, and thus the processing efficiency is high, and the memory usage is low. .
进一步地,第四预设条件还可以包括:第一目标极大值对应的半位宽小于或者等于第九预设值。Further, the fourth preset condition may further include: the half-bit width corresponding to the first target maximum value is less than or equal to the ninth preset value.
参见图13,当上坡落差小于或者等于下坡落差(即第一极小值大于第二极小值)时,半位宽为第一时刻和第二时刻之间的差值的绝对值,第一时刻和第二时刻为在第三预设时长内,第一极小值与上坡落差的一半的和表示的模长对应的两个时刻,即第一目标极大值与上坡落差的一半的差值表示的模长对应的两个时刻,第一时刻和第二时刻在第一极小值对应的时刻和第二极小值对应的时刻之间。Referring to FIG. 13, when the upslope drop is less than or equal to the downslope drop (ie, the first minimum value is greater than the second minimum value), the half width is the absolute value of the difference between the first time and the second time, The first time and the second time are two moments corresponding to the mode length indicated by the sum of the first minimum value and the half of the upward slope difference within the third preset time period, that is, the first target maximum value and the upward slope difference The difference between the half of the two represents the two moments corresponding to the mode length, and the first time and the second time are between the time corresponding to the first minimum value and the time corresponding to the second minimum value.
参见图14,当上坡落差大于下坡落差(即第一极小值小于第二极小值)时,半位宽为第三时刻和第四时刻之间的差值的绝对值,第三时刻和第四时刻为在第三预设时长内,第二极小值与下坡落差的一半的和表示的模长对应的两个时刻,即第一目标极大值与下坡落差的一半的差值表示的模长对应的两个时刻,第三时刻和第四时刻在第一极小值对应的时刻和第二极小值对应的时刻之间。Referring to FIG. 14, when the upslope drop is greater than the downslope drop (ie, the first minimum value is smaller than the second minimum value), the half width is the absolute value of the difference between the third time and the fourth time, and the third The time and the fourth time are two times corresponding to the mode length indicated by the sum of the second minimum value and the half of the downhill fall within the third preset time period, that is, the first target maximum value and the half of the downhill drop The difference indicated by the difference is the two moments corresponding to the mode length, and the third time and the fourth time are between the time corresponding to the first minimum value and the time corresponding to the second minimum value.
由图10-图14可知,第一目标极大值可以是一个冲击的最高点,第一目标极大值对应的半位宽也可以称为该冲击的半位宽。当第一目标极大值对应的半位宽小于或者等于第九预设值时,可以说明第一目标极大值对应的冲击的半位宽较窄。示例性的,半位宽较窄的冲击和半位宽较宽的冲击的对比示意图可以参见图15。As can be seen from FIG. 10 to FIG. 14 , the first target maximum value may be the highest point of the impact, and the half width of the first target maximum value may also be referred to as the half width of the impact. When the half width of the first target maximum value is less than or equal to the ninth preset value, it may be stated that the half width of the impact corresponding to the first target maximum value is narrow. For an illustrative comparison of the narrower width of the half width and the wider impact of the half width, see Figure 15.
进一步地,第四预设条件还可以包括:上坡落差和下坡落差的和与第一目标极大值对应的第一位宽的比值大于或者等于第十预设值。Further, the fourth preset condition may further include: a ratio of the sum of the uphill drop and the downhill drop to the first bit width corresponding to the first target maximum value is greater than or equal to the tenth preset value.
其中,参见图11,第一目标极大值对应的第一位宽为第二极小值对应的时刻与第一极小值对应的时刻的差值。上坡落差和下坡落差的和与第一目标极大值对应的第一位宽的比值可以称为第一目标极大值对应的冲击的总斜率,即第一目标极大值对应的冲击的总斜率较大。For example, referring to FIG. 11 , the first bit width corresponding to the first target maximum value is the difference between the time corresponding to the second minimum value and the time corresponding to the first minimum value. The ratio of the upper slope difference and the downhill drop sum to the first bit width corresponding to the first target maximum value may be referred to as the total slope of the impact corresponding to the first target maximum value, that is, the impact corresponding to the first target maximum value The total slope is large.
在本申请实施例的另一种可能的实现方式中,上述步骤2032中的第二预设条件可以包括:多个模长首尾两端对应时刻的时长等于第二预设时长,多个模长包括m个第 一目标极大值,m大于或者等于第四预设值。In another possible implementation manner of the embodiment of the present application, the second preset condition in the step 2032 may include: the duration of the corresponding moments of the first and last ends of the plurality of modulo lengths is equal to the second preset duration, and the plurality of modulo lengths Including m A target maximum value, m is greater than or equal to a fourth preset value.
示例性的,参见图16,当第二预设时长为5s,第四预设值为2时,若在第二预设时长5s内检测到满足上述第四预设条件的第一目标极大值的数量大于或者等于2,则可以说明满足第二预设条件,可穿戴设备可以确定可穿戴设备的状态为足部运动状态。For example, referring to FIG. 16, when the second preset duration is 5 s and the fourth preset value is 2, if the first target maximum that satisfies the fourth preset condition is detected within the second preset duration of 5 s If the number of values is greater than or equal to 2, it may be stated that the second preset condition is met, and the wearable device may determine that the state of the wearable device is a foot motion state.
在该种情况下,可穿戴设备可以避免由于误检测到第一目标极大值而导致的可穿戴设备的状态的误识别,从而可以提高可穿戴设备的状态和佩戴部位的识别可靠性。In this case, the wearable device can avoid erroneous recognition of the state of the wearable device due to erroneous detection of the first target maximum value, so that the state of the wearable device and the recognition reliability of the wearing portion can be improved.
在上述步骤2032中,第三预设条件可以包括:多个模长包括一个第二曲线段,且该第二曲线段满足第五预设条件。In the above step 2032, the third preset condition may include: the plurality of die lengths include one second curve segment, and the second curve segment satisfies the fifth preset condition.
在该种情况下,若可穿戴设备检测到一个满足第五预设条件的第二曲线段,则可以确定满足第三预设条件,从而可以确定可穿戴设备的状态为足部运动状态。In this case, if the wearable device detects a second curved segment that satisfies the fifth preset condition, it may be determined that the third preset condition is satisfied, so that the state of the wearable device may be determined to be the foot motion state.
其中,参见图17,第五预设条件可以包括:第二曲线段首尾两端对应时刻的时长大于或者等于第五预设时长且小于第一预设时长,第二曲线段对应的模长大于或者等于第十二预设值且小于或者等于第十三预设值,第十三预设值与第十二预设值的差值小于或者等于第十四预设值。For example, referring to FIG. 17, the fifth preset condition may include: a duration of a corresponding moment of the first and last ends of the second curved section is greater than or equal to a fifth preset duration and less than a first preset duration, and a modulus length corresponding to the second curved section is greater than Or equal to the twelfth preset value and less than or equal to the thirteenth preset value, and the difference between the thirteenth preset value and the twelfth preset value is less than or equal to the fourteenth preset value.
其中,当第二曲线段对应的模长大于或者等于第十二预设值且小于或者等于第十三预设值,第十三预设值与第十二预设值的差值小于或者等于第十四预设值时,可以说明第二曲线段对应的模长的幅值波动范围较小。在一种可能的实现方式中,第十二预设值可以与第一预设值相同,第十三预设值可以与第二预设值相同,第十四预设值可以与第三预设值相同。与图9a中的第一曲线段相比,图17中的第二曲线段的持续时长(即第二曲线段首尾两端对应时刻的时长)较短。示例性的,当第一预设时长为1s即第一曲线段的持续时长(即第一曲线段首尾两端对应时刻的时长)可以大于1s时,第五预设时长可以为0.4s,即第二曲线段的持续时长可以大于0.4s且小于1s。Wherein, when the modulus length corresponding to the second curved segment is greater than or equal to the twelfth preset value and less than or equal to the thirteenth preset value, the difference between the thirteenth preset value and the twelfth preset value is less than or equal to When the fourteenth preset value is used, it can be stated that the amplitude fluctuation range of the modulus length corresponding to the second curved section is small. In a possible implementation manner, the twelfth preset value may be the same as the first preset value, the thirteenth preset value may be the same as the second preset value, and the fourteenth preset value may be the third preset value Set the same value. Compared with the first curved section in Fig. 9a, the duration of the second curved section in Fig. 17 (i.e., the length of time corresponding to the first and last ends of the second curved section) is shorter. Exemplarily, when the first preset duration is 1 s, that is, the duration of the first curved segment (that is, the duration of the corresponding time at the beginning and the end of the first curved segment) may be greater than 1 s, the fifth preset duration may be 0.4 s, that is, The duration of the second curved segment may be greater than 0.4 s and less than 1 s.
这样,可穿戴设备可以在小于第一预设时长的时间段内确定是否满足第三预设条件,从而确定是否为足部运动状态,而第一预设时长通常较小,例如可以为1s,因而可穿戴设备的处理效率较高,且内存占用较低。In this way, the wearable device can determine whether the third preset condition is met within a time period less than the first preset duration, thereby determining whether it is a foot motion state, and the first preset duration is usually small, for example, 1 s, Therefore, the wearable device has higher processing efficiency and lower memory usage.
进一步地,参见图18,第五预设条件还可以包括:在第二曲线段之后,多个模长还包括第二目标极大值、目标极小值和第三目标极大值,第二目标极大值为在第二曲线段之后,与第二曲线段相邻的极值,目标极小值为在第二目标极大值之后,与第二目标极大值相邻的极值,第三目标极大值为目标极小值之后的极大值,且第三目标极大值为第六预设时长内多个模长的最大值。Further, referring to FIG. 18, the fifth preset condition may further include: after the second curved section, the plurality of modulo lengths further include a second target maximum value, a target minimum value, and a third target maximum value, and second The target maximum value is an extreme value adjacent to the second curved segment after the second curved segment, and the target minimum value is an extreme value adjacent to the second target maximum value after the second target maximum value, and third The target maximum value is a maximum value after the target minimum value, and the third target maximum value is a maximum value of the plurality of modulus lengths within the sixth preset time length.
由图18可知,满足第五预设条件的第二曲线段对应的模长及第二曲线段后的模长的趋势“平凸凹冲”。其中,“平”为第二曲线段对应的位置,“凸”为第二目标极大值对应的位置,“凹”为目标极小值对应的位置,“冲”为第三目标极大值对应的位置。As can be seen from FIG. 18, the mode length corresponding to the second curve segment satisfying the fifth preset condition and the mode length after the second curve segment are "flat convex and concave". Wherein, "flat" is the position corresponding to the second curve segment, "convex" is the position corresponding to the second target maximum value, "concave" is the position corresponding to the target minimum value, and "chong" is the third target maximum value Corresponding location.
与图10中的第一目标极大值类似,图18中的第三目标极大值可以理解为脚着地时刻对应的模长的冲击的最高点。在一种实现方式中,第三目标极大值对应的时刻可以为第六预设时长的中间时刻,第六预设时长可以为0.4s。Similar to the first target maximum value in FIG. 10, the third target maximum value in FIG. 18 can be understood as the highest point of the impact of the die length corresponding to the foot landing time. In an implementation manner, the time corresponding to the third target maximum value may be an intermediate time of the sixth preset duration, and the sixth preset duration may be 0.4 s.
进一步地,第五预设条件还可以包括以下条件中的至少一个: Further, the fifth preset condition may further include at least one of the following conditions:
(a)、目标极小值小于或者等于第十五预设值。(a) The target minimum value is less than or equal to the fifteenth preset value.
(b)、第二目标极大值对应的第二位宽小于或者等于第十六预设值。(b) The second bit width corresponding to the second target maximum value is less than or equal to the sixteenth preset value.
参见图19,第二位宽为目标极小值对应的时刻与第二曲线段的结束时刻的差值。Referring to FIG. 19, the second bit width is the difference between the time corresponding to the target minimum value and the end time of the second curved segment.
(c)、第三目标极大值与第二目标极大值的比值大于或者等于第十七预设值。(c) The ratio of the third target maximum value to the second target maximum value is greater than or equal to the seventeenth preset value.
(d)、第三目标极大值之后还包括另一个第二曲线段,另一个第二曲线段的起始时刻与第三目标极大值对应的时刻的差值小于或者等于第十八预设值。(d), after the third target maximum value, further includes another second curve segment, and the difference between the start time of the other second curve segment and the time corresponding to the third target maximum value is less than or equal to the eighteenth pre-predetermined Set the value.
其中,另一个第二曲线段的起始时刻与第三目标极大值对应的时刻的差值t0可以参见图20。The difference t 0 of the time at which the start time of the other second curved segment corresponds to the third target maximum value can be seen in FIG. 20 .
进一步地,第五预设条件还可以包括:多个模长首尾两端对应时刻的时长等于第二预设时长,多个模长中每两个相邻模长对应的三个坐标轴分量的差分的绝对值的和s大于或者等于第十九预设值;其中,s表示为:Further, the fifth preset condition may further include: a duration of a corresponding moment of the first and second ends of the plurality of modulo lengths is equal to a second preset duration, and three coordinate axes components corresponding to each two adjacent modulo lengths of the plurality of modulo lengths The sum s of the absolute values of the differences is greater than or equal to the nineteenth preset value; where s is expressed as:
Figure PCTCN2017105163-appb-000006
Figure PCTCN2017105163-appb-000006
其中,(xi,yi,zi)表示第二预设时长内的第i个采样时刻对应的加速度计的测量数据包括的三个坐标轴分量,(xi+1,yi+1,zi+1)表示第二预设时长内的第i+1个采样时刻对应的加速度计的测量数据包括的三个坐标轴分量,i的取值范围为第二预设时长内的每个采样时刻。Wherein (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the ith sampling time in the second preset duration, (x i+1 , y i+1 , z i+1 ) represents three coordinate axis components of the measurement data of the accelerometer corresponding to the i+1th sampling time in the second preset duration, and the value range of i is each time within the second preset duration One sampling moment.
示例性的,第二预设时长为5s,可穿戴设备可以确定5s内的多个模长中,每两个相邻模长对应的三个坐标轴分量的差分的绝对值的和s是否大于或者等于第十九预设值。当每两个相邻模长对应的三个坐标轴分量的差分的绝对值的和s大于或者等于第十九预设值时,可以表明模长曲线不是很平滑。通常情况下,当可穿戴设备佩戴在足部相关部位时,模长曲线不是很平滑,而当可穿戴设备佩戴在手部相关部位时,模长曲线较为平滑。Exemplarily, the second preset duration is 5s, and the wearable device can determine whether the sum s of the absolute values of the differences of the three coordinate axis components corresponding to each two adjacent die lengths is greater than the plurality of die lengths within 5 seconds. Or equal to the nineteenth preset value. When the sum s of the absolute values of the differences of the three coordinate axis components corresponding to each two adjacent die lengths is greater than or equal to the nineteenth preset value, it can be indicated that the mode length curve is not very smooth. Normally, when the wearable device is worn on the relevant part of the foot, the curve length is not very smooth, and when the wearable device is worn on the relevant part of the hand, the curve of the mold length is smoother.
在本申请实施例的另一种可能的实现方式中,上述步骤2032中的第三预设条件可以包括:多个模长首尾两端对应时刻的时长等于第二预设时长,多个模长包括k个第二曲线段,k大于或者等于第十一预设值。In another possible implementation manner of the embodiment of the present application, the third preset condition in the step 2032 may include: the duration of the corresponding moments of the first and second ends of the plurality of modulo lengths is equal to the second preset duration, and the plurality of modulo lengths The k second curve segments are included, and k is greater than or equal to the eleventh preset value.
示例性的,参见图21,当第四预设时长为5s,第十一预设值为2时,若在第四预设时长5s内检测到满足上述第五预设条件的第二曲线段的数量大于或者等于2,则可以说明满足第三预设条件,可穿戴设备可以确定可穿戴设备的状态为足部运动状态。For example, referring to FIG. 21, when the fourth preset duration is 5 s and the eleventh preset value is 2, if the second preset period satisfying the fifth preset condition is detected within 5 s of the fourth preset duration If the number is greater than or equal to 2, it may be stated that the third preset condition is met, and the wearable device may determine that the state of the wearable device is a foot motion state.
在该种情况下,可穿戴设备可以避免由于误检测第二曲线段而导致的可穿戴设备的状态的误识别,从而提高可穿戴设备的状态和佩戴部位的识别精度和可靠性。In this case, the wearable device can avoid erroneous recognition of the state of the wearable device due to erroneous detection of the second curved segment, thereby improving the recognition accuracy and reliability of the state of the wearable device and the wearing portion.
在本申请实施例中,可穿戴设备可以在第二预设时长内确定是否满足第二或第三预设条件,从而确定是否为足部运动状态,而第二预设时长通常较小,例如可以为5s,因而可穿戴设备确定可穿戴设备的状态和佩戴部位的效率较高,且内存占用较低。从而可以使得在确定可穿戴设备的状态和佩戴部位后,调用与佩戴部位相关的计步算法时的时延也较小。In the embodiment of the present application, the wearable device may determine whether the second or third preset condition is met within the second preset duration, thereby determining whether it is a foot motion state, and the second preset duration is usually small, for example, It can be 5 s, so the wearable device determines the state of the wearable device and the wearing portion is more efficient, and the memory usage is low. Thereby, it is possible to make the delay in calling the step counting algorithm related to the wearing part smaller after determining the state of the wearable device and the wearing part.
并且,本申请实施例提供的根据模长确定可穿戴设备的状态的方法的计算复杂度较低,因而占用的内存较小,从而使得可穿戴设备的功耗也较小。例如,当采样频率为100Hz时,当使用本申请实施例提供的方法确定可穿戴设备的状态时,5s内的加法运算次数仅为20万次左右。 Moreover, the method for determining the state of the wearable device according to the modulo length provided by the embodiment of the present application has lower computational complexity, and thus the occupied memory is smaller, so that the power consumption of the wearable device is also smaller. For example, when the sampling frequency is 100 Hz, when the state of the wearable device is determined by using the method provided by the embodiment of the present application, the number of addition operations in 5 seconds is only about 200,000 times.
在本申请实施例中,由于可穿戴设备可以在第四预设时长内确定是否存在满足第四预设条件的第一目标极大值,从而确定多个模长是否满足第二预设条件;可穿戴设备需要在大于第五预设时长的时间段内确定多个模长是否符合“平凸凹冲”的特征,从而确定多个模长是否满足第三预设条件,而第四预设时长通常可以小于或者等于第五预设时长。也就是说,可穿戴设备确定多个模长是否满足第二预设条件的时间段,可以小于可穿戴设备确定多个模长是否满足第三预设条件的时间段。因此,在步骤2032的一种可选的实现方式中,可穿戴设备可以优先确定多个模长是否满足第二预设条件,从而优先处理短时间段内的模长信号;当不满足第二预设条件时,可穿戴设备再确定是否满足第三预设条件,即再处理长时间段内的信号,这样可以使得可穿戴设备的功耗较低。In the embodiment of the present application, the wearable device may determine whether there is a first target maximum value that satisfies the fourth preset condition within the fourth preset time period, thereby determining whether the plurality of mode lengths meet the second preset condition; The wearable device needs to determine whether the plurality of die lengths meet the feature of “flat convex and concave punch” in a time period longer than the fifth preset time length, thereby determining whether the plurality of die lengths meet the third preset condition, and the fourth preset duration It can usually be less than or equal to the fifth preset duration. That is to say, the time period during which the wearable device determines whether the plurality of modulo lengths meet the second preset condition may be less than a period of time during which the wearable device determines whether the plurality of modulo lengths meet the third preset condition. Therefore, in an optional implementation manner of step 2032, the wearable device may preferentially determine whether the plurality of modulo lengths meet the second preset condition, thereby preferentially processing the modulo length signal in the short period of time; When the condition is preset, the wearable device determines whether the third preset condition is met, that is, the signal in the long period of time is processed again, so that the power consumption of the wearable device is low.
此外,在本申请实施例的一种可能的实现方式中,上述步骤203具体可以包括:当相邻两个第二预设时长对应的加速度计的测量数据的平均能量的差值d大于或者等于第二十预设值时,可穿戴设备根据多个模长和至少一个预设条件确定可穿戴设备的状态。In addition, in a possible implementation manner of the embodiment of the present application, the step 203 may specifically include: when the difference d of the average energy of the measurement data of the accelerometer corresponding to the two adjacent second preset durations is greater than or equal to The twentieth preset value determines the state of the wearable device according to the plurality of modulo lengths and the at least one preset condition.
在该种实现方式中,当相邻两个第二预设时长对应的加速度计的测量数据的平均能量的差值d大于或者等于第二十预设值时,可以说明能量发生了明显的变化,其原因可能是由于可穿戴设备的状态发生了变化,例如从静止状态切换到了足部运动状态,因而此时可以确定一次可穿戴设备的状态。In this implementation manner, when the difference d of the average energy of the measurement data of the accelerometer corresponding to the two adjacent second preset durations is greater than or equal to the twentieth preset value, the energy may be significantly changed. The reason may be that the state of the wearable device is changed, for example, from the stationary state to the foot motion state, and thus the state of the wearable device can be determined at this time.
其中,在一种情况下,d可以表示为:Among them, in one case, d can be expressed as:
Figure PCTCN2017105163-appb-000007
Figure PCTCN2017105163-appb-000007
在另一种情况下,d可以表示为:In another case, d can be expressed as:
Figure PCTCN2017105163-appb-000008
Figure PCTCN2017105163-appb-000008
其中,(xi,yi,zi)表示第q+1个第二预设时长内,第i个采样时刻对应的加速度计的测量数据包括的三个坐标轴分量,(xj,yj,zj)表示第q个第二预设时长内,第j个采样时刻对应的加速度计的测量数据包括的三个坐标轴分量,q为整数,n为第二预设时长内包括的采样时刻的数量,n为正整数,i的取值范围为小于或者等于n的正整数,j的取值范围为小于或者等于n的正整数。示例性的,当采用表达式一计算差值d时,第二十预设值可以为0.2g。Wherein, (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the i-th sampling time within the q+1th second preset time period, (x j , y j , z j ) represents the three coordinate axis components of the measurement data of the accelerometer corresponding to the jth sampling time in the qth second preset time period, q is an integer, and n is included in the second preset duration The number of sampling instants, n is a positive integer, the range of i is a positive integer less than or equal to n, and the range of j is a positive integer less than or equal to n. Exemplarily, when the difference d is calculated using Expression 1, the twentieth preset value may be 0.2 g.
在另一种可能的实现方式中,上述步骤203可以包括:可穿戴设备周期性地根据多个模长和至少一个预设条件确定可穿戴设备的状态。In another possible implementation manner, the foregoing step 203 may include: the wearable device periodically determines the state of the wearable device according to the plurality of die lengths and the at least one preset condition.
其中,这里的周期可以根据实际需要进行设定。示例性的,该周期可以设置为30s,即可穿戴设备可以每隔30s根据步骤203确定一次可穿戴设备的状态。Among them, the period here can be set according to actual needs. Exemplarily, the period may be set to 30 s, that is, the wearable device may determine the state of the wearable device according to step 203 every 30 s.
在另一种可能的实现方式中,可穿戴设备可以在接收到用户的指示信息时,根据步骤203确定一次可穿戴设备的状态。例如,用户可以通过语音、按钮、触摸屏或手势(例如连续晃动可穿戴设备)等方式触发指示信息,以指示可穿戴设备根据步骤203确定可穿戴设备的状态。 In another possible implementation manner, the wearable device may determine the state of the wearable device according to step 203 when receiving the indication information of the user. For example, the user may trigger the indication information by means of voice, button, touch screen or gesture (eg, continuously shaking the wearable device) to indicate that the wearable device determines the state of the wearable device according to step 203.
进一步地,参见图8,在本申请实施例中,在可穿戴设备根据多个模长和至少一个预设条件确定可穿戴设备的状态之后,该方法还可以包括:Further, referring to FIG. 8, in the embodiment of the present application, after the wearable device determines the state of the wearable device according to the plurality of die lengths and the at least one preset condition, the method may further include:
步骤204、可穿戴设备向用户提示可穿戴设备的状态。Step 204: The wearable device prompts the user for the status of the wearable device.
具体的,可穿戴设备可以通过屏幕、语音、灯光、震动等方式向用户提示可穿戴设备的状态。例如,可穿戴设备可以通过屏幕向用户提示确定的可穿戴设备的状态。具体的,参见图22a,可穿戴设备可以在屏幕上显示一个手部的图示(或手部的英文,或手部的拼音首字母缩写),以向用户提示确定的可穿戴设备的状态为手部运动状态。参见图22b,可穿戴设备可以在屏幕上显示一个足部的图示(或足部的英文,或足部的拼音首字母缩写),以向用户提示确定的可穿戴设备的状态为足部运动状态。Specifically, the wearable device can prompt the user for the state of the wearable device by using a screen, a voice, a light, a vibration, or the like. For example, the wearable device can prompt the user through the screen to determine the status of the wearable device. Specifically, referring to FIG. 22a, the wearable device can display a hand icon (or English of the hand, or a phonetic acronym of the hand) on the screen to prompt the user to determine the state of the wearable device as Hand movement status. Referring to FIG. 22b, the wearable device can display a pictorial representation of the foot (or the English of the foot, or the pinyin acronym of the foot) on the screen to prompt the user to determine the state of the wearable device as foot motion. status.
再例如,参见图23,可穿戴设备可以通过麦克风向用户语音提示确定的可穿戴设备的状态是静止状态、足部运动状态还是手部运动状态。For another example, referring to FIG. 23, the wearable device can promptly indicate to the user through the microphone that the state of the wearable device is a stationary state, a foot motion state, or a hand motion state.
再例如,可穿戴设备还可以通过震动一次向用户提示确定的可穿戴设备的状态为手部运动状态,通过震动两次向用户提示确定的可穿戴设备的状态为足部运动状态。For another example, the wearable device can also prompt the user to determine the state of the wearable device as the hand motion state by shaking once, and prompt the user to determine the state of the wearable device as the foot motion state by shaking twice.
可理解的是,可穿戴设备向用户提示可穿戴设备的状态的方式可以有多种,这里不再一一赘述。It can be understood that there are various ways for the wearable device to prompt the user for the state of the wearable device, and details are not described herein again.
进一步地,虽然附图未示出,但在步骤203之前,该方法还可以包括:Further, although the drawing is not shown, before step 203, the method may further include:
步骤205、可穿戴设备对加速度计的测量数据或模长进行滤波。Step 205: The wearable device filters the measurement data or the mode length of the accelerometer.
对加速度计的测量数据或模长进行滤波可以滤除部分由噪声产生的毛刺,从而使得步骤203中用于确定可穿戴设备的状态的多个模长对应的模长曲线较为平滑,降低由噪声产生的毛刺对模长的极大值或极小值的误判,提高确定可穿戴设备的状态的精度和效率。Filtering the measurement data or the mode length of the accelerometer can filter out some of the glitch generated by the noise, so that the modulus length corresponding to the plurality of mode lengths used to determine the state of the wearable device in step 203 is smoother, and the noise is reduced. The resulting glitch misjudges the maximum or minimum value of the die length, improving the accuracy and efficiency of determining the state of the wearable device.
另外,需要说明的是,本申请实施例中的第一预设值至第二十预设值,第一预设时长至第六预设时长的具体数值可以根据实际需要进行设置,本申请实施例不作具体限定。In addition, it should be noted that, in the first preset value to the twentieth preset value in the embodiment of the present application, the specific value of the first preset duration to the sixth preset duration may be set according to actual needs, and the application is implemented. The examples are not specifically limited.
此外,还需要说明的是,在本申请实施例中,可穿戴设备中的加速度计采集到的数据可以缓存到存储单元中,可穿戴设备中的处理单元可以周期性地从存储单元中读取加速度计的测量数据,从而计算加速度计的测量数据对应的模长,进而根据多个模长和至少一个预设条件判断可穿戴设备的状态。示例性的,可穿戴设备读取加速度计的测量数据的周期可以为1s。In addition, it should be noted that, in the embodiment of the present application, the data collected by the accelerometer in the wearable device may be cached into the storage unit, and the processing unit in the wearable device may periodically read from the storage unit. The measurement data of the accelerometer is used to calculate the modulus length corresponding to the measurement data of the accelerometer, and then the state of the wearable device is determined according to the plurality of die lengths and at least one preset condition. Illustratively, the period during which the wearable device reads the measurement data of the accelerometer may be 1 s.
另外,示例性的,实际测得的加速度计三个坐标轴分量分别对应的曲线和模长曲线可以参见图24a-图24e,在图24a-图24e中,最上方的一条曲线为模长曲线(与其它三条相比,纵轴数值最大),其它三条曲线分别为加速度计三个坐标轴分量对应的曲线。其中,图24a中的曲线为佩戴在脚踝部位,且用户上楼时实际测得的曲线;图24b中的曲线为佩戴在脚踝部位,且用户走路时实际测得的曲线;图24c中的曲线为佩戴在脚踝部位,且用户跑步时实际测得的曲线;图24d中的曲线为佩戴在手腕部位,且用户走路时实际测得的曲线;图24e中的曲线为佩戴在手腕部位,且用户跑步时实际测得的曲线。In addition, for example, the curve and the die length curve corresponding to the three coordinate axis components of the actually measured accelerometer can be seen in FIG. 24a to FIG. 24e, and in FIG. 24a to FIG. 24e, the top curve is the die length curve. (The vertical axis value is the largest compared to the other three), and the other three curves are the curves corresponding to the three coordinate axis components of the accelerometer. The curve in Fig. 24a is the curve actually worn when the user goes upstairs, and the curve in Fig. 24b is the curve actually worn when the user walks, and the curve is shown in Fig. 24c. The curve actually measured when worn on the ankle and when the user runs; the curve in Fig. 24d is the curve actually worn when the user walks on the wrist, and the curve is the wrist worn in Fig. 24e, and the user The actual measured curve while running.
其中,与脚踝部位对应的图24a和图24b中的模长曲线符合第三预设条件,例如模 长曲线的趋势符合“平凸凹冲”的特征;与脚踝部位对应的图24c中的模长曲线符合第二预设条件,例如符合第一目标极大值的特征,并且模长曲线的趋势为“振凸凹冲”,其中的“振”表示振荡;与手腕部位对应的图24d和图24e中的模长曲线不满足第二预设条件和第三预设条件,也不满足第一预设条件。此外,图24f还提供了一个实测曲线图,其中箭头所指示的部分表示用户静止状态时的模长曲线,该部分为持续时间较长的一个第一曲线段。并且,实验结果表明,当采用本申请实施例提供的状态确定方法确定可穿戴设备的状态时,其精度可以大于或者等于98%。Wherein, the die length curve in FIG. 24a and FIG. 24b corresponding to the ankle portion conforms to a third preset condition, such as a mode The trend of the long curve conforms to the feature of "flat convex and concave punch"; the die length curve in Fig. 24c corresponding to the ankle portion conforms to the second preset condition, for example, the feature conforming to the first target maximum value, and the trend of the die length curve is "vibration and convexity", in which "vibration" means oscillation; the mode length curve in Fig. 24d and Fig. 24e corresponding to the wrist portion does not satisfy the second preset condition and the third preset condition, and does not satisfy the first preset condition. In addition, Fig. 24f also provides a measured graph in which the portion indicated by the arrow indicates the modulus curve of the user in a stationary state, which is a first curved segment having a longer duration. Moreover, the experimental results show that when the state determination method provided by the embodiment of the present application is used to determine the state of the wearable device, the accuracy may be greater than or equal to 98%.
此外,本申请实施例还提供一种方法,该方法可以包括:当可穿戴设备检测到该可穿戴设备佩戴在手臂、手部或手腕上时,可穿戴设备采用第一算法来计算走路或跑步距离,可穿戴设备检测到用户查看时,可穿戴设备显示计步结果的同时标识出是佩戴在手臂、手部或手腕上的计步结果。当该可穿戴设备检测到该可穿戴设备佩戴在脚踝、小腿或足部时,可穿戴设备采用第二算法来计算走路或跑步距离,可穿戴设备用户查看时,可穿戴设备在显示计步结果的同时标识出是佩戴在脚踝、小腿或足部的计步结果。其中,第一算法可以为通用的算法或适用于可穿戴设备佩戴在手臂、手部或手腕上的计步算法。第二算法可以为通用的算法或适用于便携设备佩戴在脚踝、小腿或足部上的计步算法。作为一种可能的实现方式,第一算法可以与第二算法相同。In addition, the embodiment of the present application further provides a method, the method may include: when the wearable device detects that the wearable device is worn on an arm, a hand or a wrist, the wearable device uses a first algorithm to calculate walking or running Distance, when the wearable device detects the user's view, the wearable device displays the step result and identifies the step result worn on the arm, hand or wrist. When the wearable device detects that the wearable device is worn on the ankle, the calf or the foot, the wearable device uses a second algorithm to calculate the walking or running distance, and the wearable device displays the step result when viewed by the wearable device user. It also identifies the step-by-step results of wearing on the ankle, calf or foot. The first algorithm may be a general-purpose algorithm or a step-and-step algorithm suitable for wearing a wearable device on an arm, a hand or a wrist. The second algorithm can be a general purpose algorithm or a step counter algorithm suitable for portable devices to wear on the ankle, calf or foot. As a possible implementation, the first algorithm may be the same as the second algorithm.
其中,当可穿戴设备检测到该可穿戴设备佩戴在手臂、手部或手腕上时,可穿戴设备在显示计步结果的同时,可以显示相同的标志以标识可穿戴设备佩戴在手臂、手部或手腕上,也可以分别显示手臂、手部或手腕对应的标志,以标识可穿戴设备具体佩戴在手臂、手部还是手腕上。Wherein, when the wearable device detects that the wearable device is worn on the arm, the hand or the wrist, the wearable device can display the same flag while displaying the step result to identify the wearable device being worn on the arm and the hand. On the wrist or wrist, the corresponding symbol of the arm, hand or wrist can also be displayed to identify whether the wearable device is worn on the arm, the hand or the wrist.
例如,参见图25,当可穿戴设备检测到该可穿戴设备佩戴在手臂、手部或手腕上时,可穿戴设备在显示计步结果的同时,均可以显示手的图示、手的拼音首字母缩写或手的英文以标识当前的佩戴部位为手臂、手部或手腕。或者,当可穿戴设备检测到该可穿戴设备佩戴在手臂上时,可穿戴设备可以在显示计步结果的同时,显示手臂的图示、手臂的拼音首字母缩写或手臂的英文等,以标识当前的佩戴部位为手臂;当可穿戴设备检测到该可穿戴设备佩戴在手腕上时,可穿戴设备可以在显示计步结果的同时显示手腕的图示、手腕的拼音首字母缩写、手腕的英文,以标识当前的佩戴部位为手腕。For example, referring to FIG. 25, when the wearable device detects that the wearable device is worn on the arm, the hand or the wrist, the wearable device can display the icon of the hand and the pinyin of the hand while displaying the step result. The initials of the letters or the English of the hand to identify the current wearing position as the arm, hand or wrist. Alternatively, when the wearable device detects that the wearable device is worn on the arm, the wearable device can display the icon of the arm, the pinyin abbreviation of the arm, or the English of the arm, etc., while displaying the step result. The current wearing position is an arm; when the wearable device detects that the wearable device is worn on the wrist, the wearable device can display the icon of the wrist, the acronym of the wrist, and the English of the wrist while displaying the step result. To identify the current wearing position as the wrist.
当可穿戴设备检测到该可穿戴设备佩戴在脚踝、小腿或足部时,可穿戴设备在显示计步结果的同时,可以显示相同的标志以标识可穿戴设备佩戴在脚踝、小腿或足部,也可以分别显示脚踝、小腿或足部对应的标志,以标识可穿戴设备具体佩戴在脚踝、小腿还是足部。When the wearable device detects that the wearable device is worn on the ankle, the calf or the foot, the wearable device can display the same sign to indicate that the wearable device is worn on the ankle, the calf or the foot while displaying the step result. It is also possible to respectively display a logo corresponding to the ankle, calf or foot to identify whether the wearable device is specifically worn on the ankle, the calf or the foot.
例如,参见图26,当可穿戴设备检测到该可穿戴设备佩戴在脚踝、小腿或足部时,可穿戴设备在显示计步结果的同时,均可以显示脚的图示、脚的拼音首字母缩写或脚的英文以标识当前的佩戴部位为脚踝、小腿或足部。或者,当可穿戴设备检测到该可穿戴设备佩戴在脚踝上时,可穿戴设备可以在显示计步结果的同时,显示脚踝的图示、脚踝的拼音首字母缩写或脚踝的英文等,以标识当前的佩戴部位为脚踝;当可穿戴设备检测到该可穿戴设备佩戴在小腿上时,可穿戴设备可以在显示计步结果的同时显示 腿的图示、腿的拼音首字母缩写、腿的英文,以标识当前的佩戴部位为小腿部位。For example, referring to FIG. 26, when the wearable device detects that the wearable device is worn on the ankle, the calf or the foot, the wearable device can display the pictogram of the foot and the pinyin initial of the foot while displaying the step result. The abbreviation or the English of the foot to identify the current wearing position as the ankle, calf or foot. Alternatively, when the wearable device detects that the wearable device is worn on the ankle, the wearable device may display the icon of the ankle, the pinyin acronym of the ankle or the English of the ankle, etc., while displaying the step result. The current wearing position is an ankle; when the wearable device detects that the wearable device is worn on the lower leg, the wearable device can display while displaying the step result The illustration of the leg, the initials of the pinyin of the leg, and the English of the leg, to identify the current wearing part as the calf part.
在另外的实现方式中,当可穿戴设备检测到可穿戴设备佩戴在脖子上时,可穿戴设备可以采用第三算法来计算走路或跑步距离。可穿戴设备检测到用户查看时,在显示计步结果的同时并标识出是佩戴在脖子上的计步结果(例如,显示一个脖子的图示,或脖子的英文,或脖子的汉语拼音首字母缩写等)。其中,第三算法可以为通用算法,或者是适用于可穿戴设备佩戴在脖子上的计步算法。作为一种可能的实现方式,第三算法也可以与第一算法或第二算法相同。In a further implementation, when the wearable device detects that the wearable device is worn around the neck, the wearable device can employ a third algorithm to calculate the walking or running distance. When the wearable device detects the user's view, it displays the step result and identifies the step result that is worn around the neck (for example, a graphic showing the neck, or the English of the neck, or the Chinese pinyin initials of the neck) Abbreviations, etc.). The third algorithm may be a general-purpose algorithm or a step-counting algorithm suitable for wearing a wearable device around the neck. As a possible implementation, the third algorithm may also be the same as the first algorithm or the second algorithm.
在另外的实现方式中,当可穿戴设备检测到可穿戴设备佩戴在脚踝、小腿或足部时,可穿戴设备可以自动关闭血压,和/或心跳等生理参数检测模块,以节省可穿戴设备的耗电量,延长可穿戴设备的使用时间。In another implementation, when the wearable device detects that the wearable device is worn on the ankle, the calf or the foot, the wearable device can automatically turn off the blood pressure, and/or the heartbeat and other physiological parameter detecting module to save the wearable device. Power consumption, extending the life of wearable devices.
在另外的实现方式中,当可穿戴设备检测到可穿戴设备佩戴在脖子上时,可穿戴设备可以自动关闭血压,和/或心跳等生理参数检测模块,以节省可穿戴设备的耗电量,延长可穿戴设备的使用时间。In another implementation manner, when the wearable device detects that the wearable device is worn around the neck, the wearable device can automatically turn off the blood pressure, and/or the physiological parameter detecting module such as a heartbeat to save the power consumption of the wearable device. Extend the life of your wearable device.
具体的,便携设备确定便携设备佩戴部位的方法如本申请上述方法实施例提供的状态确定方法。其中,当便携设备确定便携设备的状态为足部运动状态时,便携设备可以确定便携设备的佩戴部位为足部相关部位,例如脚踝、小腿或足部;当便携设备确定便携设备的状态为手部运动状态时,便携设备可以确定便携设备的佩戴部位为手部相关部位,例如手臂、手部或手腕。Specifically, the method for determining the wearing position of the portable device by the portable device is the state determining method provided by the foregoing method embodiment of the present application. Wherein, when the portable device determines that the state of the portable device is the foot motion state, the portable device may determine that the wearing portion of the portable device is a foot-related portion, such as an ankle, a calf or a foot; when the portable device determines the state of the portable device as a hand In the state of motion, the portable device can determine that the wearing portion of the portable device is a hand-related portion, such as an arm, a hand, or a wrist.
应理解:可穿戴设备检测到用户查看,包括:可穿戴设备检测到用户点击可穿戴设备的电源键;或者,可穿戴设备检测到用户点击可穿戴设备的触控屏;或者,可穿戴设备检测到用户按照预设方式操作可穿戴设备(例如,连续摇晃可穿戴设备两次);或者,可穿戴设备检测到用户的语音指令;或者,可穿戴设备检测到用户停下来超过预设时长。或者,可穿戴设备检测到用户抬起手查看可穿戴设备,或者,可穿戴设备检测到用户拿起可穿戴设备查看;或者,可穿戴设备检测到用户从小腿上(或脚踝,或脚趾)上取下可穿戴设备,并拿起可穿戴设备观看。It should be understood that the wearable device detects the user's view, including: the wearable device detects that the user clicks on the power button of the wearable device; or the wearable device detects that the user clicks on the touch screen of the wearable device; or, the wearable device detects The wearable device is operated to the user in a preset manner (for example, the wearable device is continuously shaken twice); or the wearable device detects the voice command of the user; or the wearable device detects that the user has stopped for more than the preset duration. Alternatively, the wearable device detects that the user raises his hand to view the wearable device, or the wearable device detects that the user picks up the wearable device for viewing; or the wearable device detects that the user is on the lower leg (or an ankle, or a toe) Remove the wearable device and pick up the wearable device for viewing.
可以理解的是,便携设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to implement the above functions, the portable device includes a corresponding hardware structure and/or software module for executing each function. Those skilled in the art will readily appreciate that the present application can be implemented in a combination of hardware or hardware and computer software in combination with the algorithmic steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
本申请实施例可以根据上述方法示例对便携设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the function module into the portable device according to the foregoing method example. For example, each function module may be divided according to each function, or two or more functions may be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
在采用对应各个功能划分各个功能模块的情况下,图27示出了上述和实施例中涉及的便携设备40的一种可能的组成示意图,如图27所示,该便携设备40可以包括:包括加速度计41、计算单元42和确定单元43,加速度计41可以用于根据预设采样间 隔采集加速度计的测量数据,加速度计的测量数据包括三个坐标轴分量。计算单元42可以用于计算加速度计的测量数据对应的模长。确定单元43可以用于根据多个模长和至少一个预设条件确定便携设备的状态,便携设备的状态包括静止状态、足部运动状态或手部运动状态。FIG. 27 shows a possible composition diagram of the portable device 40 involved in the above and the embodiments. As shown in FIG. 27, the portable device 40 may include: Accelerometer 41, calculation unit 42 and determination unit 43, accelerometer 41 can be used according to preset sampling room The measurement data of the accelerometer is included in the measurement data of the accelerometer, and includes three coordinate axis components. The calculation unit 42 can be used to calculate the modulus length corresponding to the measurement data of the accelerometer. The determining unit 43 may be configured to determine a state of the portable device according to the plurality of die lengths and the at least one preset condition, the state of the portable device including a stationary state, a foot motion state, or a hand motion state.
进一步地,便携设备40还可以包括提示单元,用于在确定单元确定便携设备的状态之后,向用户提示便携设备的状态。Further, the portable device 40 may further include a prompting unit for prompting the user of the state of the portable device after the determining unit determines the state of the portable device.
此外,加速度计、计算单元、确定单元还可以用于本文所描述的技术的其它过程。In addition, accelerometers, computing units, determining units can also be used in other processes of the techniques described herein.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
在采用对应各个功能划分各个功能模块的情况下,图28示出了上述和实施例中涉及的便携设备50的另一种可能的组成示意图,如图28所示,该便携设备50可以包括:加速度计51和处理器52。其中,加速度计51可以用于执行图6中的步骤201,即采集加速度计的测量数据,加速度计的测量数据包括三个坐标轴分量;处理器52可以用于支持便携设备50执行图6中的步骤202-203,即:便携设备计算加速度计的测量数据对应的模长,根据多个模长和至少一个预设条件确定便携设备的状态,便携设备的状态包括静止状态、足部运动状态或手部运动状态。In the case where the respective functional modules are divided by the corresponding functions, FIG. 28 shows another possible composition diagram of the portable device 50 involved in the above and the embodiments. As shown in FIG. 28, the portable device 50 may include: Accelerometer 51 and processor 52. The accelerometer 51 can be used to perform step 201 in FIG. 6, that is, collecting measurement data of the accelerometer, the measurement data of the accelerometer includes three coordinate axis components; the processor 52 can be used to support the portable device 50 to perform the operation in FIG. Steps 202-203, that is, the portable device calculates a modulus length corresponding to the measurement data of the accelerometer, and determines a state of the portable device according to the plurality of modulus lengths and at least one preset condition, and the state of the portable device includes a stationary state and a foot motion state. Or hand movement status.
其中,足部运动状态用于表示便携设备佩戴于用户的脚踝、足部或小腿部位,且便携设备处于运动状态;手部运动状态用于表示便携设备佩戴于用户的手部、手腕或手臂部位,且便携设备处于运动状态。The foot motion state is used to indicate that the portable device is worn on the user's ankle, foot or calf, and the portable device is in a state of motion; the hand motion state is used to indicate that the portable device is worn on the user's hand, wrist or arm. And the portable device is in motion.
此外,处理器52还可以用于支持便携设备50执行图8中的步骤2031、步骤2032步骤2033和步骤204,以及上述方法实施例中的步骤205,和/或用于本文所描述的技术的其它过程。Moreover, the processor 52 can also be used to support the portable device 50 to perform step 2031, step 2032, step 2033 and step 204 of FIG. 8, and steps 205 of the above method embodiments, and/or for the techniques described herein. Other processes.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
本申请实施例提供的便携设备50,用于执行上述状态确定方法,因此可以达到与上述状态确定方法相同的效果。The portable device 50 provided by the embodiment of the present application is configured to perform the above state determination method, and thus the same effect as the above state determination method can be achieved.
在采用集成的单元的情况下,图29示出了上述实施例中所涉及的便携设备60的另一种可能的组成示意图。如图29所示,该便携设备60可以包括:处理模块61和存储模块62。In the case of employing an integrated unit, FIG. 29 shows another possible composition diagram of the portable device 60 involved in the above embodiment. As shown in FIG. 29, the portable device 60 may include a processing module 61 and a storage module 62.
处理模块61用于对便携设备的动作进行控制管理,例如,处理模块61用于支持便携设备执行上述方法实施例中的步骤201-205,以及步骤2031-2033,和/或用于本文所描述的技术的其它过程。存储模块62,用于存储便携设备的程序代码和数据。The processing module 61 is configured to control and manage the actions of the portable device. For example, the processing module 61 is configured to support the portable device to perform steps 201-205 and steps 2031-2033 in the foregoing method embodiments, and/or for the description herein. Other processes of technology. The storage module 62 is configured to store program codes and data of the portable device.
其中,处理模块61可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,微处理器(digital signal processor,DSP)和微处理器的组合等等。在一种实现方式中,图29中的处理模块61具体可以是图28中的处理器52,处理器52具体可以是协处理器sensor hub等。存储模块62可以是存储器。The processing module 61 can be a processor or a controller. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a digital signal processor (DSP) and a microprocessor, and the like. In one implementation, the processing module 61 in FIG. 29 may specifically be the processor 52 in FIG. 28, and the processor 52 may specifically be a coprocessor sensor hub or the like. The storage module 62 can be a memory.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的 方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that, for the description Convenient and concise, only the division of each functional module mentioned above is illustrated. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete the above. All or part of the function described.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以计算机程序产品的形式体现出来,该计算机程序产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. The above-described integrated unit can be stored in a readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present application may be embodied in the form of a computer program product in the form of a computer program product, or a part of the technical solution, which is essential to the prior art, and the computer program product is stored in a The storage medium includes instructions for causing a device (which may be a microcontroller, chip, etc.) or a processor to perform all or part of the steps of the various embodiments of the present application. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。 The above is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any change or replacement that can be easily conceived within the technical scope disclosed by those skilled in the art should be It is covered by the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (31)

  1. 一种状态确定方法,应用于便携设备,所述便携设备包括加速度计,其特征在于,所述方法包括:A state determining method is applied to a portable device, the portable device comprising an accelerometer, wherein the method comprises:
    采集所述加速度计的测量数据,所述加速度计的测量数据包括三个坐标轴分量;Collecting measurement data of the accelerometer, the measurement data of the accelerometer includes three coordinate axis components;
    计算所述加速度计的测量数据对应的模长;Calculating a modulus length corresponding to the measurement data of the accelerometer;
    根据多个模长和至少一个预设条件确定所述便携设备的状态,所述便携设备的状态包括静止状态、足部运动状态或手部运动状态。The state of the portable device is determined based on a plurality of die lengths and at least one preset condition, the state of the portable device including a stationary state, a foot motion state, or a hand motion state.
  2. 根据权利要求1所述的方法,其特征在于,所述足部运动状态用于表示所述便携设备佩戴于用户的脚踝、足部或小腿部位,且所述便携设备处于运动状态;The method according to claim 1, wherein said foot motion state is for indicating that said portable device is worn on an ankle, a foot or a calf portion of a user, and said portable device is in a motion state;
    所述手部运动状态用于表示所述便携设备佩戴于所述用户的手部、手腕或手臂部位,且所述便携设备处于运动状态。The hand motion state is used to indicate that the portable device is worn on the user's hand, wrist or arm, and the portable device is in a motion state.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据多个模长和至少一个预设条件确定所述便携设备的状态包括:The method according to claim 1 or 2, wherein the determining the state of the portable device according to the plurality of modulus lengths and the at least one preset condition comprises:
    若所述多个模长满足第一预设条件,则确定所述便携设备的状态为静止状态;Determining that the state of the portable device is a stationary state if the plurality of die lengths meet the first preset condition;
    若所述多个模长满足第二预设条件或第三预设条件,则确定所述便携设备的状态为足部运动状态;Determining that the state of the portable device is a foot motion state if the plurality of die lengths meet the second preset condition or the third preset condition;
    若所述多个模长不满足所述第一预设条件、所述第二预设条件和所述第三预设条件,则确定所述便携设备的状态为手部运动状态。If the plurality of modulo lengths do not satisfy the first preset condition, the second preset condition, and the third preset condition, determining that the state of the portable device is a hand motion state.
  4. 根据权利要求3所述的方法,其特征在于,所述第一预设条件包括:The method according to claim 3, wherein the first preset condition comprises:
    所述多个模长包括第一曲线段,所述第一曲线段首尾两端对应时刻的时长大于或者等于第一预设时长;The plurality of die lengths includes a first curved segment, and a duration of a corresponding moment between the first and last ends of the first curved segment is greater than or equal to a first preset duration;
    所述第一曲线段对应的模长大于或者等于第一预设值且小于或者等于第二预设值;The modulus length corresponding to the first curved segment is greater than or equal to the first preset value and less than or equal to the second preset value;
    其中,所述第一预设值小于重力加速度,所述第二预设值大于重力加速度,所述第二预设值与所述第一预设值的差值小于或者等于第三预设值。The first preset value is smaller than the gravitational acceleration, the second preset value is greater than the gravitational acceleration, and the difference between the second preset value and the first preset value is less than or equal to the third preset value. .
  5. 根据权利要求3或4所述的方法,其特征在于,所述第二预设条件包括:The method according to claim 3 or 4, wherein the second preset condition comprises:
    所述多个模长包括一个第一目标极大值;或者,所述多个模长首尾两端对应时刻的时长等于第二预设时长,所述多个模长包括m个所述第一目标极大值,m大于或者等于第四预设值;The plurality of moduli lengths includes a first target maximum value; or the durations of the plurality of modulo lengths at the ends of the first and last ends are equal to a second preset duration, and the plurality of modulo lengths include m first a target maximum value, m is greater than or equal to a fourth preset value;
    其中,所述第一目标极大值满足第四预设条件,所述第四预设条件包括:The first target maximum value satisfies a fourth preset condition, and the fourth preset condition includes:
    所述第一目标极大值大于或者等于第五预设值;The first target maximum value is greater than or equal to a fifth preset value;
    在所述第一目标极大值对应的时刻所在的第三预设时长内,所述多个模长还包括第一极小值和第二极小值,所述第一极小值为在所述第一目标极大值对应的时刻之前与所述第一目标极大值相邻的极小值,所述第二极小值为在所述第一目标极大值对应的时刻之后与所述第一目标极大值相邻的极小值;And the plurality of moduli lengths further include a first minimum value and a second minimum value, where the first minimum value is in a third preset duration in which the time corresponding to the first target maximum value is located a minimum value adjacent to the first target maximum value before the time corresponding to the first target maximum value, and the second minimum value is after the time corresponding to the first target maximum value a minimum value of the first target maximum value adjacent to the first target;
    上坡落差大于或者等于第六预设值,所述上坡落差是指所述第一极小值与所述第一目标极大值之间的差值的绝对值;The upslope drop is greater than or equal to a sixth preset value, where the uphill drop is the absolute value of the difference between the first minimum value and the first target maximum value;
    下坡落差大于或者等于第七预设值,所述下坡落差是指所述第一目标极大值与所述第二极小值之间的差值;The downhill drop is greater than or equal to a seventh preset value, and the downhill drop is the difference between the first target maximum value and the second minimum value;
    第一位宽小于或者等于第八预设值,所述第一位宽为所述第二极小值对应的时刻 与所述第一极小值对应的时刻的差值;The first bit width is less than or equal to an eighth preset value, and the first bit width is a time corresponding to the second minimum value a difference in time corresponding to the first minimum value;
    所述第一目标极大值为第四预设时长内所述多个模长的最大值,所述第四预设时长大于所述第三预设时长。The first target maximum value is a maximum value of the plurality of die lengths in a fourth preset duration, and the fourth preset duration is greater than the third preset duration.
  6. 根据权利要求5所述的方法,其特征在于,所述第四预设条件还包括:The method according to claim 5, wherein the fourth preset condition further comprises:
    所述第一目标极大值对应的半位宽小于或者等于第九预设值;The half-bit width corresponding to the first target maximum value is less than or equal to a ninth preset value;
    其中,当所述上坡落差小于或者等于所述下坡落差时,所述半位宽为第一时刻和第二时刻之间的差值的绝对值,所述第一时刻和所述第二时刻为在所述第三预设时长内,所述第一极小值与所述上坡落差的一半的和表示的模长对应的两个时刻,所述第一时刻和所述第二时刻在所述第一极小值对应的时刻和所述第二极小值对应的时刻之间;Wherein, when the upslope drop is less than or equal to the downslope drop, the half width is an absolute value of a difference between the first time and the second time, the first time and the second time The moment is two moments corresponding to a mode length represented by a sum of a half of the uphill drop within the third preset duration, the first moment and the second moment Between the time corresponding to the first minimum value and the time corresponding to the second minimum value;
    当所述上坡落差大于所述下坡落差时,所述半位宽为第三时刻和第四时刻之间的差值的绝对值,所述第三时刻和所述第四时刻为在所述第三预设时长内,所述第二极小值与所述下坡落差的一半的和表示的模长对应的两个时刻,所述第三时刻和所述第四时刻在所述第一极小值对应的时刻和所述第二极小值对应的时刻之间。When the upslope drop is greater than the downslope drop, the half width is an absolute value of a difference between the third time and the fourth time, and the third time and the fourth time are In the third preset duration, the second minimum value corresponds to two moments corresponding to the mode length indicated by the sum of the half of the downhill fall, and the third moment and the fourth moment are in the A time corresponding to a minimum value and a time corresponding to the second minimum value.
  7. 根据权利要求5或6所述的方法,其特征在于,所述第四预设条件还包括:The method according to claim 5 or 6, wherein the fourth preset condition further comprises:
    所述上坡落差和所述下坡落差的和与所述第一目标极大值对应的第一位宽的比值大于或者等于第十预设值。The ratio of the sum of the uphill drop and the downhill drop to the first bit width corresponding to the first target maximum value is greater than or equal to the tenth preset value.
  8. 根据权利要求3-7任一项所述的方法,其特征在于,所述第三预设条件包括:The method according to any one of claims 3-7, wherein the third preset condition comprises:
    所述多个模长包括一个第二曲线段;或者,所述多个模长首尾两端对应时刻的时长等于第二预设时长,所述多个模长包括k个所述第二曲线段,k大于或者等于第十一预设值;The plurality of die lengths includes a second curved segment; or, the plurality of die lengths of the first and second ends correspond to a second preset duration, the plurality of die lengths including k second curved segments , k is greater than or equal to the eleventh preset value;
    其中,所述第二曲线段满足第五预设条件,所述第五预设条件包括:The second curve segment satisfies a fifth preset condition, and the fifth preset condition includes:
    所述第二曲线段首尾两端对应时刻的时长大于或者等于第五预设时长且小于第一预设时长;The duration of the time corresponding to the first and last ends of the second curved section is greater than or equal to the fifth preset duration and less than the first preset duration;
    所述第二曲线段对应的模长大于或者等于第十二预设值且小于或者等于第十三预设值,所述第十三预设值与所述第十二预设值的差值小于或者等于第十四预设值。The modulus corresponding to the second curved segment is greater than or equal to the twelfth preset value and less than or equal to the thirteenth preset value, and the difference between the thirteenth preset value and the twelfth preset value Less than or equal to the fourteenth preset value.
  9. 根据权利要求8所述的方法,其特征在于,所述第五预设条件还包括:The method according to claim 8, wherein the fifth preset condition further comprises:
    在所述第二曲线段之后,所述多个模长还包括第二目标极大值、目标极小值和第三目标极大值;After the second curved segment, the plurality of die lengths further includes a second target maximum value, a target minimum value, and a third target maximum value;
    所述第二目标极大值为在所述第二曲线段之后,与所述第二曲线段相邻的极值;The second target maximum value is an extreme value adjacent to the second curved segment after the second curved segment;
    所述目标极小值为在所述第二目标极大值之后,与所述第二目标极大值相邻的极值;The target minimum value is an extreme value adjacent to the second target maximum value after the second target maximum value;
    所述第三目标极大值为所述目标极小值之后的极大值,且所述第三目标极大值为第六预设时长内所述多个模长的最大值。The third target maximum value is a maximum value after the target minimum value, and the third target maximum value is a maximum value of the plurality of modulus lengths within a sixth preset time length.
  10. 根据权利要求9所述的方法,其特征在于,所述第五预设条件还包括以下条件中的至少一个:The method according to claim 9, wherein the fifth preset condition further comprises at least one of the following conditions:
    所述目标极小值小于或者等于第十五预设值;或者,The target minimum value is less than or equal to the fifteenth preset value; or
    所述第二目标极大值对应的第二位宽小于或者等于第十六预设值,所述第二位宽为所述目标极小值对应的时刻与所述第二曲线段的结束时刻的差值;或者, The second bit width corresponding to the second target maximum value is less than or equal to a sixteenth preset value, and the second bit width is a time corresponding to the target minimum value and an end time of the second curved segment Difference; or,
    所述第三目标极大值与所述第二目标极大值的比值大于或者等于第十七预设值;或者,The ratio of the third target maximum value to the second target maximum value is greater than or equal to the seventeenth preset value; or
    所述第三目标极大值之后还包括另一个第二曲线段,所述另一个第二曲线段的起始时刻与所述第三目标极大值对应的时刻的差值小于或者等于第十八预设值。The third target maximum value further includes another second curved section, and the difference between the starting moment of the other second curved section and the moment corresponding to the third target maximum is less than or equal to the tenth Eight preset values.
  11. 根据权利要求所述8-10任一项所述的方法,其特征在于,所述第五预设条件还包括:The method according to any one of claims 8 to 10, wherein the fifth preset condition further comprises:
    所述多个模长首尾两端对应时刻的时长等于第二预设时长,所述多个模长中每两个相邻模长对应的三个坐标轴分量的差分的绝对值的和s大于或者等于第十九预设值;其中,s表示为:The duration of the corresponding moments of the first and second ends of the plurality of moduli lengths is equal to the second preset duration, and the sum s of the absolute values of the differences of the three coordinate axis components corresponding to each of the two adjacent modulo lengths is greater than Or equal to the nineteenth preset value; where s is expressed as:
    Figure PCTCN2017105163-appb-100001
    Figure PCTCN2017105163-appb-100001
    其中,(xi,yi,zi)表示所述第二预设时长内的第i个采样时刻对应的所述加速度计的测量数据包括的三个坐标轴分量,(xi+1,yi+1,zi+1)表示所述第二预设时长内的第i+1个采样时刻对应的所述加速度计的测量数据包括的三个坐标轴分量,i的取值范围为所述第二预设时长内的每个采样时刻。Wherein (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the ith sampling moment in the second preset duration, (x i+1 , y i+1 , z i+1 ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the i+1th sampling time in the second preset duration, and the value range of i is Each sampling time within the second preset duration.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述根据多个模长和至少一个预设条件确定便携设备的状态包括:The method according to any one of claims 1 to 11, wherein the determining the state of the portable device according to the plurality of modulus lengths and the at least one preset condition comprises:
    当相邻两个第二预设时长对应的所述加速度计的测量数据的平均能量的差值d大于或者等于第二十预设值时,根据多个模长和至少一个预设条件确定便携设备的状态;When the difference d of the average energy of the measurement data of the accelerometer corresponding to the two adjacent second preset durations is greater than or equal to the twentieth preset value, determining the portable according to the plurality of modulus lengths and the at least one preset condition Status of the device;
    或者,周期性地根据多个模长和至少一个预设条件确定便携设备的状态。Alternatively, the state of the portable device is determined periodically based on the plurality of die lengths and the at least one preset condition.
  13. 根据权利要求13所述的方法,其特征在于,d表示为:The method of claim 13 wherein d is:
    Figure PCTCN2017105163-appb-100002
    Figure PCTCN2017105163-appb-100002
    其中,(xi,yi,zi)表示第q+1个所述第二预设时长内,第i个采样时刻对应的所述加速度计的测量数据包括的三个坐标轴分量,(xj,yj,zj)表示第q个所述第二预设时长内,第j个采样时刻对应的所述加速度计的测量数据包括的三个坐标轴分量,q为整数,n为第二预设时长内包括的采样时刻的数量,n为正整数,i的取值范围为小于或者等于n的正整数,j的取值范围为小于或者等于n的正整数。Wherein, (x i , y i , z i ) represents the three coordinate axis components included in the measurement data of the accelerometer corresponding to the i-th sampling time in the q+1th second predetermined duration, ( x j , y j , z j ) represents the three coordinate axis components of the measurement data of the accelerometer corresponding to the jth sampling time in the qth second predetermined duration, q is an integer, n is The number of sampling moments included in the second preset duration, n is a positive integer, the range of i is a positive integer less than or equal to n, and the range of j is a positive integer less than or equal to n.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,在所述根据多个模长和至少一个预设条件确定便携设备的状态之后,所述方法还包括:The method according to any one of claims 1 to 13, wherein after the determining the state of the portable device according to the plurality of modular lengths and the at least one preset condition, the method further comprises:
    向用户提示所述便携设备的状态。The user is prompted with the status of the portable device.
  15. 一种便携设备,包括加速度计和处理器,其特征在于,所述加速度计用于采集所述加速度计的测量数据,所述加速度计的测量数据包括三个坐标轴分量;A portable device includes an accelerometer and a processor, wherein the accelerometer is configured to collect measurement data of the accelerometer, and the measurement data of the accelerometer includes three coordinate axis components;
    所述处理器用于,计算所述加速度计的测量数据对应的模长;The processor is configured to calculate a modulus length corresponding to the measurement data of the accelerometer;
    根据多个模长和至少一个预设条件确定所述便携设备的状态,所述便携设备的状态包括静止状态、足部运动状态或手部运动状态。The state of the portable device is determined based on a plurality of die lengths and at least one preset condition, the state of the portable device including a stationary state, a foot motion state, or a hand motion state.
  16. 根据权利要求15所述的便携设备,其特征在于,所述足部运动状态用于表示所述便携设备佩戴于用户的脚踝、足部或小腿部位,且所述便携设备处于运动状态;The portable device according to claim 15, wherein said foot motion state is for indicating that said portable device is worn on an ankle, a foot or a calf portion of a user, and said portable device is in a motion state;
    所述手部运动状态用于表示所述便携设备佩戴于所述用户的手部、手腕或手臂部 位,且所述便携设备处于运动状态。The hand motion state is used to indicate that the portable device is worn on the user's hand, wrist or arm And the portable device is in motion.
  17. 根据权利要求15或16所述的便携设备,其特征在于,所述处理器具体用于:The portable device according to claim 15 or 16, wherein the processor is specifically configured to:
    若所述多个模长满足第一预设条件,则确定所述便携设备的状态为静止状态;Determining that the state of the portable device is a stationary state if the plurality of die lengths meet the first preset condition;
    若所述多个模长满足第二预设条件或第三预设条件,则确定所述便携设备的状态为足部运动状态;Determining that the state of the portable device is a foot motion state if the plurality of die lengths meet the second preset condition or the third preset condition;
    若所述多个模长不满足所述第一预设条件、所述第二预设条件和所述第三预设条件,则确定所述便携设备的状态为手部运动状态。If the plurality of modulo lengths do not satisfy the first preset condition, the second preset condition, and the third preset condition, determining that the state of the portable device is a hand motion state.
  18. 根据权利要求17所述的便携设备,其特征在于,所述第一预设条件包括:The portable device according to claim 17, wherein the first preset condition comprises:
    所述多个模长包括第一曲线段,所述第一曲线段首尾两端对应时刻的时长大于或者等于第一预设时长;The plurality of die lengths includes a first curved segment, and a duration of a corresponding moment between the first and last ends of the first curved segment is greater than or equal to a first preset duration;
    所述第一曲线段对应的模长大于或者等于第一预设值且小于或者等于第二预设值;The modulus length corresponding to the first curved segment is greater than or equal to the first preset value and less than or equal to the second preset value;
    其中,所述第一预设值小于重力加速度,所述第二预设值大于重力加速度,所述第二预设值与所述第一预设值的差值小于或者等于第三预设值。The first preset value is smaller than the gravitational acceleration, the second preset value is greater than the gravitational acceleration, and the difference between the second preset value and the first preset value is less than or equal to the third preset value. .
  19. 根据权利要求17或18所述的便携设备,其特征在于,所述第二预设条件包括:The portable device according to claim 17 or 18, wherein the second preset condition comprises:
    所述多个模长包括一个第一目标极大值;或者,所述多个模长首尾两端对应时刻的时长等于第二预设时长,所述多个模长包括m个所述第一目标极大值,m大于或者等于第四预设值;The plurality of moduli lengths includes a first target maximum value; or the durations of the plurality of modulo lengths at the ends of the first and last ends are equal to a second preset duration, and the plurality of modulo lengths include m first a target maximum value, m is greater than or equal to a fourth preset value;
    其中,所述第一目标极大值满足第四预设条件,所述第四预设条件包括:The first target maximum value satisfies a fourth preset condition, and the fourth preset condition includes:
    所述第一目标极大值大于或者等于第五预设值;The first target maximum value is greater than or equal to a fifth preset value;
    在所述第一目标极大值对应的时刻所在的第三预设时长内,所述多个模长还包括第一极小值和第二极小值,所述第一极小值为在所述第一目标极大值对应的时刻之前与所述第一目标极大值相邻的极小值,所述第二极小值为在所述第一目标极大值对应的时刻之后与所述第一目标极大值相邻的极小值;And the plurality of moduli lengths further include a first minimum value and a second minimum value, where the first minimum value is in a third preset duration in which the time corresponding to the first target maximum value is located a minimum value adjacent to the first target maximum value before the time corresponding to the first target maximum value, and the second minimum value is after the time corresponding to the first target maximum value a minimum value of the first target maximum value adjacent to the first target;
    上坡落差大于或者等于第六预设值,所述上坡落差是指所述第一极小值与所述第一目标极大值之间的差值的绝对值;The upslope drop is greater than or equal to a sixth preset value, where the uphill drop is the absolute value of the difference between the first minimum value and the first target maximum value;
    下坡落差大于或者等于第七预设值,所述下坡落差是指所述第一目标极大值与所述第二极小值之间的差值;The downhill drop is greater than or equal to a seventh preset value, and the downhill drop is the difference between the first target maximum value and the second minimum value;
    所述第一目标极大值对应的第一位宽小于或者等于第八预设值,所述第一位宽为所述第二极小值对应的时刻与所述第一极小值对应的时刻的差值;The first bit width corresponding to the first target maximum value is less than or equal to an eighth preset value, and the first bit width is a time corresponding to the second minimum value corresponding to the first minimum value. The difference in time;
    所述第一目标极大值为第四预设时长内所述多个模长的最大值,所述第四预设时长大于所述第三预设时长。The first target maximum value is a maximum value of the plurality of die lengths in a fourth preset duration, and the fourth preset duration is greater than the third preset duration.
  20. 根据权利要求19所述的便携设备,其特征在于,所述第四预设条件还包括:The portable device according to claim 19, wherein the fourth preset condition further comprises:
    所述第一目标极大值对应的半位宽小于或者等于第九预设值;The half-bit width corresponding to the first target maximum value is less than or equal to a ninth preset value;
    其中,当所述上坡落差小于或者等于所述下坡落差时,所述半位宽为第一时刻和第二时刻之间的差值的绝对值,所述第一时刻和所述第二时刻为在所述第三预设时长内,所述第一极小值与所述上坡落差的一半的和表示的模长对应的两个时刻,所述第一时刻和所述第二时刻在所述第一极小值对应的时刻和所述第二极小值对应的时刻之间; Wherein, when the upslope drop is less than or equal to the downslope drop, the half width is an absolute value of a difference between the first time and the second time, the first time and the second time The moment is two moments corresponding to a mode length represented by a sum of a half of the uphill drop within the third preset duration, the first moment and the second moment Between the time corresponding to the first minimum value and the time corresponding to the second minimum value;
    当所述上坡落差大于所述下坡落差时,所述半位宽为第三时刻和第四时刻之间的差值的绝对值,所述第三时刻和所述第四时刻为在所述第三预设时长内,所述第二极小值与所述下坡落差的一半的和表示的模长对应的两个时刻,所述第三时刻和所述第四时刻在所述第一极小值对应的时刻和所述第二极小值对应的时刻之间。When the upslope drop is greater than the downslope drop, the half width is an absolute value of a difference between the third time and the fourth time, and the third time and the fourth time are In the third preset duration, the second minimum value corresponds to two moments corresponding to the mode length indicated by the sum of the half of the downhill fall, and the third moment and the fourth moment are in the A time corresponding to a minimum value and a time corresponding to the second minimum value.
  21. 根据权利要求19或20所述的便携设备,其特征在于,所述第四预设条件还包括:The portable device according to claim 19 or 20, wherein the fourth preset condition further comprises:
    所述上坡落差和所述下坡落差的和与所述第一目标极大值对应的第一位宽的比值大于或者等于第十预设值。The ratio of the sum of the uphill drop and the downhill drop to the first bit width corresponding to the first target maximum value is greater than or equal to the tenth preset value.
  22. 根据权利要求17-21任一项所述的便携设备,其特征在于,所述第三预设条件包括:The portable device according to any one of claims 17 to 21, wherein the third preset condition comprises:
    所述多个模长包括一个第二曲线段;或者,所述多个模长首尾两端对应时刻的时长等于第二预设时长,所述多个模长包括k个所述第二曲线段,k大于或者等于第十一预设值;The plurality of die lengths includes a second curved segment; or, the plurality of die lengths of the first and second ends correspond to a second preset duration, the plurality of die lengths including k second curved segments , k is greater than or equal to the eleventh preset value;
    其中,所述第二曲线段满足第五预设条件,所述第五预设条件包括:The second curve segment satisfies a fifth preset condition, and the fifth preset condition includes:
    所述第二曲线段首尾两端对应时刻的时长大于或者等于第五预设时长且小于第一预设时长;The duration of the time corresponding to the first and last ends of the second curved section is greater than or equal to the fifth preset duration and less than the first preset duration;
    所述第二曲线段对应的模长大于或者等于第十二预设值且小于或者等于第十三预设值,所述第十三预设值与所述第十二预设值的差值小于或者等于第十四预设值。The modulus corresponding to the second curved segment is greater than or equal to the twelfth preset value and less than or equal to the thirteenth preset value, and the difference between the thirteenth preset value and the twelfth preset value Less than or equal to the fourteenth preset value.
  23. 根据权利要求22所述的便携设备,其特征在于,所述第五预设条件还包括:The portable device according to claim 22, wherein the fifth preset condition further comprises:
    在所述第二曲线段之后,所述多个模长还包括第二目标极大值、目标极小值和第三目标极大值;After the second curved segment, the plurality of die lengths further includes a second target maximum value, a target minimum value, and a third target maximum value;
    所述第二目标极大值为在所述第二曲线段之后,与所述第二曲线段相邻的极值;The second target maximum value is an extreme value adjacent to the second curved segment after the second curved segment;
    所述目标极小值为在所述第二目标极大值之后,与所述第二目标极大值相邻的极值;The target minimum value is an extreme value adjacent to the second target maximum value after the second target maximum value;
    所述第三目标极大值为所述目标极小值之后的极大值,且所述第三目标极大值为第六预设时长内所述多个模长的最大值。The third target maximum value is a maximum value after the target minimum value, and the third target maximum value is a maximum value of the plurality of modulus lengths within a sixth preset time length.
  24. 根据权利要求23所述的便携设备,其特征在于,所述第五预设条件还包括以下条件中的至少一个:The portable device according to claim 23, wherein the fifth preset condition further comprises at least one of the following conditions:
    所述目标极小值小于或者等于第十五预设值;或者,The target minimum value is less than or equal to the fifteenth preset value; or
    所述第二目标极大值对应的第二位宽小于或者等于第十六预设值,所述第二位宽为所述目标极小值对应的时刻与所述第二曲线段的结束时刻的差值;或者,The second bit width corresponding to the second target maximum value is less than or equal to a sixteenth preset value, and the second bit width is a time corresponding to the target minimum value and an end time of the second curved segment Difference; or,
    所述第三目标极大值与所述第二目标极大值的比值大于或者等于第十七预设值;或者,The ratio of the third target maximum value to the second target maximum value is greater than or equal to the seventeenth preset value; or
    所述第三目标极大值之后还包括另一个第二曲线段,所述另一个第二曲线段的起始时刻与所述第三目标极大值对应的时刻的差值小于或者等于第十八预设值。The third target maximum value further includes another second curved section, and the difference between the starting moment of the other second curved section and the moment corresponding to the third target maximum is less than or equal to the tenth Eight preset values.
  25. 根据权利要求所述22-24任一项所述的便携设备,其特征在于,所述第五预设条件还包括:The portable device according to any one of claims 22 to 24, wherein the fifth preset condition further comprises:
    所述多个模长首尾两端对应时刻的时长等于第二预设时长,所述多个模长中每两个相邻模长对应的三个坐标轴分量的差分的绝对值的和s大于或者等于第十九预设值; 其中,s表示为:The duration of the corresponding moments of the first and second ends of the plurality of moduli lengths is equal to the second preset duration, and the sum s of the absolute values of the differences of the three coordinate axis components corresponding to each of the two adjacent modulo lengths is greater than Or equal to the nineteenth preset value; Where s is expressed as:
    Figure PCTCN2017105163-appb-100003
    Figure PCTCN2017105163-appb-100003
    其中,(xi,yi,zi)表示所述第二预设时长内的第i个采样时刻对应的所述加速度计的测量数据包括的三个坐标轴分量,(xi+1,yi+1,zi+1)表示所述第二预设时长内的第i+1个采样时刻对应的所述加速度计的测量数据包括的三个坐标轴分量,i的取值范围为所述第二预设时长内的每个采样时刻。Wherein (x i , y i , z i ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the ith sampling moment in the second preset duration, (x i+1 , y i+1 , z i+1 ) represents three coordinate axis components included in the measurement data of the accelerometer corresponding to the i+1th sampling time in the second preset duration, and the value range of i is Each sampling time within the second preset duration.
  26. 根据权利要求15-25任一项所述的便携设备,其特征在于,所述处理器具体用于:The portable device according to any one of claims 15 to 25, wherein the processor is specifically configured to:
    当相邻两个第二预设时长对应的所述加速度计的测量数据的平均能量的差值d大于或者等于第二十预设值时,根据多个模长和至少一个预设条件确定便携设备的状态;When the difference d of the average energy of the measurement data of the accelerometer corresponding to the two adjacent second preset durations is greater than or equal to the twentieth preset value, determining the portable according to the plurality of modulus lengths and the at least one preset condition Status of the device;
    或者,周期性地根据多个模长和至少一个预设条件确定便携设备的状态。Alternatively, the state of the portable device is determined periodically based on the plurality of die lengths and the at least one preset condition.
  27. 根据权利要求15-26任一项所述的便携设备,其特征在于,所述处理器还用于:The portable device according to any one of claims 15 to 26, wherein the processor is further configured to:
    向用户提示所述便携设备的状态。The user is prompted with the status of the portable device.
  28. 一种便携设备,其特征在于,包括传感器、处理器和存储器,所述传感器包括陀螺仪和加速度计,所述存储器用于存储指令,所述处理器用于执行所述指令以使得所述便携设备执行如权利要求1-14任一项所述的状态确定方法。A portable device, comprising: a sensor, a processor and a memory, the sensor comprising a gyroscope and an accelerometer, the memory for storing instructions, the processor for executing the instructions to cause the portable device The state determining method according to any one of claims 1-14 is performed.
  29. 一种计算机可读存储介质,其特征在于,包括指令,当其在便携设备上运行时,使得所述便携设备执行如权利要求1-14任一项所述的状态确定方法。A computer readable storage medium comprising instructions that, when run on a portable device, cause the portable device to perform the state determining method of any of claims 1-14.
  30. 一种包含指令的计算机程序产品,其特征在于,当其在便携设备上运行时,使得所述便携设备执行如权利要求1-14任一项所述的状态确定方法。A computer program product comprising instructions, characterized in that, when it is run on a portable device, the portable device is caused to perform the state determining method according to any one of claims 1-14.
  31. 一种设备,其特征在于,所述设备以芯片的产品形态存在,所述设备的结构中包括处理器和存储器,所述存储器用于与所述处理器耦合,用于保存所述设备的程序指令和数据,所述处理器用于执行所述存储器中存储的程序指令,使得所述设备执行如权利要求1-14任一项所述的状态确定方法中数据处理的功能。 An apparatus, characterized in that the apparatus exists in the form of a product of a chip, the structure of the apparatus comprising a processor and a memory, the memory being for coupling with the processor, and a program for saving the device And instructions for executing the program instructions stored in the memory such that the apparatus performs the function of data processing in the state determining method according to any one of claims 1-14.
PCT/CN2017/105163 2017-09-30 2017-09-30 State determination method and portable device WO2019061543A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780082038.XA CN110168547B (en) 2017-09-30 2017-09-30 State determination method and portable device
PCT/CN2017/105163 WO2019061543A1 (en) 2017-09-30 2017-09-30 State determination method and portable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105163 WO2019061543A1 (en) 2017-09-30 2017-09-30 State determination method and portable device

Publications (1)

Publication Number Publication Date
WO2019061543A1 true WO2019061543A1 (en) 2019-04-04

Family

ID=65903438

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105163 WO2019061543A1 (en) 2017-09-30 2017-09-30 State determination method and portable device

Country Status (2)

Country Link
CN (1) CN110168547B (en)
WO (1) WO2019061543A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220341965A1 (en) * 2021-04-22 2022-10-27 Asustek Computer Inc. Electronic device with function of recording falling and hitting events and falling and hitting event recording method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130085711A1 (en) * 2011-09-30 2013-04-04 Apple Inc. Techniques for improved pedometer readings
US20140122012A1 (en) * 2012-11-01 2014-05-01 Hti Ip, Llc Method and system for determining whether to reset a height in a height determining device based on the occurrence of steps
CN104007822A (en) * 2014-05-30 2014-08-27 中山市永衡互联科技有限公司 Large database based motion recognition method and device
CN104990562A (en) * 2015-06-29 2015-10-21 合肥工业大学 Step counting method based on autocorrecting computing
CN105597296A (en) * 2016-03-07 2016-05-25 上海小莫网络科技有限公司 Equipment and method for detecting movement

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6136806B2 (en) * 2013-09-20 2017-05-31 カシオ計算機株式会社 Physical information acquisition device, physical information acquisition method, physical information acquisition program
CN103954295B (en) * 2014-05-04 2016-09-28 中国科学院计算技术研究所 A kind of step-recording method based on acceleration transducer
CN103942456B (en) * 2014-05-08 2017-05-10 北京睿仁医疗科技有限公司 Measuring method and device capable of automatically judging wear position
JP6382775B2 (en) * 2015-08-17 2018-08-29 日本電信電話株式会社 Step counting device, step counting method, and program
WO2017065089A1 (en) * 2015-10-15 2017-04-20 アルプス電気株式会社 Step-count measurement device and step count measurement program
CN106037749A (en) * 2016-05-18 2016-10-26 武汉大学 Old people falling monitoring method based on smart mobile phone and wearable device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130085711A1 (en) * 2011-09-30 2013-04-04 Apple Inc. Techniques for improved pedometer readings
US20140122012A1 (en) * 2012-11-01 2014-05-01 Hti Ip, Llc Method and system for determining whether to reset a height in a height determining device based on the occurrence of steps
CN104007822A (en) * 2014-05-30 2014-08-27 中山市永衡互联科技有限公司 Large database based motion recognition method and device
CN104990562A (en) * 2015-06-29 2015-10-21 合肥工业大学 Step counting method based on autocorrecting computing
CN105597296A (en) * 2016-03-07 2016-05-25 上海小莫网络科技有限公司 Equipment and method for detecting movement

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220341965A1 (en) * 2021-04-22 2022-10-27 Asustek Computer Inc. Electronic device with function of recording falling and hitting events and falling and hitting event recording method thereof

Also Published As

Publication number Publication date
CN110168547A (en) 2019-08-23
CN110168547B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
US11861073B2 (en) Gesture recognition
US11281262B2 (en) Detecting a gesture made by a person wearing a wearable electronic device
CN110036259B (en) Calculation method and equipment of attitude matrix
KR20170019081A (en) Portable apparatus and method for displaying a screen
JP6325384B2 (en) Mobile terminal, training management program, and training management method
EP4122559A1 (en) Cycling detection method, electronic device, and computer readable storage medium
US20190076063A1 (en) Systems and methods of ski activity detection
CN113906371B (en) Electronic device for providing exercise information according to exercise environment and method for operating the same
CN113457106B (en) Running gesture detection method and wearable device
WO2019061543A1 (en) State determination method and portable device
CN114532992B (en) Method, device and system for detecting nap state and computer readable storage medium
CN106055223B (en) Electronic device and its display control method
CN114637452A (en) Page control method and wearable device
US20120203496A1 (en) Acceleration detecting device, electronic apparatus, pedometer, and program
CN108848247A (en) Terminal pattern is from selection method, bendable pack terminal and computer readable storage medium
CN206524180U (en) A kind of multifunctional intellectual musical instrument
EP3130996B1 (en) Electronic apparatus and displaying method thereof
WO2024001828A1 (en) Wrist-worn-device control method and related system, and storage medium
CN115328360A (en) Medal management method, electronic device and computer storage medium
CN116893765A (en) Display control method, wearable device and readable medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17927643

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17927643

Country of ref document: EP

Kind code of ref document: A1