1. Technical Field
Embodiments of the present disclosure relate to unlocking of an electronic device, and more particularly to a method for unlocking a screen of a portable electronic device by using an electronic compass and a storage medium thereof.
2. Description of Related Art
A common unlocking technique to unlock a portable electronic device is to input an alpha-numeric passcode using a physical keypad or a virtual keypad of the portable electronic device. However, remembering the alpha-numeric passcode may be difficult for the user. What is needed, therefore, is an unlocking method of the portable electronic device to overcome the limitations described.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or Assembly. One or more software instructions in the module may be embedded in firmware, such as an EPROM. It will be appreciated that module may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The module described herein may be implemented as either software and/or hardware module and may be stored in any type of computer-readable medium or other computer storage device.
The portable electronic device 1 is generally controlled and coordinated by an operating system software, such as UNIX, LINUX, WINDOWS, MAC OS X, an embedded operating system, or any other compatible operating systems. In other embodiments, the portable electronic device 1 may be controlled by a proprietary operating system. Conventional operating systems control and schedule computer processes for execution, perform memory management, provide file system, networking, and I/O services, and provide a user interface, such as a graphical user interface (GUI), among other things.
The electronic compass 11 is operable to detect a rotation direction and a rotation angle of the portable electronic device 1. In one embodiment, the electronic compass 11 can sense the North Pole and South Pole of the Earth's magnetic field, then calculate an included angle of the electronic device 1 with the Earth's magnetic field relative to the North Pole by an internal processor of the electronic compass 11. Accordingly, the electronic compass 11 further can calculate the rotation direction and the rotation angle of the portable electronic device 1 between two included angles with the Earth's magnetic field relative to the North Pole during an unlocking operation of the electronic device 1.
The system 10 can receive the rotation direction and the rotation angle of the portable electronic device 1, then control the transmission module 103 to output the information received from the electronic compass 11 to the display unit 14 to inform the user. According to displayed information on the display unit 14, the user can unlock the display unit 14 of the portable electronic device 1 by adjusting the rotation direction and the rotation angle of the portable electronic device 1. If the adjusted rotation direction and rotation angle match the predetermined information stored in the storage unit 13, the portable electronic device 1 can be unlocked.
For example, the predetermined rotation direction can be set as a clockwise direction and the predetermined rotation angle can be set at 45 degrees are saved in the storage unit 13. During the unlocking operation, if the user rotates the portable electronic device 1 in the clockwise direction to a 30 degree rotation angle, at the same time, the display unit 14 displays that the portable electronic device 1 has been rotated to 30 degree rotation angle in the clockwise direction. The user can continually adjust the portable electronic device 1 until the rotation angle displays in the display unit 14 is 30 degrees to unlock the locked screen of the portable electronic device 1.
The modules 101-106 may comprise computerized code in the form of one or more programs that are stored in the storage unit 13 (or memory). The computerized code includes instructions that are executed by the at least one processor 12 to provide functions for modules 101-106. The at least one processor 12, as an example, may include a CPU, math coprocessor, shift register, for example.
The storage unit 13 is electronically connected to the electronic compass 11, the at least one processor 12, the setup module 101, the receiving module 102, the transmission module 103, the checking module 104, the determination module 105 and the unlocking module 106. The storage unit 13 is operable to store many kinds of data, such as the rotation direction and the rotation angle detected from the electronic compass 11, a customization function code of the portable electronic device 1, computerized codes of the system 10, programs of an operating system and other applications of the portable electronic device 1. The storage unit 13 may include a hard disk drive, flash memory, RAM, ROM, cache, or external storage mediums.
The display unit 14 displays information related to the rotation angle information of the portable electronic device 1. The display unit 14 can be a display screen, a resistive touch screen, or a capacitive touch screen.
The system 10 further detects the rotation direction and the rotation angle of the portable electronic device 1 during the unlocking operation. In addition, the system 10 saves detected information of the rotation direction and the changed rotation angle of the portable electronic device 1 in the storage unit 13.
The setup module 101 is operable to set the predetermined rotation direction and the predetermined rotation angle to unlock the portable electronic device 1. In setting an unlock condition, the electronic compass 11 continually detects the rotation direction and the rotation angle of the portable electronic device 1. The setup module 101 then saves the rotation direction and the rotation angle detected from the electronic compass 11 as the predetermined rotation direction and the predetermined rotation angle from the electronic compass 11 in the storage unit 13. The predetermined rotation direction and the predetermined rotation angle are set to unlock the portable electronic device 1.
As shown in
In addition, the setup module 101 is also operable to set a predetermined time period to determine whether the rotation of the portable electronic device 1 has been stopped. For example, the setup module 101 sets the predetermined time period equal to about 0.5 seconds.
The receiving module 102 is operable to receive the rotation direction and the rotation angle of the portable electronic device 1 detected from the electronic compass 11 during the unlocking operation. Furthermore, the receiving module 102 saves the rotation direction and the rotation angle in the storage unit 13.
The transmission module 103 is operable to transmit the rotation direction and the rotation angle of the portable electronic device 1 received from the receiving module 102 to the display unit 14.
The checking module 104 is operable to determine whether the rotation direction and the rotation angle stored in the storage unit 13 change within the predetermined time period. For example, if the rotation direction and rotation angle stored in the storage unit 13 do not change within the predetermined time period, the checking module 104 determines the rotation of the portable electronic device 1 has stopped. If the rotation direction and the rotation angle stored in the storage unit 13 change within the predetermined time period, the checking module 104 determines that the portable electronic device 1 is rotated for unlocking.
The determination module 105 is operable to determine whether the rotation direction and the rotation angle are the same as the predetermined rotation direction and the predetermined rotation angle. In one embodiment, the receiving module 102 continually saves the rotation direction and the rotation angle of the portable electronic device 1 detected from the electronic compass 11 in the storage unit 13 during the unlocking operation. The determination module 105 reads the rotation direction and the rotation angle, the predetermined rotation direction, and the predetermined rotation angle stored in the storage unit 13. Then, the determination module 105 determines whether the rotation direction and rotation angle are same as the predetermined rotation direction and the predetermined rotation angle. If the rotation direction and the rotation angle are not the same as the predetermined rotation direction and the predetermined rotation angle, the determination module 105 determines that the portable electronic device 1 stays locked. Otherwise, if the rotation direction and the rotation angle are the same as the predetermined rotation direction and the predetermined rotation angle, the determination module 105 sends an unlock signal to the unlocking module 106.
The unlocking module 106 is operable to receive the unlock signal from the determination module 105 and control the least one processor 12 to unlock the portable electronic device 1.
In block S100, the electronic compass 11 detects a rotation direction and a rotation angle of the portable electronic device 1.
In block S102, the receiving module 102 receives the rotation direction and the rotation angle of the portable electronic device 1 detected from the electronic compass 11 and saves the rotation direction and the rotation angle in the storage unit 13.
In block S104, the transmission module 103 transmits the rotation direction and the rotation angle of the portable electronic device 1 from the receiving module 102 to the display unit 14.
In block S106, the checking module 104 determines whether the rotation direction and the rotation angle stored in the storage unit 13 change within a predetermined time period. If the rotation direction and the rotation angle stored in the storage unit 13 change within the predetermined time period, the checking module 104 determines the rotation of the portable electronic device 1 is continually rotating and returns to block S100. If the rotation direction and the rotation angle stored in the storage unit 13 does not change within the predetermined time period, block S108 is implemented.
In block S108, the determination module 105 determines whether the rotation direction and the rotation angle are the same as the predetermined information of rotation direction and rotation angle of the portable electronic device 1 stored in the storage unit 13. In one embodiment, the determination module 105 reads the rotation direction, the rotation angle, the predetermined rotation direction, and the predetermined rotation angle stored in the storage unit 13. Then, the determination module 105 determines whether the rotation direction and the rotation angle are the same as the predetermined rotation direction and the predetermined rotation angle. If the rotation direction and the rotation angle are not the same as the predetermined rotation direction and the predetermined rotation angle, the determination module 105 determines that the portable electronic device 1 stays locked and returns to block 100. If the rotation direction and the rotation angle are the same as the predetermined rotation direction and the predetermined rotation angle, block S110 is implemented.
In block S110, the unlocking module 106 sends an unlock signal to the least one processor 12 and controls the least one processor 12 to unlock the portable electronic device 1.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
| Number | Date | Country | Kind |
|---|---|---|---|
| 99129988 | Sep 2010 | TW | national |