The content of the invention
The technical problem to be solved in the present invention is, in view of the shortcomings of the prior art, there is provided a kind of method for unlocking and system,
Unlocking is realized by camera scanning recognition code to reach, so as to facilitate the purpose of remote maintenance equipment.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
A kind of method for unlocking, it includes:
Mobile terminal receives the maintenance information of user's input, and safeguards that information is sent to management end by described, wherein, the maintenance
Information includes device identification and user identifies;
Management end checking is described to safeguard information, and safeguards that information generates an identification code according to described when being proved to be successful, and will
The identification code is respectively sent to Cloud Server and the mobile terminal;
The mobile terminal unlocks equipment corresponding to the device identification by the identification code.
The method for unlocking, wherein, the management end checking is described to safeguard information, and when being proved to be successful according to the dimension
Protect information and generate an identification code, and the identification code is respectively sent to Cloud Server and the mobile terminal specifically includes:
The management end reception is described to safeguard information, and the device identification is searched in presetting database;
When finding the device identification, user's mark group corresponding to the device identification is obtained, and the user is identified
It is compared with user's mark group;
When comparing successfully, safeguard that information generates an identification code according to described, and the identification code is respectively sent to cloud service
Device and the mobile terminal.
The method for unlocking, wherein, it is described when comparing successfully, safeguard that information generates an identification code according to described, and will
The identification code is respectively sent to Cloud Server and the mobile terminal specifically includes:
If comparing successfully, obtain and described safeguard preset time period corresponding to information;
Safeguard that information generates an identification code according to described, and the identification code is sent to the mobile terminal, by the identification
Code and preset time period are sent to Cloud Server.
The method for unlocking, wherein, it is described to safeguard that information generates an identification code according to described, and the identification code is sent
To the mobile terminal, also include after the identification code and preset time period are sent to Cloud Server:
Cloud Server preserves the identification code and preset time period association, and whether detects current time in real time in described pre-
If the period;
When current time is not at the preset time period, the identification code and preset time period are deleted.
The method for unlocking, wherein, the mobile terminal is unlocked by the identification code and set corresponding to the device identification
It is standby to specifically include:
When camera scanning is to the first identification code on mobile terminal, first identification code is sent to Cloud Server;
First identification code is compared Cloud Server with the identification code that it is stored, if comparing successfully, sends unlocking and refers to
Make to the camera to control the door lock of the equipment to open.
The method for unlocking, wherein, the Cloud Server is compared the identification code that first identification code stores with it
It is right, if comparing successfully, unlocking instruction is sent to the camera to control the door lock of the equipment also to include after opening:
Cloud Server deletes the identification code.
The method for unlocking, wherein, it is described to safeguard that information also includes the location of equipment corresponding to the device identification
Information,
It is described when camera scanning is to the first identification code on mobile terminal, first identification code is sent to Cloud Server
Specifically include:
When camera scanning is to the first identification code on mobile terminal, camera obtains its institute by its GPS module configured
The current location information at place;
The current location information and the first identification code are sent to Cloud Server.
The method for unlocking, wherein, the Cloud Server is compared the identification code that first identification code stores with it
It is right, if comparing successfully, send unlocking instruction and specifically included to the camera with controlling the door lock of the equipment to open:
First identification code and current location information described in cloud server, and the identification that first identification code is stored with it
Code is compared;
If comparing successfully, the current location information is compared with positional information corresponding to the identification code;
If comparing successfully, unlocking instruction is sent to the camera to control the door lock of the equipment to open.
The method for unlocking, wherein, the mobile terminal receives the maintenance information of user's input, and safeguards information by described
Send to management end, wherein, it is described to safeguard that information includes device identification and user's mark specifically includes:
Mobile terminal receives device identification and the user's mark of user's input;
Generation is identified according to the device identification and user and safeguards information, and safeguards that information is sent to management end by described.
A kind of unlocking system, it includes:
Mobile terminal, for receiving the maintenance information of user's input, and safeguard that information is sent to management end by described, wherein, institute
State and safeguard that information includes device identification and user identifies;
Management end, for verify it is described safeguard information, and safeguard that information generates an identification code according to described when being proved to be successful, with
And the identification code is respectively sent to Cloud Server and the mobile terminal;
The mobile terminal is additionally operable to unlock equipment corresponding to the device identification by the identification code.Beneficial effect:With showing
There is technology to compare, the invention provides a kind of method for unlocking and system, methods described includes:Mobile terminal receives user's input
Information is safeguarded, and safeguards that information is sent to management end by described, wherein, it is described to safeguard that information includes device identification and user marks
Know;Management end checking is described to safeguard information, and safeguards that information generates an identification code according to described when being proved to be successful, and by institute
State identification code and be respectively sent to Cloud Server and the mobile terminal;The mobile terminal described in identification code unblock by setting
Equipment corresponding to standby mark.The present invention is sent to Cloud Server by the identification code for scanning smart lock to be verified, and
Smart lock is controlled to automatically turn on after checking so that attendant need not use key to open smart lock, be set so as to safeguard
It is standby, brought convenience for after-sales service.
Embodiment
The present invention provides a kind of method for unlocking and system, for make the purpose of the present invention, technical scheme and effect it is clearer,
Clearly, developing simultaneously referring to the drawings, the present invention is described in more detail for embodiment.It is it should be appreciated that described herein specific real
Example is applied only to explain the present invention, is not intended to limit the present invention.
In the present invention, using the suffix of such as " module ", " part " or " unit " for representing element only for favourable
In the explanation of the present invention, itself do not have specific meaning.Therefore, module ", " part " or " unit " can mixedly make
With.
Terminal device can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile electricity
Words, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP are (just
Take formula multimedia player), the mobile terminal of guider etc. and such as digital TV, desktop computer etc. it is fixed eventually
End.However, it will be understood by those skilled in the art that in addition to being used in particular for moving the element of purpose, according to the present invention's
The construction of embodiment can also apply to the terminal of fixed type.
Below in conjunction with the accompanying drawings, by the description to embodiment, the content of the invention is described further.
Fig. 1 is refer to, Fig. 1 is the flow chart of the preferred embodiment of method for unlocking provided by the invention.Methods described includes:
S100, mobile terminal receive the maintenance information of user's input, and safeguard that information is sent to management end by described, wherein, institute
State and safeguard that information includes device identification and user identifies;
S200, management end checking is described safeguards information, and safeguards that information generates an identification code according to described when being proved to be successful, with
And the identification code is respectively sent to Cloud Server and the mobile terminal;
S300, the mobile terminal unlock equipment corresponding to the device identification by the identification code.
The present embodiment sends and known by being verified to the maintenance information of mobile terminal typing respectively after being proved to be successful
Other code is to the mobile terminal and Cloud Server, will during so that proper barcode scanning device scan is to identification code in mobile terminal
The identification code is compared with the identification code stored on the Cloud Server, and described equipment corresponding to information is safeguarded to control
Door lock is opened.So, the door lock that remote opening treats maintained equipment is realized, so as to realize the remote maintenance of equipment, to safeguarding people
Member brings aspect.
Specifically, it is described safeguard information be used for identify a maintenance task, it include user identify and device identification.Its
In, user's mark refers to performing the identification information of the identification information, i.e. attendant of the user of the maintenance task,
It can be job number, name of attendant etc..The device identification refers to the identification information for the equipment that needs are safeguarded.One
The corresponding unique device identification of equipment, it can be the numbering, title etc. of equipment.The equipment can be Multifunctional liquid crystal
The equipment that advertisement machine, Vending Machine, multifunctional inquiring machine etc. need periodic maintenance.In the present embodiment, it is described to safeguard information
Voluntarily inputted by attendant, it can be editor's input or selection input.The device identification and user's mark are defeated
The sequencing entered is not restricted.For example, the APP for controlling smart lock can be provided with the mobile terminal in advance, when
When user is that attendant opens the APP, the interface of mobile terminal displaying selection/input equipment mark and user's mark, with
So that the user of device identification and attendant corresponding to the equipment that user's selection/input needs to safeguard identify.Then basis
The device identification of user's input and user identify generation and safeguard information, and safeguard that information is sent to management end by described and tested
Card.
Exemplary, the mobile terminal receives the maintenance information of user's input, and safeguards that information is sent to pipe by described
End is managed, wherein, it is described to safeguard that information includes device identification and user's mark and specifically included:
S101, mobile terminal receive device identification and the user's mark of user's input;
S102, generation is identified according to the device identification and user safeguard information, and safeguard that information is sent to management end by described.
In the step S200, the identification code refers to that it can according to the coding information safeguarded information and generated
To be bar code or Quick Response Code.When management end receive it is described safeguard information when, it is verified, and is verifying
Identification code is generated afterwards in case being verified during follow-up unlocking.
Exemplary, the management end checking is described to safeguard information, and safeguards that information is given birth to according to described when being proved to be successful
Into an identification code, and it the identification code be respectively sent to Cloud Server and the mobile terminal can specifically include:
S201, the management end receive it is described safeguard information, and the device identification is searched in presetting database;
S202, when finding the device identification, obtain user's mark group corresponding to the device identification, and by the user
Mark is compared with user's mark group;
S203, when comparing successfully, safeguard that information generates an identification code according to described, and the identification code be respectively sent to cloud
Server and the mobile terminal.
Specifically, in the step S201, the presetting database is used for the maintenance for preserving advance importing/storage
Mission bit stream, it comprises at least the facility information for needing to safeguard, corresponding attendant's information and defined maintenance time section
Etc. information.When management end receive it is described safeguard information when, looked in the task list and search the device identification, if searching
Arrive, then treat equipment corresponding to the device identification in maintained equipment be present described in judgement.
In the step S202, in order to ensure user corresponding to user mark is to safeguard people corresponding to the equipment
Member, also needs further to verify that the user received identifies whether correctly.User's mark group refers to the set of user's mark.
User's mark group corresponding to the device identification refers to one corresponding with the equipment group user mark pre-set, i.e.,
Safeguard user's mark of the designated person of the equipment.Therefore, when finding the device identification, in the presetting database
It is middle to obtain user's mark group corresponding to the device identification, and user's mark is searched in user's mark group, work as lookup
Then, judge that user's mark compares success with user's mark group, then perform step S203.When not finding, sentence
Fixed user's mark compares failure with user's mark group, illustrates mistake during user's mark of user's input, i.e., described
Attendant corresponding to user's mark is not the attendant specified, and now management end discarding is described to safeguard information.
In the step S203, the Cloud Server user stores the identification code, and during follow-up unlock, tests
It is whether consistent with the identification code of storage to demonstrate,prove the identification code received, to control door lock to open.When comparing successfully, illustrate the use
The maintenance Information Authentication of family input is by the way that management end safeguards that information generates identification code according to described, then by the identification code division
The checking in case later stage unlock is not sent to Cloud Server and mobile terminal, so as to ensure that the security of remote unlocking.
Security when in one embodiment of the invention, in order to improve identification code verification, configured for the identification code
One useful life.Therefore, it is described when comparing successfully, safeguard that information generates an identification code according to described, and by the identification code
Being respectively sent to Cloud Server and the mobile terminal can specifically include:
If S2031, comparing successfully, obtain and described safeguard preset time period corresponding to information;
S2032, according to described safeguard that information generates an identification code, and the identification code is sent to the mobile terminal, by institute
State identification code and preset time period is sent to Cloud Server.
Specifically, in the step S2031, the preset time period refers to having for the identification code pre-set
Imitate the period.Verify that the identification code is just effective in the preset time period.Such as the preset time period is 2017-06-
23,19:00-23:00 attendant referred to is must be the 19 of the June 23 of 2017:00 to 23:Equipment is carried out between 00
Safeguard.
Further, in order to ensure the identification code have it is ageing, the Cloud Server receive the identification code with
Also include after preset time period:
S2033, Cloud Server preserve the identification code and preset time period association, and whether detection current time is in real time
The preset time period;
S2034, when current time is not at the preset time period, delete the identification code and preset time period.
Specifically, the current time refers to the current time that Cloud Server listens to.Cloud server institute
The preset time period and identification code of management end transmission are stated, and the preset time period and the identification code are associated preservation,
To have one-to-one relation therebetween.Then current time is detected in real time, and whether judges the current time
In the preset time period, if the current time is in the preset time period, does not perform and operate and continue to monitor currently
Whether the time is in preset time period.If the current time is not at the preset time period, delete the identification code with
And the preset time period, so when current time is not at the preset time period, and cloud server is described in
During identification code, it is stored deleted, i.e., can not be proved to be successful, so as to ensure that the ageing of identification code, be advantageous to more
Add the execution of effective management service task.
In the step S300, because the device configuration has the scanning means for scanning the identification code, such as
Camera, the first-class device of scanning.Therefore, can be by the identification code received described after mobile terminal receives the identification code
Scanning means in equipment is scanned, and the identification code scanned is sent to Cloud Server, to verify the identification scanned
Whether code is effective, and when being proved to be successful, opens the door lock of equipment.
Exemplary, the mobile terminal unlocks equipment corresponding to the device identification by the identification code specifically can be with
Including:
S301, when camera scanning is to the first identification code on mobile terminal, first identification code is sent to cloud service
Device;
First identification code is compared with the identification code that it is stored for S302, Cloud Server, if comparing successfully, transmission is opened
Lock is instructed to the camera to control the door lock of the equipment to open.
Specifically, the camera, which is configured at, treats in maintained equipment.First identification code refers to the shooting
The identification code that head scans.When camera is scanned to the first identification code, first identification code is sent to Cloud Server.When
So, due to being configured with camera in the equipment, therefore can be led to by triggering camera and the real-time video of management end progress
Letter safeguards information to verify, i.e. the identity information of attendant and the identification information of equipment.On the other hand, the camera is not swept
, can be with the ambient image around collecting device when retouching identification code, and image information is sent to management end, so as to management end
Know the situation of equipment.
In one embodiment of the invention, in order to ensure scanning to equipment corresponding to the camera of identification code is to need to tie up
The equipment of shield, its current location information can also be obtained by the GPS module that camera configures, then the position of equipment is carried out
Checking.Therefore, in the present embodiment, it is described to safeguard that information also includes the location of equipment corresponding to the device identification and believed
Breath.That is device identification and user mark of the mobile terminal except receiving user's input, the positional information of user's input is also received, so
Information is safeguarded according to this three generation afterwards.Corresponding, the position is also included according to described safeguard in information generation identification code
Information.Therefore, when the identification code that cloud server to camera is sent, included in the identification code that can be preserved according to it
Location information verification camera(That is equipment)Whether location is correct.
It is exemplary, it is described when camera scanning is to the first identification code on mobile terminal, by first identification code
Transmission can specifically include to Cloud Server:
S3011, when camera scanning is to the first identification code on mobile terminal, camera is obtained by its GPS module configured
Take the current location information residing for it;
S3012, the current location information and the first identification code sent to Cloud Server.
Specifically, the current location information refers to the camera, i.e., the location of described equipment information, it can
To be longitude and latitude information or place name etc..Camera is by the first identification code scanned and the present bit confidence
Breath is sent to Cloud Server.
In the present embodiment, first identification code is compared the Cloud Server with the identification code that it is stored, if
Compare successfully, then sending unlocking instruction can specifically be included to the camera with controlling the door lock of the equipment to open:
First identification code and current location information described in S3021, the cloud server, and by first identification code and its
The identification code of storage is compared;
If S3022, comparing successfully, the current location information is compared with positional information corresponding to the identification code;
If S3023, comparing successfully, unlocking instruction is sent to the camera to control the door lock of the equipment to open.
Specifically, in the step S3021, the Cloud Server carries out first to the first identification code received first
Layer compares, the first identification code that will be received and the identification code of storage(The identification code that i.e. management end is sent)It is compared, if
The two is identical, illustrates to compare successfully, i.e. correct identification code has been arrived in camera scanning.
Further, in the step S3022, after identification code compares successfully, second layer comparison is carried out, i.e., to receiving
Current location checking.The positional information included in the identification code that Cloud Server stores the current location information with it is entered
Row compares, if it is the camera treating to configure in maintained equipment to compare the camera for successfully, illustrating to scan to the first identification code.Example
Such as, if camera A's is in place A, camera B is in place B, and the positional information preserved in Cloud Server is place A.So
When camera B-scan is to the first identification code, the place A that its corresponding place B then preserves with Cloud Server is mismatched, and explanation is swept
The camera retouched to the first identification code is incorrect.So by comparison of the second layer to position, to improve the safety for checking of unlocking
Property, the device scan for avoiding safeguarding opens other equipment to identification code.
In the step S3023, when the current location information compares successfully, Cloud Server controls the equipment to open
Motor type relay opening door lock, to cause attendant to safeguard equipment, so as to solve the problems, such as that tradition machinery locks unlocking, improve
The agility and convenience of unlocking.
In the present embodiment, first identification code is compared the Cloud Server with the identification code, if comparing
Success, then unlocking instruction is sent to the camera to control the door lock of the equipment also to include after opening:
S03, Cloud Server delete the identification code.
So, after identification code verification success and opening door lock, illustrate that the identification code had used, now delete it
The identification code of preservation, ensure identification code only when time effectively, improve the security that equipment remotely identifies unlocking.
The present invention also provides a kind of unlocking system, as shown in Fig. 2 it includes:
The mobile terminal 100, for receiving the maintenance information of user's input, and safeguard that information is sent to management end by described,
Wherein, it is described to safeguard that information includes device identification and user identifies;
Management end 200, for verify it is described safeguard information, and safeguard the identification of information generation one according to described when being proved to be successful
Code, and the identification code is respectively sent to Cloud Server and the mobile terminal;
The mobile terminal 100 is additionally operable to unlock equipment corresponding to the device identification by the identification code.
In embodiment provided by the present invention, it should be understood that disclosed system and method, others can be passed through
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the module, is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.In addition, each functional unit in each embodiment of the present invention can be integrated in it is in a processing unit or each
Unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated unit both may be used
Realize, can also be realized in the form of hardware adds SFU software functional unit in the form of using hardware.It is above-mentioned with software function list
The integrated unit that the form of member is realized, can be stored in a computer read/write memory medium.Above-mentioned software function list
Member is stored in a storage medium, including some instructions to cause a computer equipment (can be personal computer, clothes
Be engaged in device, or network equipment etc.) or processor (processor) perform the part step of each embodiment methods described of the present invention
Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-Only Memory, ROM), deposit at random
Access to memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.