CN111766930A - Wearable device shutdown method and device and wearable device - Google Patents

Wearable device shutdown method and device and wearable device Download PDF

Info

Publication number
CN111766930A
CN111766930A CN202010513914.3A CN202010513914A CN111766930A CN 111766930 A CN111766930 A CN 111766930A CN 202010513914 A CN202010513914 A CN 202010513914A CN 111766930 A CN111766930 A CN 111766930A
Authority
CN
China
Prior art keywords
signal
wearable device
duration
level
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010513914.3A
Other languages
Chinese (zh)
Inventor
黄为为
徐鹏斌
李桐春
其他发明人请求不公开姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Huami Information Technology Co Ltd
Original Assignee
Anhui Huami Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Huami Information Technology Co Ltd filed Critical Anhui Huami Information Technology Co Ltd
Priority to CN202010513914.3A priority Critical patent/CN111766930A/en
Publication of CN111766930A publication Critical patent/CN111766930A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/163Wearable computers, e.g. on a belt

Abstract

The application provides a shutdown method of wearable equipment, wherein the method comprises the following steps: detecting a first signal indicating that the wearable device is powered off; detecting a second signal indicating that the wearable device is powered off; and if the first signal and the second signal are continuously detected, controlling the wearable equipment to shut down. Therefore, the wearable device is controlled to be powered off by detecting the first signal and the second signal and continuously detecting the first signal and the second signal, so that the method can detect and identify the first signal and the second signal before the power-off operation is performed, the power-off condition of the wearable device caused by misoperation is prevented, and the technical problem that the power-off condition of the wearable device is frequently caused in the power-off method of the existing wearable device is solved.

Description

