CN110070654A - Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium - Google Patents

Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium Download PDF

Info

Publication number
CN110070654A
CN110070654A CN201910353734.0A CN201910353734A CN110070654A CN 110070654 A CN110070654 A CN 110070654A CN 201910353734 A CN201910353734 A CN 201910353734A CN 110070654 A CN110070654 A CN 110070654A
Authority
CN
China
Prior art keywords
electronic lock
unlock
bluetooth
unlock instruction
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910353734.0A
Other languages
Chinese (zh)
Other versions
CN110070654B (en
Inventor
姚军
钟皓明
王周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910353734.0A priority Critical patent/CN110070654B/en
Publication of CN110070654A publication Critical patent/CN110070654A/en
Application granted granted Critical
Publication of CN110070654B publication Critical patent/CN110070654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to electronic lock fields, and the invention discloses a kind of electronic lock unlocking methods, comprising the following steps: terminal obtains the corresponding electronic lock mark of the unlock instruction when receiving unlock instruction;When bluetooth is in the open state, the unlock instruction is identified into corresponding electronic lock by Bluetooth channels and network channel transmitted in parallel to the electronic lock, so that the electronic lock executes unlock operation according to the unlock instruction being initially received.The invention also discloses a kind of electronic lock, terminal, electronics unlocking system and computer storage mediums.The present invention the problem of avoiding due to network signal difference or bluetooth connection failure, cause electronic lock unlock failure, improves the success rate of electronic lock unlock by binary channels transmitted in parallel unlock instruction.

Description

Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium
Technical field
The present invention relates to electronic lock technical field more particularly to electronic lock unlocking method, system, terminal, electronic lock and meters Calculation machine storage medium.
Background technique
In recent years, intelligent electronic lock on a sharing device using more and more extensive.The mode of user's unlock shared device Mainly are as follows: user obtains the device identification of shared device, by mobile phone to clothes using the two dimensional code in mobile phone scanning shared device Device of being engaged in sends request, which carries the device identification of shared device and the relevant information of user, and server is to receiving Request is verified, and sends unlock instruction to shared device when being verified, shared device unlock, user can be used should Shared device.
The mode of current unlocker device can not cannot complete unlock behaviour with server communication if user mobile phone Make.
Summary of the invention
The main purpose of the present invention is to provide a kind of electronic lock unlocking method, system, terminal electronic lock and computers to deposit Storage media, it is intended to solve to be sent to failure due to unlock instruction, caused by electronic lock unlock failure the technical issues of.
To achieve the above object, the present invention provides electronic lock unlocking method;
The electronic lock unlocking method be applied to terminal, the electronic lock unlocking method the following steps are included:
When receiving unlock instruction, the corresponding electronic lock mark of the unlock instruction is obtained;
When bluetooth is in the open state, the unlock instruction is passed through into Bluetooth channels and network channel transmitted in parallel to the electricity Son lock identifies corresponding electronic lock, so that the electronic lock executes unlock operation according to the unlock instruction being initially received.
Optionally, described when receiving unlock instruction, the step of corresponding electronic lock of the unlock instruction identifies is obtained, Include:
It scans the two-dimensional code, and loads the corresponding application program of the two dimensional code;
When receiving the unlock instruction based on the application triggers, the corresponding identification information of the two dimensional code is obtained, and Using the identification information as the corresponding electronic lock mark of unlock instruction.
Optionally, described when bluetooth is in the open state, the unlock instruction is passed through into Bluetooth channels and network channel The step of transmitted in parallel to the electronic lock identifies corresponding electronic lock, comprising:
When bluetooth is in the open state, Xiang Suoshu electronic lock identifies corresponding electronic lock and sends Bluetooth pairing request;
When receiving Bluetooth pairing code of the electronic lock based on Bluetooth pairing request feedback, according to the Bluetooth pairing Code executes Bluetooth pairing operation and establishes bluetooth connection;
When detecting bluetooth connection success, by the unlock instruction by Bluetooth channels and network channel transmitted in parallel to described Electronic lock identifies corresponding electronic lock.
Optionally, described when detecting bluetooth connection success, the unlock instruction is led to by Bluetooth channels and network The step of road transmitted in parallel to the electronic lock identifies corresponding electronic lock, comprising:
When detecting bluetooth connection success, judgement currently whether there is network signal;
When there is currently no network signal, the unlock instruction is sent to the electronic lock mark by Bluetooth channels and is corresponded to Electronic lock;
When there is currently network signal, by the unlock instruction by Bluetooth channels be sent to the electronic lock identify it is corresponding Electronic lock, and the unlock instruction is sent to server by network channel, so that server passes through Internet of Things for the solution It locks command broadcast to the electronic lock and identifies corresponding electronic lock.
Optionally, described when receiving unlock instruction, obtain the step of corresponding electronic lock of the unlock instruction identifies Later, comprising:
When bluetooth is in close state, judgement currently whether there is network signal;
When there is currently network signal, the unlock instruction is sent to server by network channel, so that server is logical It crosses Internet of Things and the unlock instruction is broadcasted into electronic lock corresponding to electronic lock mark;
When there is currently no network signal, opens bluetooth and execute Bluetooth pairing operation, it, will be described in bluetooth connection success Unlock instruction sends unlock instruction to the electronic lock by Bluetooth channels and identifies corresponding electronic lock.
Optionally, described when bluetooth is in the open state, the unlock instruction is passed through into Bluetooth channels and network channel After the step of transmitted in parallel to the electronic lock identifies corresponding electronic lock, comprising:
The unlock of the electronic lock transmission is received as a result, judging whether the unlock result derives from the Bluetooth channels;
In the unlock the result is that deriving from the Bluetooth channels, then the unlock result is fed back into server, so that described The use state of server electronic lock according to the unlock result queue.
In addition, to achieve the above object, the present invention also provides a kind of electronic lock unlocking methods;
The electronic lock unlocking method be applied to electronic lock, the electronic lock unlocking method the following steps are included:
When receiving Bluetooth pairing request, the terminal iidentification in the Bluetooth pairing request is obtained, and establish and the terminal Identify the bluetooth connection of counterpart terminal;
When receiving unlock instruction, unlock operation is executed, and judges currently to whether there is network signal;
When there is currently network signal, the unlock result of the unlock operation is fed back into server by Internet of Things, so that The use state of server electronic lock according to the unlock result queue;
When there is currently no network signal, the unlock result of the unlock operation is sent to the end by Bluetooth channels End, so that the unlock result is sent to server by the terminal.
In addition, to achieve the above object, the present invention also provides a kind of electronics unlocking systems;
The electronics unlocking system includes: terminal, electronic lock and the server of communication connection, the electronics unlocking system packet It includes:
Terminal obtains the corresponding electronic lock mark of the unlock instruction when receiving unlock instruction;
When terminal determines that bluetooth is in the open state, the terminal issues unlock instruction by Bluetooth channels and network channel parallel Corresponding electronic lock is identified to the electronic lock;
Electronic lock executes unlock operation when receiving unlock instruction, and the unlock result of the unlock operation is fed back to clothes Business device;
Server receives the unlock as a result, server is according to the use state for unlocking electronic lock described in result queue.
In addition, to achieve the above object, the present invention also provides a kind of terminals;
The terminal includes: bluetooth module, network communication module, first memory, first processor and is stored in described first On memory and the computer program that can be run on the first processor, in which:
The computer program realizes following step when being executed by the first processor:
When the first processor receives unlock instruction, the first processor obtains the corresponding electronics of the unlock instruction Lock mark;
When bluetooth is in the open state, the unlock instruction is passed through the bluetooth module and the net by the first processor Network communication module transmitted in parallel to the electronic lock identifies corresponding electronic lock, so that the electronic lock is according to being initially received The unlock instruction executes unlock operation.
In addition, to achieve the above object, the present invention also provides a kind of electronic locks;
The electronic lock includes: second memory, second processor and is stored on the second memory and can be described The computer program run on two processors, in which:
The computer program performs the steps of when being executed by the second processor
When the second processor receives Bluetooth pairing request, second processor obtains the end in the Bluetooth pairing request End mark, and establish the bluetooth connection with the terminal iidentification counterpart terminal;
When the second processor receives unlock instruction, second processor executes unlock operation, and judges currently whether deposit In network signal;
When there is currently network signal, the unlock result of the unlock operation is fed back into server by Internet of Things, so that The use state of server electronic lock according to the unlock result queue;
When there is currently no network signal, the unlock result of the unlock operation is sent to the end by Bluetooth channels End, so that the unlock result is sent to server by the terminal.
In addition, to achieve the above object, the present invention also provides computer storage mediums;
It is stored with computer program in the computer storage medium, is realized when the computer program is executed by processor as above The step of electronic lock unlocking method stated.
A kind of electronic lock unlocking method, system, terminal, electronic lock and the computer storage that the embodiment of the present invention proposes are situated between Matter, terminal obtain the corresponding electronic lock mark of the unlock instruction when receiving unlock instruction;It is in and opens in the bluetooth of terminal When opening state, the unlock instruction is identified into corresponding electricity by Bluetooth channels and network channel transmitted in parallel to the electronic lock Son lock, so that the electronic lock executes unlock operation according to the unlock instruction being initially received;Terminal is logical in the present embodiment Network and bluetooth binary channels transmitted in parallel unlock instruction are crossed to electronic lock, is avoided since network signal difference or bluetooth connection are lost The problem of losing, unlock instruction is caused to be sent to unsuccessfully guarantees that unlock instruction smoothly reaches electronic lock, is unlocked successfully with improving electronic lock Rate.
Detailed description of the invention
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of electronic lock unlocking method first embodiment of the present invention;
Fig. 3 is the flow diagram of electronic lock unlocking method 3rd embodiment of the present invention;
Fig. 4 is the flow diagram of electronic lock unlocking method fourth embodiment of the present invention;
Fig. 5 is the specific schematic diagram of electronic lock in electronic lock unlocking method fourth embodiment of the present invention;
Fig. 6 is the concrete scene implementation diagram of one embodiment of electronics unlocking system of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention can be also possible to mobile terminal with fixed terminal, e.g., the Intelligent air with network savvy Tune, intelligent electric lamp, intelligent power, intelligent sound box, autonomous driving vehicle, PC (personal computer) personal computer, Smart phone, tablet computer, E-book reader, portable computer etc..
As shown in Figure 1, the terminal may include: processor 1001, for example, central processing unit Central Processing Unit, CPU), network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 For realizing the connection communication between these components.User interface 1003 may include display screen (Display), input unit ratio Such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 may include optionally that (such as Wireless Fidelity WIreless-FIdelity, WIFI connect standard wireline interface and wireless interface Mouthful).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), For example, magnetic disk storage.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Optionally, terminal can also include camera, RF(Radio Frequency, radio frequency) circuit, sensor, audio Circuit, WiFi module;Input unit, than display screen, touch screen;Network interface can in blanking wireless interface in addition to WiFi, bluetooth, Probe etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, optical sensor can wrap Include ambient light sensor and proximity sensor;Certainly, mobile terminal can also configure gyroscope, barometer, hygrometer, thermometer, The other sensors such as infrared sensor, details are not described herein.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, the computer software product, which is stored in a storage medium, (storage medium: is called computer storage Medium, computer media, readable medium, readable storage medium storing program for executing, computer readable storage medium are directly medium etc., storage Medium can be non-volatile readable storage medium, such as RAM, magnetic disk, CD) in, including some instructions use is so that an end End equipment (can be mobile phone, computer, server, air conditioner or the network equipment etc.) executes each embodiment institute of the present invention The method stated, as may include operating system, network communication module, use in a kind of memory 1005 of computer storage medium Family interface module and computer program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for calling the computer program stored in memory 1005, and execute the electronics that following embodiment of the present invention provides Lock the step in unlocking method.
Referring to Fig. 2, in the first embodiment of electronic lock unlocking method of the present invention, the electronic lock unlocking method includes:
Step S10 obtains the corresponding electronic lock mark of the unlock instruction when receiving unlock instruction.
Electronic lock unlocking method in the present embodiment is applied to terminal as shown in Figure 1, is equipped with bluetooth module in terminal And network communication module, bluetooth module are a kind of PCBA(Printed Circuit Board of integrated Bluetooth function Assembly, circuit board assemblies) plate, bluetooth module is used for short-distance wireless communication, and bluetooth module is divided into bluetooth number according to function According to module and blue tooth voice module;Network communication module is the chip of integrated wireless network communication function, and network communication module can To be interacted with server and electronic lock.
Terminal receives unlock instruction in the present embodiment, and the triggering mode of unlock instruction is not especially limited, that is, unlock instruction It can actively be triggered by user, for example, user exports xxx number electronic lock triggering unlock instruction in the display interface of terminal; Unlock instruction can also be by terminal automatic trigger, for example, terminal presets unlock instruction trigger condition are as follows: terminal and electronics The distance of lock is less than pre-determined distance (pre-determined distance is pre-set apart from critical value, such as pre-determined distance is 1 meter), in terminal When detecting that terminal is less than pre-determined distance at a distance from electronic lock, terminal automatic trigger unlock instruction.
Terminal is after receiving unlock instruction, and terminal obtains the corresponding electronic lock mark of unlock instruction, and then, terminal is sentenced Break itself bluetooth it is whether in the open state, to determine the transmission approach of unlock instruction according to the state of itself bluetooth, specifically Ground:
The unlock instruction is passed through Bluetooth channels and network channel transmitted in parallel when bluetooth is in the open state by step S20 Corresponding electronic lock is identified to the electronic lock, so that the electronic lock executes solution according to the unlock instruction being initially received Lock operation.
When terminal determines that the bluetooth of itself is in the open state, terminal by bluetooth module and network communication module it is parallel under It sends out unlock instruction to electronic lock and identifies corresponding electronic lock, so that electronic lock executes unlock according to the unlock instruction being initially received It operates, unlock instruction is sent by binary channels in the present embodiment, can effectively guarantee that unlock instruction smoothly reaches electronic lock, mention Rise the success rate of electronic lock unlock.Specifically, comprising:
Step S21, when bluetooth is in the open state, Xiang Suoshu electronic lock identifies corresponding electronic lock transmission Bluetooth pairing and asks It asks.
When the bluetooth of terminal is in the open state, terminal identifies corresponding electronic lock transmission Bluetooth pairing to electronic lock and asks It asks, that is, the facility information (facility information includes terminal iidentification, Bluetooth pairing code) of itself is loaded into Bluetooth pairing and requested by terminal In, terminal is sent to electronic lock according to Bluetooth transmission protocol, by Bluetooth pairing request, so that electronic lock is according to the bluetooth received Pairing request feeds back Bluetooth pairing code.
Step S22, when receiving Bluetooth pairing code of the electronic lock based on Bluetooth pairing request feedback, according to The Bluetooth pairing code executes Bluetooth pairing operation and establishes bluetooth connection.
Terminal receives Bluetooth pairing code of the electronic lock based on Bluetooth pairing request feedback, and terminal is according to Bluetooth pairing code and electricity Son lock identifies corresponding electronic lock and carries out Bluetooth pairing, does not need user in the present embodiment and carries out Bluetooth pairing operation manually, eventually End can automatically carry out Bluetooth pairing, reduce user's operation.
The unlock instruction is passed through Bluetooth channels and network channel simultaneously when detecting bluetooth connection success by step S23 Row is sent to the electronic lock and identifies corresponding electronic lock.
Specifically, step S23 includes:
Step b1, when detecting bluetooth connection success, judgement currently whether there is network signal;
The unlock instruction is sent to the electronic lock by Bluetooth channels when there is currently no network signal by step b2 Identify corresponding electronic lock;
The unlock instruction is sent to the electronic lock mark by Bluetooth channels when there is currently network signal by step b3 Know corresponding electronic lock, and the unlock instruction is sent to server by network channel, so that server passes through Internet of Things The unlock instruction is broadcasted to the electronic lock and identifies corresponding electronic lock.
In the present embodiment in bluetooth connection success, terminal judgement currently whether there is network signal, be currently with basis It is no that there are the transmission approach that network signal determines unlock instruction;Specifically, when there is currently no network signal, terminal passes through indigo plant Tooth module sends unlock instruction to electronic lock and identifies corresponding electronic lock;When there is currently network signal, terminal passes through bluetooth Unlock instruction is sent with two channels of network, that is, terminal identifies corresponding by bluetooth module transmission unlock instruction to electronic lock Electronic lock, at the same time, terminal send unlock instruction to server, so that server passes through Internet of Things by network communication module Unlock instruction is broadcasted to electronic lock and identifies corresponding electronic lock.
Terminal is by network and bluetooth binary channels transmitted in parallel unlock instruction to electronic lock in the present embodiment, avoid by In network signal difference or bluetooth connection failure, the problem of causing unlock instruction to be sent to unsuccessfully, guarantee that unlock instruction smoothly reaches Electronic lock, to improve electronic lock unlock success rate.
Further, the second embodiment of electronics unlocking method of the present invention is proposed on the basis of first embodiment.
The present embodiment is the refinement of step S10 in first embodiment, and this gives terminals by scanning the two-dimensional code Form obtain electronic lock mark specific implementation, comprising:
Step S11, scans the two-dimensional code, and loads the corresponding application program of the two dimensional code.
User's using terminal scans the two-dimensional code, the corresponding application program of terminal loads two dimensional code, that is, will be electric in the present embodiment Son lock solution lock control method is set as small routine, reduces the occupancy to terminal storage space, while facilitating the operation of user.
It is corresponding to obtain the two dimensional code when receiving the unlock instruction based on the application triggers by step S12 Identification information, and identified the identification information as the corresponding electronic lock of unlock instruction.
For terminal when application program loads completion, user can be based on application triggers unlock instruction in the present embodiment, That is, user opens application program, then clicks unlocking button and trigger unlock instruction, receive in terminal based on application triggers Unlock instruction when, terminal obtains the corresponding identification information of two dimensional code, and terminal is using identification information as the corresponding electricity of unlock instruction Son lock mark.User is not needed in the present embodiment and manually inputs electronic lock mark, so that user in electronic lock unlocking process It is more convenient to operate.
Further, electronic lock unlock side of the present invention is proposed on the basis of first embodiment of the invention referring to Fig. 3 The 3rd embodiment of method.
The present embodiment be in first embodiment after step S10 the step of, specifically illustrate the indigo plant of terminal in the present embodiment When tooth is in close state, the electronic lock unlocking method includes:
Step S30, when the bluetooth of the terminal is in close state, the terminal judgement currently whether there is network signal.
In the present embodiment after terminal receives unlock instruction, when terminal determines that bluetooth is in close state, terminal is sentenced It is disconnected currently to whether there is network signal, to determine the need for opening bluetooth, specifically:
The unlock instruction is sent to server by network channel when there is currently network signal by step S40, so that The unlock instruction is broadcasted to the electronic lock by Internet of Things and identifies corresponding electronic lock by server.
When there is currently network signal, terminal sends unlock instruction to server, so that clothes by network communication module Unlock instruction is broadcasted to electronic lock by Internet of Things and identifies corresponding electronic lock by business device;It is understood that there is currently When network signal, the transmission of instruction is unlocked in the present embodiment using network channel, reduces the power consumption for opening bluetooth, keeps away When having exempted from that bluetooth connection can not be established, the case where causing unlock instruction not reach electronic lock down.
Step S50 opens bluetooth and executes Bluetooth pairing operation, in bluetooth connection when there is currently no network signal When success, the unlock instruction is sent into unlock instruction to the electronic lock by Bluetooth channels and identifies corresponding electronic lock.
When there is currently no network signal, terminal opens bluetooth and executes Bluetooth pairing operation, wherein executes bluetooth and matches First embodiment of the invention is referred to the specific implementation step of operation, is not repeated in the present embodiment, bluetooth connection at When function, unlock instruction is sent unlock instruction to the electronic lock by Bluetooth channels and identifies corresponding electronic lock by terminal.
In the present embodiment when the bluetooth of terminal is in close state, terminal is according to current network signal message, selection Suitable unlock instruction sends approach, to guarantee the success rate of electronic lock unlock while reducing user's operation.
Further, the fourth embodiment of electronic lock unlocking method of the present invention is proposed on the basis of the above embodiments, The present embodiment electronic lock unlock complete after the step of include:
Step S60 receives the unlock that the electronic lock is sent as a result, judging whether the unlock result derives from the bluetooth and lead to Road;In the unlock the result is that deriving from the Bluetooth channels, then the unlock result is fed back into server, so that the clothes Device be engaged according to the use state for unlocking electronic lock described in result queue.
In the present embodiment, for terminal after unlock instruction is sent completely, terminal receives the unlock of electronic lock feedback in real time As a result;In unlock the result is that when deriving from network channel, then terminal exports the unlock result so that user checks, in unlock result When being derived from Bluetooth channels, then terminal feeds back to server for result is unlocked, so that server is according to unlock result queue electricity The use state of son lock, that is, when unlocking result is to unlock successfully, terminal will unlock successful information and be sent to server, clothes The electronic lock is identified corresponding electronic lock and is labeled as use state by business device;When unlocking result is unlock failure, terminal will be solved The information of lock failure is sent to server, which is identified corresponding electronic lock target and unlock number, prevented by server statistics Only the case where electronic lock failure.
In addition, referring to Fig. 4, in the fourth embodiment of electronic lock unlocking method of the present invention, the electronic lock unlocking method Include:
Step S70 obtains the terminal iidentification in Bluetooth pairing request when receiving Bluetooth pairing request, and establish with The bluetooth connection of the terminal iidentification counterpart terminal.
Electronic lock unlocking method in the present embodiment is applied to electronic lock, and bluetooth module is equipped in electronic lock and network is logical Believe module, wherein bluetooth module is a kind of PCBA(Printed Circuit Board Assembly of integrated Bluetooth function, Circuit board assemblies) plate, bluetooth module is used for short-distance wireless communication, and bluetooth module is divided into blue-teeth data module and indigo plant according to function Tooth voice module;Network communication module is the chip of integrated wireless network communication function, and network communication module can be mutual with terminal It is logical, it can also be interacted by Internet of Things and server.
For electronic lock when receiving Bluetooth pairing request, electronic lock obtains the terminal iidentification in Bluetooth pairing request, electronics It locks and establishes the bluetooth connection with terminal iidentification counterpart terminal.It is understood that the type of electronic lock is not made in the present embodiment It is specific to limit, shopping cart electronic lock referring to Figure 5.
Step S80 executes unlock operation when receiving unlock instruction, and judges currently to whether there is network signal;
When electronic lock receives unlock instruction, electronic lock executes unlock operation, and the unlock instruction in the present embodiment is bluetooth module Received, unlock instruction can also be that network communication module is received, and electronic lock is executed according to the unlock instruction being initially received Unlock operation,
In addition, terminal feeds back the unlock result of unlock instruction according to its source when unlock instruction executes completion.Specifically Ground, when electronic lock unlocks completion, electronic lock judgement currently whether there is network signal, to determine the unlock for unlocking operation and obtaining As a result feedback path, specifically:
The unlock result of the unlock operation is fed back to service by Internet of Things when there is currently network signal by step S90 Device.
When there is currently network signal, the unlock result of unlock operation is fed back to service by Internet of Things by electronic lock Device, so that the use state of server electronic lock according to unlock result queue;That is, the unlock knot that electronic lock operates unlock Fruit is sent to gateway, and gateway will unlock result and be sent to corresponding Internet of Things, and Internet of Things feeds back to server for result is unlocked, with Server is set to unlock the use state of result queue electronic lock based on the received.
The unlock result of the unlock operation is passed through Bluetooth channels when there is currently no network signal by step S100 It is sent to the terminal, so that the unlock result is sent to server by the terminal.
When there is currently no network signal, the unlock result of unlock operation is sent to institute by Bluetooth channels by electronic lock Terminal is stated, so that the unlock result is sent to server by terminal, so that server unlocks result queue electricity based on the received The use state of son lock.
Electronic lock is provided with bluetooth module and network communication module in the present embodiment, and the bluetooth of electronic lock is in opening state State, electronic lock can receive from bluetooth module and/or the unlock instruction sent from network communication module, and execute unlock behaviour Make, be effectively guaranteed the success rate of electronic lock unlock, at the same time, it is anti-will to unlock result progress for electronic lock in the present embodiment Feedback, so that user understands the use state of electronic lock.
In addition, the embodiment of the present invention also proposes a kind of electronics unlocking system, the electronics device for locking and unlocking referring to Fig. 6 Include:
Terminal obtains the corresponding electronic lock mark of the unlock instruction when receiving unlock instruction;
When terminal determines that bluetooth is in the open state, the terminal issues unlock instruction by Bluetooth channels and network channel parallel Corresponding electronic lock is identified to the electronic lock;
Electronic lock executes unlock operation when receiving unlock instruction, and the unlock result of the unlock operation is fed back to clothes Business device;
Server receives the unlock as a result, server is according to the use state for unlocking electronic lock described in result queue.
Wherein, the step of each Implement of Function Module of electronics device for locking and unlocking can refer to electronic lock unlocking method of the present invention Each embodiment, details are not described herein again.
In addition, the embodiment of the present invention also proposes a kind of computer storage medium.
Computer program, the realization when computer program is executed by processor are stored in the computer storage medium Operation in electronic lock unlocking method provided by the above embodiment.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body/operation/object is distinguished with another entity/operation/object, without necessarily requiring or implying these entity/operations/ There are any actual relationship or orders between object;The terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or the system that include a series of elements not only include that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of system.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in process, method, article or the system for including the element.
For device embodiment, since it is substantially similar to the method embodiment, related so describing fairly simple Place illustrates referring to the part of embodiment of the method.The apparatus embodiments described above are merely exemplary, wherein making It may or may not be physically separated for the unit of separate part description.In can selecting according to the actual needs Some or all of the modules realize the purpose of the present invention program.Those of ordinary skill in the art are not making the creative labor In the case where, it can it understands and implements.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (11)

