# US 2019/0172285 A1 · Application Method of Bluetooth Low-energy Electronic Lock Based on Built-in Offline Pairing Passwords, Interactive Unlocking Method of a Bluetooth Electronic Lock and Electronic Lock System

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0172285 A1
- Document ID: US20190172285A1
- Status: Published application
- Kind: A1
- Application number: 16/017,587
- Filed: 2018-06-25
- Published: 2019-06-06
- Earliest claimed: 2017-08-14
- Assignees: Q & K International Group Limited
- Applicants: Q & K International Group Limited
- Inventors: Guangjie Jin
- Web page: https://patentgrep.com/patent/US20190172285A1

## CPC

- G07C 9/00182: {operated with unidirectional data transmission between data carrier and locks}
- G07C 9/00309: {operated with bidirectional data transmission between data carrier and locks}
- G07C 9/00571: {operated by interacting with a central unit}
- G07C 9/21: having a variable access code
- H04L 9/30: Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
- H04L 63/0838: {using one-time-passwords}
- H04W 4/33: for indoor environments, e.g. buildings
- H04W 4/80: Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
- H04W 12/00: Security arrangements; Authentication; Protecting privacy or anonymity
- H04W 12/068: {using credential vaults, e.g. password manager applications or one time password [OTP] applications}
- H04W 12/08: Access security
- G06K 19/06: characterised by the kind of the digital marking, e.g. shape, nature, code
- G07C 2009/0019: {the keyless data carrier having only one limited data transmission rangs}
- G07C 2009/00253: {dynamically, e.g. variable code - rolling code}
- G07C 2009/00492: {whereby the code is a rolling code}
- G07C 2009/00769: {with data transmission performed by wireless means}
- G07C 2009/00793: {by Hertzian waves}
- 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
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS

## Abstract

An application method of a Bluetooth low-energy electronic lock based on built-in offline pairing passwords, an interactive unlocking method of a Bluetooth electronic lock, and an electronic lock system are provided, wherein data propagation of some public keys or public addresses is carried out through a scanning response packet of a broadcast packet, the mobile phone APPs run in a Bluetooth server mode, the Bluetooth electronic lock works in a Bluetooth client mode, the Bluetooth electronic lock periodically sends a broadcast packet of a random address, and the Bluetooth electronic lock has a set of temporary door-opening passwords of random algorithm built in after manufacture; and during the initialization process, the Bluetooth electronic lock uploads the built-in temporary door-opening password set, with the random algorithm, through the relational data of application services and the public address of the Bluetooth electronic lock.

## Claims

### Claim 1

An application method of a Bluetooth low-energy electronic lock based on built-in offline pairing passwords, comprising steps of:
Step 1, initializing a built-in temporary password set of a Bluetooth electronic lock after the Bluetooth electronic lock leaves a factory;
a) uploading a universally unique identifier (UUID), geographic address/location information and installation time of the electronic lock device through an APP for configuration in a mobile phone;
b) a cloud server generating 100 sets of 16-bit temporary passwords through an obfuscation algorithm; and
c) the APP for configuration in the mobile phone, downloading the 100 sets of temporary passwords and storing the same into an on-chip memory of the Bluetooth electronic lock;
Step 2, the Bluetooth electronic lock broadcasting a random device address periodically when in use;
Step 3, a mobile-phone temporary-door-opening APP initiating a device scanning request of the Bluetooth electronic lock;
Step 4, the Bluetooth electronic lock returning to the mobile-phone temporary-door-opening APP an index number of the temporary door-opening password, with the index number having 2 bytes arranged in a disordered manner;
Step 5, the mobile-phone temporary-door-opening APP querying a currently-used temporary door-opening password from the cloud server through the index number;
Step 6, the cloud server returning through a database a preset temporary door-opening password, a UUID and a unique public address of the electronic lock corresponding to the geographic address/location information;
Step 7, performing binding-free device connection through the public address, and the mobile-phone temporary-door-opening APP initiating a device service discovery request, with the service discovery request having a message data segment carrying the UUID and the temporary door-opening password;
Step 8, the electronic lock receiving the UUID and the temporary door-opening password and making a comparison with the currently-used temporary door-opening password; and
Step 9, the electronic lock, after a door is temporarily opened successfully, scrolling a temporary-door-opening-password index table and invalidating the previous temporary door-opening password.