Wearable device shutdown method and device and wearable device
Technical Field
The present application relates to the technical field of wearable devices, and in particular, to a shutdown method and apparatus for a wearable device, and a wearable device.
Background
In recent years, wearable devices have been widely popularized due to their advantages such as rich functions and portability, and people have increasingly high requirements for intelligentization of wearable devices. In general, a user may control the wearable device to shut down by triggering a button related to a shutdown function provided on the wearable device.
In the prior art, a wearable device is usually provided with a relevant key, so as to control the wearable device to shut down after the relevant key is pressed for a long time or the relevant combination key is triggered at the same time.
However, in practical applications, when the wearable device is vertically placed in the bag or the related keys are pressed in the using process, the wearable device may be powered off, which may cause frequent error power-off and poor user experience.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present application is to provide a shutdown method for a wearable device, so as to solve the technical problem in the prior art that a shutdown error condition is frequently caused.
A second objective of the present application is to provide a shutdown device of a wearable device.
A third object of the present application is to propose a wearable device.
A fourth object of the present application is to provide an electronic device.
A fifth object of the present application is to propose a computer-readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present application provides a shutdown method for a wearable device, including the following steps: detecting a first signal indicating that the wearable device is powered off; detecting a second signal indicating that the wearable device is powered off; and if the first signal and the second signal are continuously detected, controlling the wearable equipment to shut down.
According to an embodiment of the application, the detecting the second signal indicating that the wearable device is powered off includes: and if the detection level signal jumps from a high level to a low level and the duration of the low level reaches a first preset time, determining that the wearable device detects the second signal.
According to an embodiment of the present application, further comprising: and if the level signal is detected to jump from the high level to the low level and the duration time of the low level does not reach the first preset duration, determining that the wearable device is in a mistaken shutdown state.
According to an embodiment of the present application, further comprising: determining that the wearable device is in a power-off error state if any one of the following conditions is detected: detecting one of the second signal or the first signal; and detecting the first signal and the second signal at the same time, or identifying that the interval duration of the first signal and the second signal is greater than a preset interval duration.
According to an embodiment of the present application, the controlling the wearable device to shut down if the first signal and the second signal are continuously detected includes: acquiring the interval duration between the first signal and the second signal; and recognizing that the interval duration is within a preset duration range, and controlling the wearable equipment to shut down.
According to an embodiment of the application, the detecting the first signal for indicating shutdown of the wearable device includes: and detecting the jumping times of the high and low levels of the level signal within a second preset time length, and determining to detect the first signal if the jumping times of the high and low changes reach preset times.
According to an embodiment of the application, the detecting the first signal for indicating shutdown of the wearable device includes: detecting that a level signal jumps from a high level to a low level and the duration of the low level reaches a third preset duration, determining that the wearable device detects the first signal; and the third preset time length is less than or equal to the first preset time length.
According to an embodiment of the present application, before controlling the wearable device to shut down if the first signal and the second signal are continuously detected, the method further includes: determining that the trigger region of the first signal and the second signal is a designated region on a touch component of the wearable device.
According to an embodiment of the application, the first preset time period is 10-14 s.
According to an embodiment of the application, the second preset time period is 2.5-3.5 s, and the preset times is 2-5 times.
According to an embodiment of the application, the third preset time period is 2-4 s.
The embodiment of the first aspect of the application provides a shutdown method of a wearable device, which can detect a first signal used for indicating shutdown of the wearable device and a second signal used for indicating shutdown of the wearable device, and control the wearable device to shutdown after the first signal and the second signal are continuously detected, so that before shutdown operation is performed by the method, the shutdown condition of the wearable device caused by misoperation can be prevented by detecting and identifying the first signal and the second signal, and the technical problem that the shutdown condition of the wearable device is frequently caused by the conventional shutdown method of the wearable device is solved.
To achieve the above object, an embodiment of a second aspect of the present application provides a shutdown apparatus for a wearable device, including: the wearable device comprises a first detection module, a second detection module and a control module, wherein the first detection module is used for detecting a first signal for indicating the wearable device to be powered off; a second detection module, configured to detect a second signal indicating that the wearable device is powered off; and the control module is used for controlling the wearable device to shut down if the first signal and the second signal are continuously detected.
According to an embodiment of the application, the second detection module is further configured to: and if the detection level signal jumps from a high level to a low level and the duration of the low level reaches a first preset time, determining that the wearable device detects the second signal.
According to an embodiment of the application, the control module is further configured to: and if the level signal is detected to jump from the high level to the low level and the duration of the low level does not reach the first preset duration, determining a control instruction for the wearable device according to the duration of the low level, and executing the control instruction by the wearable device.
According to an embodiment of the application, the control module is further configured to: determining that the wearable device is in a power-off error state if any one of the following conditions is detected: detecting one of the second signal or the first signal; and detecting the first signal and the second signal at the same time, or identifying that the interval duration of the first signal and the second signal is greater than a preset interval duration.
According to an embodiment of the application, the first detection module is further configured to: acquiring the interval duration between the first signal and the second signal; and recognizing that the interval duration is within a preset duration range, and controlling the wearable equipment to shut down.
According to an embodiment of the application, the first detection module is further configured to: and detecting the jumping times of the high and low levels of the level signal within a second preset time length, and determining to detect the first signal if the jumping times of the high and low changes reach preset times.
According to an embodiment of the application, the first detection module is further configured to: detecting that a level signal jumps from a high level to a low level and the duration of the low level reaches a third preset duration, determining that the wearable device detects the first signal; and the third preset time length is less than or equal to the first preset time length.
According to an embodiment of the application, the control module is further configured to: determining that the trigger region of the first signal and the second signal is a designated region on a touch component of the wearable device.
According to an embodiment of the application, the first preset time period is 10-14 s.
According to an embodiment of the application, the second preset time period is 2.5-3.5 s, and the preset times is 2-5 times.
According to an embodiment of the application, the third preset time period is 2-4 s.
An embodiment of a second aspect of the present application provides a shutdown apparatus of a wearable device, which is capable of detecting a first signal used for instructing the wearable device to shutdown and a second signal used for instructing the wearable device to shutdown, and controlling the wearable device to shutdown after continuously detecting the first signal and the second signal, so that before the shutdown operation is performed by the method, the shutdown apparatus can prevent a shutdown condition of the wearable device due to a misoperation by detecting and identifying the first signal and the second signal, and solve a technical problem that a shutdown condition of a wrong wearable device frequently occurs in a shutdown method of an existing wearable device.
In order to achieve the above purpose, an embodiment of a third aspect of the present application provides a wearable device, including a shutdown apparatus of the wearable device provided in an embodiment of the second aspect of the present application.
To achieve the above object, a fourth aspect of the present application provides an electronic device, including: a memory, a processor; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the shutdown method of the wearable device.
To achieve the above object, a fifth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the shutdown method of a wearable device.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a shutdown method of a wearable device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another shutdown method of a wearable device according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another shutdown method of a wearable device according to an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a shutdown method of another wearable device according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a shutdown method of another wearable device according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a level jump situation and duration according to an embodiment of the present application;
fig. 7 is a schematic diagram of a wearable device provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a shutdown device of a wearable device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a wearable device provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The following describes a shutdown method and apparatus for a wearable device and the wearable device according to embodiments of the present application with reference to the drawings.
Fig. 1 is a flowchart of a shutdown method of a wearable device according to an embodiment of the present disclosure. As shown in fig. 1, the method specifically comprises the following steps:
s101, detecting a first signal for indicating shutdown of the wearable device.
S102, detecting a second signal for indicating shutdown of the wearable device.
It should be noted that, before the wearable device leaves the factory, the normal shutdown operation of the wearable device may be predefined to instruct the user to send a correct shutdown instruction to the wearable device according to the set operation. Optionally, the normal shutdown operation may be limited to two times of triggering a designated key, where the key is triggered for the first time to prevent the wearable device from being shutdown by mistake; and triggering the key for the second time to indicate that the wearable equipment is powered off. It should be noted that, when the normal shutdown operation is defined as twice triggering of the designated key, the same designated key may be triggered twice, or different designated keys may be triggered twice.
In this application, in order to avoid wearable equipment's mistake shutdown condition to take place, can set up two signals in advance according to wearable equipment's normal shutdown operation, include: a first signal and a second signal. Wherein the first signal and the second signal are both used to indicate that the wearable device is powered off. That is to say, by setting the first signal and the second signal, it can be identified whether the current shutdown operation is caused by a malfunction, so as to prevent the occurrence of a situation in which the wearable device is shut down due to the malfunction.
In the process that the user operates the wearable device, the first signal and the second signal are detected, and the detection result is used as a judgment basis for controlling the wearable device to shut down. Optionally, the user may issue the shutdown instruction to the wearable device by triggering a key (e.g., a shutdown key, a volume adjustment key, etc.) on the wearable device related to the shutdown instruction. Therefore, after wearable equipment starts, when the user triggered the button relevant with the shutdown instruction, the corresponding region of wearable equipment casing can receive pressure, can acquire pressure through the pressure information acquisition device that sets up in this application this moment, like pressure sensor etc..
Further, Analog-to-Digital conversion (AD conversion for short) may be performed on the Analog voltage signal collected by the pressure sensor to obtain a Digital signal that can be recognized by the single chip, and then the Digital signal is recognized.
Further, the digital signal collected by the user in the shutdown process may be identified to determine whether the first signal indicating that the wearable device is shutdown is detected.
Optionally, a digital signal collected by the user during the shutdown process may be identified to determine whether a second signal indicating that the wearable device is shutdown is detected.
S103, if the first signal and the second signal are continuously detected, controlling the wearable device to shut down.
Optionally, if the first signal and the second signal are continuously detected, which indicates that the wearable device is in a normal shutdown state, the wearable device may be controlled to shutdown; if the second signal or one of the first signals is detected, the first signal and the second signal are detected at the same time, or the interval duration of the first signal and the second signal is identified to be greater than the preset interval duration, it is determined that the wearable device is in a mistaken shutdown state, and then the wearable device can be controlled to execute corresponding operations.
The preset interval duration can be set according to actual conditions. For example, the preset interval duration may be set to 0.5 s.
Therefore, the wearable device can be controlled to be shut down by detecting the first signal for indicating the shutdown of the wearable device and the second signal for indicating the shutdown of the wearable device after the first signal and the second signal are continuously detected, so that the method can prevent the shutdown of the wearable device caused by misoperation by detecting and identifying the first signal and the second signal before the shutdown operation, and the technical problem that the shutdown of the wearable device caused by the misoperation is frequent in the existing shutdown method of the wearable device is solved.
On the basis of the above-described embodiment, the detection of the second signal is described below.
It should be noted that, compared to when the key is not triggered, triggering the key changes the level of the level signal, for example, when the level signal is at a high level when the key is not triggered, triggering the key changes the level signal from a high level to a low level; for example, when the level signal is at a low level when the setting key is not activated, the level signal changes from a low level to a high level when the setting key is activated. Therefore, in the application, when the second signal for indicating the shutdown of the wearable device is attempted to be detected, whether the high level and the low level of the level signal jump or not and the duration of the level signal can be identified to judge whether the second signal is detected or not.
As a possible implementation manner, as shown in fig. 2, the method specifically includes the following steps:
s201, judging whether the level signal jumps from a high level to a low level is detected.
Alternatively, if it is detected that the level signal jumps from the high level to the low level, step S202 may be performed; if the level signal is detected to jump from high level to low level, the jump condition of high level and low level can be continuously identified.
And S202, acquiring the duration of the low level.
It should be noted that, in the present application, some acquisition devices related to the operation information of the wearable device are provided on the wearable device, for example, a timer, and then the timer may be controlled by a button or a voice command to detect the duration of the high and low level of the level signal of the wearable device. Wherein, the collection device on the wearable equipment can be gathered in real time or periodically, and the period can be set according to actual conditions.
Alternatively, after the level signal is detected to jump from the high level to the low level, the duration of the low level may be acquired by a timer.
S203, judging whether the duration time of the low level reaches a first preset time length.
Optionally, after the duration of the low level is obtained, the duration of the low level may be compared with a first preset duration, and if it is recognized that the duration of the low level reaches the first preset duration, step S204 may be executed; if the duration of the recognition low level does not reach the first preset time period, step S205 may be performed.
Wherein the first preset time is 10-14 s. In practical applications, the first preset time period may be set to any specific value within a range of 10 to 14s, for example, 12 s.
And S204, determining that the wearable device detects the second signal.
S205, determining that the wearable device is in a power-off error state.
It should be noted that, in practical application, the wearable device is limited by the area of the housing of the wearable device, and different control commands are usually issued through different triggering methods for the same key in order to ensure the aesthetic property and the intelligent degree of the wearable device.
For example, for a volume key of the wearable device, it may be set that it is detected that a level signal jumps from a high level to a low level, and the duration of the low level reaches 12s, so as to issue a shutdown instruction; the detected level signal is changed from high level to low level, and the duration of the low level reaches 7s, so as to issue a command for switching to night mode.
Optionally, when the duration of the low level does not reach the first preset duration, which indicates that the user does not try to control the wearable device to shut down when the user currently triggers the key, it may be determined that the wearable device is in a false shutdown state.
It should be noted that, when the detection level signal is set to jump from the high level to the low level, and the duration of the low level reaches the first preset duration, it is determined that the wearable device detects the second signal, which is only an example, and the specific identification manner may be set according to an actual situation.
For example, it may be set that, if the level signal is detected to jump from a low level to a high level, and the duration of the low level reaches a first preset time, it is determined that the wearable device detects the second signal; for another example, it may also be set that, when the level signal is detected to jump from the low level to the high level, and the duration of the high level reaches the first preset time, it is determined that the wearable device detects the second signal; for another example, it may be set that when the level signal is detected to jump from the high level to the low level, and the duration of the low level reaches the first preset time period, it is determined that the wearable device detects the second signal.
In summary, when attempting to detect the second signal indicating that the wearable device is powered off, whether a transition occurs between high and low levels of the level signal and a duration of the level signal may be identified to determine whether the second signal is detected.
For example, when the user presses the power-off key, the power-off key is pressed for a long time 12s, and the first preset time is 12s, it can be known that, through this operation of the user, it can be detected that the level signal jumps from the high level to the low level, and the duration of the low level reaches the first preset time, and at this time, it can be determined that the wearable device has detected the second signal.
From this, this application can discern through the duration of whether jumping and level take place to the high low level of level signal, detect the second signal that is used for instructing wearable equipment to shut down, not only can accurately detect the second signal, thereby accurately discern user's operation, the emergence of the mistake circumstances of shutting down has been avoided, simultaneously can also be with the present condition that does not conflict of button function of wearable equipment under, the function that this button can carry out of further increase, external button quantity has been reduced, intelligent degree has been promoted.
It should be noted that, in the present application, when attempting to detect the first signal for indicating that the wearable device is powered off, whether the high level or the low level of the level signal has transitioned and the duration of the level, or the number of transitions of the high level or the low level of the level signal, may be identified to determine whether the first signal is detected.
As a possible implementation manner, as shown in fig. 3, the method specifically includes the following steps:
s301, obtaining the jump times of the high and low levels of the level signal in a second preset duration.
Alternatively, the level state of the current level signal may be obtained, and the current level state and the last level state may be compared, and if the current level state and the last level state are different, the flag is that 1 transition occurs. Optionally, the number of transitions of the level signal from high to low may be counted; the number of transitions of the level signal from low to high may also be counted.
Wherein the second preset time is 2.5-3.5 s. In practical application, the second preset time period may be set to any specific value within a range of 2.5 to 3.5s, for example, 3 s.
Further, the total number of times that the level state of the level signal changes within the second preset time period may be counted, and step S302 may be further performed.
S302, judging whether the jumping frequency reaches a preset frequency.
Optionally, after obtaining the total hop count within the second preset duration, the hop count may be compared with a preset count, and if the hop count is identified to reach the preset count, step S303 may be executed; if the recognized number of transitions does not reach the preset number, step S304 may be performed.
Wherein the preset times are 2-5 times. In practical application, the preset number of times may be set to any specific value within a range of 2 to 5 times, for example, 3 times.
S303, determining that the wearable device detects the first signal.
S304, it is determined that the wearable device does not detect the first signal.
In summary, when attempting to detect the first signal indicating that the wearable device is powered off, the number of transitions of the high and low levels of the level signal may be identified to determine whether the first signal is detected.
For example, when the user presses the power-off key twice, and the preset number of times is 2, it can be known that, through this operation of the user, the level state is sequentially changed from the high level state of the non-key level signal to the low level state of the primary key, from the low level state of the primary key to the high level state of the release key (equivalent to the non-key), from the high level state of the release key to the low level state of the secondary key, and from the low level state of the secondary key to the high level state of the release key, and 2 jumps occur altogether, and at this time, it can be determined that the wearable device has detected the first signal.
As a possible implementation manner, as shown in fig. 4, the method specifically includes the following steps:
s401, judging whether the level signal is detected to jump from high level to low level.
Alternatively, if it is detected that the level signal jumps from the high level to the low level, step S402 may be performed; if the level signal is detected to jump from high level to low level, the jump condition of high level and low level can be continuously identified.
S402, acquiring duration of low level.
Alternatively, after detecting the transition from the high level to the low level, the duration of the low level may be acquired by a timer.
And S403, judging whether the duration time of the low level reaches a third preset time length.
Optionally, after the duration of the low level is obtained, the duration of the low level may be compared with a third preset duration, and if it is recognized that the duration of the low level reaches the third preset duration, step S404 may be executed; if the duration of the recognition low level does not reach the third preset time period, step S405 may be performed.
Wherein the third preset time is 2-4 s. In practical application, the third preset time period may be set to any specific value within a range of 2 to 4s, for example, 3 s.
S404, determining that the wearable device detects the first signal.
S405, determining that the wearable device does not detect the first signal.
It should be noted that, when the detection is set to jump from the high level to the low level, and the duration of the low level reaches a third preset duration, it is determined that the wearable device detects the first signal, which is only an example, and the specific identification manner may be set according to an actual situation.
For example, it may be set that if the detection level signal jumps from a low level to a high level, and the duration of the low level reaches a third preset time period, it is determined that the wearable device detects the first signal; for another example, it may also be set that, if the detection level signal jumps from a low level to a high level, and the duration of the high level reaches a third preset time, it is determined that the wearable device detects the first signal; for another example, it may be further set that the wearable device detects the first signal if the detection level signal jumps from a high level to a low level, and the duration of the low level reaches a third preset time.
In summary, when attempting to detect the first signal indicating that the wearable device is powered off, the transition of the high and low levels of the level signal and the duration of the level signal may be identified to determine whether the first signal is detected.
For example, when the user presses the power-off key, the power-off key is pressed for a long time by 10s, and the third preset time is 3s, it can be known that, through this operation of the user, it can be detected that the level signal jumps from the high level to the low level, and the duration of the low level reaches the third preset time, and at this time, it can be determined that the wearable device has detected the first signal.
From this, this application can be through whether the duration of jump and level takes place for the high low level to level signal, perhaps the jump number of times of level signal high low level discerns, detect with the first signal that is used for instructing wearable equipment to shut down, not only can accurately detect first signal, thereby accurately discern user's operation, the emergence of the mistake circumstances of shutting down has been avoided, simultaneously can also be under the condition that does not conflict with the current button function of wearable equipment, the function that this button can carry out is further increased, external button quantity has been reduced, intelligent degree has been promoted. Furthermore, whether the first signal is detected or not is identified according to different judgment bases, so that the user can customize normal shutdown operation, the user experience is improved, and meanwhile, the adaptability of the shutdown method of the wearable device provided by the application is improved.
It should be noted that, after detecting the first signal and the second signal, it may also be identified whether the first signal and the second signal trigger the area to be a designated area on the touch component of the wearable device.
Optionally, if the first signal and the second signal trigger area are identified as designated areas on the touch component of the wearable device, further performing related operations; the first signal and the second signal may be re-detected if it is identified that the first signal and the second signal trigger a designated area on a touch component of the area non-wearable device.
The designated area on the touch component can be set according to the actual situation. For example, the designated area may be set to a display screen of the wearable device or the like.
Therefore, whether the trigger areas of the first signal and the second signal are the designated areas on the touch assembly of the wearable device or not can be identified, the operation error identification of the user in other areas is prevented from being issued to shut down the device, and the error shut down situation is further avoided.
Further, after the first signal and the second signal are continuously detected, in order to ensure the accuracy of the shutdown control of the wearable device, the interval duration between the first signal and the second signal may be further acquired and identified.
Optionally, if the first signal and the second signal are continuously detected, the interval duration between the first signal and the second signal may be acquired, the acquired interval duration is compared with a preset duration, and if the interval duration is identified to be within the preset duration range, which indicates that the current operation of the user is consistent with the set normal shutdown operation, the wearable device may be controlled to shutdown; if the identification interval duration is not within the preset duration range, the fact that the current operation of the user is inconsistent with the set normal shutdown operation is indicated, and the wearable device can be controlled to execute corresponding operation.
The preset duration can be set according to actual disclosure. For example, the preset time period can be set to 0.2-0.5 s.
It should be noted that, when the identification interval duration is not within the preset duration range, the wearable device may be controlled to send out a reminding message in a manner of voice or text, so as to instruct the user to perform a normal shutdown operation.
For example, when the identification interval duration is not within the preset duration range, the wearable device may be controlled to send out a "execute shutdown operation, please press the shutdown key 12s twice, and the interval between two key operations is 0.2 to 0.5".
Therefore, after the first signal and the second signal are continuously detected, the interval between the first signal and the second signal can be obtained, the wearable device is controlled to be powered off when the interval is identified and the interval is within a preset time range, the accuracy of power-off control of the wearable device is guaranteed, the problem that the error power-off condition is frequently generated is solved, and user experience is improved.
Further, after it is determined that the interval duration between the first signal and the second signal is within the preset duration range, a shutdown instruction may be sent to a Power Management Unit (PMU), and the PMU sends a reset signal to a Micro Control Unit (MCU) of the wearable device according to the shutdown instruction, so as to Control the wearable device to shutdown.
Therefore, after the fact that the interval duration between the first signal and the second signal is within the preset duration range is determined, the PMU is instructed to send the reset signal to the MCU to control the wearable device to shut down, the PMU does not directly identify the shutdown operation of the user, the situation that the wearable device is shut down due to misoperation can be prevented, and the technical problem that the mistaken shutdown situation frequently occurs in the existing shutdown method of the wearable device is solved.
In order to implement the foregoing embodiment, the embodiment of the present application further provides a flowchart of another shutdown method for a wearable device. As shown in fig. 5, the method specifically includes the following steps:
s501, obtaining the jump times of the high and low levels of the level signal in a second preset duration.
And S502, judging whether the jumping frequency reaches the preset frequency.
Alternatively, if the number of recognized transitions reaches the preset number, step S503 may be performed; if the recognized number of transitions does not reach the preset number, step S504 may be performed.
S503, determining that the wearable device detects the first signal.
S504, it is determined that the wearable device does not detect the first signal.
And S505, judging whether the level signal is detected to jump from the high level to the low level.
S506, obtaining the duration time of the low level, and judging whether the duration time of the low level reaches a first preset time length.
Alternatively, if the duration of the recognition low level reaches the first preset duration, step S507 may be performed; if the duration of the recognition low level does not reach the first preset time period, step S508 may be performed.
And S507, determining that the wearable device detects the second signal.
And S508, determining that the wearable device is in a mistaken shutdown state.
For example, as shown in fig. 6, after the trigger button is preset, the level of the level signal changes from high level to low level, at this time, if a long pull-down event is detected, that is, the duration of the detected low level is longer, it may be determined whether the number of transitions reaches 2 times, which is preset, within 3S before the long pull-down time occurs, and if it is detected that the number of transitions reaches 2 times, step S503 may be executed to determine that the first signal is detected. Further, pulling down continues to follow, and it is detected whether the duration of the low level (i.e., pulling down) reaches the first preset duration 13S, step S507 may be executed to determine that the second signal is detected.
If not detected for 2 times, step S504 may be performed to determine that the first signal is not detected. Further, pulling down continues to follow, if it is recognized that the duration of the low level (i.e., pulling down) is 5S, step S508 may be executed, and according to the duration of the low level of 5S, it is determined that the control instruction for the wearable device when pulling down 5S is an instruction to switch to the night mode, and the current mode may be switched to the night mode operation by the wearable device.
S509, judging whether the trigger areas of the first signal and the second signal are designated areas on the touch component of the wearable device.
It should be noted that after the completion of step S503 and step S507, it is described that the first signal and the second signal are currently detected, and then step S509 may be executed.
Alternatively, if the trigger regions of the first and second signals are identified as designated regions on the touch assembly of the wearable device, step S510 may be performed; otherwise, the process returns to step S501.
S510, judging whether the first signal and the second signal are continuously detected.
Alternatively, if it is recognized that the first signal and the second signal are continuously detected, step S511 may be performed; otherwise, step S514 may be performed.
And S511, acquiring the interval duration between the first signal and the second signal.
And S512, judging whether the interval duration is within a preset duration range.
Alternatively, if the recognition interval duration is within the preset duration range, step S513 may be performed; otherwise, a reminding message can be sent to the user.
And S513, determining that the wearable device is in a normal shutdown state, and controlling the wearable device to shut down.
And S514, determining that the wearable device is in a mistaken shutdown state.
It should be noted that, as shown in fig. 7, in the present application, a logic chip is additionally arranged to identify a shutdown operation of a user, and when an operation of identifying the user is consistent with a normal shutdown operation, that is, after an identification interval duration is within a preset duration range, a shutdown instruction may be sent to a PMU of the wearable device, and the PMU sends a reset signal to an MCU of the wearable device according to the shutdown instruction, so as to control the wearable device to shutdown.
It should be noted that, for descriptions of steps S501 to S514, reference may be made to relevant descriptions in the above embodiments, and details are not repeated here.
Therefore, the wearable device can be controlled to be shut down by detecting the first signal for indicating the shutdown of the wearable device and the second signal for indicating the shutdown of the wearable device after the first signal and the second signal are continuously detected, so that the method can prevent the shutdown of the wearable device caused by misoperation by detecting and identifying the first signal and the second signal before the shutdown operation, and the technical problem that the shutdown of the wearable device caused by the misoperation is frequent in the existing shutdown method of the wearable device is solved.
In order to implement the above embodiment, the present application further provides a shutdown apparatus for a wearable device.
Fig. 8 is a schematic structural diagram of a shutdown device of a wearable device according to an embodiment of the present application. As shown in fig. 8, the shutdown apparatus 100 of the wearable device according to the embodiment of the present application includes: a first detection module 11, configured to detect a first signal indicating that the wearable device is powered off; a second detection module 12, configured to detect a second signal indicating that the wearable device is powered off; the control module 13 is configured to control the wearable device to shut down if the first signal and the second signal are continuously detected.
Wherein, the second detecting module 12 is further configured to: and if the detection level signal jumps from a high level to a low level and the duration of the low level reaches a first preset time, determining that the wearable device detects the second signal.
Further, the control module 13 is further configured to: and if the level signal is detected to jump from the high level to the low level and the duration of the low level does not reach the first preset duration, determining a control instruction for the wearable device according to the duration of the low level, and executing the control instruction by the wearable device.
Further, the control module 13 is further configured to: determining that the wearable device is in a power-off error state if any one of the following conditions is detected: detecting one of the second signal or the first signal; and detecting the first signal and the second signal at the same time, or identifying that the interval duration of the first signal and the second signal is greater than a preset interval duration.
Further, the first detecting module 11 is further configured to: acquiring the interval duration between the first signal and the second signal; and recognizing that the interval duration is within a preset duration range, and controlling the wearable equipment to shut down.
Further, the first detecting module 11 is further configured to: and detecting the jumping times of the high and low levels of the level signal within a second preset time length, and determining to detect the first signal if the jumping times of the high and low changes reach preset times.
Further, the control module 13 is further configured to: detecting that a level signal jumps from a high level to a low level and the duration of the low level reaches a third preset duration, determining that the wearable device detects the first signal; and the third preset time length is less than or equal to the first preset time length.
Further, the control module 13 is further configured to: determining that the trigger region of the first signal and the second signal is a designated region on a touch component of the wearable device.
Further, the first preset time is 10-14 s.
Further, the second preset time is 2.5-3.5 s, and the preset times are 2-5 times.
Further, the third preset time is 2-4 s.
Therefore, the wearable device can be controlled to be shut down by detecting the first signal for indicating the shutdown of the wearable device and the second signal for indicating the shutdown of the wearable device after the first signal and the second signal are continuously detected, so that the method can prevent the shutdown of the wearable device caused by misoperation by detecting and identifying the first signal and the second signal before the shutdown operation, and the technical problem that the shutdown of the wearable device caused by the misoperation is frequent in the existing shutdown method of the wearable device is solved.
In order to implement the foregoing embodiment, the present application further provides a wearable device 300, as shown in fig. 9, including a shutdown apparatus 100 of the wearable device, to implement the foregoing shutdown method of the wearable device.
In order to implement the foregoing embodiments, the present application further proposes an electronic device 200, as shown in fig. 10, which includes a memory 21, a processor 22 and a computer program stored on the memory 21 and operable on the processor 22, and when the processor executes the program, the electronic device implements the foregoing shutdown method of the wearable device.
In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the aforementioned shutdown method of a wearable device.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (25)