1. a kind of electronic lock unlocking method, which is characterized in that the electronic lock unlocking method is applied to terminal, the electronic lock solution Locking method the following steps are included:
When receiving unlock instruction, the corresponding electronic lock mark of the unlock instruction is obtained;
When bluetooth is in the open state, the unlock instruction is passed through into Bluetooth channels and network channel transmitted in parallel to the electricity Son lock identifies corresponding electronic lock, so that the electronic lock executes unlock operation according to the unlock instruction being initially received.
2. electronic lock unlocking method as described in claim 1, which is characterized in that it is described when receiving unlock instruction, it obtains The step of unlock instruction corresponding electronic lock mark, comprising:
It scans the two-dimensional code, and loads the corresponding application program of the two dimensional code;
When receiving the unlock instruction based on the application triggers, the corresponding identification information of the two dimensional code is obtained, and Using the identification information as the corresponding electronic lock mark of unlock instruction.
3. electronic lock unlocking method as described in claim 1, which is characterized in that it is described when bluetooth is in the open state, it will The step of unlock instruction identifies corresponding electronic lock by Bluetooth channels and network channel transmitted in parallel to the electronic lock, Include:
When bluetooth is in the open state, Xiang Suoshu electronic lock identifies corresponding electronic lock and sends Bluetooth pairing request;
When receiving Bluetooth pairing code of the electronic lock based on Bluetooth pairing request feedback, according to the Bluetooth pairing Code executes Bluetooth pairing operation and establishes bluetooth connection;
When detecting bluetooth connection success, by the unlock instruction by Bluetooth channels and network channel transmitted in parallel to described Electronic lock identifies corresponding electronic lock.
4. electronic lock unlocking method as claimed in claim 3, which is characterized in that it is described when detecting bluetooth connection success, The unlock instruction is identified by Bluetooth channels and network channel transmitted in parallel to the electronic lock to the step of corresponding electronic lock Suddenly, comprising:
When detecting bluetooth connection success, judgement currently whether there is network signal;
When there is currently no network signal, the unlock instruction is sent to the electronic lock mark by Bluetooth channels and is corresponded to Electronic lock;
When there is currently network signal, by the unlock instruction by Bluetooth channels be sent to the electronic lock identify it is corresponding Electronic lock, and the unlock instruction is sent to server by network channel, so that server passes through Internet of Things for the solution It locks command broadcast to the electronic lock and identifies corresponding electronic lock.
5. electronic lock unlocking method as described in claim 1, which is characterized in that it is described when receiving unlock instruction, it obtains After the step of unlock instruction corresponding electronic lock mark, comprising:
When bluetooth is in close state, judgement currently whether there is network signal;
When there is currently network signal, the unlock instruction is sent to server by network channel, so that server is logical It crosses Internet of Things and the unlock instruction is broadcasted into electronic lock corresponding to electronic lock mark;
When there is currently no network signal, opens bluetooth and execute Bluetooth pairing operation, it, will be described in bluetooth connection success Unlock instruction sends unlock instruction to the electronic lock by Bluetooth channels and identifies corresponding electronic lock.
6. electronic lock unlocking method as described in claim 1, which is characterized in that it is described when bluetooth is in the open state, it will The step of unlock instruction identifies corresponding electronic lock by Bluetooth channels and network channel transmitted in parallel to the electronic lock Later, comprising:
The unlock of the electronic lock transmission is received as a result, judging whether the unlock result derives from the Bluetooth channels;
In the unlock the result is that deriving from the Bluetooth channels, then the unlock result is fed back into server, so that described The use state of server electronic lock according to the unlock result queue.
7. a kind of electronic lock unlocking method, which is characterized in that the electronic lock unlocking method is applied to electronic lock, the electronic lock Unlocking method the following steps are included:
When receiving Bluetooth pairing request, the terminal iidentification in the Bluetooth pairing request is obtained, and establish and the terminal Identify the bluetooth connection of counterpart terminal;
When receiving unlock instruction, unlock operation is executed, and judges currently to whether there is network signal;
When there is currently network signal, the unlock result of the unlock operation is fed back into server by Internet of Things, so that The use state of server electronic lock according to the unlock result queue;
When there is currently no network signal, the unlock result of the unlock operation is sent to the end by Bluetooth channels End, so that the unlock result is sent to server by the terminal.
8. a kind of electronics unlocking system, which is characterized in that the electronics unlocking system includes: the terminal of communication connection, electricity Son lock and server, the electronics unlocking system include:
Terminal obtains the corresponding electronic lock mark of the unlock instruction when receiving unlock instruction;
When terminal determines that bluetooth is in the open state, the terminal issues unlock instruction by Bluetooth channels and network channel parallel Corresponding electronic lock is identified to the electronic lock;
Electronic lock executes unlock operation when receiving unlock instruction, and the unlock result of the unlock operation is fed back to clothes Business device;
Server receives the unlock as a result, server is according to the use state for unlocking electronic lock described in result queue.
9. a kind of terminal, which is characterized in that the terminal includes: bluetooth module, network communication module, first memory, first Processor and it is stored in the computer program that can be run on the first memory and on the first processor, in which:
The computer program realizes following step when being executed by the first processor:
When the first processor receives unlock instruction, the first processor obtains the corresponding electronics of the unlock instruction Lock mark;
When bluetooth is in the open state, the unlock instruction is passed through the bluetooth module and the net by the first processor Network communication module transmitted in parallel to the electronic lock identifies corresponding electronic lock, so that the electronic lock is according to being initially received The unlock instruction executes unlock operation.
10. a kind of electronic lock, which is characterized in that the electronic lock includes: second memory, second processor and is stored in described On second memory and the computer program that can be run in the second processor, in which:
The computer program performs the steps of when being executed by the second processor
When the second processor receives Bluetooth pairing request, second processor obtains the end in the Bluetooth pairing request End mark, and establish the bluetooth connection with the terminal iidentification counterpart terminal;
When the second processor receives unlock instruction, second processor executes unlock operation, and judges currently whether deposit In network signal;
When there is currently network signal, the unlock result of the unlock operation is fed back into server by Internet of Things, so that The use state of server electronic lock according to the unlock result queue;
When there is currently no network signal, the unlock result of the unlock operation is sent to the end by Bluetooth channels End, so that the unlock result is sent to server by the terminal.
11. a kind of computer storage medium, which is characterized in that be stored with computer program, institute in the computer storage medium It states realizing the electronic lock unlocking method as described in any one of claim 1 to 6 or 7 when computer program is executed by processor Step.
CN201910353734.0A 2019-04-29 2019-04-29 Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium Active CN110070654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910353734.0A CN110070654B (en) 2019-04-29 2019-04-29 Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910353734.0A CN110070654B (en) 2019-04-29 2019-04-29 Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium

