Method and apparatus for detecting state of wearable device, wearable device and medium
By acquiring dynamic position and pressure data of wearable devices, the wearing status of the neck and shoulder massager is detected and corrected, solving the problem of incorrect user wearing, ensuring massage effect and safety, and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN CHENBEI TECH CO LTD
- Filing Date
- 2024-11-29
- Publication Date
- 2026-05-29
AI Technical Summary
Users may wear the neck and shoulder massager incorrectly, causing the actual massage trajectory to differ from the theoretical trajectory, thus failing to achieve the product's intended function and even causing skin pain.
By acquiring dynamic position data and pressure data of the wearable device, the wear status of the device is determined, including inverted or tilted states, and a prompt message is issued when an error is detected.
It improves the accuracy of wearing wearable devices, ensures the massage effect, avoids discomfort or pain for users during the massage, enhances the safety and comfort of use, and optimizes the intelligence level of the product.
Smart Images

Figure CN122108236A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of device testing, and in particular to a method, apparatus, wearable device, and readable storage medium for detecting the status of a wearable device. Background Technology
[0002] Currently, with the increasing number of people who sit for long periods and the growing awareness of health, the demand for neck and shoulder massagers is increasing. However, users may not understand the product and may wear it incorrectly. Incorrect wearing can cause the actual massage trajectory to deviate from the theoretical trajectory, preventing the product from achieving its intended function, resulting in poor massage effect, or even causing skin pain due to incorrect massage and pressure. Summary of the Invention
[0003] In view of this, this application provides a method, apparatus, wearable device, and readable storage medium for detecting the status of a wearable device, which solves the problem of incorrect wearing by users when using a shoulder and neck massager in related technologies.
[0004] In a first aspect, embodiments of this application provide a method for detecting the state of a wearable device, the method comprising:
[0005] Acquire target data from a wearable device, wherein the target data includes at least one of dynamic position data and pressure intensity data;
[0006] Based on the target data, the wearing state of the wearable device when it is worn is determined, including an inverted state or a tilted state.
[0007] Secondly, embodiments of this application provide a device for detecting the state of a wearable device, the device comprising:
[0008] A data acquisition module is used to acquire target data from a wearable device, wherein the target data includes at least one of dynamic position data and pressure intensity data;
[0009] The state determination module is used to determine the wearing state of the wearable device when it is being worn, based on the target data. The wearing state includes an inverted state or a tilted state.
[0010] Thirdly, embodiments of this application provide a wearable device, which includes a processor and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the method as described in the first aspect.
[0011] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described in the first aspect.
[0012] The wearable device status detection method, apparatus, wearable device, and readable storage medium provided in this application determine the wearing status of the wearable device when a user wears it, based on the wearable device's dynamic position data and / or pressure data. Real-time monitoring of the wearable device's status helps improve the accuracy of wearing the device, thereby ensuring the massage effect, avoiding user discomfort or pain during the massage process, improving safety, and guaranteeing user comfort and satisfaction. Furthermore, using the wearable device's own data for automatic wear status detection optimizes product design and functionality, enhancing the product's intelligence level.
[0013] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0014] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0015] Figure 1 One of the flowcharts of a method for detecting the state of a wearable device according to an embodiment of this application is shown;
[0016] Figure 2 This illustration shows a user correctly wearing the wearable device according to an embodiment of this application;
[0017] Figure 3 A second schematic flowchart of a method for detecting the state of a wearable device according to an embodiment of this application is shown.
[0018] Figure 4 A schematic diagram of a portion of the structure of a wearable device according to an embodiment of this application is shown;
[0019] Figure 5 A structural block diagram of a wearable device status detection device according to an embodiment of this application is shown. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0021] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0022] The following description, in conjunction with the accompanying drawings, details the wearable device status detection method, apparatus, wearable device, and readable storage medium provided in this application through specific embodiments and application scenarios. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0023] This application provides a method for detecting the status of a wearable device, wherein the wearable device can be a massager, which can be a neck and shoulder massager with working modes such as neck and shoulder massage, leg massage, back massage, waist massage, and arm massage.
[0024] Figure 1 This illustration shows one of the flowcharts of a wearable device state detection method according to an embodiment of this application, such as... Figure 1 As shown, the method includes:
[0025] Step 101: Obtain target data from the wearable device, wherein the target data includes at least one of dynamic position data and pressure intensity data.
[0026] In this step, target data of the wearable device is acquired. The target data of the wearable device may include at least one of dynamic position data and pressure data. The dynamic position data may be collected by the sensors of the wearable device and may include the tilt angle data, acceleration data, rotation rate, etc. of the sensors. The pressure data may include the motor current of the wearable device, pressure data of the pressure sensor, etc.
[0027] Step 102: Based on the target data, determine the wearing state of the wearable device when it is being worn. The wearing state includes an inverted state or a tilted state.
[0028] In this step, based on dynamic position data and / or pressure data, it is determined whether the wearable device is in an inverted or tilted state when being worn.
[0029] In this embodiment, Figure 2 This illustration shows a user correctly wearing the wearable device according to an embodiment of this application. When the user uses the shoulder and neck massage mode of the wearable device 200, the user's correct wearing state of the wearable device 200 is as follows: Figure 2 As shown, the inverted state refers to the wearable device being upside down when the user wears it, while the tilted state refers to the wearable device being deviated from its correct position relative to the user's shoulders and neck when the user wears it.
[0030] This application embodiment can monitor the wearing status of wearable devices in real time, which helps improve the accuracy of wearing the wearable devices, thereby ensuring the massage effect, avoiding discomfort or pain for the user during the massage, improving safety, and ensuring user comfort and satisfaction. Furthermore, using the wearable device's own data for automatic detection of the wearing status optimizes the product's design and functionality, and improves the product's level of intelligence.
[0031] As a refinement and extension of the above embodiments, this invention provides another method for detecting the state of a wearable device. Figure 3 This is a second schematic flowchart illustrating a method for detecting the state of a wearable device according to an embodiment of this application. Figure 3 As shown, the method includes:
[0032] Step 301: Obtain target data from the wearable device, wherein the target data includes at least one of dynamic position data and pressure intensity data.
[0033] Step 302: Based on the target data, determine the wearing state of the wearable device when it is being worn. The wearing state includes an inverted state or a tilted state.
[0034] Step 303: When it is determined that the wearable device is in an inverted or tilted state while being worn, a prompt message is issued.
[0035] Steps 301 and 302 are the same as or similar to steps 101 and 102 in the above embodiments, and will not be described again here.
[0036] In this embodiment, when it is determined that the wearable device is in an inverted or tilted state while being worn, a prompt message is issued. For example, a prompt device installed on the wearable device can provide prompts through lights, sounds, etc., or the wearable device can send a prompt message to a terminal device through its communication device. The terminal device can be the terminal device of the user currently using the wearable device, or the terminal device of the user's associated user.
[0037] In this embodiment, the real-time monitoring function provides users with immediate feedback on the wearing status. When the wearing status is incorrect, timely reminders enable users to quickly adjust the wearing status of the wearable device, ensuring the massage effect and safety of use.
[0038] The steps for obtaining target data from wearable devices include: obtaining the working mode of the wearable device; if the working mode is the target working mode, then obtaining the target data of the wearable device.
[0039] In this embodiment, the wearable device includes multiple working modes such as shoulder and neck massage, leg massage, back massage, waist massage, and arm massage. In some working modes, such as leg and arm massage, the wearable device operates in a tilted state, meaning it operates at a certain angle. The tilt angle refers to the angle between the wearable device and the horizontal direction. Therefore, when detecting the inverted or tilted state of the wearable device, it is necessary to first confirm the device's working mode. The inverted or tilted state detection will only be performed when the wearable device is in a target working mode with no or very small tilt angle, such as shoulder and neck massage, back massage, or waist massage, thus avoiding false detections and false alerts.
[0040] In one embodiment, such as Figure 2 As shown, the wearable device 200 includes a massage unit 201, which is positioned directly over the user's neck and shoulder area when the user uses the neck and shoulder massage mode of the wearable device 200. Figure 4 As shown, a first sensor 2011 is provided on the main control PCBA (Printed Circuit Board Assembly) board of the massage unit. The first sensor 2011 can collect dynamic position data of the massage unit.
[0041] Based on the target data, determine whether the wearable device is in an inverted state when worn, including: determining whether the wearable device is in an inverted state when worn based on the first dynamic position data collected by the first sensor.
[0042] In this embodiment, first dynamic position data collected by the first sensor is obtained. The first dynamic position data reflects the position and angle of the first sensor, or the massage part. Then, based on the first dynamic position data, the placement position of the massage part when the user wears the wearable device is determined, thereby determining whether the wearable device is in an inverted state when worn.
[0043] The dynamic position data collected by the sensor can reflect the position and angle of the wearable device, enabling accurate detection of the wear status of the wearable device, and ensuring real-time performance, thus improving detection efficiency.
[0044] In one embodiment, such as Figure 2 As shown, the wearable device 200 also includes a wearing part 202, and the wearable device 200 can have one, two, or more parts. Figure 2 The wearing part shown has two parts. For example... Figure 4 As shown, a second sensor 2021 is installed on the operation PCBA board of the wearing unit, which can collect dynamic position data of the wearing unit. The operation PCBA board of the wearing unit can also be equipped with control buttons, including a power button, a pause button, a gear button, and other function buttons.
[0045] It should be noted that if the wearable device includes two or more wearing parts, one of them can be equipped with a second sensor, or multiple parts can be equipped with a second sensor; that is, the number of second sensors is not limited to one.
[0046] Based on the target data, determine whether the wearable device is in an inverted state when worn, including:
[0047] Based on the first dynamic position data collected by the first sensor, it is determined whether the wearable device is in an inverted state when worn, and a first determination result is obtained; and...
[0048] Based on the second dynamic position data collected by the second sensor, it is determined whether the wearable device is in an inverted state when it is worn, and a second judgment result is obtained.
[0049] If both the first and second judgment results indicate that the wearable device is in an inverted state, then it is determined that the wearable device is in an inverted state when being worn.
[0050] In this embodiment, first dynamic position data collected by a first sensor is acquired, reflecting the position and angle of the first sensor, or the massage part, etc.; and second dynamic position data collected by a second sensor is acquired, reflecting the position and angle of the second sensor, or the wearing part, etc. Based on the first dynamic position data, the placement position of the massage part when the user wears the wearable device can be determined, resulting in a first determination result; and based on the second dynamic position data, the placement position of the wearing part when the user wears the wearable device can be determined, resulting in a second determination result.
[0051] If both the first and second judgment results indicate that the wearable device is in an inverted state, it means that both the massage part and the wearing part are inverted, and therefore it is determined that the wearable device is indeed in an inverted state when being worn.
[0052] In this embodiment, the dynamic position data collected by the sensor can reflect the position and angle of the wearable device, enabling accurate detection of the wear status of the wearable device, ensuring real-time performance, and improving detection efficiency. By detecting both the massage part and the wearing part, the accuracy of the detection results for the inverted state of the wearable device is improved.
[0053] The above-mentioned step of determining whether the wearable device is in an inverted state when being worn, based on the first dynamic position data collected by the first sensor, includes:
[0054] The first real-time tilt angle of the massage unit in the Z direction is determined based on the first dynamic position data, and the first real-time tilt angle is compared with the first calibrated tilt angle. The first calibrated tilt angle is the tilt angle of the massage unit in the Z direction when the wearable device is worn correctly. The Z direction is the vertical direction when the wearable device is worn.
[0055] If the relationship between the first real-time tilt angle and the first calibrated tilt angle meets the first preset condition, then the wearable device is determined to be in an inverted state.
[0056] The first preset condition may include: (360° - preset inversion angle threshold) - first calibration tilt angle < first real-time tilt angle ≤ 360° - first calibration tilt angle, or, first real-time tilt angle < preset inversion angle threshold - first calibration tilt angle. The preset inversion angle threshold is a boundary or critical value of the angle used to determine the inverted state. It can determine at what value the real-time tilt angle is considered to be in an inverted state. When the real-time tilt angle is within the range of ± preset inversion angle threshold, it is considered to be inverted.
[0057] In this embodiment, the tilt angle of the wearable device when it is correctly worn in the target working mode is pre-calibrated, such as... Figure 4As shown, the calibrated inclination angle Z1 of the first sensor in the Z direction, that is, the first calibrated inclination angle, the calibrated inclination angle X1 in the X direction, and the calibrated inclination angle Y1 in the Y direction are obtained. The calibrated inclination angle Z2 of the second sensor in the Z direction, the calibrated inclination angle X2 in the X direction, and the calibrated inclination angle Y2 in the Y direction can also be obtained. Here, the Z direction is the vertical direction when the wearable device is worn, and the X direction and the Y direction are the horizontal directions when the wearable device is worn.
[0058] In this application, the first sensor can be the first acceleration sensor, and the dynamic position data includes the first acceleration data collected by the first sensor; or, the first sensor can be the first inclination sensor, and the dynamic position data includes the first inclination data collected by the first inclination sensor.
[0059] According to the first acceleration data or the first inclination data, determine the real-time inclination angle of the first sensor, or the massage part, including the real-time inclination angle Z3 in the Z direction, that is, the first real-time inclination angle, the real-time inclination angle X3 in the X direction, and the real-time inclination angle Y3 in the Y direction.
[0060] It should be noted that the inclination angle of the first sensor in the Z direction refers to the angle between the first sensor, or the massage part, and the gravity direction, the inclination angle in the X direction refers to the angle between the first sensor, or the massage part, and the horizontal X direction, and the inclination angle in the Y direction refers to the angle between the first sensor, or the massage part, and the horizontal Y direction.
[0061] The real-time inclination angle Z3 of the first sensor in the Z direction can reflect whether the wearable device is inverted. Assume that the first real-time inclination angle of the current Z axis is Z3, Z3 + Z1 = 360°, Z3 = 360° - Z1. If the first real-time inclination angle is considered to be inverted within the preset inversion angle threshold, then the first real-time inclination angle satisfies: (360° - preset inversion angle threshold) - first calibrated inclination angle < first real-time inclination angle ≤ 360° - first calibrated inclination angle, or when the first real-time inclination angle < preset inversion angle threshold - first calibrated inclination angle, it is determined that the wearable device is in an inverted state.
[0062] In one embodiment, the preset inversion angle threshold can be ±90°, then when 270° - Z1 < Z3 ≤ 360° - Z1, or Z3 < 90° - Z1, it is determined that the wearable device is inverted, and the preset inversion angle threshold can also be adjusted according to the actual application situation.
[0063] The embodiment of this application can determine the relationship between the real-time inclination angle and the calibrated inclination angle according to the first dynamic position data collected by the first sensor, and accurately detect the inverted state of the wearable device.
[0064] The above-mentioned step of determining whether the wearable device is in an inverted state when being worn, based on the second dynamic position data collected by the second sensor, includes:
[0065] Based on the second dynamic position data and the first dynamic position data, the real-time relative tilt angle difference between the wearing part and the massage part is determined, and the real-time relative tilt angle difference is compared with the calibrated relative tilt angle difference. The calibrated relative tilt angle difference is the relative tilt angle difference between the wearing part and the massage part when the wearable device is worn correctly.
[0066] If the relationship between the real-time relative tilt angle difference and the calibrated relative tilt angle difference meets the second preset condition, then the wearable device is determined to be in an inverted state.
[0067] The second preset condition includes: a preset error threshold ≤ |△Z1-△Z2|, a preset error threshold ≤ |△X1-△X2|, and a preset error threshold ≤ |△Y1-△Y2|, where △Z1 is the first calibrated relative tilt angle difference in the Z direction, △Z2 is the first real-time relative tilt angle difference in the Z direction, △X1 is the second calibrated relative tilt angle difference in the X direction, △X2 is the second real-time relative tilt angle difference in the X direction, △Y1 is the third calibrated relative tilt angle difference in the Y direction, and △Y2 is the third real-time relative tilt angle difference in the Y direction. The preset error threshold is a boundary or critical value for judging the relative tilt angle difference in the inverted state, which can determine at what value the relative tilt angle difference is used to determine that the wearable device is in an inverted state.
[0068] In this embodiment, the first sensor can be a first acceleration sensor, and the second sensor can be a second acceleration sensor. Then the dynamic position data includes first acceleration data collected by the first sensor and second acceleration data collected by the second sensor. Alternatively, the first sensor can be a first tilt sensor, and the second sensor can be a second tilt sensor. Then the dynamic position data includes first tilt data collected by the first tilt sensor and second tilt data collected by the second tilt sensor.
[0069] The real-time tilt angle of the wearing part is determined based on the second acceleration data or the second tilt angle data, and the real-time tilt angle of the massage part is determined based on the first acceleration data or the first tilt angle data. The real-time relative tilt angle difference between the wearing part and the massage part is calculated based on the two real-time tilt angles. Specifically, the first sensor, or the real-time tilt angle of the massage part, includes the real-time tilt angle Z3 in the Z direction (i.e., the first real-time tilt angle), the real-time tilt angle X3 in the X direction, and the real-time tilt angle Y3 in the Y direction. The second sensor, or the real-time tilt angle of the wearing part, includes the real-time tilt angle Z4 in the Z direction, the real-time tilt angle X4 in the X direction, and the real-time tilt angle Y4 in the Y direction.
[0070] It should be noted that the tilt angle of the second sensor in the Z direction refers to the angle between the second sensor, or the wearing part, and the direction of gravity; the tilt angle in the X direction refers to the angle between the second sensor, or the wearing part, and the horizontal X direction; and the tilt angle in the Y direction refers to the angle between the second sensor, or the wearing part, and the horizontal Y direction.
[0071] The first real-time relative tilt angle difference between the wearing part and the massage part in the Z direction is △Z2=|Z3-Z4|, the second real-time relative tilt angle difference in the X direction is △X2=|X3-X4|, and the third real-time relative tilt angle difference in the Y direction is △Y2=|Y3-Y4|.
[0072] Then, the real-time relative tilt angle difference is compared with the calibrated relative tilt angle difference, where the calibrated relative tilt angle difference is the difference between the calibrated tilt angle of the wearing part and the calibrated tilt angle of the massage part when the wearable device is correctly worn in the target working mode. The first calibrated relative tilt angle difference between the wearing part and the massage part in the Z direction is △Z1, △Z1=|Z1-Z2|; the second calibrated relative tilt angle difference between the wearing part and the massage part in the X direction is △X1, △X1=|X1-X2|; and the third calibrated relative tilt angle difference between the wearing part and the massage part in the Y direction is △Y1, △Y1=|Y1-Y2|.
[0073] If the preset error threshold is ≤|△Z1-△Z2|, ≤|△X1-△X2|, and ≤|△Y1-△Y2|, then the wearable device is determined to be in an inverted state. The preset error threshold can be 45°. Therefore, if 45°≤|△Z1-△Z2|, ≤|△X1-△X2|, and ≤|△Y1-△Y2|, the wearable device is determined to be in an inverted state. The preset error threshold can also be adjusted according to the actual application.
[0074] In this embodiment, the real-time tilt angle of the first sensor, or massage part, is determined based on the first dynamic position data collected by the first sensor, and the real-time tilt angle of the second sensor, or wearing part, is determined based on the second dynamic position data collected by the second sensor. Then, the real-time relative tilt angle difference between the two in each direction is calculated. Based on the relationship between the real-time relative tilt angle difference and the calibrated relative tilt angle difference, the inverted state of the wearable device is accurately detected.
[0075] In one embodiment, the massage unit of the wearable device includes a massage element and a motor for driving the massage element to move, and the pressure data includes motor current. In some embodiments, the massage unit of the wearable device further includes a pressure sensor for detecting the force applied to the massage element, and the pressure data also includes pressure data.
[0076] Based on the target data, determine whether the wearable device is tilted when worn, including: determining whether the wearable device is tilted when worn based on motor current and / or pressure data.
[0077] In this embodiment, the current of the motor driving the massage element and / or the pressure data collected by the pressure sensor of the massage part are acquired. The motor current and pressure data can indicate the pressure applied by the massage part of the wearable device to the user's shoulders and neck. Based on the current of the motor driving the massage element and / or the pressure data collected by the pressure sensor of the massage part, it can be determined whether the wearable device is in a tilted state when worn.
[0078] The current of the motor driving the massage component and / or the pressure data collected by the pressure sensor of the massage part can reflect the pressure of the massage part of the wearable device on the user's shoulders and neck, enabling accurate detection of the wear status of the wearable device, ensuring real-time performance, and improving detection efficiency.
[0079] In one embodiment, determining whether the wearable device is tilted when worn, based on target data, includes:
[0080] Based on motor current and / or pressure data, a third judgment result is obtained by determining whether the wearable device is tilted during wear; and...
[0081] Based on dynamic position data, it is determined whether the wearable device is tilted when worn, resulting in the fourth judgment result.
[0082] If both the third and fourth judgment results indicate that the wearable device is in a tilted state, then it is determined that the wearable device is in a tilted state when being worn.
[0083] In this embodiment, motor current and / or pressure data of the massage unit are acquired, as well as dynamic position data of the wearable device's sensors are acquired. Based on the motor current and / or pressure data, the pressure applied by the massage unit when the user wears the wearable device can be determined, resulting in a third determination of whether the wearable device is in a tilted state when worn. Based on the dynamic position data, i.e., the movement of the wearable device, a fourth determination of whether the user is in a tilted state when wearing the wearable device can also be determined.
[0084] If both the third and fourth judgment results indicate that the wearable device is tilted, then it is determined that the wearable device is indeed tilted when worn.
[0085] In the embodiments of the present application, the tilt state of the wearable device is detected jointly by the motor current and / or pressure data of the massage part and the dynamic position data of the sensor, which improves the accuracy of the detection result of the tilt state of the wearable device.
[0086] In the embodiments of the present application, the number of massage parts of the wearable device is at least two, and a motor is provided on each massage part. In one embodiment, the massage parts of the wearable device include a first massage part and a second massage part, and the motors include a first motor provided on the first massage part and a second motor provided on the second massage part.
[0087] Judging whether the wearable device is in a tilted state when worn according to the motor current includes:
[0088] If the magnitude relationship between the first current of the first motor, the second current of the second motor, and the preset current threshold satisfies the third preset condition, it is determined that the wearable device is in a tilted state.
[0089] Among them, the preset current threshold includes a preset current difference threshold, a preset no-load current threshold, and a preset wearing current threshold. The third preset condition includes: the absolute value of the difference between the first current and the second current is greater than the preset current difference threshold. When the absolute value of the difference between the first current and the second current is greater than the preset current difference threshold, it indicates that the pressing forces on the left and right sides are different. The third preset condition may also include: the first current is greater than the preset no-load current threshold, and the second current is greater than the preset no-load current threshold, and the sum of the first current and the second current is greater than the preset wearing current threshold. When the first current is greater than the preset no-load current threshold, and the second current is greater than the preset no-load current threshold, and the sum of the first current and the second current is greater than the preset wearing current threshold, it indicates that the wearable device is worn normally.
[0090] In this embodiment, the massage parts of the wearable device include a first massage part and a second massage part. The first massage part may be the left massage part, and the second massage part may be the right massage part. The motors include a first motor provided on the first massage part and a second motor provided on the second massage part.
[0091] The first current of the first motor is A L , and the second current of the second motor is A R , and the total current A = A L + A R , the preset no-load current threshold is A1, the preset wearing current threshold is A2, and the preset current difference threshold is A0. If A < A1, it indicates that the current reaches the preset no-load current threshold, and it is determined that the user has not used it. If it is accidentally touched and turned on, it will automatically turn off after a certain time. If A1 < A < A2, it is determined that the wearable device is not working in the target working mode. A2 < A, A1 < A L A1 < A RIf the facial expression motor current reaches the preset no-load current threshold, it is determined that the user has worn the device. If the device is worn correctly, then A... L ≈A R Therefore, when |A L -A R If the pressure applied to the left and right sides is different, the wearable device is determined to be tilted.
[0092] In this embodiment, the pressure intensity on the left and right sides of the massage section is detected by the motor current, thereby achieving accurate detection of the tilt state of the wearable device.
[0093] In this embodiment, the wearable device has at least two massage sections, each equipped with a pressure sensor. In one embodiment, the wearable device's massage section includes a first massage section and a second massage section, and the pressure sensor includes a first pressure sensor disposed on the first massage section and a second pressure sensor disposed on the second massage section.
[0094] Based on pressure data, determine whether the wearable device is tilted when worn, including: if the absolute value of the difference between the pressure data of the first pressure sensor and the pressure data of the second pressure sensor is greater than a preset pressure difference threshold, then determine that the wearable device is tilted.
[0095] In this embodiment, the massage part of the wearable device includes a first massage part and a second massage part. The first massage part can be a left massage part, and the second massage part can be a right massage part. The pressure sensor includes a first pressure sensor disposed on the first massage part and a second pressure sensor disposed on the second massage part. The first pressure sensor is used to detect the pressure on the left side, and the second pressure sensor is used to detect the pressure on the right side.
[0096] The absolute value of the difference between the pressure data from the first pressure sensor and the pressure data from the second pressure sensor is calculated. If the absolute value is greater than a preset pressure difference threshold, it indicates that the pressure applied to the left and right sides is different, and the wearable device is determined to be in a tilted state. The preset pressure difference threshold is a boundary or critical value used to determine the pressure data difference at which the wearable device is in a tilted state.
[0097] In this embodiment, the pressure intensity of the massage head on both sides is detected by a pressure sensor, thereby achieving accurate detection of the tilt state of the wearable device.
[0098] In one embodiment, the dynamic position data includes the rotation rate collected by the wearable device's sensors, the rotation rate being generated by the user's shaking while wearing the wearable device; the step of determining whether the wearable device is in a tilted state based on the dynamic position data includes:
[0099] The rotation rate of the first sensor and the rotation rate of the second sensor of the wearable device are obtained;
[0100] If the absolute value of the difference between the rotation rate of the first sensor and the rotation rate of the second sensor is greater than a preset rotation rate difference threshold, the wearable device is determined to be in a tilted state.
[0101] In this embodiment, both the first sensor located on the massage unit and the second sensor located on the wearing unit can be six-axis accelerometers, capable of detecting acceleration data and rotation rate. The six-axis accelerometer integrates a sensor system of a three-axis accelerometer and a three-axis gyroscope. The three-axis accelerometer measures the linear acceleration components of an object along three coordinate axes, while the three-axis gyroscope detects and measures the angular velocity of the object in space. The function of detecting rotation rate is primarily achieved by the three-axis gyroscope.
[0102] When a user wears a wearable device and performs actions such as turning, tilting, or swaying back and forth, if the two sensors show a significant discrepancy, the device may be worn incorrectly. By comparing the rotational rates collected by the two sensors, a preset rotational rate difference threshold is set. This threshold serves as a boundary or critical value for determining the rotational rate difference needed to identify a tilted state. If the absolute value of the rotational rate difference between the two sensors exceeds the preset threshold, the wearable device is determined to be tilted.
[0103] In this embodiment, the tilt state of the wearable device is accurately detected by measuring the rotation rate of two sensors respectively located on the massage part and the wearing part.
[0104] In one embodiment, the dynamic position data includes acceleration data collected by the wearable device's sensors. The step of determining whether the wearable device is tilted when worn based on the dynamic position data includes:
[0105] The relative positions of the first sensor and the second sensor are calculated based on the first acceleration data from the first sensor and the second acceleration data from the second sensor of the wearable device.
[0106] If the relative position is greater than the calibrated relative position, the wearable device is determined to be in a tilted state.
[0107] In this embodiment, the relative positions of the first sensor and the second sensor are calculated based on the first acceleration data collected by the first sensor and the second acceleration data collected by the second sensor of the wearable device.
[0108] Assume the first acceleration data collected by the first sensor is a1, the second acceleration data collected by the second sensor is a2, and t is a time point. At time t, the acceleration data are a1(t) and a2(t) respectively, and the relative acceleration a 12 (t) = a1(t) - a2(t);
[0109] relative velocity v 12 (t)=∫a 12 (t)dt;
[0110] Relative displacement r 12 (t)=∫v 12 (t)dt;
[0111] Initial condition: at t=0, the relative velocity is v 12 (0), relative displacement is r 12 (0).
[0112] relative speed
[0113] relative displacement
[0114] Numerical integration using the trapezoidal rule, where Δt is the time step, yields:
[0115] relative speed
[0116] relative displacement
[0117] The aforementioned relative displacement represents the relative position of the first and second sensors. This relative position is compared to the calibrated relative position, which refers to the relative position between the first and second sensors when the wearable device is correctly worn in the target operating mode. If the relative position is greater than the calibrated relative position, the massage and wearing parts of the wearable device are misaligned, meaning the wearable device is tilted.
[0118] In this embodiment, the tilt state of a wearable device is accurately detected by using the relative positions of the first and second sensors.
[0119] As a specific implementation of the above-mentioned method for detecting the state of wearable devices, this application provides a device for detecting the state of wearable devices. For example... Figure 5 As shown, the wearable device status detection device 500 includes: a data acquisition module 501 and a status judgment module 502.
[0120] The data acquisition module 501 is used to acquire target data of the wearable device, wherein the target data includes at least one of dynamic position data and pressure intensity data;
[0121] The state determination module 502 is used to determine the wearing state of the wearable device when it is being worn, based on the target data. The wearing state includes an inverted state or a tilted state.
[0122] Furthermore, the wearable device includes a massage unit, which is equipped with a first sensor; the state determination module 502 is specifically used to: determine whether the wearable device is in an inverted state when being worn, based on the first dynamic position data collected by the first sensor.
[0123] Furthermore, the wearable device also includes a wearing part, which is equipped with a second sensor; the state determination module 502 is specifically used for:
[0124] Based on the first dynamic position data collected by the first sensor, it is determined whether the wearable device is in an inverted state when worn, and a first determination result is obtained; and...
[0125] Based on the second dynamic position data collected by the second sensor, it is determined whether the wearable device is in an inverted state when it is worn, and a second judgment result is obtained.
[0126] If both the first and second judgment results indicate that the wearable device is in an inverted state, then it is determined that the wearable device is in an inverted state when being worn.
[0127] Furthermore, the status determination module 502 is specifically used for:
[0128] The first real-time tilt angle of the massage unit in the Z direction is determined based on the first dynamic position data, and the first real-time tilt angle is compared with the first calibrated tilt angle. The first calibrated tilt angle is the tilt angle of the massage unit in the Z direction when the wearable device is worn correctly. The Z direction is the vertical direction when the wearable device is worn.
[0129] If the relationship between the first real-time tilt angle and the first calibrated tilt angle meets the first preset condition, then the wearable device is determined to be in an inverted state.
[0130] Furthermore, the status determination module 502 is specifically used for:
[0131] Based on the second dynamic position data and the first dynamic position data, the real-time relative tilt angle difference between the wearing part and the massage part is determined, and the real-time relative tilt angle difference is compared with the calibrated relative tilt angle difference. The calibrated relative tilt angle difference is the relative tilt angle difference between the wearing part and the massage part when the wearable device is worn correctly.
[0132] If the relationship between the real-time relative tilt angle difference and the calibrated relative tilt angle difference meets the second preset condition, then the wearable device is determined to be in an inverted state.
[0133] Furthermore, the massage unit of the wearable device includes a massage element, a motor for driving the massage element to move, and a pressure sensor for detecting the force applied to the massage element. The pressure data includes motor current and / or pressure data. The state determination module 502 is specifically used to determine whether the wearable device is in a tilted state when being worn, based on the motor current and / or pressure data.
[0134] Furthermore, the status determination module 502 is specifically used for:
[0135] Based on motor current and / or pressure data, a third judgment result is obtained by determining whether the wearable device is tilted during wear; and...
[0136] Based on dynamic position data, it is determined whether the wearable device is tilted when worn, resulting in the fourth judgment result.
[0137] If both the third and fourth judgment results indicate that the wearable device is in a tilted state, then it is determined that the wearable device is in a tilted state when being worn.
[0138] Furthermore, the massage unit of the wearable device includes a first massage unit and a second massage unit, and the motor includes a first motor disposed in the first massage unit and a second motor disposed in the second massage unit; the status determination module 502 is specifically used for:
[0139] If the relationship between the first current of the first motor, the second current of the second motor, and the preset current threshold satisfies the third preset condition, then the wearable device is determined to be in a tilted state.
[0140] Furthermore, the massage unit of the wearable device includes a first massage unit and a second massage unit, and the pressure sensor includes a first pressure sensor disposed on the first massage unit and a second pressure sensor disposed on the second massage unit; the state judgment module 502 is specifically used to: if the absolute value of the difference between the pressure data of the first pressure sensor and the pressure data of the second pressure sensor is greater than a preset pressure difference threshold, then the wearable device is determined to be in a tilted state.
[0141] Furthermore, the dynamic position data includes the rotation rate collected by the wearable device's sensors, the rotation rate being generated by the user's shaking while wearing the wearable device; the state determination module 502 is specifically used for:
[0142] Obtain the rotation rate of the first sensor and the rotation rate of the second sensor of the wearable device;
[0143] If the absolute value of the difference between the rotation rate of the first sensor and the rotation rate of the second sensor is greater than a preset rotation rate difference threshold, the wearable device is determined to be in a tilted state.
[0144] Furthermore, the dynamic location data includes acceleration data collected by the wearable device's sensors. The state determination module 502 is specifically used for:
[0145] The relative positions of the first sensor and the second sensor are calculated based on the first acceleration data from the first sensor and the second acceleration data from the second sensor of the wearable device.
[0146] If the relative position is greater than the calibrated relative position, the wearable device is determined to be in a tilted state.
[0147] Furthermore, the data acquisition module 501 is used to: acquire the working mode of the wearable device; and, if the working mode is the target working mode, acquire the target data of the wearable device.
[0148] Furthermore, the device also includes a prompting module for issuing a prompt message when it is determined that the wearable device is in an inverted or tilted state while being worn.
[0149] The wearable device status detection device 500 in this application embodiment can be a wearable device or a component within the wearable device, such as an integrated circuit or a chip. The wearable device status detection device 500 provided in this application embodiment can achieve... Figure 1 and Figure 3 The various processes implemented in the wearable device status detection method embodiment will not be described again here to avoid repetition.
[0150] This application also provides a wearable device, which includes a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, they implement the various steps of the above-described wearable device state detection method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0151] Memory can be used to store software programs and various data. Memory can primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area can store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, memory can include volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0152] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and applications, while the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor.
[0153] In one embodiment of this application, such as Figure 2 and Figure 3 As shown, wearable devices also include:
[0154] The massage unit 201 is equipped with a first sensor 2011, which is used to collect first dynamic position data.
[0155] Wearing part 202, the wearing part is provided with a second sensor 2021, the second sensor 2021 is used to collect second dynamic position data;
[0156] The massage unit includes massage components, a motor for driving the massage components, and a pressure sensor for detecting the force applied to the massage components. The pressure sensor is used to collect pressure data.
[0157] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described wearable device state detection method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0158] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0159] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for detecting the status of a wearable device, characterized in that, The method includes: Acquire target data from a wearable device, wherein the target data includes at least one of dynamic position data and pressure intensity data; Based on the target data, the wearing state of the wearable device when it is worn is determined, including an inverted state or a tilted state.
2. The method according to claim 1, characterized in that, The wearable device includes a massage unit, and the massage unit is equipped with a first sensor; Based on the target data, determining whether the wearable device is in an inverted state when worn includes: Based on the first dynamic position data collected by the first sensor, it is determined whether the wearable device is in an inverted state when being worn.
3. The method according to claim 2, characterized in that, The wearable device also includes a wearing part, which is provided with a second sensor; Based on the target data, determining whether the wearable device is in an inverted state when worn includes: Based on the first dynamic position data collected by the first sensor, it is determined whether the wearable device is in an inverted state when worn, thus obtaining a first determination result; and... Based on the second dynamic position data collected by the second sensor, it is determined whether the wearable device is in an inverted state when being worn, and a second determination result is obtained; If both the first and second judgment results indicate that the wearable device is in an inverted state, then it is determined that the wearable device is in an inverted state when being worn.
4. The method according to claim 2, characterized in that, The step of determining whether the wearable device is in an inverted state when worn based on the first dynamic position data collected by the first sensor includes: The first real-time tilt angle of the massage part in the Z direction is determined based on the first dynamic position data, and the first real-time tilt angle is compared with the first calibrated tilt angle. The first calibrated tilt angle is the tilt angle of the massage part in the Z direction when the wearable device is worn correctly. The Z direction is the vertical direction when the wearable device is worn. If the relationship between the first real-time tilt angle and the first calibrated tilt angle meets the first preset condition, then the wearable device is determined to be in an inverted state.
5. The method according to claim 3, characterized in that, The step of determining whether the wearable device is in an inverted state when worn based on the second dynamic position data collected by the second sensor includes: Based on the second dynamic position data and the first dynamic position data, the real-time relative tilt angle difference between the wearing part and the massage part is determined, and the real-time relative tilt angle difference is compared with the calibrated relative tilt angle difference, where the calibrated relative tilt angle difference is the relative tilt angle difference between the wearing part and the massage part when the wearable device is worn correctly; If the relationship between the real-time relative tilt angle difference and the calibrated relative tilt angle difference satisfies the second preset condition, then the wearable device is determined to be in an inverted state.
6. The method according to claim 1, characterized in that, The massage unit of the wearable device includes a massage element, a motor for driving the massage element to move, and a pressure sensor for detecting the force applied to the massage element. The pressure data includes motor current and / or pressure data. Based on the target data, determining whether the wearable device is tilted when worn includes: Based on the motor current and / or the pressure data, determine whether the wearable device is in a tilted state when worn.
7. The method according to claim 6, characterized in that, Based on the target data, determining whether the wearable device is tilted when worn includes: Based on the motor current and / or the pressure data, determine whether the wearable device is in a tilted state when worn, and obtain a third determination result; and... Based on the dynamic position data, it is determined whether the wearable device is in a tilted state when it is worn, and a fourth determination result is obtained; If both the third and fourth judgment results indicate that the wearable device is in a tilted state, then it is determined that the wearable device is in a tilted state when being worn.
8. The method according to claim 6, characterized in that, The wearable device's massage section includes a first massage section and a second massage section, and the motor includes a first motor disposed in the first massage section and a second motor disposed in the second massage section; The step of determining whether the wearable device is tilted when worn based on the motor current includes: If the relationship between the first current of the first motor, the second current of the second motor, and the preset current threshold satisfies the third preset condition, then the wearable device is determined to be in a tilted state.
9. The method according to claim 6, characterized in that, The wearable device's massage section includes a first massage section and a second massage section, and the pressure sensor includes a first pressure sensor disposed in the first massage section and a second pressure sensor disposed in the second massage section; The step of determining whether the wearable device is tilted when worn based on the pressure data includes: If the absolute value of the difference between the pressure data from the first pressure sensor and the pressure data from the second pressure sensor is greater than a preset pressure difference threshold, then the wearable device is determined to be in a tilted state.
10. The method according to claim 7, characterized in that, The dynamic position data includes the rotation rate collected by the sensors of the wearable device, the rotation rate being generated by the user's shaking while wearing the wearable device; determining whether the wearable device is in a tilted state based on the dynamic position data includes: The rotation rate of the first sensor and the rotation rate of the second sensor of the wearable device are obtained; If the absolute value of the difference between the rotation rate of the first sensor and the rotation rate of the second sensor is greater than a preset rotation rate difference threshold, then the wearable device is determined to be in a tilted state.
11. The method according to claim 7, characterized in that, The dynamic position data includes acceleration data collected by the sensors of the wearable device. The step of determining whether the wearable device is tilted during wear based on the dynamic position data includes: The relative positions of the first sensor and the second sensor are calculated based on the first acceleration data from the first sensor and the second acceleration data from the second sensor of the wearable device. If the relative position is greater than the calibrated relative position, the wearable device is determined to be in a tilted state.
12. The method according to claim 1, characterized in that, The acquisition of target data from wearable devices includes: Obtain the working mode of the wearable device; If the working mode is the target working mode, then the target data of the wearable device is acquired.
13. The method according to any one of claims 1 to 12, characterized in that, The method further includes: When it is determined that the wearable device is in an inverted or tilted state while being worn, a prompt message is issued.
14. A device for detecting the status of a wearable device, characterized in that, The device includes: A data acquisition module is used to acquire target data from a wearable device, wherein the target data includes at least one of dynamic position data and pressure intensity data; The state determination module is used to determine the wearing state of the wearable device when it is being worn, based on the target data. The wearing state includes an inverted state or a tilted state.
15. A wearable device, characterized in that, include: A memory that stores programs or instructions; A processor, which, when executing the program or instructions, implements the steps of the method for detecting the state of a wearable device as described in any one of claims 1 to 13.
16. The wearable device according to claim 15, characterized in that, Also includes: A massage unit, wherein the massage unit is equipped with a first sensor; Wearing part, wherein the wearing part is provided with a second sensor; The massage unit includes a massage component, a motor for driving the massage component to move, and a pressure sensor for detecting the force applied to the massage component.
17. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the steps of the method for detecting the state of a wearable device as described in any one of claims 1 to 13.