### Claim 2 (depends on 1)

The application method of a Bluetooth low-energy electronic lock based on built-in offline pairing passwords according to claim 1, wherein in Step 8, if the comparison is successful, a door opening operation is performed directly, and a service discovery reply message containing door opening success information data is returned to the mobile-phone temporary-door-opening APP.

### Claim 3 (depends on 1)

The application method of a Bluetooth low-energy electronic lock based on built-in offline pairing passwords according to claim 1, wherein in Step 8, if the comparison is unsuccessful, a service discovery request message, deemed as a normal service discovery request message, is processed.

### Claim 4 (depends on 1)

The application method of a Bluetooth low-energy electronic lock based on built-in offline pairing passwords according to claim 1, wherein if the comparison fails consecutively for three times, the electronic lock actively terminates the connection, and refuses a same device for 10 minutes.

### Claim 5

An interactive unlocking method of a Bluetooth electronic lock applied to an electronic lock system comprising a cloud server, a mobile terminal and a Bluetooth electronic lock, with the Bluetooth electronic lock and the cloud server pre-storing a same password table in which multiple sets of passwords and index numbers corresponding to the respective sets of passwords are recorded, wherein the method comprises steps of:
the mobile terminal sending a device scanning request to a Bluetooth electronic lock corresponding to the mobile terminal through Bluetooth communication;
the Bluetooth electronic lock receiving the device scanning request, selecting one set of valid passwords from the pre-stored multiple sets of passwords as a first password, and sending an index number of the first password to the mobile terminal;
the mobile terminal sending the received index number to the cloud server;
the mobile terminal receiving a second password which is responded by the cloud server according to the index number and is corresponding to the index number, and sending the second password to the Bluetooth electronic lock; and
the Bluetooth electronic lock determining, by comparison, whether the first password conforms to the second password, wherein if the first password conforms to the second password, an unlocking action is performed and the password used for the current unlocking action is identified as invalid or deleted.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the step of the mobile terminal receiving a second password which is responded by the cloud server according to the index number and is corresponding to the index number and sending the second password to the Bluetooth electronic lock comprises:
the mobile terminal receiving the second password and a UUID of the Bluetooth electronic lock, with the second password responded by the cloud server according to the index number and corresponding to the index number, and sending the second password and the UUID to the Bluetooth electronic lock;
the step of the Bluetooth electronic lock determining by comparison whether the first password conforms to the second password comprises:
the Bluetooth electronic lock determining by comparison whether the first password conforms to the second password, and whether the UUID sent by the mobile terminal conforms to the UUID of the Bluetooth electronic lock itself, wherein if the first password conforms to the second password and the UUID sent by the mobile terminal conforms to the UUID of the Bluetooth electronic lock itself, the unlocking action is performed.

### Claim 7 (depends on 5)

The method according to claim 5, wherein after the step of the Bluetooth electronic lock determining by comparison whether the first password conforms to the second password, the method further comprises:
recording that the comparison of the mobile terminal is unsuccessful, if the first password does not conform to the second password; and
terminating the communication with the mobile terminal and refusing to establish the communication with the mobile terminal for a preset duration, when recorded number of times of unsuccessful comparison of the mobile terminal reaches a preset number.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the step of the mobile terminal sending a device scanning request to a Bluetooth electronic lock corresponding to the mobile terminal through Bluetooth communication comprises:
the Bluetooth electronic lock broadcasting a random device address of the Bluetooth electronic lock periodically; and
the mobile terminal receiving the random device address broadcast by the Bluetooth electronic lock, and sending a scanning request to the Bluetooth electronic lock according to the random device address.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the step of the mobile terminal receiving a second password which is responded by the cloud server according to the index number and is corresponding to the index number and sending the second password to the Bluetooth electronic lock comprises:
the mobile terminal receiving the second password responded by the cloud server according to the index number and corresponding to the index number, and a public address of the Bluetooth electronic lock; and
the mobile terminal initiating a service discovery request to the Bluetooth electronic lock according to the public address, with the service discovery request carrying the second password.

### Claim 10 (depends on 5)

