Disclosure of Invention
The invention mainly aims to provide a smart watch control method and device, a smart watch and a storage medium, and aims to solve the technical problem that the traditional smart watch in the prior art needs to operate various functions by means of complex operations of a touch screen.
In order to achieve the purpose, the invention provides a smart watch control method, which comprises the following steps:
detecting a signal type of an initial input instruction when the initial input instruction is received;
when the signal type is a fingerprint signal, detecting the pressing duration corresponding to the pressed key;
and when the pressing duration is greater than a preset time threshold, operating a preset first functional module.
Optionally, when the signal type is a fingerprint signal, detecting a pressing duration corresponding to the pressed key includes:
when the signal type is a fingerprint signal, comparing the fingerprint signal with an input fingerprint signal in a preset fingerprint repository;
when the comparison is successful, acquiring a pressing signal corresponding to the pressing key;
and starting a timer according to the pressing signal so that the timer detects the pressing duration corresponding to the pressed key.
Optionally, when the signal type is a fingerprint signal, after detecting a pressing duration corresponding to the pressed key, the method further includes:
and when the pressing duration is not greater than a preset time threshold, operating a preset second functional module.
Optionally, after detecting the signal type of the initial input instruction, the method further includes:
if the signal type is a pressing signal, obtaining the pressing duration of the pressing signal;
and when the pressing duration is greater than a preset time threshold, operating a preset third functional module.
Optionally, if the signal type is a pressing signal, after acquiring the pressing duration of the pressing signal, the method further includes:
and when the pressing duration is not greater than a preset time threshold, operating a preset fourth functional module.
Optionally, the smart watch further comprises: a knob key;
after the signal type of the initial input instruction is detected when the initial input instruction is received, the method further comprises the following steps:
when the signal type is a fingerprint signal, acquiring knob rotation information corresponding to a knob key;
and operating the corresponding functional module according to the knob rotation information.
Optionally, when the signal type is a fingerprint signal, after the knob rotation information corresponding to the knob key is acquired, the method further includes:
detecting whether a first rotating direction and a second rotating direction exist in the knob key at the same time within a preset time interval, wherein the first rotating direction and the second rotating direction are opposite in direction;
if yes, operating a preset fifth functional module;
if not, acquiring the rotation direction of the knob signal;
when the rotating direction is the first rotating direction, a preset sixth functional module is operated;
and when the rotating direction is the second rotating direction, operating a preset seventh functional module.
In addition, in order to achieve the above object, the present invention also provides a smart watch control device, including:
the signal detection module is used for detecting the signal type of an initial input instruction when the initial input instruction is received;
the information acquisition module is used for detecting the pressing duration corresponding to the pressed key when the signal type is a fingerprint signal;
and the function operation module is used for operating a preset first function module when the pressing duration is greater than a preset time threshold.
In addition, to achieve the above object, the present invention further provides a smart watch, including: a memory, a processor and a smart watch control program stored on the memory and executable on the processor, the smart watch control program configured to implement the steps of the smart watch control method as described above.
Furthermore, to achieve the above object, the present invention further provides a storage medium having a smart watch control program stored thereon, wherein the smart watch control program, when executed by a processor, implements the steps of the smart watch control method as described above.
The method comprises the steps of detecting the signal type of an initial input instruction when the initial input instruction is received, detecting the pressing duration corresponding to the pressing key when the signal type is a fingerprint signal, and operating a preset first function module when the pressing duration is greater than a preset time threshold. Compared with the prior art, the invention realizes the operation of the preset function module by detecting the signal type of the initial input instruction and combining the fingerprint signal with the pressing duration of the pressing key when detecting the fingerprint signal, has simple operation, can realize the operation of more function modules, has stronger practicability and avoids the technical problem that the traditional intelligent watch needs to depend on a touch screen to carry out complex operations for multiple times to operate various functions.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a smart watch in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the smart watch may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of a smart watch, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a smart watch control program.
In the smart watch shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the smart watch of the present invention may be disposed in the smart watch, and the smart watch calls the smart watch control program stored in the memory 1005 through the processor 1001 and executes the smart watch control method provided in the embodiment of the present invention.
An embodiment of the present invention provides a smart watch control method, and referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a smart watch control method according to the present invention.
In this embodiment, the smart watch control method includes the following steps:
step S10: when an initial input instruction is received, a signal type of the initial input instruction is detected.
It should be noted that the execution subject of this embodiment may be a smart watch, where the smart watch may be a device having data transmission and data processing, or may be a smart watch, and the smart watch is taken as an example in this embodiment and the following embodiments.
It should be noted that, in this embodiment, the smart watch may include: fingerprint sensor, press key and control chip; the fingerprint sensor is used for collecting a fingerprint signal input by a user; the pressing key is used for receiving a pressing signal for inputting; the control chip is used for receiving data signals such as fingerprint signals and pressing signals and selecting different functional modules to operate according to interaction logic between the fingerprint signals and the pressing signals.
It is understood that the initial input command may be a control command input by a user through a fingerprint sensor or a pressing key, wherein the control command may be a finger touching the fingerprint sensor or a rotating pressing key, etc.
In specific implementation, when a user needs to operate a functional module in the smart watch, an initial input instruction is triggered by touching a fingerprint sensor with a finger or pressing a key in a rotating mode, and when the smart watch receives the initial control instruction, the initial control instruction is analyzed to determine whether the signal type of the initial input signal is a fingerprint signal or a pressing signal.
Step S20: and when the signal type is a fingerprint signal, detecting the pressing duration corresponding to the pressed key.
It should be noted that the pressing duration may be a time from when the user presses the pressing key to start counting until the pressing key is released, for example: the user presses the push button 12 minutes at 13 and releases the push button 13 minutes at 13, so that the duration of the push button is 1 minute.
In a specific implementation, when the initial input signal is a fingerprint signal acquired by a fingerprint sensor, the duration of pressing the key by a user is detected, and a subsequently-operated functional module is determined according to the pressing duration.
Step S30: and when the pressing duration is greater than a preset time threshold, operating a preset first functional module.
It should be noted that the preset time threshold may be a time threshold set by a user, for example: 1s or 2s, etc., and the present embodiment is not particularly limited thereto, and in the present embodiment and the following embodiments, 1s will be taken as an example for explanation.
It should be noted that the preset first function module may be software or program installed in the smart watch, for example: a timer, an alarm clock, a WeChat, etc., which are not limited in this embodiment.
In concrete the realization, when initial input signal is the fingerprint signal, and presses the duration of pressing of button and be greater than 1s, the control chip of smart watch will operate the corresponding first function module of predetermineeing, for example: WeChat, and the like.
In addition, if the initial input signal is detected to be the fingerprint signal, but in the preset time interval, when the pressing duration is not greater than the preset time threshold, that is, in the preset time interval, when the pressing duration is less than or equal to the preset time threshold, because the operation logic of the preset first functional module is not met, the intelligent watch does not operate the preset first functional module at this time.
Further, in order to increase the diversity of the operation logic to implement more function module operations, after the step S30, the method further includes:
and when the pressing duration is not greater than a preset time threshold, operating a preset second functional module.
It is easy to understand that the preset second function module may be software or a program installed in the smart watch, and the present embodiment does not specifically limit this.
In concrete the realization, when initial input signal is the fingerprint signal, and presses the duration of pressing of button and be not more than 1s, the control chip of smart watch will operate the corresponding predetermined second function module, for example: photo albums, etc.
In this embodiment, it is preset that the operation logic of the first functional module is that the initial input signal is a fingerprint signal, and the continuous pressing time acquired by pressing the key exceeds a preset time threshold, and the preset first functional module is operated; and presetting the operation logic of the second functional module as that the initial input signal is a fingerprint signal, and operating the preset second functional module when the continuous pressing time acquired by pressing the key does not exceed a preset time threshold.
In this embodiment, when an initial input instruction is received, a signal type of the initial input instruction is detected, when the signal type is a fingerprint signal, a pressing duration corresponding to a pressed key is detected, and when the pressing duration is greater than a preset time threshold, a preset first function module is operated. This embodiment is through the signal type that detects initial input instruction, when detecting fingerprint signal, through fingerprint signal and the combination of pressing down duration of pressing down the button predetermine the functional module with the operation, can realize more functions realization when easy operation, and the practicality is stronger, has avoided traditional intelligent wrist-watch to need rely on the touch-sensitive screen to carry out the technical problem of the various functions of operation of many times complicacies.
Referring to fig. 3, fig. 3 is a flowchart illustrating a control method for a smart watch according to a second embodiment of the present invention.
Based on the first embodiment, in this embodiment, the step S20 includes:
step S201: and when the signal type is a fingerprint signal, comparing the fingerprint signal with an input fingerprint signal in a preset fingerprint storage library.
It can be understood that preset fingerprint repository is used for storing preset fingerprint signal storage intervals stored in a smart watch or a cloud, the preset fingerprint repository is stored with input fingerprints, the input fingerprints are used for identifying identity information of users, and when the identification is passed, subsequent operations are performed.
Wherein, the fingerprint of having input in the fingerprint repository of predetermineeing can carry out selective increase by the user and delete, and predetermine the memory location of fingerprint repository, and this embodiment does not do specifically and restricts, if predetermine when fingerprint repository is saved in the high in the clouds, need carry out data connection with smart watch and high in the clouds to obtain the fingerprint signal of having input in the fingerprint repository of predetermineeing, be convenient for follow-up contrast.
It should be noted that, because the fingerprint signal of each person has uniqueness, therefore, in practical application, the fingerprint signal can also be used for carrying out identification, when the discernment is successful, comparatively important or the higher functional module of privacy degree in can operating the smart watch, and when detecting that the signal input type of initial input signal is the fingerprint signal, can compare the fingerprint signal with the fingerprint signal of having logged in the preset fingerprint repository to judge whether need to operate specific functional module, with the privacy of protection user, improve user's experience.
Step S202: and when the comparison is successful, acquiring a pressing signal corresponding to the pressing key.
It should be noted that, when the received fingerprint signal is successfully compared with the registered fingerprint signal in the preset fingerprint repository, the pressing signal collected by pressing the key is obtained, where the pressing signal may be the pressing duration or the pressing number of the pressed key, and in this embodiment, the pressing duration is taken as an example for description.
In addition, if the comparison between the fingerprint signal and the recorded fingerprint signal in the preset fingerprint repository fails, it indicates that the fingerprint signal is an invalid input signal, and no subsequent operation is performed.
Step S203: and starting a timer according to the pressing signal so that the timer detects the pressing duration corresponding to the pressed key.
It is understood that the timer may be a timing module inside the smart watch, and the timer is used for timing the duration of the pressing signal, and determining the operation of the subsequent functional module according to the relationship between the pressing duration and the preset time.
In the embodiment, the detected fingerprint signal is compared with the input fingerprint in the preset fingerprint storage library to identify the identity of the user, so that the privacy of the user can be better protected, the condition that the privacy content required to be protected by the user is not allowed to be checked is prevented, and the confidentiality is stronger.
In this embodiment, after the step S10, the method further includes:
step S2: and if the signal type is a pressing signal, acquiring the pressing duration of the pressing signal.
If the initial input signal is a press signal, the duration of pressing the key may be directly obtained.
In a specific implementation, since the initial input signal may be a pressing signal triggered by pressing a key or a fingerprint signal triggered by a fingerprint sensor, but since the fingerprint signal has a very high recognition degree, after triggering the fingerprint signal, the pressing signal triggered by pressing the key is safer than a pressing signal triggered by only pressing the key, i.e. the initial input signal may be used as a start operation logic of a functional module for protecting user's importance or privacy, for example: after the fingerprint signal is triggered, the pressing signal triggered by the pressing key is triggered to operate functional modules such as WeChat and the like, and the pressing signal triggered by the pressing key is only pressed to operate functional modules such as a camera and the like.
Step S3: and when the pressing duration is greater than a preset time threshold, operating a preset third functional module.
It is easy to understand that the preset third function module may be software or a program installed in the smart watch, and the present embodiment does not specifically limit this.
In a specific implementation, if the initial input signal is a pressing signal triggered by pressing a key, and a pressing duration corresponding to the pressing signal is greater than a preset time threshold, for example: 1s, etc., then run the preset third function module, for example: weather forecasts, and the like.
Further, in order to increase the diversity of the operation logic to implement more function module operations, after the step S3, the method further includes:
and when the pressing duration is not greater than a preset time threshold, operating a preset fourth functional module.
In a specific implementation, if the initial input signal is a pressing signal triggered by pressing a key, and a pressing duration corresponding to the pressing signal is less than or equal to a preset time threshold, for example: 1s, etc., then the preset fourth functional module is operated, for example: a calculator, etc.
In this embodiment, it is preset that the operation logic of the third functional module is that the initial input signal is a pressing signal triggered by pressing a key, and the pressing duration corresponding to the pressing signal is greater than a preset time threshold; the operation logic of the fourth functional module is preset that the initial input signal is a pressing signal triggered by pressing a key, and the pressing duration corresponding to the pressing signal is not more than a preset time threshold.
This embodiment is through the signal type who detects initial input instruction, when detecting fingerprint signal, the realization of presetting first function module is realized through fingerprint signal and the combination of pressing down the duration of pressing down the button, wherein, can operate more private function module through fingerprint signal and the combination of pressing down the signal, if the initial input instruction is for pressing down the signal of pressing down that the button was gathered, then start and preset the third function module, only adopt the function module that presses down signal start can operate comparatively commonly used function, in order to distinguish privacy function and the operation logic of function module commonly used, can realize more function realization when easy operation, the practicality is stronger, the technical problem of traditional intelligent wrist-watch need rely on the touch-sensitive screen to carry out the various functions of operation of many times complicacy has been avoided.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for controlling a smart watch according to a third embodiment of the present invention.
Based on the second embodiment, in this embodiment, after step S10, the method further includes:
step S2': and when the signal type is a fingerprint signal, acquiring knob rotation information corresponding to the knob key.
It should be noted that, based on the operation logic of the functional modules, in this embodiment, a knob signal may be triggered by a knob key to start the corresponding functional module.
It should be noted that the knob signal may be a rotation angle or a rotation direction of the knob key, and in this embodiment, the rotation direction will be taken as an example for description.
After the step S2', the method further includes:
detecting whether a first rotating direction and a second rotating direction exist in the knob key at the same time within a preset time interval, wherein the first rotating direction and the second rotating direction are opposite in direction;
if yes, operating a preset fifth functional module;
if not, acquiring the rotation direction of the knob signal;
when the rotating direction is the first rotating direction, a preset sixth functional module is operated;
and when the rotating direction is the second rotating direction, operating a preset seventh functional module.
It should be noted that, the first rotation direction may be to rotate the knob key clockwise, and the second rotation direction may also be to rotate the knob key counterclockwise; the first rotation direction may be to rotate the knob key counterclockwise, and the second rotation direction may be to rotate the knob key clockwise, that is, the first rotation direction is opposite to the second rotation direction, and for a specific rotation direction, this embodiment does not specifically limit this.
Further, the preset time interval may be a time interval set by a user, for example: 1s or 2s, etc., in the present embodiment, 1s will be described as an example.
In specific implementation, when a fingerprint signal is detected and clockwise rotation and anticlockwise rotation are detected within 1s, the control chip of the smart watch operates the corresponding preset first functional module.
In addition, if it is detected that the initial input signal is a fingerprint signal, but in a preset time interval, there are not a first rotation direction and a second rotation direction simultaneously, that is, in the preset time interval, there is no operation logic of a preset first functional module when there is no rotation reversing operation of the knob key, and at this time, there is no operation preset fifth functional module, and at this time, the rotation direction of the knob key will be obtained, and different functional modules are operated according to the rotation direction of the knob key, for example: the knob key rotates clockwise all the time within a preset time interval to operate a preset sixth functional module; the knob key rotates anticlockwise all the time at preset time intervals to operate a preset seventh functional module.
Step S3': and operating the corresponding functional module according to the knob rotation information.
In this embodiment, it is preset that the operation logic of the fifth function module is that the initial input signal is a fingerprint signal, and a knob signal triggered by a knob key has a first rotation direction and a second rotation direction simultaneously within a preset time interval, that is, a reversing operation exists within the preset time interval, the fifth function module is operated; presetting the operation logic of a sixth functional module as that an initial input signal is a fingerprint signal, and if a knob signal triggered by a knob key is rotated clockwise within a preset time interval, operating the preset sixth functional module; the operation logic of the seventh function module is preset in such a way that the initial input signal is a fingerprint signal, and the knob signal triggered by the knob key is rotated counterclockwise all the time within a preset time interval, so that the seventh function module is operated.
According to the invention, the operation of the preset function module can be realized by detecting the signal type of the initial input instruction and combining the fingerprint signal with the knob direction of the knob key, the preset function module is operated, for example, when the fingerprint signal is received, whether the knob key has the first rotation direction and the second rotation direction at the same time within the preset time interval is detected, and the preset first function module can be operated according to the change of the fingerprint signal and the rotation direction.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a smart watch control program, and the smart watch control program, when executed by a processor, implements the steps of the smart watch control method described above.
Since the storage medium adopts all the technical solutions of all the embodiments, at least all the advantages brought by the technical solutions of the embodiments are available, and are not described in detail herein.
Referring to fig. 5, fig. 5 is a block diagram illustrating a first embodiment of a smart watch control device according to the present invention.
As shown in fig. 5, the smart watch control apparatus according to the embodiment of the present invention includes:
the signal detection module 10 is configured to detect a signal type of an initial input instruction when the initial input instruction is received.
And the information acquisition module 20 is configured to detect a pressing duration corresponding to the pressed key when the signal type is a fingerprint signal.
And the function running module 30 is configured to run a preset first function module when the pressing duration is greater than a preset time threshold.
In an embodiment, the information obtaining module 20 is further configured to compare the fingerprint signal with an entered fingerprint signal in a preset fingerprint repository when the signal type is a fingerprint signal; when the comparison is successful, acquiring a pressing signal corresponding to the pressing key; and starting a timer according to the pressing signal so that the timer detects the pressing duration corresponding to the pressed key.
In an embodiment, the information obtaining module 20 is further configured to run a preset second function module when the pressing duration is not greater than a preset time threshold.
In an embodiment, the signal detection module 10 is further configured to obtain a pressing duration of the pressing signal if the signal type is the pressing signal; and when the pressing duration is greater than a preset time threshold, operating a preset third functional module.
In an embodiment, the signal detection module 10 is further configured to run a preset fourth function module when the pressing duration is not greater than a preset time threshold.
In an embodiment, the signal detection module 10 is further configured to obtain knob rotation information corresponding to a knob key when the signal type is a fingerprint signal; and operating the corresponding functional module according to the knob rotation information.
In an embodiment, the signal detecting module 10 is further configured to detect whether a first rotation direction and a second rotation direction exist simultaneously in the knob key within a preset time interval, where the first rotation direction and the second rotation direction are opposite in direction; if yes, operating a preset fifth functional module; if not, acquiring the rotation direction of the knob signal; when the rotating direction is the first rotating direction, a preset sixth functional module is operated; and when the rotating direction is the second rotating direction, operating a preset seventh functional module.
In this embodiment, when an initial input instruction is received, a signal type of the initial input instruction is detected, when the signal type is a fingerprint signal, a pressing duration corresponding to a pressed key is detected, and when the pressing duration is greater than a preset time threshold, a preset first function module is operated. This embodiment is through the signal type that detects initial input instruction, when detecting fingerprint signal, through fingerprint signal and the realization of pressing down the duration that presses down the button and realize presetting functional module, can realize more functions realization when easy operation, the practicality is stronger, has avoided traditional intelligent wrist-watch to need rely on the touch-sensitive screen to carry out the technical problem of the various functions of operation complicated many times.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may be referred to a smart watch control method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.