1. A method for shutdown of a wearable device, comprising:
detecting a first signal indicating that the wearable device is powered off;
detecting a second signal indicating that the wearable device is powered off;
and if the first signal and the second signal are continuously detected, controlling the wearable equipment to shut down.
2. The method of claim 1, wherein detecting the second signal indicating that the wearable device is powered off comprises:
and if the detection level signal jumps from a high level to a low level and the duration of the low level reaches a first preset time, determining that the wearable device detects the second signal.
3. The method of claim 2, further comprising:
and if the level signal is detected to jump from the high level to the low level and the duration time of the low level does not reach the first preset duration, determining that the wearable device is in a mistaken shutdown state.
4. The method of claim 1, further comprising: determining that the wearable device is in a power-off error state if any one of the following conditions is detected:
detecting one of the second signal or the first signal;
detecting the first signal and the second signal simultaneously, or
And recognizing that the interval duration of the first signal and the second signal is greater than a preset interval duration.
5. The method of claim 1, wherein controlling the wearable device to shut down if the first signal and the second signal are continuously detected comprises:
acquiring the interval duration between the first signal and the second signal;
and recognizing that the interval duration is within a preset duration range, and controlling the wearable equipment to shut down.
6. The method of any of claims 1-5, wherein detecting the first signal indicating that the wearable device is powered off comprises:
and detecting the jumping times of the high and low levels of the level signal within a second preset time length, and determining to detect the first signal if the jumping times of the high and low changes reach preset times.
7. The method of any of claims 1-5, wherein detecting the first signal indicating that the wearable device is powered off comprises:
detecting that a level signal jumps from a high level to a low level and the duration of the low level reaches a third preset duration, determining that the wearable device detects the first signal; and the third preset time length is less than or equal to the first preset time length.
8. The method according to any one of claims 1-5, wherein before controlling the wearable device to shut down if the first signal and the second signal are continuously detected, further comprising:
determining that the trigger region of the first signal and the second signal is a designated region on a touch component of the wearable device.
9. The method according to claim 2 or 3, wherein the first preset time period is 10-14 s.
10. The method according to claim 6, wherein the second predetermined time period is 2.5-3.5 s, and the predetermined number of times is 2-5.
11. The method according to claim 7, wherein the third preset time period is 2-4 s.
12. An apparatus for powering off a wearable device, comprising:
the wearable device comprises a first detection module, a second detection module and a control module, wherein the first detection module is used for detecting a first signal for indicating the wearable device to be powered off;
a second detection module, configured to detect a second signal indicating that the wearable device is powered off;
and the control module is used for controlling the wearable device to shut down if the first signal and the second signal are continuously detected.
13. The apparatus of claim 1, wherein the second detection module is further configured to:
and if the detection level signal jumps from a high level to a low level and the duration of the low level reaches a first preset time, determining that the wearable device detects the second signal.
14. The apparatus of claim 1, wherein the control module is further configured to:
and if the level signal is detected to jump from the high level to the low level and the duration time of the low level does not reach the first preset duration, determining that the wearable device is in a mistaken shutdown state.
15. The apparatus of claim 1, wherein the wearable device is determined to be in a false-off state if any of the following conditions are detected, and wherein the control module is further configured to:
detecting one of the second signal or the first signal;
detecting the first signal and the second signal simultaneously, or
And recognizing that the interval duration of the first signal and the second signal is greater than a preset interval duration.
16. The apparatus of claim 1, wherein the first detection module is further configured to:
acquiring the interval duration between the first signal and the second signal;
and recognizing that the interval duration is within a preset duration range, and controlling the wearable equipment to shut down.
17. The apparatus of claim 1, wherein the first detection module is further configured to:
and detecting the jumping times of the high and low levels of the level signal within a second preset time length, and determining to detect the first signal if the jumping times of the high and low changes reach preset times.
18. The apparatus of claim 1, wherein the first detection module is further configured to:
the wearable device is determined to detect the first signal when the detection level signal jumps from a high level to a low level and the duration of the low level reaches a second third preset duration; and the second third preset time length is less than or equal to the first preset time length.
19. The apparatus of claim 1, wherein the control module is further configured to:
determining that the trigger region of the first signal and the second signal is a designated region on a touch component of the wearable device.
20. The method according to claim 1, wherein the first preset time period is 10-14 s.
21. The method according to claim 1, wherein the second predetermined time period is 2.5 to 3.5s, and the predetermined number of times is 2 to 5 times.
22. The method according to claim 1, wherein the third preset time period is 2-4 s.
23. A wearable device, characterized by comprising a shutdown apparatus of the wearable device according to claim 12.
24. An electronic device comprising a memory, a processor;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for implementing the shutdown method of the wearable device according to any one of claims 1 to 11.
25. A computer-readable storage medium, in which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method of powering down a wearable device according to any one of claims 1-11.
CN202010513914.3A 2020-06-08 2020-06-08 Wearable device shutdown method and device and wearable device Withdrawn CN111766930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010513914.3A CN111766930A (en) 2020-06-08 2020-06-08 Wearable device shutdown method and device and wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010513914.3A CN111766930A (en) 2020-06-08 2020-06-08 Wearable device shutdown method and device and wearable device