Publications (2)

Publication Number Publication Date
CN110070654A true CN110070654A (en) 2019-07-30
CN110070654B CN110070654B (en) 2022-01-11

Family

ID=67369539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910353734.0A Active CN110070654B (en) 2019-04-29 2019-04-29 Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium

Country Status (1)

Country Link
CN (1) CN110070654B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111312206A (en) * 2019-12-23 2020-06-19 支付宝(杭州)信息技术有限公司 Information identification method and device based on voice, electronic equipment and system
CN111402460A (en) * 2020-02-27 2020-07-10 广东启正电子科技有限公司 Door lock opening method based on Internet of things
CN112124247A (en) * 2020-09-18 2020-12-25 上海钧正网络科技有限公司 Vehicle lock control method and device and computer readable storage medium
CN115131898A (en) * 2022-05-27 2022-09-30 江苏彩诚亿智能科技有限公司 Independent network information intercommunication method for electronic lock

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205942835U (en) * 2016-08-03 2017-02-08 赖炼坤 Wireless attendance security door lock
KR20170132061A (en) * 2016-05-23 2017-12-01 심한식 Indoor security device using the Internet of things
CN207458147U (en) * 2018-02-01 2018-06-05 哈尔滨理工大学 Multimode identification gate control system based on cloud security
CN108198285A (en) * 2017-12-21 2018-06-22 广东汇泰龙科技有限公司 One kind is based on bluetooth closely automatic safe method for unlocking and system
CN108337273A (en) * 2017-01-18 2018-07-27 芜湖美的厨卫电器制造有限公司 Unlocking method, system and its equipment of leased equipment
CN108391241A (en) * 2017-12-29 2018-08-10 上海挚想科技有限公司 control method and system
CN108447156A (en) * 2018-03-14 2018-08-24 广州科坦电子技术有限公司 A kind of hotel's smart lock
CN109493501A (en) * 2019-01-14 2019-03-19 深圳前海微众银行股份有限公司 Shopping cart electronic lock, shopping cart electronic lock management system and management method
CN109544732A (en) * 2018-10-17 2019-03-29 广州慧享佳物联科技有限公司 Electronic lock connection method, device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170132061A (en) * 2016-05-23 2017-12-01 심한식 Indoor security device using the Internet of things
CN205942835U (en) * 2016-08-03 2017-02-08 赖炼坤 Wireless attendance security door lock
CN108337273A (en) * 2017-01-18 2018-07-27 芜湖美的厨卫电器制造有限公司 Unlocking method, system and its equipment of leased equipment
CN108198285A (en) * 2017-12-21 2018-06-22 广东汇泰龙科技有限公司 One kind is based on bluetooth closely automatic safe method for unlocking and system
CN108391241A (en) * 2017-12-29 2018-08-10 上海挚想科技有限公司 control method and system
CN207458147U (en) * 2018-02-01 2018-06-05 哈尔滨理工大学 Multimode identification gate control system based on cloud security
CN108447156A (en) * 2018-03-14 2018-08-24 广州科坦电子技术有限公司 A kind of hotel's smart lock
CN109544732A (en) * 2018-10-17 2019-03-29 广州慧享佳物联科技有限公司 Electronic lock connection method, device, electronic equipment and storage medium
CN109493501A (en) * 2019-01-14 2019-03-19 深圳前海微众银行股份有限公司 Shopping cart electronic lock, shopping cart electronic lock management system and management method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111312206A (en) * 2019-12-23 2020-06-19 支付宝(杭州)信息技术有限公司 Information identification method and device based on voice, electronic equipment and system
CN111402460A (en) * 2020-02-27 2020-07-10 广东启正电子科技有限公司 Door lock opening method based on Internet of things
CN112124247A (en) * 2020-09-18 2020-12-25 上海钧正网络科技有限公司 Vehicle lock control method and device and computer readable storage medium
CN115131898A (en) * 2022-05-27 2022-09-30 江苏彩诚亿智能科技有限公司 Independent network information intercommunication method for electronic lock
CN115131898B (en) * 2022-05-27 2024-02-02 江苏彩诚亿智能科技有限公司 Independent network information intercommunication method for electronic lock