The method according to claim 5, wherein the step of the Bluetooth electronic lock sending an index number of the first password to the mobile terminal comprises:
the Bluetooth electronic lock, as to the scanning request, replying to the mobile terminal with a scanning response, with the scanning response carrying an index number of the first password.

### Claim 11 (depends on 5)

The method according to claim 5, wherein after the unlocking action is performed, the method further comprises:
the Bluetooth electronic lock sending a successful unlocking prompt to the mobile terminal.

### Claim 12 (depends on 5)

The method according to claim 5, wherein the step of the Bluetooth electronic lock determining by comparison whether the first password conforms to the second password comprises:
the Bluetooth electronic lock determining by comparison whether the first password conforms to the second password,
wherein if the first password conforms to the second password, binding to the mobile terminal is not performed and an unlocking action is performed, and the password used for the current unlocking action is identified as invalid or deleted.

### Claim 13

An electronic lock system, comprising a cloud server, a mobile terminal and a Bluetooth electronic lock, wherein the Bluetooth electronic lock and the cloud server pre-store a same password table in which multiple sets of passwords and index numbers corresponding to the respective sets of passwords are recorded; and when interactive unlocking is performed:
the mobile terminal sends a device scanning request to a Bluetooth electronic lock corresponding to the mobile terminal through Bluetooth communication;
the Bluetooth electronic lock receives the device scanning request, selects one set of valid passwords from the pre-stored multiple sets of passwords as a first password, and sends an index number of the first password to the mobile terminal;
the mobile terminal sends the received index number to the cloud server;
the mobile terminal receives a second password, which is responded by the cloud server according to the index number and is corresponding to the index number, and sends the second password to the Bluetooth electronic lock; and
the Bluetooth electronic lock determines by comparison whether the first password conforms to the second password, wherein if the first password conforms to the second password, an unlocking action is performed, and the password used for the current unlocking action is identified as invalid or deleted.

### Claim 14 (depends on 13)

The electronic lock system according to claim 13, wherein when receiving a second password, which is responded by the cloud server according to the index number and is corresponding to the index number, the mobile terminal receives a UUID of the Bluetooth electronic lock sent by the cloud server, and the mobile terminal sends the second password and the UUID to the Bluetooth electronic lock; and
the Bluetooth electronic lock determines by comparison whether the first password conforms to the second password and whether the UUID sent by the mobile terminal conforms to a UUID of the Bluetooth electronic lock itself, wherein if the first password conforms to the second password and the UUID sent by the mobile terminal conforms to the UUID of the Bluetooth electronic lock itself, an unlocking action is performed.

### Claim 15 (depends on 13)

The electronic lock system according to claim 13, wherein if detecting that the first password does not conform to the second password, the Bluetooth electronic lock records that pairing of the mobile terminal is unsuccessful; and when recorded number of times of unsuccessful comparison of the mobile terminal reaches a preset number, the communication with the mobile terminal is terminated, and the communication with the mobile terminal will be refused to be established for a preset duration.

### Claim 16 (depends on 13)

The electronic lock system according to claim 13, wherein the Bluetooth electronic lock is configured to broadcast a random device address of the Bluetooth electronic lock periodically; and the mobile terminal is configured to receive the random device address broadcast by the Bluetooth electronic lock, and send a scanning request to the Bluetooth electronic lock according to the random device address.

### Claim 17 (depends on 16)

The electronic lock system according to claim 16, wherein when receiving the second password, which is responded by the cloud server according to the index number and is corresponding to the index number, the mobile terminal further receives a public address of the Bluetooth electronic lock sent by the cloud server; and the mobile terminal initiates a service discovery request to the Bluetooth electronic lock according to the public address, with the service discovery request carrying the second password.

### Claim 18 (depends on 13)

The electronic lock system according to claim 13, wherein when sending an index number of the first password to the mobile terminal, the Bluetooth electronic lock, as to the scanning request, replies to the mobile terminal with a scanning response, with the scanning response carrying an index number of the first password.

### Claim 19 (depends on 13)

The electronic lock system according to claim 13, wherein after the unlocking action is performed, the Bluetooth electronic lock sends a successful unlocking prompt to the mobile terminal.

### Claim 20 (depends on 13)

The electronic lock system according to claim 13, wherein the Bluetooth electronic lock does not perform an operation of being bound to the mobile terminal.
