A kind of unlocking method, device, medium and equipment
Technical field
This application involves but be not limited to Internet technical field more particularly to a kind of unlocking method, device, medium and set
It is standby.
Background technology
With the fast development of shared economy, various shared equipment are widely used in life.Pass through same intelligence
Using during different sharing equipment, the password that intelligent terminal is obtained from cloud platform can be stored on intelligent terminal energy terminal,
After intelligent terminal loss, intelligent terminal obtains taker and can use to be stored in password on intelligent terminal and unlock and share equipment,
The sex chromosome mosaicism safe to use for leading to shared equipment, causes damages for the owner of intelligent terminal.
Invention content
In order to solve the above technical problem, the present invention provides a kind of unlocking method, terminal, device, medium and equipment.
Unlocking method provided by the invention, is applied to cloud platform equipment, and the method includes:
Record the correspondence of user identifier and preset password;
It receives the equipment for carrying user identifier and device identification and uses request;
It inquires correspondence and determines preset password corresponding with user identifier;
It is unlocked control using preset password pair equipment corresponding with device identification.
Above-mentioned unlocking method also has the characteristics that:
Being unlocked control using preset password pair equipment corresponding with device identification includes:Preset password is sent to and is set
Standby and indicating equipment sets device password to preset password.
Above-mentioned unlocking method also has the characteristics that:
Preset password is sent to equipment and after indicating equipment sets device password to preset password, method further includes:
It receives and carries the unlocking request that user inputs password;
User, which is sent, to equipment inputs password.
Above-mentioned unlocking method also has the characteristics that:
Being unlocked control using preset password pair equipment corresponding with device identification includes:
It receives and carries the unlocking request that user inputs password;
Judge that user inputs whether password is identical as preset password, if so, the fixed password of the pre-stored equipment of inquiry,
Fixed password is sent to equipment.
Above-mentioned unlocking method also has the characteristics that:
After the equipment for carrying user identifier and device identification is received using request, the method further includes:Obtain the shape of equipment
State, judges whether the state of equipment is in preset state, if so, inquiry correspondence determines preset corresponding with user identifier
Password.
It is stored with computer program on provided by the invention kind of computer readable storage medium, this program is executed by processor
The step of Shi Shixian above methods.
Computer equipment provided by the invention, including memory, processor and storage are on a memory and can be in processor
The step of computer program of upper operation, processor realizes the above method when executing program.
Tripper provided by the invention, including:
Logging modle, the correspondence for recording user identifier and preset password;
First receiving module uses request for receiving the equipment for carrying user identifier and device identification;
Preset password enquiry module determines preset password corresponding with user identifier for inquiring correspondence;
Control module, for being unlocked control using preset password pair equipment corresponding with device identification.
Above-mentioned tripper also has the characteristics that:
Control module includes the first sending module, for preset password to be sent to equipment and indicating equipment by device password
It is set as preset password.
Above-mentioned tripper also has the characteristics that:
Control module further includes:
Second receiving module, for the first sending module by preset password be sent to equipment and indicating equipment equipment is close
After code is set as preset password, receives and carry the unlocking request that user inputs password;
Second sending module inputs password for sending user to equipment.
Above-mentioned tripper also has the characteristics that:
Control module includes third receiving module, for receiving the unlocking request for carrying user and inputting password;
First judgment module, for judging that it is whether identical as preset password that user inputs password;
Fixed password enquiry module, for the first judgment module determine user input password it is identical as preset password when,
The fixed password of the pre-stored equipment of inquiry;
Third sending module, for sending fixed password to equipment.
Above-mentioned tripper also has the characteristics that:
This device further includes the first acquisition module and the second judgment module;
First acquisition module, the equipment use for receiving carrying user identifier and device identification in the first receiving module are asked
After asking, the state of equipment is obtained;
Second judgment module, for judging whether the state of equipment is in preset state, if it is, calling preset password
Enquiry module.
The present invention makes not preserving the password needed for unlocker device on intelligent terminal, and unlocking pin is managed collectively and is put down in cloud
Platform can share the safe to use of equipment with effective guarantee, improve the safety of system, ensure user's equity.
Description of the drawings
The attached drawing for constituting the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention
Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the unlocking method applied to cloud platform equipment in embodiment one;
Fig. 2 is the structure chart of one cloud platform equipment of embodiment;
Flow chart in Fig. 3 embodiments two applied to the unlocking method of terminal;
The structure chart of terminal in Fig. 4 embodiments two;
Fig. 5 is the flow chart of unlocking method in specific embodiment one;
Fig. 6 is the flow chart of unlocking method in specific embodiment two.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.It needs
Illustrate, in the absence of conflict, the features in the embodiments and the embodiments of the present application mutually can be combined arbitrarily.
Shared equipment abbreviation equipment in the present invention, including it is various can share using equipment, such as shared transit equipment,
Shared electronic equipment etc..
Embodiment one
As shown in Figure 1, the equipment unlocking method applied to cloud platform equipment, including:
Step 101, the correspondence of user identifier and preset password is recorded;
Step 102, it receives the equipment for carrying user identifier and device identification and uses request;
Step 103, inquiry correspondence determines preset password corresponding with user identifier;
Step 104, it is unlocked control using preset password pair equipment corresponding with device identification.
This method makes not preserving the password needed for unlocker device on intelligent terminal, and unlocking pin is managed collectively and is put down in cloud
Platform can share the safe to use of equipment with effective guarantee, improve the safety of system, ensure user's equity.
Step 101 can complete that i.e. user is during registering while setting is default close when user registers
Code, cloud platform record the correspondence of user identifier and preset password.Step 101 can also be that user passes through after the completion of registration
Password modification process is completed when changing preset password, the correspondence of cloud platform record update user identifier and updated preset password
Relationship.
Further include step 102 after step 102 ':Whether the state for obtaining equipment judges the state of equipment in default shape
State, if so, inquiring above-mentioned correspondence determines preset password corresponding with user identifier;If not i.e. at the state of equipment
Other states except preset state return to prompt equipment information unusable at present to terminal.
The realization method of step 104 includes following two:
Mode one
The device password of equipment is the setting of cloud platform equipment.
In this mode one, preset password is sent to equipment to cloud platform equipment and indicating equipment sets device password to
Preset password.Later, cloud platform sends prompt to terminal can input the information of password.
The unlocking apparatus of equipment after user can input password by terminal acquisition, is being set when manually controlling unlocking apparatus
Standby manually controlling inputs password on unlocking apparatus.
When the unlocking apparatus of equipment is remote control unlocking apparatus, after user can input password by terminal acquisition, at end
Password is inputted on end, user's input password is sent to cloud platform equipment by terminal, and the reception of cloud platform equipment carries user's input
The unlocking of password is asked, and sending this user to equipment inputs password.
Mode two
The password of equipment is fixed.
Cloud platform equipment, which receives, carries the unlocking request that user inputs password, judge user input password whether with it is default
Password is identical, if so, the fixed password of the pre-stored equipment of inquiry, sends this fixed password to equipment, equipment is made to unlock.
As shown in Fig. 2, tripper includes:
Logging modle, the correspondence for recording user identifier and preset password;
First receiving module uses request for receiving the equipment for carrying user identifier and device identification;
Preset password enquiry module, it is corresponding with above-mentioned user identifier default close for inquiring above-mentioned correspondence determination
Code;
Control module, for being unlocked control using preset password pair equipment corresponding with device identification.
This device can realize the mode one in the above method.
Control module includes that the first sending module is used to preset password being sent to equipment and indicating equipment by device password
It is set as preset password.
Control module further includes:
Second receiving module, for the first sending module by preset password be sent to equipment and indicating equipment equipment is close
After code is set as preset password, receives and carry the unlocking request that user inputs password;
Second sending module inputs password for sending user to equipment.
This device can realize the mode two in the above method.
Control module includes:
Third receiving module, for receiving the unlocking request for carrying user and inputting password;
First judgment module, for judging that it is whether identical as preset password that user inputs password;
Fixed password enquiry module, for the first judgment module determine user input password it is identical as preset password when,
The fixed password of the pre-stored equipment of inquiry;
Third sending module, for sending fixed password to equipment.
This device further includes the first acquisition module and the second judgment module.
First acquisition module, the equipment use for receiving carrying user identifier and device identification in the first receiving module are asked
After asking, the state of equipment is obtained;
Second judgment module, for judging whether the state of equipment is in preset state, if it is, calling preset password
Enquiry module.
Embodiment two
As shown in figure 3, the equipment unlocking method applied to terminal, including:
Step 301, user identifier and preset password corresponding with user identifier are sent to cloud platform equipment;
Step 302, device identification is obtained;
Step 303, the equipment for carrying user identifier and device identification is sent to cloud platform equipment uses request.
Wherein,
The mode that the mark of equipment is obtained in step 302 is the mode of the information code of scanning device.This information code can be
One-dimension code, black Quick Response Code, color 2 D code, multidimensional code etc..
The method further includes step 303:When needing to input unlocking pin, password input by user is received, by this password
As for asking the password of unlocker device to be sent to cloud platform equipment.
As shown in figure 4, terminal includes:
4th sending module, for sending user identifier and preset password corresponding with user identifier to cloud platform equipment;
Second acquisition module, for obtaining device identification;
5th sending module, the equipment use for sending carrying user identifier and device identification to cloud platform equipment are asked
It asks.
Below by specific embodiment the present invention will be described in detail embodiment.
Specific embodiment one
The device password that equipment is shared in specific embodiment one can be arranged and changed by cloud platform equipment.
As shown in figure 5, unlocking method includes:
Step 501, the correspondence of user identifier and preset password is recorded.
Step 502, the information code of equipment is shared in terminal scanning, obtains the device identification of this shared equipment.
Step 503, terminal is to cloud platform equipment sending device using asking, this equipment in request using carrying user identifier
And device identification.
Step 504, cloud platform equipment is interacted with shared equipment, inquires the state of this shared equipment.Judge this shared equipment
State when the state of equipment is in idle condition, inquiry correspondence determines corresponding with this user identifier preset password.
The state of this shared equipment is judged when the state of equipment is not at idle state, and to terminal notification, this equipment is unavailable.
Step 505, cloud platform equipment sends the use request for carrying above-mentioned preset password to shared equipment.
Step 506, after shared equipment receives this using request, preset password that device password is set as receiving.
Step 507, it shares equipment and current state is revised as pre-operation state from idle state.
Step 508, equipment is shared by its current pre-operation state reporting to cloud platform equipment.
Step 509, cloud platform equipment knows the state of shared equipment after pre-operation state, to send input to terminal and unlocking
The instruction of password.
Further include following two executive modes after step 509:
Mode one
Step 510, user is manually entered the preset password of its setting on a sharing device.
Step 511, it when shared equipment judges that the password received is identical as the device password that it is preserved, unlocks, modification is worked as
Preceding state is in working condition, and current state is reported cloud platform equipment.
Step 512, cloud platform equipment record receives the time conduct that shared equipment reports its state to be in working condition and makes
With initial time, charging is carried out for the behaviour in service to shared equipment, specifically, after the completion of shared equipment use, locking,
Shared apparatus modifications current state is idle state and reports that it is the free time that cloud platform equipment, which receives shared equipment and reports its state,
The time of state be used as using terminate the time, according to use initial time and use terminate time interval duration progress charging.
Mode two
Step 510 ', user inputs the preset password of its setting in terminal.
Step 511 ', terminal receives password input by user, is sent to cloud platform equipment and carries this password and device identification
Unlocking request.
Step 512 ', after cloud platform equipment receives this password, the unlocking request for carrying this password is sent to shared equipment.
Step 513 ', shared equipment judge to receive the password in unlocking request it is identical as the device password that it is preserved when,
It unlocks, modification current state is in working condition, and current state is reported cloud platform equipment.
Step 514 ', cloud platform equipment record, which receives the time conduct that shared equipment reports its state to be in working condition, to be made
With initial time, charging is carried out for the behaviour in service to shared equipment.The method phase of specific charging method and foregoing description
Together, details are not described herein again.
Specific embodiment two
It is fixed that the device password of equipment is shared in specific embodiment two.
As shown in fig. 6, unlocking method includes:
Step 601 to 604 to the step 501 in specific embodiment one to 504 corresponding identical, be not repeated to describe herein.
Step 605, cloud platform equipment uses request to shared equipment sending device.
Step 606, after shared equipment receives this using request, current state is revised as pre-operation shape from idle state
State.
Step 607, equipment is shared by its current pre-operation state reporting to cloud platform equipment.
Step 608, cloud platform equipment knows the state of shared equipment after pre-operation state, to send input to terminal and unlocking
The instruction of password.
Step 609, user inputs the preset password of its setting in terminal.
Step 610, terminal receives password input by user, is sent to cloud platform equipment and carries this password and device identification
Unlocking request.
Step 611, after cloud platform equipment receives this password, judge whether this password is marked with correspondence with above-mentioned user
Know that corresponding password is identical, if so, determining the fixed password of this shared equipment.
Step 612, the unlocking request for carrying fixed password is sent to equipment.Shared equipment judgement receives in unlocking request
Password it is identical as the device password that it is preserved when, unlock, modification current state be in working condition, report cloud to put down current state
Platform equipment.
In the method, cloud platform equipment record, which receives the time conduct that shared equipment reports its state to be in working condition, to be made
With initial time, charging is carried out for the behaviour in service to shared equipment.The method phase of specific charging method and foregoing description
Together, details are not described herein again.
Descriptions above can combine implementation individually or in various ways, and these variants all exist
Within protection scope of the present invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program
Related hardware is completed, and program can be stored in computer readable storage medium, such as read-only memory, disk or CD.It can
The all or part of step of selection of land, above-described embodiment can also be realized using one or more integrated circuits, correspondingly, above-mentioned
The form that hardware may be used in each module/unit in embodiment is realized, can also be realized in the form of software function module.
The present invention is not limited to the combinations of the hardware and software of any particular form.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that article or equipment including a series of elements include not only those elements, but also includes not having
There is the other element being expressly recited, or further includes for this article or the intrinsic element of equipment.Do not limiting more
In the case of system, the element that is limited by sentence " including ... ", it is not excluded that including the element article or equipment in
There is also other identical elements.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, reference only to preferred embodiment to this hair
It is bright to be described in detail.It will be understood by those of ordinary skill in the art that can modify to technical scheme of the present invention
Or equivalent replacement should all cover the claim model in the present invention without departing from the spirit of the technical scheme of the invention and range
In enclosing.