Also Published As

Publication number Publication date
CN110070654B (en) 2022-01-11

Similar Documents

Publication Publication Date Title
CN110070654A (en) Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium
CN112153071B (en) Message sending method, device, gateway and storage medium
KR102657527B1 (en) Method for setting of a device based on information associated with account and electronic device thereof
CN109150568A (en) A kind of network management, device, system, equipment and storage medium
CN108198298A (en) Unlocking method, terminal and the computer readable storage medium of shared household electrical appliances
WO2020168561A1 (en) Device network distribution method and apparatus, electronic device, and storage medium
CN102427430A (en) Two-way communication of events between a mobile device and remote client
US20230164033A1 (en) Edge computing system and method
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN112436985A (en) Network distribution method, device, terminal equipment and storage medium
US20230353555A1 (en) Iot device and method for onboarding iot device to server
CN110210007A (en) A kind of processing method of document, terminal and computer equipment
CN107318119A (en) Home appliance network-building method, home appliance and computer-readable recording medium
CN103873592A (en) Data transmission method and system
CN104918209A (en) Mobile terminal and communication method thereof
CN112333100A (en) Route creating method, device and readable storage medium
CN104378339B (en) A kind of communication means and device using agency agreement
CN106413132A (en) WI-FI connection method and system
CN114980358A (en) Automatic network distribution method, system, equipment and storage medium for batch intelligent equipment
CN203858601U (en) Transmitting device and receiving device
CN104808831A (en) Data sharing method, transport unit and receiving device
WO2022206676A1 (en) Function transfer method and apparatus
CN111954164B (en) Equipment network distribution method and device and computer readable storage medium
CN115378748B (en) Electronic home equipment and positioning method
CN116055236A (en) Intelligent device control method and device, computer device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant