Embodiment
As shown in Figure 1, be the system architecture diagram of preferred embodiment of electronic installation of the present invention.Described electronic installation 1 comprises acceleration transducer 10, separates lock unit 20, memory storage 30 and touch-screen 40.Described acceleration transducer 10 for detecting the acceleration direction of electronic installation 1, and exports a direction signal to separating lock unit 20.Described memory storage 30 is for storing Various types of data.Described touch-screen 40 can be capacitive touch screen, or the touch-screen that resistive touch screen etc. is any suitable.
As shown in Figure 2, be the functional block diagram of preferred embodiment of solution lock unit of the present invention.Described solution lock unit comprises creation module 200, setting module 202, display module 204, judge module 206, acquisition module 208 and processing module 210.
Described creation module 200 is for creating a virtual lockout ball and a virtual solution lock ball.In this preferred embodiment, the radius of the virtual solution lock ball of radius ratio of described virtual lockout ball is large, to avoid unblock too easy.In addition virtual lockout ball should be different with the color of virtual solution lock ball, and the color of virtual lockout ball and virtual solution lock ball all should be different with the screen background color of electronic installation 1.As shown in Fig. 3 (b), label be 21 white globules be virtual solution lock ball, label be 22 black ball be virtual lockout ball.But in practical application, the virtual solution lock ball of described establishment and virtual lockout ball are not limited to the virtual solution lock ball shown in Fig. 3 (b) and virtual lockout ball, all can create according to the hobby of user.
Described setting module 202 unlocks path for presetting multiple locking coordinate to be formed.The plurality of locking coordinate is as the coordinate of virtual lockout ball center.In the present invention, described locking coordinate can be discrete multiple coordinate, and this discrete multiple coordinate is at least two, represents that this virtual lockout ball of setting is at two or more position, as shown in Figure 3 black ball; Described locking coordinate also can be multiple continuous print coordinate, and the plurality of continuous print coordinate can represent the stretch footpath that virtual lockout ball slips over, black tubular track as shown in Figure 4.
Described default multiple locking coordinates can be decided at the higher level but not officially announced by the system of electronic installation 1, also can be made by oneself by user.If when wherein user uses finger or this virtual lockout ball dilatory such as pointer one time, record a series of continuous coordinate that this virtual lockout ball center slips over as default locking coordinate; If user draw this virtual lockout ball repeatedly time, coordinate when only each finger of record or pointer leave touch-screen 40 is to determine that multiple discrete coordinate is as default locking coordinate.
Described setting module 202 also for for above-mentioned multiple locking setting coordinate unlock mode with determine one unlock path, and from described multiple locking coordinate select one locking coordinate as unblock origin coordinates.Described unlock mode comprises order and unlocks and random unblock.When multiple coordinate times that described default locking coordinate is noncontinuity, described unlock mode can be that order unlocks, and also can be random unblock.Under order unlock mode, described setting module 202 sets the order of the locking coordinate of process successively when virtual solution lock ball unlocks, namely set out the first coordinate, the second coordinate that virtual unblock ball warp is crossed ... until last coordinate, and when unlocking according to set virtual solution lock ball, determined unblock path is kept in memory storage 30 by the order of each coordinate of process.This first coordinate is unblock origin coordinates.During unblock, virtual solution lock ball unlocks through the multiple locking coordinates preset according to this determined unblock path, when virtual solution lock ball have passed through all the plurality of locking coordinates successively, namely completes unblock.Under RANDOM SOLUTION latching mode, described setting module 202 is selected from multiple locking coordinate selection coordinate as unblock origin coordinates, and is kept in memory storage 30 according to the continuity of himself or arbitrary order by the plurality of locking coordinate.During unblock, virtual solution lock ball can unlock according to sequentially passing through arbitrarily default multiple locking coordinates, when virtual unblock ball have passed through all the plurality of locking coordinate times, namely completes unblock.
When described default locking coordinate is successional multiple coordinate, described unlock mode is that order unlocks, setting module 202 selects the origin coordinates in this successional multiple coordinate as unlocking origin coordinates, and multiple for this continuous print locking coordinate is stored in memory storage 30 according to the continuity of himself by described setting module 202.During unblock, virtual solution lock ball sequentially passes through these locking coordinates preset from this origin coordinates and unlocks, and when virtual unblock ball have passed through the multiple locking coordinate time of this all continuous print, namely completes unblock.
Described display module 204, for after electronic installation 1 is in the lock state, when sensing touch screen 40 is to unlock this electronic installation 1, according to a described default institute locking coordinate, touch-screen 40 shows corresponding unblock picture.On this unblock picture, each default locking coordinate shows a virtual lockout ball, namely the centre coordinate of each virtual lockout ball is corresponding locking coordinate, and show virtual solution lock ball at described unblock origin coordinates, namely the centre coordinate of this virtual solution lock ball is this unblock origin coordinates, now starts described timing unit 50 and starts timing.
As shown in Fig. 3 (a), suppose that described default locking coordinate comprises P0, P1 and P2 tri-coordinates.Described display module 204 will lock the center of coordinate as virtual lockout ball, to the position of three locking coordinates showing three virtual lockout balls, the black ball as shown in Fig. 3 (a) on touch-screen 40.Wherein hypothesis unlocks origin coordinates is P0, and the centre coordinate using P0 as virtual solution lock ball, touch-screen 40 shows this virtual solution lock ball, the white ball in P0 place black ball as shown in Fig. 3 (a).
Whether described judge module 206 equals the described default locking time limit for the timing time described in real-time judge.
Described acquisition module 208, for after electronic installation 1 is in the lock state, when sensing touch screen 40 is to unlock this electronic installation 1, obtains the direction signal of this electronic installation 1 movement in real time from acceleration transducer 10.
Described processing module 210, for according to obtained direction signal, controls virtual solution lock ball and moves to obtained direction.
Described processing module 210 also for record this virtual solution lock ball on touch-screen 40 the coordinate of process.
The unblock path of described judge module 206 for determining according to unlock mode, whether real-time judge virtual solution lock ball is through each locking coordinate according to this unblock path.If unlock mode be order unlock, when described virtual solution lock ball according to the unblock path determined successively through each locking coordinate time, described display module 204 is not presented at the virtual lockout ball on this locking coordinate at once; When described virtual solution lock ball is not that described display module 204 still shows the virtual lockout ball on this locking coordinate according to the unblock path determined successively through each locking coordinate time.If unlock mode is when unlocking at random, any one locking coordinate time is included in the coordinate of this virtual solution lock ball process on touch-screen 40, namely have passed through any one locking coordinate time, described display module 204 does not show the virtual lockout ball on this locking coordinate at once.
Whether described judge module 206 also have passed through all default locking coordinates according to this unblock path for the virtual solution lock ball described in real-time judge.
Described processing module 210 also for have passed through all default locking coordinate times when described virtual unblock napiform root according to the unlock mode set, unlocks this electronic installation 1.
In order to better the present invention is described, be described below in conjunction with Fig. 3 and Fig. 4.
Shown in Fig. 3 (a) is three discrete locking coordinates, represents with P0, P1 and P2.When unlock mode unlocks for order, setting module 202 is according to sequential storage these three the locking coordinate of setting, such as order is followed successively by P0, P1, P2, and namely setting corresponding unlock mode is that virtual solution lock ball unlocks through P0, P1, P2 successively according to the order of this storage.First, when need unlock, P0, P1, P2 position on touch-screen 40 shows the virtual lockout ball of each display black, again in the virtual solution lock ball (white globules with reference in figure 3 (b)) that P0 place display one is white, the coordinate that described processing module 210 records this virtual solution lock ball process on touch-screen 40 comprises P0, as shown in Fig. 3 (b), described display module 204 does not show the virtual lockout ball on this P0 position, represents and has untied lock together.When this virtual unblock ball warp crosses P1, the coordinate that described processing module 210 records this virtual solution lock ball process on touch-screen 40 comprises P1, as shown in Fig. 3 (c), described display module 204 does not show the virtual lockout ball on this P1 position, but it should be noted that, if when this virtual solution lock ball first have passed through P2 without P1, described processing module 210 records in the coordinate of this virtual solution lock ball process on touch-screen 40 and does not comprise P1, but include P2, now described display module 204 still shows the virtual lockout ball on P1 and P2 position, namely represent that unlock sequence is wrong, will successively through P0, P1 and P2.
As shown in Figure 4, described default locking coordinate is the multiple coordinate of continuous print, each coordinate shows the virtual lockout ball of a black, the effect that touch-screen 40 shows is a black tubular track, and namely the white globules shown in one end of this tubular track is virtual solution lock ball.This unlock mode is that order unlocks.Described setting module 202 is for this successional multiple coordinate, and set first coordinate in this successional multiple coordinate as unlocking origin coordinates, namely the centre coordinate of virtual solution lock ball is this unblock origin coordinates.When this virtual solution lock ball begins through this tubular track from this first coordinate, described processing module 210 records this virtual unblock ball and have passed through all default locking coordinates, described display module 204 at once do not show virtual solution lock ball process locking coordinate on virtual lockout ball.
In order to make the present invention more perfect, described setting module 202 is also for the default locking time limit.After electronic installation 1 locks and touch-screen 40 is triggered, if do not completed within this default locking time limit, electronic installation 1 is unlocked, then continue to keep touch-screen 40 to be in the lock state.
As shown in Figure 5, be electronic installation of the present invention unlock method in the process flow diagram of preferred embodiment.
Step S100, described creation module 200 creates a virtual lockout ball and a virtual solution lock ball.The radius of the virtual solution lock ball of radius ratio of described virtual lockout ball is large, to avoid unblock too easy.Virtual lockout ball should be different with the color of virtual solution lock ball, and the color of virtual lockout ball and virtual solution lock ball all should be different with the screen background color of electronic installation 1.
Step S101, described setting module 202 is preset multiple locking coordinate and is unlocked path to be formed, and according to described multiple locking setting coordinate unlock mode to determine that unlocks a path.Described unlock mode comprises order and unlocks and unlock at random.When unlock mode unlocks for order, setting module 202 sets the order of the locking coordinate of process successively when virtual solution lock ball unlocks to determine that unlocks a path, and is saved in memory storage 30 in this unblock path.When unlock mode is for unlocking at random, setting module 202 selects a coordinate as unblock origin coordinates from locking coordinate, and is saved in memory storage 30 according to the continuity of himself or arbitrary order by the plurality of locking coordinate.It should be noted that, user, before unblock, needs first to select unlock mode.
Step S102, after electronic installation 1 is in the lock state, and when touch-screen 40 is triggered, described display module 204 shows unblock picture on touch-screen 40.On this unblock picture, display module 204 shows a virtual lockout ball on each default locking coordinate, namely the centre coordinate of each virtual lockout ball is corresponding locking coordinate, and showing virtual solution lock ball at stored unblock origin coordinates, namely the centre coordinate of this virtual solution lock ball is this unblock origin coordinates.
Step S103, described acquisition module 208 obtains the direction signal of this electronic installation 1 movement in real time from acceleration transducer 10, and described processing module 210 is according to obtained direction signal, controls virtual solution lock ball and moves to obtained direction.
Step S104, described processing module 210 record this virtual solution lock ball on touch-screen 40 the coordinate of process.
Step S105, the unblock path that described judge module 206 is determined according to unlock mode, whether real-time judge virtual solution lock ball is have passed through each locking coordinate according to this unblock path.If virtual solution lock ball is not have passed through each locking coordinate according to unblock path, enter step S106; If virtual solution lock ball have passed through each locking coordinate according to unblock path, enter step S107.
Step S106, described display module 204 still shows the virtual lockout ball on this locking coordinate, and returns step S103.
Step S107, display module 204 is not presented at the virtual lockout ball on this locking coordinate at once, and enters step S108.
Step S108, whether described judge module 206 real-time judge virtual solution lock ball have passed through all default locking coordinates according to described unblock path.When described virtual solution lock ball also not according to this unblock path through all default locking coordinate times, return step S103.When described virtual solution lock ball have passed through all default locking coordinate times according to this unblock path, enter step S109.
Step S109, described processing module 210 unlocks this electronic installation 1.
In order to make the present invention more perfect, described setting module 202 can also preset the locking time limit.After electronic installation 1 locks and touch-screen 40 is triggered, start the timing unit (not shown) in electronic installation 1, and between subsequent step S103 to S108, whether real-time judge timing time equals the locking time limit of described setting, if do not completed within this default locking time limit, electronic installation 1 is unlocked, then continue to keep touch-screen 40 to be in the lock state.
Finally it should be noted that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.