Publications (1)

Publication Number Publication Date
CN111766930A true CN111766930A (en) 2020-10-13

Family

ID=72720331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010513914.3A Withdrawn CN111766930A (en) 2020-06-08 2020-06-08 Wearable device shutdown method and device and wearable device

Country Status (1)

Country Link
CN (1) CN111766930A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076029A (en) * 2021-03-31 2021-07-06 安徽华米信息科技有限公司 Wearable device and control method thereof
CN113936941A (en) * 2021-09-10 2022-01-14 华为数字能源技术有限公司 Switching device and power distribution system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025794A (en) * 2007-03-23 2007-08-29 东莞市太平洋计算机科技有限公司 Active radio frequency electronic label power-controlling method
CN101266468A (en) * 2008-04-17 2008-09-17 中国铁路通信信号上海工程有限公司 On-off system automatic control system and control method
CN101546177A (en) * 2008-03-27 2009-09-30 Tcl集团股份有限公司 Human induction shutdown method for air conditioner
CN103179485A (en) * 2013-03-28 2013-06-26 歌尔声学股份有限公司 Active folding type earphone as well as turning on and off method and device thereof
KR20150021298A (en) * 2013-08-20 2015-03-02 삼성전자주식회사 Wearable bio-signal interface and method of operation of wearable bio-signal interface
WO2016101605A1 (en) * 2014-12-22 2016-06-30 中兴通讯股份有限公司 Interaction method and apparatus, and user terminal
CN106919867A (en) * 2015-12-24 2017-07-04 中兴通讯股份有限公司 Mobile terminal and its shutdown control method and device
WO2018107898A1 (en) * 2016-12-16 2018-06-21 广东欧珀移动通信有限公司 Method and device for preventing false triggering of touch button, terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025794A (en) * 2007-03-23 2007-08-29 东莞市太平洋计算机科技有限公司 Active radio frequency electronic label power-controlling method
CN101546177A (en) * 2008-03-27 2009-09-30 Tcl集团股份有限公司 Human induction shutdown method for air conditioner
CN101266468A (en) * 2008-04-17 2008-09-17 中国铁路通信信号上海工程有限公司 On-off system automatic control system and control method
CN103179485A (en) * 2013-03-28 2013-06-26 歌尔声学股份有限公司 Active folding type earphone as well as turning on and off method and device thereof
KR20150021298A (en) * 2013-08-20 2015-03-02 삼성전자주식회사 Wearable bio-signal interface and method of operation of wearable bio-signal interface
WO2016101605A1 (en) * 2014-12-22 2016-06-30 中兴通讯股份有限公司 Interaction method and apparatus, and user terminal
CN106919867A (en) * 2015-12-24 2017-07-04 中兴通讯股份有限公司 Mobile terminal and its shutdown control method and device
WO2018107898A1 (en) * 2016-12-16 2018-06-21 广东欧珀移动通信有限公司 Method and device for preventing false triggering of touch button, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张智;: "3G智能手机开关机安全检测和控制方法", 通信技术, no. 07 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076029A (en) * 2021-03-31 2021-07-06 安徽华米信息科技有限公司 Wearable device and control method thereof
CN113076029B (en) * 2021-03-31 2023-01-24 安徽华米信息科技有限公司 Wearable device and control method thereof
CN113936941A (en) * 2021-09-10 2022-01-14 华为数字能源技术有限公司 Switching device and power distribution system

