Unlocking device and method of smart watchTechnical Field
The invention relates to the technical field of intelligent watches, in particular to an unlocking device and method of an intelligent watch.
Background
With the development of the internet era, various wearable devices are becoming more popular, such as smart glasses, smart watches, and the like. Various application software can be built in the wearable devices, and users can download applications, watch videos, listen to music, play games, enjoy pictures or read books and the like through the wearable devices, so that the leisure mode of the users is enriched, and the life experience of the users is improved. With the increasing popularization of wearable devices, the user personal information stored in the wearable devices is more and more, and in order to protect the safety of the user personal information, a user can install an unlocking application in the wearable devices to lock the wearable devices. When the user needs to use the wearable device, the user can unlock the wearable device through the unlocking application.
In the prior art, an unlocking mode of the smart watch is mainly that information is input on an unlocking interface for unlocking through an unlocking operation interface on a screen of the smart watch, and the unlocking operation mode is single. Because the screen of the intelligent watch is narrow, misoperation can easily occur when the user unlocks through the screen, so that the unlocking failure is caused, the unlocking efficiency is low, and the user experience is poor.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide an unlocking device and method of a smart watch.
In order to achieve the purpose, the invention adopts the following technical scheme:
an unlocking device of a smart watch comprises a watch main body and a watch cover; the top surface of the watch main body is provided with a circular sliding groove, and the bottom of the outer edge of the watch cover is embedded into the circular sliding groove and rotates in the circular sliding groove; a magnetic strip is fixed on one side of the bottom of the outer edge of the watch cover, a Hall module is arranged in the watch main body, and the Hall module can sense the magnetic field of the magnetic strip; the middle part of the watch cover is of a hollow structure, and the hollow structure allows the screen of the watch main body to be completely exposed;
the Hall module is connected to the MCU of the watch main body and used for sending corresponding voltage signals to the MCU according to different sensed magnetic fields when a user triggers an unlocking password setting event or triggers an intelligent watch unlocking event, the MCU maps the received voltage signals into numbers and obtains a number string according to the received voltage signals and the corresponding relation between preset different voltage signals and different numbers, and then the number string is set as an unlocking password or is compared with the preset unlocking password and the intelligent watch is unlocked when the comparison is consistent.
Furthermore, the bottom of the outer edge of the watch cover can rotate 360 degrees in the circular sliding groove, the rotation of the watch cover is divided into 10 gears 0 °, 36 °, 72 °, 108 °, 144 °, 180 °, 216 °, 252 °, 288 °, 324 ° by taking 36 ° as a step length, and the 10 gears correspond to ten numbers of 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 respectively; when the watch cover is in the ten-gear position, the corresponding relation between the voltage signal output by the Hall module and ten numbers from 0 to 9 is stored in the MCU of the intelligent watch in advance.
Furthermore, the watch body is marked with scales of 0 °, 36 °, 72 °, 108 °, 144 °, 180 °, 216 °, 252 °, 288 °, 324 °, and the watch cover is provided with a pointer for pointing to the scales.
The invention also provides an unlocking method of the smart watch by using the unlocking device, which comprises the following specific processes:
s1, popping up an unlocking password setting interface on a screen of the intelligent watch by an MCU of the intelligent watch after the user triggers an unlocking password setting event;
s2, the user rotates the meter cover to the corresponding angle in turn according to the unlocking password which is required to be set according to the corresponding relation between the different rotation degrees and the different numbers of the meter cover which are determined;
when the watch cover rotates to different angles, the position relation between the magnetic strip at the bottom of the outer edge of the watch cover and the Hall module in the watch main body changes, so that the magnetic field sensed by the Hall module changes and different voltage signals are output to the MCU;
s3, the MCU maps the received voltage signals into numbers in sequence according to the received voltage signals and the corresponding relation between the preset different voltage signals and different numbers, and displays the numbers on the unlocking password setting interface until the length of the obtained number string reaches the preset password length requirement; the MCU of the intelligent watch sets the obtained digital string as an unlocking password of the intelligent watch;
s4, when a user triggers an unlocking event of the smart watch, popping up an unlocking password input interface on a screen of the smart watch by the MCU, and then sequentially rotating the watch cover to a corresponding angle by the user according to the set unlocking password and the corresponding relation between different rotation angles and different numbers of the watch cover; when the watch cover rotates to different angles, the position relation between the magnetic strip at the bottom of the outer edge of the watch cover and the Hall module in the watch main body changes, so that the magnetic field sensed by the Hall module changes and different voltage signals are output to the MCU;
s5, the MCU maps the received voltage signals into numbers in sequence according to the received voltage signals and the corresponding relation between the preset different voltage signals and the different numbers, the numbers are displayed on the unlocking password input interface until the length of the obtained number string meets the preset password length requirement, then the obtained number string is compared with the preset unlocking password, and the intelligent watch is unlocked if the obtained number string is consistent with the preset unlocking password.
Further, in the method, in the process of setting the unlocking password, the unlocking password setting interface is not provided with a confirmation key and a deletion key, when the numeric string obtained by the MCU meets the preset password length requirement, the numeric string is temporarily stored, then the interface for confirming the password again pops up, the user inputs the unlocking password again through the process of repeatedly setting the unlocking password, the MCU sets the numeric string as the unlocking password when comparing the numeric strings input twice, otherwise, the temporarily stored numeric string is deleted and the unlocking password setting interface is popped up again, and the user is prompted to reset the unlocking password.
Furthermore, in the method, in the unlocking process of the smart watch, the unlocking password input interface is not provided with a confirmation key and a deletion key, when the numeric string obtained by the MCU meets the preset password length requirement, the numeric string is automatically compared with the set unlocking password, and if the numeric string obtained by the MCU does not meet the preset password length requirement, the unlocking password input interface is popped up again and the user is prompted to input the unlocking password again.
The invention has the beneficial effects that: the invention provides a brand-new intelligent watch unlocking password setting and intelligent watch unlocking mode, which has stronger scientific and technological sense and interestingness, can bring brand-new experience to users, and is low in cost and easy to realize.
Drawings
Fig. 1 is a schematic sectional view of an unlocking device in embodiment 1 of the present invention;
fig. 2 is a schematic top view of an unlocking device in embodiment 1 of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings, and it should be noted that the present embodiment is based on the technical solution, and the detailed implementation and the specific operation process are provided, but the protection scope of the present invention is not limited to the present embodiment.
Example 1
The present embodiment provides an unlocking device for a smart watch, as shown in fig. 1-2, including a watch body 1 and awatch cover 2; the top surface of the watch main body 1 is provided with a circularsliding groove 3, and the bottom of the outer edge of thewatch cover 2 is embedded into the circular slidinggroove 3 and rotates in the circular slidinggroove 3; amagnetic strip 4 is fixed on one side of the bottom of the outer edge of thewatch cover 2, aHall module 5 is arranged in the watch main body 1, and theHall module 5 can sense the magnetic field of themagnetic strip 4; the middle part of thewatch cover 2 is of a hollow structure, and the hollow structure allows the screen 6 of the watch main body 1 to be completely exposed.
TheHall module 5 is connected to the MCU of the watch main body 1 and used for sending corresponding voltage signals to the MCU according to different sensed magnetic fields when a user triggers an unlocking password setting event or triggers an intelligent watch unlocking event, mapping the received voltage signals into numbers and obtaining a number string according to the received voltage signals and the corresponding relation between preset different voltage signals and different numbers by the MCU, and then setting the number string into an unlocking password or comparing the number string with the preset unlocking password and unlocking the intelligent watch when the comparison is consistent.
Further, in this embodiment, the bottom of the outer edge of thewatch cover 2 can rotate 360 ° in the circular slidinggroove 3, and the rotation of thewatch cover 2 is divided into 10 gears 0 °, 36 °, 72 °, 108 °, 144 °, 180 °, 216 °, 252 °, 288 °, and 324 ° by taking 36 ° as a step length, and respectively corresponds to ten numbers of 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9; when the watch cover is in the ten-gear position, the corresponding relation between the voltage signal output by the Hall module and ten numbers from 0 to 9 is stored in the MCU of the intelligent watch in advance.
Further, in this embodiment, the watch body is marked withscales 7 of 0 °, 36 °, 72 °, 108 °, 144 °, 180 °, 216 °, 252 °, 288 °, and 324 °, and thewatch cover 2 is provided with apointer 8 for pointing to the scales.
Example 2
The embodiment provides an unlocking method for a smart watch of the unlocking device as described in embodiment 1, which includes the following specific processes:
s1, popping up an unlocking password setting interface on a screen of the intelligent watch by an MCU of the intelligent watch after the user triggers an unlocking password setting event;
s2, the user rotates the meter cover to the corresponding angle in turn according to the unlocking password which is required to be set according to the corresponding relation between the different rotation degrees and the different numbers of the meter cover which are determined;
when the watch cover rotates to different angles, the position relation between the magnetic strip at the bottom of the outer edge of the watch cover and the Hall module in the watch main body changes, so that the magnetic field sensed by the Hall module changes and different voltage signals are output to the MCU;
s3, the MCU maps the received voltage signals into numbers in sequence according to the received voltage signals and the corresponding relation between the preset different voltage signals and different numbers, and displays the numbers on the unlocking password setting interface until the length of the obtained number string reaches the preset password length requirement; the MCU of the intelligent watch sets the obtained digital string as an unlocking password of the intelligent watch;
s4, when a user triggers an unlocking event of the smart watch, popping up an unlocking password input interface on a screen of the smart watch by the MCU, and then sequentially rotating the watch cover to a corresponding angle by the user according to the set unlocking password and the corresponding relation between different rotation angles and different numbers of the watch cover; when the watch cover rotates to different angles, the position relation between the magnetic strip at the bottom of the outer edge of the watch cover and the Hall module in the watch main body changes, so that the magnetic field sensed by the Hall module changes and different voltage signals are output to the MCU;
s5, the MCU maps the received voltage signals into numbers in sequence according to the received voltage signals and the corresponding relation between the preset different voltage signals and the different numbers, the numbers are displayed on an unlocking password input interface (plaintext or ciphertext) until the length of the obtained number string reaches the preset password length requirement, then the obtained number string is compared with the preset unlocking password, and if the comparison is consistent, the intelligent watch is unlocked.
It should be noted that the correspondence between different rotation angles of the watch cover and different numbers can be notified to the user through the smart watch specification and the like.
For example, if the unlock code to be set is 564321, in the present embodiment, the watch cover needs to be sequentially rotated to 180 °, 216 °, 144 °, 108 °, 72 °, 36 °. At the moment, the magnet and the Hall module have different position relations, the Hall module outputs different voltage signals to the MCU, and the MCU maps the voltage signals to numbers according to the corresponding relation between the prestored voltage signals and the numbers, so that the character string 564321 is obtained.
Further, in this embodiment, the user triggers an unlocking password setting event, an unlocking event of the smart watch, and the like through a human-computer interaction interface of the screen of the smart watch.
Further, the unlocking password length requirement can be 4-bit, 6-bit, 8-bit and other common password lengths.
Further, in the unlocking password setting process, an enter key and a delete key are not arranged on an unlocking password setting interface, when the numeric string obtained by the MCU meets the preset password length requirement, the numeric string is temporarily stored, then the interface for confirming the password again is popped up, the user inputs the unlocking password again through the process of repeatedly setting the unlocking password, the MCU sets the numeric string as the unlocking password when comparing the two input numeric strings, otherwise, the temporarily stored numeric string is deleted and the unlocking password setting interface is popped up again, and the user is prompted to reset the unlocking password.
Similarly, in the unlocking process of the intelligent watch, the unlocking password input interface is not provided with a confirmation key and a back deletion key, when the numeric string obtained by the MCU meets the preset password length requirement, the numeric string is automatically compared with the set unlocking password, and if the numeric string is inconsistent with the preset password length requirement, the unlocking password input interface is popped up again and the user is prompted to input the unlocking password again.
Various corresponding changes and modifications can be made by those skilled in the art based on the above technical solutions and concepts, and all such changes and modifications should be included in the protection scope of the present invention.