Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of smart machine and unlock method thereof, adopts input password to carry out the dissatisfactory problem of mode security unlocked for solving in prior art.
For achieving the above object and other relevant objects, the invention provides a kind of unlock method of smart machine, described unlock method comprises the following steps: step S1, setting regular grade unlocking pin, and do generating chip level unlocking pin after cryptographic calculation based on described regular grade unlocking pin by CPLD; Step S2, input regular grade unlocking pin, judges whether the regular grade unlocking pin inputted mates with the regular grade unlocking pin of setting, if coupling, then complete regular grade unlock and switch to released state, if matching times does not exceed preset times, then proceed to step S3; Step S3, input chip-scale unlocking pin, judges whether the chip-scale unlocking pin inputted mates with the chip-scale unlocking pin of generation, if coupling, then complete chip-scale unlock and switch to released state, if matching times does not exceed preset times, then proceed to step S4; Step S4, the external unit level adopting external unit to carry out smart machine unlocks.
Preferably, described CPLD is connected with the host CPU of smart machine by SPI interface, and its burning in advance has local firmware, and is upgraded the local firmware of its inside by SPI interface by the smart machine host CPU that is attached thereto.
Preferably, described regular grade unblock, chip-scale unblock and the smart machine authority corresponding to the unblock of external unit level increase progressively successively.
Preferably, after the external unit level that step S4 adopts correct external unit to complete smart machine unlocks, then step S1 ~ step S4 is re-executed.
Preferably, described external unit comprises the USB interface unlocker device with smart machine unique match, its by with smart machine communication, the PUK allowing smart machine obtain also unlocks.
The present invention also provides a kind of smart machine, and described smart machine comprises: setting module, for setting regular grade unlocking pin, and does generating chip level unlocking pin after cryptographic calculation based on described regular grade unlocking pin by CPLD; Regular grade unlocked state, for inputting regular grade unlocking pin, judging whether the regular grade unlocking pin inputted mates with the regular grade unlocking pin of setting, and when mating, completing regular grade and unlock and switch to released state; Chip-scale unlocked state, for after the regular grade unlocking pin of input and the regular grade unlocking pin of setting do not mate and exceed preset times, input chip-scale unlocking pin, judge whether the chip-scale unlocking pin inputted mates with the chip-scale unlocking pin of generation, and when mating, completing chip-scale and unlock and switch to released state; External unit level unlocked state, after for the chip-scale unlocking pin at the chip-scale unlocking pin inputted and generation, matching times does not exceed preset times, the external unit level adopting external unit to carry out smart machine unlocks.
Preferably, described CPLD is connected with the host CPU of smart machine by SPI interface, and its burning in advance has local firmware, and is upgraded the local firmware of its inside by SPI interface by the smart machine host CPU that is attached thereto.
Preferably, described regular grade unblock, chip-scale unblock and the smart machine authority corresponding to the unblock of external unit level increase progressively successively.
Preferably, described external unit level unlocked state comprises the USB interface unlocker device with smart machine unique match, its by with smart machine communication, the PUK allowing smart machine obtain also unlocks.
As mentioned above, smart machine of the present invention and unlock method thereof, to the process of the unblock of smart machine stage by stage a point authority control, and when higher-rights and highest weight limit, participate in unlocking by hardware chip CPLD (CPLD) and external unit, thus make the use of smart machine more safe and reliable.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
The invention provides a kind of smart machine and unlock method thereof, in the present embodiment, described smart machine is such as the portable electric appts such as smart mobile phone, panel computer, the hardware that described smart machine comprises comprises CPU (central processing unit), storer (being such as FLASH memory), gravity sensing device, acceleration sensor, microphone, loudspeaker, touch display screen (also known as touch-sensitive display panel or touching display screen), player, voicefrequency circuit, wireless communication module, system bus and input/output port etc.
Refer to Fig. 1 ~ Fig. 3, Fig. 2 is shown as 3 unlocking phases relation transition diagram of the unlock method of smart machine of the present invention, unlock method of the present invention is divided into 3 stages: regular grade unlocks, chip-scale unlocks, and external unit level unlocks, these three unlock section and correspond respectively to 3 kinds of different authorities: common authority, higher-rights, and highest weight limit.First smart machine is in the regular grade unlocking phases under common authority, preset times is exceeded when the common core chip level unlocking pin inputted does not mate, then switch to the chip-scale unlocking phases under higher-rights, preset times is exceeded when the chip-scale unlocking pin inputted does not mate, then need to adopt external unit to carry out compulsive unlocking, after carrying out compulsive unlocking, smart machine switches to the regular grade unlocking phases under common authority.
Fig. 3 is shown as the improvement schematic diagram of unlock method of the present invention to smart machine hardware, the present invention needs to increase CPLD (CPLD) chip in smart machine, this CPLD chip and mobile phone host CPU adopt the mode of SPI interface to be connected, the burning in advance of local firmware in CPLD is good, and by the mobile phone host CPU that is attached thereto by SPI interface, the local firmware of its inside can be upgraded.
Fig. 1 is shown as a kind of embodiment process flow diagram of the unlock method of smart machine of the present invention, and as shown in the figure, described unlock method comprises the following steps:
Step S101, setting regular grade unlocking pin.In the present embodiment, the touch-screen of smart machine switches to setting regular grade unlocking pin interface, and user carries out password setting by the such as mode such as numerical ciphers, gesture password, and set regular grade unlocking pin will be stored in the storer of smart machine.
Step S102, does generating chip level unlocking pin after cryptographic calculation based on described regular grade unlocking pin by CPLD.In the present embodiment, described CPLD is after the regular grade unlocking pin receiving user's setting, a chip-scale unlocking pin is generated after computing is encrypted to it, this chip-scale unlocking pin can be word password, gesture password etc. in full, and be shown to user by the touch-screen of smart machine, so that user remembers.Particularly, this chip-scale unlocking pin only shows once after user sets regular grade unlocking pin.
Step S103, allows smart machine enter regular grade unlocking phases under common authority.Namely the display interface of smart machine is allowed to enter into regular grade unlock interface, so that user inputs password.
Step S104, input regular grade unlocking pin, judges whether the regular grade unlocking pin inputted mates with the regular grade unlocking pin of setting.In the present embodiment, user carries out the input of regular grade unlocking pin by touch-screen, after input, judge that whether the password inputted is consistent with the regular grade unlocking pin that storer stores, if unanimously, be then judged to be coupling, enter step S105, if inconsistent, be then judged to not mate, enter step S106.
Step S105, if the regular grade unlocking pin coupling of user's input, then completes regular grade and unlocks and regular grade released state under smart machine being switched to common authority.
Step S106, if the regular grade unlocking pin of user's input not matching times exceed preset times, then allow smart machine enter chip-scale unlocking phases under higher-rights.Particularly, if it fails to match for the regular grade unlocking pin of user's input, then prompting mistake 1 time.In the present embodiment, described preset times is 3-5 time, and in a specific implementation process, described preset times is 3 times.The present embodiment unlocks matching times to regular grade and sets, exceed this preset times scope, chip-scale unlocking phases under then stopping regular grade unlocking phases to enter higher authority, can avoid the subscriber data that stores in this smart machine by illegal leakage or steal.
Step S107, input chip-scale unlocking pin, judges whether the chip-scale unlocking pin inputted mates with the chip-scale unlocking pin of generation.In the present embodiment, user carries out the input of chip-scale unlocking pin by touch-screen, after input, judge that whether the password inputted is consistent with the chip-scale unlocking pin that storer stores, if unanimously, be then judged to be coupling, enter step S108, if inconsistent, be then judged to not mate, enter step S109.
Step S108, if the chip-scale unlocking pin coupling of user's input, then completes chip-scale and unlocks and chip-scale released state under smart machine being switched to higher-rights.
Step S109, if user input chip-scale unlocking pin not matching times exceed preset times, allow smart machine enter highest weight limit under external unit level unlocking phases.Particularly, if it fails to match for the chip-scale unlocking pin of user's input, then prompting mistake 1 time.In the present embodiment, described preset times is 3-5 time, and in a specific implementation process, described preset times is 3 times.The present embodiment sets the matching times that chip-scale unlocks, exceed this preset times scope, external unit level unlocking phases under then stopping chip-scale unlocking phases to enter higher authority, can avoid the subscriber data that stores in this smart machine by illegal leakage or steal.
Step S110, the external unit level adopting external unit to carry out smart machine unlocks.In the present embodiment, described external unit comprises the USB interface unlocker device with smart machine unique match, as USB hardware dog, its by with smart machine communication, the PUK allowing smart machine obtain also unlocks, after the external unit level adopting correct external unit to complete smart machine unlocks, then smart machine switches to step S101 again, and re-starts unlocking operation according to step S101 ~ step S110.In addition, if the USB interface unlocker device (as USB hardware dog) of the coupling that smart machine is subsidiary is lost, and smart machine is in the external unit unlocking phases under highest weight limit, then the special repair point to smart machine manufacturer is needed to carry out the unblock of smart machine with omnipotent Dongle.
The present invention also provides a kind of smart machine 2, in the present embodiment, described smart machine 2 is such as the portable intelligent device such as smart mobile phone, panel computer, the hardware that described smart machine 2 comprises comprises CPU (central processing unit), storer (being such as FLASH memory), gravity sensing device, acceleration sensor, microphone, loudspeaker, touch display screen (also known as touch-sensitive display panel), player, voicefrequency circuit, wireless communication module, system bus and input/output port etc.
Fig. 3 is shown as the improvement schematic diagram of smart machine 2 of the present invention on hardware, the present invention needs to increase CPLD (CPLD) chip in smart machine 2, this CPLD chip and mobile phone host CPU adopt the mode of SPI interface to be connected, the burning in advance of local firmware in CPLD is good, and by the mobile phone host CPU that is attached thereto by SPI interface, the local firmware of its inside can be upgraded.
As shown in Figure 4, in the present embodiment, described smart machine 2 comprises: setting module 21, regular grade unlocked state 22, chip-scale unlocked state 23 and external unit level unlocked state 24, the smart machine authority of described regular grade unlocked state 22, chip-scale unlocked state 23 and external unit level unlocked state 24 correspondence increases progressively successively, corresponds respectively to the common authority of smart machine, higher-rights and highest weight limit.
Described setting module 21 for setting regular grade unlocking pin, and does generating chip level unlocking pin after cryptographic calculation based on described regular grade unlocking pin by CPLD.
In the present embodiment, the setting module of smart machine can realize based on touch-screen, first touch-screen is switched to setting regular grade unlocking pin interface, user carries out password setting by the such as mode such as numerical ciphers, gesture password, and set regular grade unlocking pin will be stored in the storer of smart machine.Described CPLD is after the regular grade unlocking pin receiving user's setting, a chip-scale unlocking pin is generated after computing is encrypted to it, this chip-scale unlocking pin can be word password, gesture password etc. in full, and be shown to user by the touch-screen of smart machine, so that user remembers.Particularly, this chip-scale unlocking pin only shows once after user sets regular grade unlocking pin.
Described regular grade unlocked state 22, for inputting regular grade unlocking pin, judges whether the regular grade unlocking pin inputted mates with the regular grade unlocking pin of setting, and when mating, completing regular grade and unlock and switch to released state.
In the present embodiment, in the present embodiment, user carries out the input of regular grade unlocking pin by touch-screen, after input, judge that whether the password inputted is consistent with the regular grade unlocking pin that storer stores, if unanimously, then be judged to be coupling, then complete regular grade to unlock and regular grade released state under smart machine being switched to common authority, if the regular grade unlocking pin of user's input not matching times exceed preset times, then allow smart machine enter chip-scale unlocking phases under higher-rights.Particularly, if it fails to match for the regular grade unlocking pin of user's input, then prompting mistake 1 time.In the present embodiment, described preset times is 3-5 time, and in a specific implementation process, described preset times is 3 times.The present embodiment unlocks matching times to regular grade and sets, exceed this preset times scope, chip-scale unlocking phases under then stopping regular grade unlocking phases to enter higher authority, can avoid the subscriber data that stores in this smart machine by illegal leakage or steal.
Described chip-scale unlocked state 23 is not for after the regular grade unlocking pin of input and the regular grade unlocking pin of setting mate and exceed preset times, input chip-scale unlocking pin, judge whether the chip-scale unlocking pin inputted mates with the chip-scale unlocking pin of generation, and when mating, completing chip-scale and unlock and switch to released state.
In the present embodiment, user carries out the input of chip-scale unlocking pin by touch-screen, after input, judge that whether the password inputted is consistent with the chip-scale unlocking pin that storer stores, if consistent, then be judged to be coupling, then complete chip-scale and unlock and chip-scale released state under smart machine being switched to higher-rights.If user input chip-scale unlocking pin not matching times exceed preset times, allow smart machine enter highest weight limit under external unit level unlocking phases.Particularly, if it fails to match for the chip-scale unlocking pin of user's input, then prompting mistake 1 time.In the present embodiment, described preset times is 3-5 time, and in a specific implementation process, described preset times is 3 times.The present embodiment sets the matching times that chip-scale unlocks, exceed this preset times scope, external unit level unlocking phases under then stopping chip-scale unlocking phases to enter higher authority, can avoid the subscriber data that stores in this smart machine by illegal leakage or steal.
Described external unit level unlocked state 24 after matching times does not exceed preset times for the chip-scale unlocking pin of chip-scale unlocking pin and the generation in input, adopts external unit to carry out the external unit level unblock of smart machine.
In the present embodiment, described external unit comprises the USB interface unlocker device with smart machine unique match, as USB hardware dog, its by with smart machine communication, the PUK allowing smart machine obtain also unlocks, after the external unit level adopting correct external unit to complete smart machine unlocks, then smart machine switches to the regular grade released state under common authority again, and points out user to reset regular grade unlocking pin.In addition, if the USB interface unlocker device (as USB hardware dog) of the coupling that smart machine is subsidiary is lost, and smart machine is in the external unit unlocking phases under highest weight limit, then the special repair point to smart machine manufacturer is needed to carry out the unblock of smart machine with omnipotent Dongle.
As mentioned above, smart machine of the present invention and unlock method thereof, to the process of the unblock of smart machine stage by stage a point authority control, and when higher-rights and highest weight limit, participate in unlocking by hardware chip CPLD (CPLD) and external unit, thus make the use of smart machine more safe and reliable.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.