Similar Documents

Publication Publication Date Title
CN111766930A (en) Wearable device shutdown method and device and wearable device
CN105487797B (en) A kind of control method and terminal device of screen display mode
CN107703892B (en) Control method and device of household appliance
CN103477328B (en) Terminal device, control device, malfunction determination system, and method for determining malfunction
CN107734143B (en) Fault reminding method, mobile terminal and readable storage medium
CN109144224B (en) Power consumption optimization method and device for touch screen
US9231284B2 (en) Electronic device with power indication function and indicating method thereof
CN105446838A (en) Terminal control method and terminal
CN111352534A (en) Touch key touch threshold correction method, wire controller, electric appliance and computer readable storage medium
CN101146289A (en) Apparatus and method for reset in mobile terminal
CN104954965B (en) The detection method and device of earphone keystroke
CN105528155A (en) Alarm clock reminding control method, and device and terminal equipment
EP3910354A1 (en) Power supply on-off detection circuit, method, apparatus and storage medium
US8194890B2 (en) Detecting and processing button press events for performing electronic device operations
WO2021058004A1 (en) Device control method and apparatus, electronic device, and readable storage medium
CN110708219A (en) Household appliance control method and household appliance
CN111371063B (en) Circuit breaker, and method and device for automatically adapting to topological signals
CN105511770A (en) Control method and device of mobile terminal as well as mobile terminal
CN111000461A (en) Safety protection control method for food processing machine
CN109462882A (en) Control method, device and the terminal of terminal
EP1703725A1 (en) Image photographing device and release device
CN103443736B (en) The starter gear of electronic equipment, method and user's recognition system
CN109831714B (en) Method and device for identifying earphone keys and electronic equipment
CN115482814A (en) Control method and device of household appliance and equipment
CN112596663A (en) Method and device for adjusting played content, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20201013