CN107734460B - Method and terminal for realizing intelligent unlocking of Bluetooth lock based on mobile terminal - Google Patents
Method and terminal for realizing intelligent unlocking of Bluetooth lock based on mobile terminal Download PDFInfo
- Publication number
- CN107734460B CN107734460B CN201710855501.1A CN201710855501A CN107734460B CN 107734460 B CN107734460 B CN 107734460B CN 201710855501 A CN201710855501 A CN 201710855501A CN 107734460 B CN107734460 B CN 107734460B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- lock
- bluetooth lock
- information
- pairing
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000006854 communication Effects 0.000 claims abstract description 43
- 238000004891 communication Methods 0.000 claims abstract description 41
- 238000004590 computer program Methods 0.000 claims description 3
- 238000007789 sealing Methods 0.000 abstract 1
- 230000006378 damage Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 238000010408 sweeping Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/023—Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/0042—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
- G07F17/0057—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects for the hiring or rent of vehicles, e.g. cars, bicycles or wheelchairs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Electromagnetism (AREA)
- Lock And Its Accessories (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a method and a terminal for realizing intelligent unlocking of a Bluetooth lock based on a mobile terminal, wherein the method comprises the following steps: acquiring Bluetooth information broadcasted by a Bluetooth lock, wherein the Bluetooth information comprises a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock; acquiring corresponding Bluetooth lock pairing information and Bluetooth lock unlocking information from a server based on the Bluetooth lock identification; performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information; and controlling the automatic unlocking process of the Bluetooth lock based on the Bluetooth lock unlocking information. The embodiment of the invention has good sealing performance and safety, and can not be damaged by the two-dimensional code to influence the use.
Description
Technical Field
The invention relates to the technical field of electronic locks, in particular to a method and a terminal for realizing intelligent unlocking of a Bluetooth lock based on a mobile terminal.
Background
This patent can be applied to the electronic lock system of sharing bicycle. The sharing of the single bicycle refers to that an enterprise provides bicycle sharing service in a campus, a subway station, a bus station, a residential area, a commercial area, a public service area and the like, and the sharing mode is a time-sharing rental mode. Sharing a bicycle is a new type of sharing economy.
The control of a shared bicycle can be divided into 4 parts: bicycle automobile body car accuse terminal high in clouds platform cell-phone APP, bicycle automobile body, cell-phone APP, car accuse terminal and high in the clouds platform.
A mobile phone APP: the method is used as an operation entrance of a user, the user can check nearby single cars through the APP, reserve single car recharging, unlock, check driving paths, calculate use cost and the like.
Cloud platform: the intelligent bicycle control system is used as a central control brain of all shared bicycles, is in data communication with all bicycles, collects information and orders to order, and provides service for managers and mobile phone APP. And responding to the operation of the user and the administrator to send a command to the vehicle control terminal for control.
Vehicle control terminal: the method is a core component of a shared bicycle and mainly realizes that: the functions of vehicle electronic lock control, GPS positioning and GPRS data transmission.
The vehicle control terminal comprises two parts of hardware and software:
the hardware includes control chip, electric control lock, GPS orientation module and GPRS module etc. wherein:
a control chip: the embedded main control chip is used for controlling other hardware and running corresponding embedded software;
electrically controlled locking: the lock can be opened and closed by sending an electronic signal through software;
a GPS positioning module: GPS positioning data acquisition can be realized;
a GPRS module: can realize data communication and is used for information communication between software program and cloud platform
The software runs in the middle of the control chip and realizes corresponding functions through hardware. The system is mainly responsible for communicating with a cloud platform, receiving cloud information and uploading the information; controlling the electronic lock to be switched on or off according to the cloud information; and the GRS positioning is collected at regular time and uploaded to a cloud.
The shared bicycle is provided with a program control device and a GPS positioning chip in the bicycle, and the bicycle is driven to generate power and supply power. The intelligent lock is an internet of things device, a built-in battery, a single chip microcomputer, a vibration sensor, a GPS receiver and a 34g network, and unlocking is a command sent by a background server.
If the new user that has not registered yet, sweep the APP application download passageway that the system can jump to a motor bicycle automatically after the sign indicating number, download, open APP, can click to sweep the sign indicating number and unblank, wait for several seconds, the lock is opened, and the APP shows to begin to charge on time simultaneously. After the destination is reached, areas capable of parking bicycles are found on two sides of the road, the switch of the lock is pulled down, the bicycle is locked within a few seconds, the APP system displays that the bicycle is locked, and timing and payment are stopped.
Above intelligent lock system is based on sweeping the sign indicating number technique and obtaining the bicycle sign to obtain the sharing bicycle password that corresponds to the high in the clouds, again with the intelligent lock system communication on the sharing bicycle, accomplish the unblock process, nevertheless in actual process because sweep the two-dimensional code that the sign indicating number is aimed at and suffer artificial destruction easily, and cause the APP can't realize sweeping the sign indicating number and unblank, this kind is swept the sign indicating number and is obtained the password, because the damage of two-dimensional code, and do not mend the sign indicating number, this section of time can cause the idle of sharing bicycle, the rate of utilization is reduced.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method and a terminal for realizing intelligent unlocking of a Bluetooth lock based on a mobile terminal.
In order to solve the above problems, the invention provides a method for realizing intelligent unlocking of a bluetooth lock based on a mobile terminal, which comprises the following steps:
acquiring Bluetooth information broadcasted by a Bluetooth lock, wherein the Bluetooth information comprises a Bluetooth lock identifier;
analyzing a Bluetooth lock identifier in the Bluetooth information;
acquiring corresponding Bluetooth lock pairing information through a server based on the Bluetooth lock identification;
performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information;
and controlling the automatic unlocking process of the Bluetooth lock based on the Bluetooth lock pairing information.
The bluetooth information based on the bluetooth module obtaining the bluetooth lock broadcast further comprises:
acquiring a Bluetooth broadcast signal;
judging the distance between the mobile terminal and the Bluetooth lock based on the Bluetooth broadcast signal, and if the distance is greater than a preset distance threshold, not acquiring Bluetooth information broadcast by the Bluetooth lock; and if the distance is less than or equal to a preset distance threshold value, acquiring Bluetooth information broadcasted by the Bluetooth lock based on the Bluetooth module.
The bluetooth lock pairing information includes: the Bluetooth lock comprises a Bluetooth lock MAC address, a Bluetooth lock communication pairing secret key and a corresponding unlocking password.
The performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information comprises:
sending Bluetooth pairing information to a Bluetooth lock corresponding to the Bluetooth lock MAC address based on the Bluetooth lock MAC address;
completing Bluetooth communication pairing with the Bluetooth lock based on the Bluetooth communication pairing secret key;
and establishing a Bluetooth communication link between the mobile terminal and the Bluetooth lock.
The automatic unlocking process based on the Bluetooth lock pairing information control Bluetooth lock comprises the following steps:
the Bluetooth lock corresponding to the Bluetooth communication link and the MAC address of the Bluetooth lock sends an unlocking instruction to realize an automatic unlocking process. Compared with two-dimensional code scanning unlocking, the unlocking process has the advantages that the Bluetooth lock identification or the service identification corresponding to the Bluetooth lock is packaged in the Bluetooth information, when the Bluetooth lock identification or the service identification corresponding to the Bluetooth lock is shared, the fact that the bicycle identification is easy to damage and easy to damage is avoided, and the utilization rate of the shared bicycle can be improved. After the Bluetooth lock identification or the service identification corresponding to the Bluetooth lock is obtained through the Bluetooth information, the Bluetooth pairing information is obtained to realize the Bluetooth communication process with the Bluetooth lock, and the safety of Bluetooth unlocking is guaranteed. The whole process is realized based on the Bluetooth technology of the Bluetooth lock, the requirement on the configuration of the whole hardware is low, the two-dimension code printing process in the shared bicycle can be reduced, and the process cost is saved.
Through discernment bluetooth broadcast signal RSSI value size to set up corresponding unblock safe distance, just can acquire bluetooth information in certain extent, exceed safe distance and then can not acquire at will.
The special mobile terminal can be constructed, for example, corresponding bluetooth information is acquired based on a corresponding APP client, and unlocking processing of a non-bluetooth lock identifier or a service identifier corresponding to a bluetooth lock is avoided by judging whether the bluetooth information is provided with a corresponding bluetooth lock identifier or a service identifier corresponding to the bluetooth lock.
When a plurality of Bluetooth broadcast signals exist, the Bluetooth information with a large RSSI value is preferentially extracted, so that the efficiency of Bluetooth information acquisition is guaranteed, the RSSI value can be determined to be larger by the priority efficiency, and when a plurality of sharing bicycles are selected, the sharing bicycle with a short distance can be preferentially selected to be unlocked.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for implementing intelligent unlocking of a bluetooth lock based on a mobile terminal in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a mobile terminal in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for realizing the intelligent unlocking of the Bluetooth lock based on the mobile terminal can acquire the Bluetooth information broadcasted by the Bluetooth lock, wherein the Bluetooth information comprises a Bluetooth lock identifier; analyzing a Bluetooth lock identifier in the Bluetooth information; acquiring corresponding Bluetooth lock pairing information through a server based on the Bluetooth lock identification; performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information; and controlling the automatic unlocking process of the Bluetooth lock based on the Bluetooth lock pairing information.
This bluetooth information based on bluetooth module acquires bluetooth lock broadcast still includes: acquiring a Bluetooth broadcast signal; judging the distance between the mobile terminal and the Bluetooth lock based on the Bluetooth broadcast signal, and if the distance is greater than a preset distance threshold, not acquiring Bluetooth information broadcast by the Bluetooth lock; and if the distance is less than or equal to a preset distance threshold value, acquiring Bluetooth information broadcasted by the Bluetooth lock based on the Bluetooth module.
In the specific implementation process, the bluetooth lock pairing information comprises: the Bluetooth lock comprises a Bluetooth lock MAC address, a Bluetooth lock communication pairing secret key and a corresponding unlocking password.
In a specific implementation process, the performing bluetooth communication pairing with the bluetooth lock based on the bluetooth lock pairing information includes: sending Bluetooth pairing information to a Bluetooth lock corresponding to the Bluetooth lock MAC address based on the Bluetooth lock MAC address; completing Bluetooth communication pairing with the Bluetooth lock based on the Bluetooth communication pairing secret key; and establishing a Bluetooth communication link between the mobile terminal and the Bluetooth lock.
In the specific implementation process, the automatic unlocking process for controlling the Bluetooth lock based on the Bluetooth lock pairing information comprises the following steps: and sending an unlocking instruction based on the Bluetooth lock corresponding to the Bluetooth communication link and the Bluetooth lock MAC address to realize an automatic unlocking process.
In the above embodiment, when the bluetooth lock is located on the shared bicycle, the shared bicycle is locked by the bluetooth lock in the non-use state, and the bluetooth lock continuously sends the broadcast signal to the outside during the working period of the bluetooth lock.
The mobile terminal is an APP client on the mobile terminal, and the distance between a signal point and a receiving point can be measured through the strength of a received Bluetooth broadcast signal (RSSI). Therefore, the distance between the mobile phone and the Bluetooth lock can be limited by setting the detection of the mobile phone software on the RSSI value, and when the mobile phone is close to the Bluetooth lock for less than a certain distance, the Bluetooth broadcast signal can be detected. Therefore, the Bluetooth broadcast signals are analyzed, whether the Bluetooth lock is a target type Bluetooth lock is judged through the identifier, the current Bluetooth number is obtained, then the number is sent to a background database, and the Bluetooth key and the password matched with the number are obtained. And carrying out Bluetooth connection and unlocking through the secret key and the password.
Correspondingly, fig. 1 shows a flowchart of a method for implementing intelligent unlocking of a bluetooth lock based on a mobile terminal, which includes the following steps:
s101, opening an APP client, and searching Bluetooth broadcast signals of nearby intelligent locks;
in a specific implementation process, the APP client may be installed on the mobile terminal, and the APP may search or capture the surrounding bluetooth broadcast information. In the embodiment of the invention, the Bluetooth broadcast signal is sent by an intelligent lock (Bluetooth lock), and the broadcast signal continuously sent by the Bluetooth lock can define information in a self-defining way. The special character is contained in the custom information as the unique identifier of the product. The mobile terminal judges whether the currently received Bluetooth signal is a target signal by detecting the identifier, such as a shared bicycle, a shared electric vehicle, a shared automobile, an intelligent door lock and the like.
S102, acquiring a Bluetooth broadcast signal RSSI value;
s103, judging the distance between the mobile terminal and the Bluetooth lock, entering S113 if the distance is greater than a preset distance threshold, and entering S104 if the distance is less than or equal to the preset distance threshold;
in the specific implementation process, the RSSI value is compared with an RSSI threshold corresponding to the distance threshold, and if the RSSI value is smaller than the RSSI threshold, the Bluetooth information broadcasted by the Bluetooth lock is not acquired; and if the RSSI value is greater than the RSSI threshold value, acquiring Bluetooth information broadcasted by the Bluetooth lock based on the Bluetooth module.
Because the strength of the Bluetooth signal can be fed back by the RSSI value, under the same condition, the explanation distance of the signal strength is short, and the explanation distance of the signal strength is long, then the obtained RSSI value is compared with the RSSI threshold value, and the relation of the distance and the distance can be judged.
S104, acquiring Bluetooth information broadcasted by a Bluetooth lock;
s105, analyzing a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock in the Bluetooth information;
the bluetooth lock identifier can be analyzed and identified in the APP to belong to a service type or an object, and can also be directly analyzed to correspond to the bluetooth lock, and the service identifiers can be shared bicycle service, shared electric vehicle service, an intelligent door lock and the like. A special identifier is encapsulated in the bluetooth message so that it can be resolved by the APP.
S106, obtaining Bluetooth lock pairing information corresponding to a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock from a server;
the APP client is generally locked with a specific cloud platform (server), and configures keys, passwords, and the like to the mobile terminal in a unified manner to implement bluetooth pairing and unlocking processes.
The bluetooth lock pairing information may include: the Bluetooth lock MAC address, the Bluetooth lock communication pairing secret key and the corresponding unlocking password.
Certainly, since the MAC address of the bluetooth lock, the communication pairing key of the bluetooth lock, and the unlocking password are sent to the mobile terminal at one time, the three types of information can be sent, the former two pieces of information can implement establishment of a bluetooth communication link, and after the communication link is established, the unlocking process is completed based on the unlocking password.
S107, sending Bluetooth pairing information to a Bluetooth lock corresponding to the Bluetooth lock MAC address based on the Bluetooth lock MAC address;
s108, completing Bluetooth communication pairing with the Bluetooth lock based on the Bluetooth communication pairing secret key;
s109, establishing a Bluetooth communication link between the mobile terminal and the Bluetooth lock;
it should be noted that, in S107-S109, the bluetooth communication link establishment is realized based on the bluetooth lock MAC address and the bluetooth lock communication pairing key.
S110, sending an unlocking password based on the Bluetooth lock corresponding to the Bluetooth communication link and the Bluetooth lock MAC address;
s111, after the password verification of the Bluetooth lock is passed, an automatic unlocking process is realized;
it should be noted that S110-S111 may also complete the unlocking process based on the unlocking password alone.
S112, after receiving the feedback of the automatic unlocking signal of the Bluetooth lock, the mobile terminal triggers a charging mode to be started;
since the unlocking of various services is finally realized to realize specific services, the services are realized along with the unlocking, and the charging mode is started, such as a shared bicycle mode.
And S113, the Bluetooth information broadcasted by the Bluetooth lock is not acquired.
When the method is applied to the shared bicycle, the Bluetooth locks can be installed on the bicycles in advance, and the unique number of each bicycle and the Bluetooth MAC address, the key and the password of the corresponding Bluetooth lock are stored in the server in an associated mode. The bluetooth lock will continuously broadcast bluetooth information. When a user needs to use the bicycle, the user needs to use the mobile terminal to receive the Bluetooth broadcast signal of the corresponding Bluetooth lock under the condition that the Bluetooth is opened and the distance close to the Bluetooth lock is less than 20cm, judge whether the signal is a target signal or not according to the information in the broadcast signal, and acquire the unique number of the current bicycle. The user uses the mobile terminal to carry out network connection with the server, obtains information such as a Bluetooth MAC address, a secret key, a password and the like of the corresponding Bluetooth lock through the obtained unique serial number of the bicycle, and then carries out connection communication and unlocking with the corresponding Bluetooth lock.
And setting on mobile terminal software, and screening the received RSSI value of the Bluetooth signal strength. The receiving distance of the mobile terminal to the broadcast signal transmitted by the Bluetooth lock can be set by changing the RSSI value. The reception distance is set to be less than 20CM, so that the user receives only the broadcast signal of the corresponding bluetooth lock by approaching the mobile terminal to the target bicycle.
The continuous bluetooth information of broadcasting outward of bluetooth lock includes one section self-defined information, contains in wherein the information: the specific identifier is used for judging whether the product is the product of the company or not and is the corresponding unique bicycle number. The broadcast signal continuously sent by the Bluetooth lock can define information by user. The special character is contained in the custom information as the unique identifier of the product. The mobile terminal judges whether the currently received Bluetooth signal is a target signal or not by detecting the identifier. The broadcast signal continuously sent by the Bluetooth lock can define information by user. The user-defined information contains specific characters, wherein the specific characters contain the unique bicycle number corresponding to the current Bluetooth lock. After acquiring the unique number of the current bicycle, the mobile terminal sends the number to the server by using a mobile network, and the server returns the Bluetooth information matched with the number to the user mobile terminal through the mobile network, wherein the returned information includes but is not limited to: bluetooth MAC address, bluetooth key, bluetooth password. And the mobile terminal connects the information acquired from the server with the target Bluetooth. After the connection is successful, the mobile terminal sends an unlocking instruction to the Bluetooth lock through Bluetooth.
Correspondingly, the implementation of the invention can also package the server identifier in the bluetooth information, so that the bluetooth lock identifier or the service identifier and the server identifier corresponding to the bluetooth lock exist in the bluetooth information, and the whole implementation process can comprise the following steps: acquiring Bluetooth information broadcasted by a Bluetooth lock, wherein the Bluetooth information comprises a Bluetooth lock identifier or a service identifier and a server identifier corresponding to the Bluetooth lock; analyzing a Bluetooth lock identifier in the Bluetooth information or a service identifier and a server identifier corresponding to the Bluetooth lock; acquiring a Bluetooth lock identifier or Bluetooth lock pairing information and Bluetooth lock unlocking information corresponding to the service identifier corresponding to the Bluetooth lock from a server corresponding to the service identifier; performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information; and controlling the automatic unlocking process of the Bluetooth lock based on the Bluetooth lock unlocking information. The server identifier is packaged in the Bluetooth, the mobile terminal can be triggered without a client mode, and can search the corresponding server in time to acquire the corresponding Bluetooth lock pairing information and Bluetooth lock unlocking information.
When the server identifier is included, the acquiring the bluetooth information broadcast by the bluetooth lock may further include: judging whether the Bluetooth information contains a Bluetooth lock identifier or a service identifier and a server identifier corresponding to the Bluetooth lock; if the Bluetooth information contains a Bluetooth lock identifier or a service identifier and a server identifier corresponding to the Bluetooth lock, acquiring Bluetooth information broadcasted by the Bluetooth lock; and if the Bluetooth information does not contain the Bluetooth lock identification or the service identification and the server identification corresponding to the Bluetooth lock, finishing the corresponding Bluetooth processing process based on the Bluetooth information.
When a plurality of current sharing bicycles are concentrated, an APP client may search a large amount of RSSI conditions, and generally only one bicycle needs to be selected to unlock under the conditions, and the method can be realized in the following mode: acquiring a plurality of Bluetooth broadcast signal RSSI values; judging the magnitude of each RSSI value in the RSSI values of the plurality of Bluetooth broadcast signals; firstly, extracting Bluetooth information corresponding to the maximum RSSI value in the RSSI values of the plurality of Bluetooth broadcast signals; judging whether the Bluetooth information contains a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock; if the Bluetooth information contains a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock, acquiring Bluetooth information broadcasted by the Bluetooth lock; and if the Bluetooth information does not contain the Bluetooth lock identification or the service identification corresponding to the Bluetooth lock, acquiring the next RSSI value until the conditions are met. Under the condition, the unlocking of the shared bicycle corresponding to the large RSSI value can be preferentially found, the distance of the shared bicycle corresponding to the large RSSI value is generally the closest distance, the shared bicycle is convenient for a user to obtain, and the shortening and the seeking are avoided.
Accordingly, fig. 2 shows a schematic structural diagram of a mobile terminal in an embodiment of the present invention, which includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store an application program code, and the processor is configured to call the program code to perform the above-described method, such as obtaining bluetooth information broadcasted by a bluetooth lock, where the bluetooth information includes a bluetooth lock identifier or a service identifier corresponding to the bluetooth lock; analyzing a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock in the Bluetooth information; acquiring Bluetooth lock pairing information and Bluetooth lock unlocking information corresponding to a Bluetooth lock identifier or a service identifier corresponding to a Bluetooth lock from a server based on the Bluetooth lock identifier or the service identifier corresponding to the Bluetooth lock; performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information; and controlling the automatic unlocking process of the Bluetooth lock based on the Bluetooth lock unlocking information. The specific steps are implemented in the same way as in the above method, and are not described in detail here.
Accordingly, the computer-readable storage medium in the embodiments of the present invention stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to perform the above-described method, such as obtaining bluetooth information broadcasted by a bluetooth lock, where the bluetooth information includes a bluetooth lock identifier or a service identifier corresponding to the bluetooth lock; analyzing a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock in the Bluetooth information; acquiring Bluetooth lock pairing information and Bluetooth lock unlocking information corresponding to a Bluetooth lock identifier or a service identifier corresponding to a Bluetooth lock from a server based on the Bluetooth lock identifier or the service identifier corresponding to the Bluetooth lock; performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information; and controlling the automatic unlocking process of the Bluetooth lock based on the Bluetooth lock unlocking information. The specific steps are implemented in the same way as in the above method, and are not described in detail here.
In conclusion, the service identifier corresponding to the bluetooth lock identifier or the bluetooth lock is sealed in the bluetooth information broadcasted by the bluetooth lock and can be acquired by the mobile terminal, so that the intelligent unlocking process based on the service identifier corresponding to the bluetooth lock identifier or the bluetooth lock is realized. Compared with two-dimensional code scanning unlocking, the unlocking process has the advantages that the Bluetooth lock identification or the service identification corresponding to the Bluetooth lock is packaged in the Bluetooth information, the damage caused by easy damage of the Bluetooth lock identification or the service identification corresponding to the Bluetooth lock is avoided, and the utilization rate of the shared bicycle can be improved. After the Bluetooth lock identification or the service identification corresponding to the Bluetooth lock is obtained through the Bluetooth information, the Bluetooth pairing information is obtained to realize the Bluetooth communication process with the Bluetooth lock, and the safety of Bluetooth unlocking is guaranteed. The whole process is realized based on the Bluetooth technology of the Bluetooth lock, the requirement on the configuration of the whole hardware is low, the two-dimension code printing process in the shared bicycle can be reduced, and the process cost is saved.
Through discernment bluetooth broadcast signal RSSI value size to set up corresponding unblock safe distance, just can acquire bluetooth information in certain extent, exceed safe distance and then can not acquire at will.
The special mobile terminal can be constructed, for example, corresponding bluetooth information is acquired based on a corresponding APP client, and unlocking processing of a non-bluetooth lock identifier or a service identifier corresponding to a bluetooth lock is avoided by judging whether the bluetooth information is provided with a corresponding bluetooth lock identifier or a service identifier corresponding to the bluetooth lock.
When a plurality of Bluetooth broadcast signals exist, the Bluetooth information with a large RSSI value is preferentially extracted, so that the efficiency of Bluetooth information acquisition is guaranteed, the RSSI value can be determined to be larger by the priority efficiency, and when a plurality of sharing bicycles are selected, the sharing bicycle with a short distance can be preferentially selected to be unlocked.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
In addition, the method and the terminal for realizing the intelligent unlocking of the bluetooth lock based on the mobile terminal provided by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (4)
1. A method for realizing intelligent unlocking of a Bluetooth lock based on a mobile terminal is characterized by comprising the following steps:
obtain bluetooth broadcast signal, bluetooth broadcast signal is sent by the intelligence lock, contain specific character as this product unique identifier in the custom information in the bluetooth broadcast signal, it includes to obtain bluetooth broadcast signal: acquiring a plurality of Bluetooth broadcast signal RSSI values; judging the magnitude of each RSSI value in the RSSI values of the plurality of Bluetooth broadcast signals; firstly, extracting Bluetooth information corresponding to the maximum RSSI value in the RSSI values of the plurality of Bluetooth broadcast signals; judging whether the Bluetooth information contains a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock; if the Bluetooth information contains a Bluetooth lock identifier or a service identifier corresponding to the Bluetooth lock, acquiring Bluetooth information broadcasted by the Bluetooth lock; if the Bluetooth information does not contain the Bluetooth lock identification or the service identification corresponding to the Bluetooth lock, acquiring a next RSSI value until the conditions are met;
judging the distance between the mobile terminal and the Bluetooth lock based on the Bluetooth broadcast signal, and if the distance is greater than a preset distance threshold, not acquiring Bluetooth information broadcast by the Bluetooth lock; if the distance is smaller than or equal to a preset distance threshold value, acquiring Bluetooth information broadcasted by a Bluetooth lock based on a Bluetooth module; the method specifically comprises the following steps: comparing the RSSI value with an RSSI threshold corresponding to the distance threshold, and if the RSSI value is smaller than the RSSI threshold, not acquiring Bluetooth information broadcasted by the Bluetooth lock; if the RSSI value is larger than the RSSI threshold value, acquiring Bluetooth information broadcasted by a Bluetooth lock based on a Bluetooth module;
the method comprises the steps that Bluetooth information broadcasted by a Bluetooth lock is obtained based on an APP client side, wherein the Bluetooth information comprises a Bluetooth lock identifier, and the APP client side is installed on a mobile terminal;
analyzing a Bluetooth lock identifier in the Bluetooth information;
acquiring corresponding Bluetooth lock pairing information through a server based on the Bluetooth lock identification;
performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information;
controlling an automatic unlocking process of the Bluetooth lock based on the Bluetooth lock pairing information;
the bluetooth lock pairing information includes: the Bluetooth lock MAC address, the Bluetooth lock communication pairing secret key and the corresponding unlocking password;
the performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information comprises:
sending Bluetooth pairing information to a Bluetooth lock corresponding to the Bluetooth lock MAC address based on the Bluetooth lock MAC address;
completing Bluetooth communication pairing with the Bluetooth lock based on the Bluetooth communication pairing secret key;
establishing a Bluetooth communication link between the mobile terminal and the Bluetooth lock;
when encapsulating the server sign in the bluetooth information, the automatic process of unblanking based on bluetooth lock pairing information control bluetooth lock includes: acquiring Bluetooth information broadcasted by a Bluetooth lock, wherein the Bluetooth information comprises a service identifier and a server identifier corresponding to the Bluetooth lock; analyzing a service identifier and a server identifier corresponding to the Bluetooth lock in the Bluetooth information; acquiring a Bluetooth lock identifier or Bluetooth lock pairing information and Bluetooth lock unlocking information corresponding to the service identifier corresponding to the Bluetooth lock from a server corresponding to the service identifier; performing Bluetooth communication pairing with a Bluetooth lock based on the Bluetooth lock pairing information; and controlling the automatic unlocking process of the Bluetooth lock based on the Bluetooth lock unlocking information.
2. The method for realizing intelligent unlocking of the Bluetooth lock based on the mobile terminal as claimed in claim 1, wherein the controlling of the automatic unlocking process of the Bluetooth lock based on the pairing information of the Bluetooth lock comprises:
and sending an unlocking instruction based on the Bluetooth lock corresponding to the Bluetooth communication link and the Bluetooth lock MAC address to realize an automatic unlocking process.
3. A mobile terminal comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store application program code and the processor is configured to invoke the program code to perform the method of claim 1 or 2.
4. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to claim 1 or 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710855501.1A CN107734460B (en) | 2017-09-20 | 2017-09-20 | Method and terminal for realizing intelligent unlocking of Bluetooth lock based on mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710855501.1A CN107734460B (en) | 2017-09-20 | 2017-09-20 | Method and terminal for realizing intelligent unlocking of Bluetooth lock based on mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107734460A CN107734460A (en) | 2018-02-23 |
| CN107734460B true CN107734460B (en) | 2021-05-07 |
Family
ID=61207694
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710855501.1A Active CN107734460B (en) | 2017-09-20 | 2017-09-20 | Method and terminal for realizing intelligent unlocking of Bluetooth lock based on mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107734460B (en) |
Families Citing this family (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108305369A (en) * | 2018-03-16 | 2018-07-20 | 何明旗 | Intelligent lock system and its working method, the communication box for installing the intelligent lock system |
| CN109300236A (en) * | 2018-07-09 | 2019-02-01 | 武汉盛硕电子有限公司 | One kind is sold goods cabinet control method, system and sales counter |
| CN109068303B (en) * | 2018-07-18 | 2022-07-05 | 创新先进技术有限公司 | Resource sharing method and device and electronic equipment |
| CN109191629A (en) * | 2018-08-02 | 2019-01-11 | 北京拜克洛克科技有限公司 | Unlocking method of vehicle, terminal and server |
| CN109147122A (en) * | 2018-08-03 | 2019-01-04 | 北京摩拜科技有限公司 | Article unlocking method, apparatus and system |
| CN109215203B (en) * | 2018-09-25 | 2024-06-07 | 上海钧正网络科技有限公司 | Intelligent voice lock and control system and control method thereof |
| CN112116735A (en) | 2019-06-20 | 2020-12-22 | 华为技术有限公司 | A smart lock unlocking method and related equipment |
| CN112419543A (en) * | 2019-08-22 | 2021-02-26 | 国民科技(深圳)有限公司 | Unlocking method, mobile terminal, intelligent door lock, unlocking system and storage medium |
| CN111312206A (en) * | 2019-12-23 | 2020-06-19 | 支付宝(杭州)信息技术有限公司 | Information identification method and device based on voice, electronic equipment and system |
| CN111862400A (en) * | 2019-12-30 | 2020-10-30 | 北京骑胜科技有限公司 | An unlocking method, device, electronic device and computer-readable storage medium |
| CN111627133A (en) * | 2020-04-16 | 2020-09-04 | 南京金龙新能源汽车研究院有限公司 | Close-range emergency unlocking system and unlocking method under shared automobile no-signal guiding condition |
| CN111862410A (en) * | 2020-06-30 | 2020-10-30 | 北京骑胜科技有限公司 | Smart lock control method, device, device and storage medium |
| CN111815824B (en) * | 2020-08-04 | 2023-01-17 | 四川铁公铁信息技术有限公司 | A method of unlocking based on bluetooth recognition |
| CN112053473A (en) * | 2020-08-20 | 2020-12-08 | 北京骑胜科技有限公司 | A method, device, readable storage medium and electronic device for unlocking a vehicle |
| CN112634496A (en) * | 2020-12-18 | 2021-04-09 | 珠海格力电器股份有限公司 | Control method, device and system of intelligent door lock |
| CN114697933A (en) * | 2020-12-31 | 2022-07-01 | 上海博泰悦臻网络技术服务有限公司 | Hotspot connection method of iOS device, storage medium, iOS device and connection system |
| CN112767615B (en) * | 2021-01-14 | 2022-06-14 | 广州乐摇摇信息科技有限公司 | Amusement equipment starting method and device |
| CN112466061B (en) * | 2021-02-02 | 2021-05-18 | 浙江口碑网络技术有限公司 | Storage method and device based on smart cabinet |
| CN113453208A (en) * | 2021-07-12 | 2021-09-28 | 广州朗国电子科技股份有限公司 | Equipment screen saver unlocking method, device and system based on Bluetooth communication |
| CN115701156B (en) * | 2021-07-29 | 2025-09-02 | 佛山市顺德区美的电子科技有限公司 | Wireless network equipment control method, device and system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN203271358U (en) * | 2013-04-09 | 2013-11-06 | 杨晓飞 | Remote-authorization intelligent unlocking device |
| CN104933784A (en) * | 2015-05-08 | 2015-09-23 | 牛力伟 | Bluetooth technology based garage gate passing verification method and system |
| CN106548555A (en) * | 2016-12-28 | 2017-03-29 | 北京拜克洛克科技有限公司 | A kind of method for unlocking and user terminal of intelligent bicycle lock |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10171974B2 (en) * | 2012-08-16 | 2019-01-01 | Schlage Lock Company Llc | System and method for using an electronic lock with a smartphone |
| US9472034B2 (en) * | 2012-08-16 | 2016-10-18 | Schlage Lock Company Llc | Electronic lock system |
| CN105513216B (en) * | 2016-01-29 | 2018-05-25 | 汤峰 | Bicycle system for borrowing and returning and bicycle borrow returning method |
-
2017
- 2017-09-20 CN CN201710855501.1A patent/CN107734460B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN203271358U (en) * | 2013-04-09 | 2013-11-06 | 杨晓飞 | Remote-authorization intelligent unlocking device |
| CN104933784A (en) * | 2015-05-08 | 2015-09-23 | 牛力伟 | Bluetooth technology based garage gate passing verification method and system |
| CN106548555A (en) * | 2016-12-28 | 2017-03-29 | 北京拜克洛克科技有限公司 | A kind of method for unlocking and user terminal of intelligent bicycle lock |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107734460A (en) | 2018-02-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107734460B (en) | Method and terminal for realizing intelligent unlocking of Bluetooth lock based on mobile terminal | |
| CN110798795B (en) | Virtual key vehicle control system, method and device based on Bluetooth and computer equipment | |
| US10984616B2 (en) | Car sharing system and car sharing program | |
| CN105882604B (en) | A kind of electric vehicle control system | |
| US8335547B2 (en) | System and method for providing discharge authorization to a battery-powered vehicle via a telematics system | |
| CN106251212A (en) | Automobile leasing method and system | |
| CN106878279A (en) | Charging and conversion electric facility and the automatic right-discriminating method and system for treating charging and conversion electric object | |
| CN105539365A (en) | Automobile intelligent key control method and system thereof | |
| CN110027507B (en) | Multi-dimensional lock state switching method and system for shared automobile | |
| CN213383943U (en) | Charging system | |
| WO2018098840A1 (en) | Beacon system for vehicle positioning and vehicle positioning method | |
| CN106231099B (en) | Method for controlling vehicle, control device and vehicle | |
| CN105857497A (en) | Electromobile control method | |
| CN105059245B (en) | A kind of control method for vehicle and device | |
| CN107274264A (en) | Public bike renting system and its control method and device | |
| CN205375630U (en) | Parking stall management system based on parking stall lock and banister | |
| CN106875519A (en) | Electronic lock unlocking method and device | |
| CN113676474A (en) | Equipment unlocking method and device, storage medium and electronic device | |
| CN108062805B (en) | Vehicle-mounted data processing method and server | |
| CN107040289B (en) | Information transmission method and device based on near field communication | |
| US11134428B2 (en) | Vehicle cellular connectivity control | |
| CN110228447B (en) | Method for realizing keyless entry function of vehicle by using intelligent antenna device and vehicle-mounted system | |
| CN106945615A (en) | The method and system of vehicle main computer unit pretrigger are controlled using geo-fence beacon | |
| CN105554466A (en) | WiFi-based vehicle-mounted video automatic storage method and system | |
| CN110356358B (en) | A vehicle anti-theft alarm system and method |
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 |