CN107393062A - Method for unlocking and electronic equipment based on bluetooth - Google Patents
Method for unlocking and electronic equipment based on bluetooth Download PDFInfo
- Publication number
- CN107393062A CN107393062A CN201710459151.7A CN201710459151A CN107393062A CN 107393062 A CN107393062 A CN 107393062A CN 201710459151 A CN201710459151 A CN 201710459151A CN 107393062 A CN107393062 A CN 107393062A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- terminal
- sharing
- pairing
- connection request
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 238000004891 communication Methods 0.000 claims abstract description 78
- 230000004044 response Effects 0.000 claims abstract description 9
- 238000004590 computer program Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 10
- 230000004913 activation Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000006872 improvement Effects 0.000 description 3
- 230000003373 anti-fouling effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- 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
- G07C9/00309—Electronically 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)
- Mobile Radio Communication Systems (AREA)
Abstract
The present embodiments relate to communication technical field, discloses a kind of method for unlocking and electronic equipment based on bluetooth.In the present invention, the method for unlocking based on bluetooth includes:When shared equipment is in pairing wait state, it then follows Bluetooth communication protocol periodically sends broadcast message;When receiving pairing connection request, response pairing connection request, the terminal with sending pairing connection request is established Bluetooth communication and is connected;Established with sending the terminal of pairing connection request after Bluetooth communication be connected, release the lock-out state for sharing equipment.Method for unlocking and electronic equipment provided by the invention based on bluetooth, it is attached by actively contacting terminal by shared equipment, rather than terminal actively contacts shared equipment and is attached, even if reached the device identification without the shared equipment such as Quick Response Code, the purpose being unlocked to sharing equipment can be also realized.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an unlocking method based on Bluetooth and electronic equipment.
Background
With the development of the sharing economy concept, related novel economic activities begin to rise from the sharing bicycle to the sharing charger and then to the sharing umbrella, and the sharing economy is gradually expanded towards a wider field by means of the emerging innovative concept and the brand new platform. In practical application, a user can scan a two-dimensional code on the shared mobile device or input a device number through a terminal to acquire an unlocking code, so that the corresponding shared mobile device can be used. The popularization of the shared mobile equipment brings great convenience to the daily life of people.
The inventor finds that at least the following problems exist in the prior art: because the shared mobile device has only one device identifier at present, some people can achieve the purpose of occupying the shared mobile device independently but not being used by other users by destroying the device identifier (such as a two-dimensional code and a device number of the shared mobile device), so that waste of mobile shared resources is caused.
Disclosure of Invention
The embodiment of the invention aims to provide an unlocking method based on Bluetooth and an electronic device, which can achieve the aim of unlocking a shared device even if the device identification of the shared device such as a two-dimensional code is not available.
In order to solve the above technical problem, an embodiment of the present invention provides an unlocking method based on bluetooth, which is applied to a sharing device, and includes: when the sharing device is in a pairing waiting state, periodically transmitting broadcast information following a Bluetooth communication protocol; when receiving a pairing connection request, responding to the pairing connection request, and establishing Bluetooth communication connection with a terminal sending the pairing connection request; after establishing a bluetooth communication connection with a terminal that issued a pairing connection request, the locked state of the sharing device is released.
The embodiment of the invention also provides an unlocking method based on Bluetooth, which is applied to a terminal and comprises the following steps: scanning broadcast information according to a Bluetooth communication protocol, and searching shared equipment around the current position of the terminal; providing a searched sharing device list for a user to select; when any sharing device in the sharing device list is selected, sending a pairing connection request; and receiving a response to the pairing connection request, and establishing Bluetooth communication connection with the selected sharing equipment.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the bluetooth based unlocking methods described above.
Compared with the prior art, the method and the device have the advantages that the shared device actively contacts the terminal for connection instead of the terminal actively contacts the shared device for connection, so that the purpose of unlocking the shared device can be achieved even if the device identification of the shared device such as a two-dimensional code is not available.
In addition, the unlocking method based on Bluetooth further comprises the following steps: when detecting that the button arranged on the sharing equipment is pressed, starting the Bluetooth module, and enabling the sharing equipment to enter a pairing waiting state. By not enabling the sharing device to be in the pairing waiting state all the time, but entering the pairing waiting state when a button arranged on the sharing device is pressed, the purpose of unlocking the sharing device can be achieved even when the device identification of the sharing device such as a two-dimensional code is not available, and meanwhile power consumption of the sharing device is saved.
In addition, the unlocking method based on Bluetooth further comprises the following steps: and when receiving a Bluetooth starting instruction from the server, starting the Bluetooth module, and enabling the sharing equipment to enter a pairing waiting state. By the fact that the sharing device is not always in the pairing waiting state, but the sharing device enters the pairing waiting state when receiving the Bluetooth starting command from the server, another method for effectively saving the power consumption of the sharing device is provided.
In addition, the unlocking method based on Bluetooth further comprises the following steps: after establishing a bluetooth communication connection with a terminal that issued a pairing connection request, if an unlocking instruction that the terminal transmits through the bluetooth communication connection is received, the locked state of the sharing device is released. The terminal is used for sending the unlocking instruction to unlock the shared device, so that the time for the user to use the shared device is more accurately timed.
In addition, the unlocking method based on Bluetooth further comprises the following steps: after establishing a Bluetooth communication connection with a terminal that issues a pairing connection request, if an unlocking instruction from a server is received, the locked state of the sharing device is released. The unlocking information is uploaded to the server through the terminal, and then the server sends the unlocking instruction to unlock the shared device, so that an effective unlocking method for the shared device is provided.
In addition, the unlocking method based on Bluetooth further comprises the following steps: after establishing a bluetooth communication connection with a terminal that issued a pairing connection request, a prompt message for guiding a user to find a shared device is issued. By sending out prompt information to guide the user to find the sharing device, the user can find the sharing device quickly.
In addition, before scanning for broadcast information following the bluetooth communication protocol, the bluetooth-based unlocking method further includes: reporting the current position of the terminal to a server; the current position is used for the server to search the sharing equipment in a preset range around the current position, and a Bluetooth starting instruction is issued to the searched sharing equipment. The Bluetooth of the sharing device is not required to be in the on state all the time, so that the power consumption of the sharing device is saved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a bluetooth-based unlocking method according to a first embodiment of the present invention; (ii) a
Fig. 2 is a flowchart of a bluetooth-based unlocking method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a bluetooth-based unlocking method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a bluetooth-based unlocking method according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a bluetooth-based unlocking method according to a fifth embodiment of the present invention;
fig. 6 is a block diagram of an electronic apparatus according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to an unlocking method based on Bluetooth. The bluetooth-based unlocking method can be used in a sharing device, where the sharing device may be a sharing bicycle, a sharing charger, a sharing umbrella, and the like, and the following description is given by taking the sharing bicycle as an example, and fig. 1 shows a flow of the bluetooth-based unlocking method, which specifically includes:
step 101, judging whether the sharing device is in a pairing waiting state. If the shared device is determined to be in the pairing waiting state, the step 102 is entered, otherwise, whether the shared device is in the pairing waiting state is continuously determined.
Specifically, the sharing device is in the pairing waiting state, and may be in the pairing waiting state until the bluetooth communication connection is established with the terminal that issued the pairing connection request when the sharing device is stationary and locked. The pairing waiting state may also be intermittently set when the sharing device is stationary and locked, for example, the sharing bicycle is set in the pairing waiting state within a first preset time when stationary and locked, automatically exits from the pairing waiting state when the first preset time is exceeded, and enters into the pairing waiting state when the automatic exits from the pairing waiting state exceeds a second preset time, and so on, until the bluetooth communication connection is established with the terminal that sent the pairing connection request. The first preset time and the second preset time may be the same or different, and may be set according to actual requirements, and are not limited specifically here.
Of course, the above two examples of how two sharing devices are in the pairing waiting state are given, the present invention is not limited to the above examples, and any method of how the sharing devices are in the pairing waiting state should be within the protection scope of the present invention, and is not described herein again.
Broadcast information is periodically transmitted following the bluetooth communication protocol, step 102.
It should be noted that the purpose of complying with the bluetooth communication protocol is to enable interconnection between a sharing device and a terminal that conform to the specification. After the sharing device periodically transmits broadcast information following the bluetooth communication protocol, if the terminal receives the broadcast information transmitted by the sharing device, the broadcast packet may be parsed, and device identification, pairing, event notification, command control, and the like may be performed.
Preferably, in practical applications, the broadcast information may be periodically transmitted to the terminal through a Bluetooth Low Energy (BLE) technology. Among them, bluetooth low energy technology is a low-cost, short-range, interoperable, robust wireless technology that can utilize many intelligent means to minimize the power consumption of mobile devices (such as sharing a bicycle), and can connect a sharing device and a terminal in a very fast manner.
Step 103, judging whether a pairing connection request is received. If the pairing connection request is judged to be received, responding to the pairing connection request, and entering step 104; otherwise, whether a pairing connection request is received or not is continuously judged.
In fact, the pairing of the sharing device and the terminal is an authentication process, and if the sharing device is not paired with the terminal, the authentication relationship between the two devices cannot be established, so that the connection and the subsequent operation cannot be performed, and therefore, the pairing of the sharing device and the terminal ensures the safety of bluetooth communication to a certain extent. For example, if a user wants to use a sharing bicycle, the user opens an application program that needs to use the sharing bicycle in the terminal, and selects the sharing bicycle to be used in an interface provided by the application program, at this time, the sharing bicycle may receive a pairing connection request sent by the terminal, and when the sharing bicycle receives the pairing connection request, the pairing connection request may be responded by blinking an indicator lamp of the sharing bicycle, or by voice prompt, or by combining the two manners, and the process proceeds to step 104.
Of course, the manner in which the sharing device responds to the pairing connection request is not limited to the above example, and any manner in which the sharing device responds to the pairing connection request is within the protection scope of the present invention, which is not described herein any more.
And step 104, establishing Bluetooth communication connection with the terminal sending the pairing connection request.
It should be noted that, because a bluetooth master device (e.g., a sharing bicycle) can perform communication pairing connection with multiple slave devices (e.g., terminals) at the same time, in practical applications, one sharing bicycle cannot be used by multiple users at the same time, and only one sharing bicycle can be used by one user at the same time. Therefore, in this embodiment, during the process of establishing the bluetooth communication connection with the terminal that issues the pairing connection request, the bluetooth master device may be set to perform communication pairing connection with only one terminal at the same time. Alternatively, the number of pairs with the bluetooth master device may not be limited, but only one number of simultaneous connections with the bluetooth master device may be set. The slave device connected to the bluetooth master device may establish a bluetooth communication connection with the terminal closest to the sharing bicycle, or may establish a bluetooth communication connection with the terminal that has issued the pairing connection request earliest, for example.
And 105, judging whether the Bluetooth communication connection is established with the terminal which sends the pairing connection request. If the Bluetooth communication connection with the terminal sending the pairing connection request is determined to be established, entering step 106; otherwise, returning to step 103, determining whether a pairing connection request is received.
It should be noted that, in the process of establishing the bluetooth communication connection with the terminal that sends the pairing connection request, the terminal that sends the pairing connection request may not be connected due to poor network signals, and the like, at this time, the bluetooth communication connection is continuously established with the terminal that sends the pairing connection request, and of course, if the terminal that sends the pairing connection request establishes the bluetooth communication connection with the terminal that sends the pairing connection request for multiple times (for example, three times) but is not connected, the terminal may directly enter the end state. If a bluetooth communication connection has been established with the terminal that issued the pairing connection request, step 106 is entered.
And 106, releasing the locking state of the sharing equipment.
Specifically, the lock state of the sharing device may be released immediately when the sharing device establishes the bluetooth communication connection with the terminal that issued the pairing connection request, or the lock state of the sharing device may be released after a preset time when the sharing device establishes the bluetooth communication connection with the terminal that issued the pairing connection request. For example, after 1 minute when the sharing bicycle establishes the bluetooth communication connection with the terminal that issued the pairing connection request, the locked state of the sharing device is released. Of course, the setting of the preset time should not be limited to the above example, and a selection list of the preset time may be provided according to actual situations to allow the user to set the unlocking time. Preferably, in order to achieve the sufficient and reasonable utilization of the shared resources, the preset time is not set for too long, and any time setting for releasing the locking state of the shared device is within the protection scope of the present invention, and is not described in detail herein.
Compared with the prior art, according to the unlocking method based on the Bluetooth, the shared device actively contacts the terminal to connect instead of the terminal actively contacting the shared device to connect, and the purpose that the shared device can be unlocked even if the device identification of the shared device such as a two-dimensional code is not available is effectively achieved.
A second embodiment of the present invention relates to a bluetooth-based unlocking method. The second embodiment is improved on the basis of the first embodiment, and the main improvement is that: in the embodiment of the invention, the Bluetooth module of the sharing device is started by receiving the Bluetooth starting instruction from the server at the sharing device, so that the sharing device enters the pairing waiting state without being in the pairing waiting state all the time, and the power consumption of the terminal is further saved.
Step 201, determining whether a bluetooth activation instruction is received from a server. If the Bluetooth starting instruction from the server is received, the step 202 is entered; otherwise, whether a Bluetooth starting instruction from the server is received or not is continuously judged.
That is, the sharing device is not always in the pairing waiting state, but the sharing device enters the pairing waiting state only when the sharing device receives the bluetooth activation instruction from the server to activate the bluetooth of the sharing device.
In practical application, the bluetooth activation instruction of the server may be to upload the location information of the user to the server when the user activates an application program of the sharing device to be used, and at this time, the server may search for the sharing device near the location where the user is located according to the location information of the user, and send the bluetooth activation instruction to the sharing device near the location where the user is located, so that the sharing device near the location where the user is located enters a pairing waiting state.
It is worth mentioning that, for the searched sharing devices near the location of the user, the sharing devices within a certain range near the location of the user may be searched within a distance limit, for example, the sharing devices in a circular area with a radius of 10 meters around the user, and the number of the searched sharing devices may be limited on the basis, for example, 3 sharing devices with a distance from the user to the far away in the circular area with a radius of 10 meters around the user may be searched. Of course, the above is merely exemplary, and any method for searching for a shared device near the location of the user is within the scope of the present invention.
In step 202, the sharing device enters a pairing wait state.
In step 203, broadcast information is periodically transmitted in compliance with the bluetooth communication protocol.
Step 204, determine whether a pairing connection request is received. If the pairing connection request is judged to be received, responding to the pairing connection request, and entering step 206; otherwise, whether a pairing connection request is received or not is continuously judged.
And step 205, establishing a Bluetooth communication connection with the terminal which sends the pairing connection request.
Step 206, determining whether to establish bluetooth communication connection with the terminal sending the pairing connection request. If it is determined that a bluetooth communication connection is established with the terminal which has issued the pairing connection request, go to step 207; otherwise, returning to step 204, determining whether a pairing connection request is received.
And step 207, judging whether an unlocking instruction sent by the terminal through the Bluetooth communication connection is received. If the unlocking instruction sent by the terminal through the Bluetooth communication connection is judged to be received, the step 208 is entered; otherwise, whether an unlocking instruction sent by the terminal through the Bluetooth communication connection is received or not is continuously judged.
Specifically, after the bluetooth communication connection is established with the terminal which sends the pairing connection request, the user can select the option of unlocking or not through popping up in the user terminal to inquire whether the sharing device connected with the terminal is unlocked or not, and at the moment, if the user clicks the prompt option of unlocking, the lock of the sharing device connected with the terminal is automatically opened. By way of example only, the user may also input the unlocking code in the terminal or input the unlocking information through voice to send the unlocking instruction through the bluetooth communication connection to automatically unlock the lock of the sharing device. Of course, when finding the sharing device connected to the terminal, the user may select the unlocking prompt option in the user terminal, for example, so that the lock of the sharing device is automatically unlocked when the sharing device receives the unlocking instruction sent by the terminal through the bluetooth communication connection.
Step 208, sending out prompt information for guiding the user to find the shared device.
For example, the prompt message for guiding the user to find the shared device may be a voice prompt message, an indicator light of the shared device may flash, an indicator light of the shared device may light in a certain color (for example, green), and any combination of the above manners may be used, and any prompt message that can be used for guiding the user to find the shared device is within the protection scope of the present invention, and is not limited specifically here.
In step 209, the locked state of the sharing device is released.
Since steps 202 to 206 in the present embodiment, step 209 are substantially the same as steps 101 to 106 in the first embodiment, when the sharing device is in the pairing waiting state, broadcast information is periodically transmitted following the bluetooth communication protocol; when receiving a pairing connection request, responding to the pairing connection request, and establishing Bluetooth communication connection with a terminal sending the pairing connection request; after the bluetooth communication connection is established with the terminal that has sent the pairing connection request, the locked state of the sharing device is released, which is not described herein again.
Compared with the prior art, according to the unlocking method based on the Bluetooth, the Bluetooth module of the sharing device is started by receiving the Bluetooth starting instruction from the server at the sharing device, so that the sharing device can enter the pairing waiting state without being in the pairing waiting state all the time, and the power consumption of the terminal is further saved.
The third embodiment of the invention relates to an unlocking method based on Bluetooth, which is further improved on the basis of the first embodiment, and the specific improvement is that: whether the button arranged on the sharing equipment is pressed or not is detected, and when the button on the sharing equipment is pressed, the Bluetooth module of the sharing equipment is started, so that the sharing equipment enters a pairing waiting state without being in the pairing waiting state all the time, and the power consumption of the sharing equipment is saved. The specific process is shown in fig. 3, and includes:
step 301, detecting whether a button arranged on the sharing device is pressed. If detecting that a button set on the sharing device is pressed, entering step 302; otherwise, whether a button arranged on the sharing equipment is pressed or not is continuously detected.
It should be noted that the buttons arranged on the sharing device can be button buttons or touch buttons, corresponding trigger mechanisms are arranged under the button buttons, the buttons and the sharing device also have fine gaps, the waterproof, anti-fouling and durable degrees can be limited, the touch buttons can be integrated with the body of the sharing device, the water inlet problem caused by the fine gaps among the buttons is avoided, and the waterproof and anti-fouling capabilities are better. In addition, the modern touch screen technology is advanced, not only supports multi-point touch control, but also has higher practical degree and use convenience than keys. Therefore, it is preferable to provide a touch button on the sharing device.
In addition, the position of the button is set on the sharing device, and the button can be freely set according to the shape of the sharing device, whether the user presses conveniently and the like. For example, the button arranged on the shared bicycle can be arranged on the handlebar or the lock; the button disposed on the sharing umbrella may be disposed on a handle of the umbrella, or disposed on a button of the umbrella, etc., and is not limited in particular. After detecting that the button provided on the sharing device is pressed, step 302 is entered.
Step 302, the sharing device enters a pairing wait state.
Step 303, periodically transmits broadcast information following the bluetooth communication protocol.
Step 304, determine whether a pairing connection request is received. If the pairing connection request is judged to be received, responding to the pairing connection request, and entering the step 305; otherwise, whether a pairing connection request is received or not is continuously judged.
And 305, establishing a Bluetooth communication connection with the terminal which sends the pairing connection request.
Step 306, judging whether the terminal sending the pairing connection request establishes Bluetooth communication connection. If it is determined that a bluetooth communication connection is established with the terminal which has issued the pairing connection request, go to step 307; otherwise, returning to step 304, determining whether a pairing connection request is received.
Step 307, determining whether an unlocking instruction is received from the server. If the unlocking instruction from the server is judged to be received, the step 308 is carried out; otherwise, whether an unlocking instruction from the server is received or not is continuously judged.
Specifically, after the bluetooth communication connection is established with the terminal sending the pairing connection request, the user can select whether to unlock the sharing device connected with the terminal by popping up an option whether to unlock the sharing device connected with the terminal, and at the moment, if the user clicks the prompt option of unlocking, the information of unlocking the sharing device connected with the terminal is uploaded to the server, and then the server sends an unlocking instruction to the sharing device. Of course, the above is only an example, and the user may also upload the unlocking information to the server by inputting the unlocking code in the terminal or inputting the unlocking information by voice, and then the server sends the unlocking instruction to the shared device, so as to unlock the shared device. Of course, when finding the shared device connected to the terminal, the user may select the unlocking prompt option in the user terminal, for example, to upload the unlocking information of the shared device connected to the terminal to the server, and then the server sends the unlocking instruction to the shared device to unlock the shared device.
In step 308, the locked state of the sharing device is released.
Since steps 302 to 306 and 308 in the present embodiment are substantially the same as steps 101 to 106 in the first embodiment, when the sharing device is in the pairing waiting state, broadcast information is periodically transmitted following the bluetooth communication protocol;
when receiving a pairing connection request, responding to the pairing connection request, and establishing Bluetooth communication connection with a terminal sending the pairing connection request; after the bluetooth communication connection is established with the terminal that has sent the pairing connection request, the locked state of the sharing device is released, which is not described herein again.
Compared with the prior art, according to the unlocking method based on the Bluetooth, whether the button arranged on the sharing device is pressed or not is detected, and when the button on the sharing device is pressed, the Bluetooth module of the sharing device is started, so that the sharing device can enter a pairing waiting state without being in the pairing waiting state all the time, and the power consumption of the sharing device is saved.
In addition, it should be noted that the steps of the above various methods are divided for clarity of description, and may be combined into one step or split some steps to be decomposed into multiple steps during implementation, for example, the bluetooth module of the sharing device may be turned on in a manner of combining detection that a button provided on the sharing device is pressed and receiving a bluetooth turning-on instruction from the server. Similarly, when the locked state of the sharing device is released, the unlocking instruction sent by the terminal through the bluetooth communication connection can be combined with the unlocking instruction received by the sharing device from the server, and details are not repeated here.
The fourth embodiment of the present invention relates to a bluetooth-based unlocking method, which can be used in a terminal, where the terminal can be a mobile phone, a tablet computer, a wearable electronic device, and the like, and the following description will take the mobile phone as an example. Fig. 4 shows a process of an unlocking method based on bluetooth, which specifically includes:
step 401, scanning broadcast information according to bluetooth communication protocol, and searching for shared devices around the current position of the terminal.
Specifically, the sharing device to be used by the user is taken as an example of the sharing bicycle, and when the user opens the mobile phone terminal and enters an application program of the sharing bicycle used by the user, the sharing device scans broadcast information of the sharing bicycle according to the bluetooth communication protocol and searches for the sharing device around the current position of the terminal. The searched shared bicycles around the current position of the terminal can be sorted from near to far according to the distance and provide a distance list for the user to select, for example, the shared bicycles in a circular area with the user as the center of a circle and the radius of 10 meters are searched, and the number of the searched shared bicycles can be limited on the basis, for example, 3 shared bicycles with the distance from near to far to the user in the circular area with the user as the center of a circle and the radius of 10 meters are searched. Of course, the above is merely an example, and any method for searching for shared devices around the current location of the terminal is within the scope of the present invention.
Step 402, providing the searched sharing device list for the user to select.
For example, the searched shared bicycle list for the user to select may be sorted from near to far for the user to select, and it may be determined whether the searched shared bicycle is a red-covered bicycle, and then the red-covered bicycles are sorted preferentially, which is not limited specifically here.
Step 403, determine whether any sharing device in the sharing device list is selected. If any sharing device in the sharing device list is judged to be selected, the step 404 is entered; otherwise, continuously judging whether any sharing equipment in the sharing equipment list is selected.
Step 404, a pairing connection request is issued.
The pairing of the sharing device and the terminal is an authentication process, and if the sharing device is not paired with the terminal, the authentication relationship between the two devices cannot be established, so that the connection and the subsequent operation cannot be performed, and therefore, the safety of the bluetooth communication is ensured to a certain extent by the pairing of the sharing device and the terminal. For example, if a user wants to use a sharing bicycle, the user opens an application program that wants to use the sharing bicycle in the terminal, and selects the sharing bicycle to be used in an interface provided by the application program, and at this time, the sharing bicycle may receive a pairing connection request sent by the terminal.
Step 405, determine whether a response to the pairing connection request is received.
If it is determined that a response to the pairing connection request is received, step 406 is entered; otherwise, whether a response of the pairing connection request is received or not is continuously judged. In addition, when the sharing bicycle receives the pairing connection request sent by the terminal, the pairing connection request may be responded by flashing an indicator light of the sharing bicycle, or by a voice prompt, or by combining the two manners, and the pairing connection request may also be responded by other manners, which is not limited specifically herein.
And step 406, establishing a Bluetooth communication connection with the selected sharing device.
That is, after the terminal receives the device identifier of the sharing device selected by the user, the terminal establishes a bluetooth communication connection with the selected sharing device, so that the mobile phone and the sharing device can perform identification and data exchange in a short distance.
Compared with the prior art, the method for searching the shared bicycle provided by the embodiment is applied to the terminal, and by scanning the broadcast information and searching the shared devices around the current position, when the user selects the shared device to be used in the terminal, the method sends a pairing connection request to the shared device so as to establish Bluetooth communication connection with the shared device, so that the problem that the shared device can be unlocked even if the device identification of the shared device such as a two-dimensional code is not available is effectively solved.
The fifth embodiment of the present invention relates to an unlocking method based on bluetooth, which is further improved based on the fourth embodiment, and the specific improvements are as follows: and reporting the current position of the terminal to a server before the terminal scans broadcast information and searches shared equipment around the current position of the terminal. By reporting the current position of the terminal to the server, the server can be used for searching the sharing equipment in the preset range around the current position, and issuing a Bluetooth starting instruction to the searched sharing equipment, so that the Bluetooth of the sharing equipment is not required to be always in a starting state, the problem that the sharing equipment can be unlocked even if the equipment identification of the sharing equipment such as a two-dimensional code is not available is effectively solved, and the power consumption of the sharing equipment is saved. The specific process is shown in fig. 5, and includes:
and step 501, reporting the current position of the terminal to a server. The current position is used for the server to search the sharing equipment in the preset range around the current position, and a Bluetooth starting instruction is issued to the searched sharing equipment.
It should be noted that, before the server searches for the sharing device within the preset range around the current location and issues the bluetooth starting instruction to the found sharing device, the preset range may be set according to actual requirements, for example, the server may search for the sharing device within 10 meters around the current location, which is not limited herein.
Step 502, scanning the broadcast information according to the bluetooth communication protocol, and searching for shared devices around the current position of the terminal.
Step 503, providing the searched sharing device list for the user to select;
step 504, determine whether any sharing device in the sharing device list is selected.
Step 505, a pairing connection request is sent.
Step 506, determining whether to receive a response to the pairing connection request,
and step 507, establishing Bluetooth communication connection with the selected sharing equipment.
Since steps 502 to 507 in the present embodiment are substantially the same as steps 401 to 406 in the fourth embodiment, it is intended to scan broadcast information following the bluetooth communication protocol, and search for shared devices around the current location of the terminal; providing a searched sharing device list for a user to select; when any sharing device in the sharing device list is selected, sending a pairing connection request; and receiving a response to the pairing connection request, and establishing a bluetooth communication connection with the selected sharing device, which is not described herein again.
Compared with the prior art, the unlocking method based on the Bluetooth reports the current position of the terminal to the server before the terminal scans the broadcast information and searches the shared devices around the current position of the terminal. By reporting the current position of the terminal to the server, the server can be used for searching the sharing equipment in the preset range around the current position, and issuing a Bluetooth starting instruction to the searched sharing equipment, so that the Bluetooth of the sharing equipment is not required to be always in a starting state, the problem that the sharing equipment can be unlocked even if the equipment identification of the sharing equipment such as a two-dimensional code is not available is effectively solved, and the power consumption of the sharing equipment is saved.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
Furthermore, it will be understood by those skilled in the art that the foregoing embodiments are specific examples of implementing the invention, and that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.
A sixth embodiment of the present invention relates to an electronic apparatus, as shown in fig. 6, including: at least one processor 601; and, a memory communicatively coupled to the at least one processor 601; the memory 602 stores instructions executable by the at least one processor 601, and the instructions are executed by the at least one processor 601 to enable the at least one processor 601 to execute any of the bluetooth-based unlocking methods described above.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A seventh embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program is executed by the processor to realize any one of the above embodiments of the bluetooth-based unlocking method.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. An unlocking method based on Bluetooth is characterized in that the method is applied to shared equipment; the Bluetooth-based unlocking method comprises the following steps:
periodically transmitting broadcast information following a Bluetooth communication protocol while the sharing device is in a pairing waiting state;
when receiving a pairing connection request, responding to the pairing connection request, and establishing Bluetooth communication connection with a terminal sending the pairing connection request;
and after the Bluetooth communication connection is established with the terminal sending the pairing connection request, releasing the locking state of the sharing equipment.
2. The bluetooth-based unlocking method according to claim 1, further comprising:
and when detecting that a button arranged on the sharing equipment is pressed, starting a Bluetooth module, and enabling the sharing equipment to enter a pairing waiting state.
3. The bluetooth-based unlocking method according to claim 1, further comprising:
and when receiving a Bluetooth starting instruction from the server, starting the Bluetooth module, and enabling the sharing equipment to enter a pairing waiting state.
4. The bluetooth-based unlocking method according to any one of claims 1 to 3, further comprising:
after establishing Bluetooth communication connection with a terminal sending a pairing connection request, if an unlocking instruction sent by the terminal through the Bluetooth communication connection is received, the locking state of the sharing equipment is released.
5. The bluetooth-based unlocking method according to any one of claims 1 to 3, further comprising:
after establishing a Bluetooth communication connection with a terminal that issues a pairing connection request, if an unlocking instruction from a server is received, the locked state of the sharing device is released.
6. The bluetooth-based unlocking method according to claim 4, further comprising:
after establishing a bluetooth communication connection with a terminal that issued a pairing connection request, a prompt message for guiding a user to find a shared device is issued.
7. An unlocking method based on Bluetooth is characterized in that the method is applied to a terminal; the Bluetooth-based unlocking method comprises the following steps:
scanning broadcast information according to a Bluetooth communication protocol, and searching shared equipment around the current position of the terminal;
providing a searched sharing device list for a user to select;
when any sharing device in the sharing device list is selected, sending a pairing connection request;
and receiving a response to the pairing connection request, and establishing Bluetooth communication connection with the selected sharing equipment.
8. The bluetooth-based unlocking method according to claim 7, wherein before scanning for broadcast information following a bluetooth communication protocol, the bluetooth-based unlocking method further comprises:
reporting the current position of the terminal to a server;
the current position is used for the server to search the sharing equipment in a preset range around the current position, and a Bluetooth starting instruction is issued to the searched sharing equipment.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the bluetooth-based unlocking method of any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the bluetooth-based unlocking method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710459151.7A CN107393062A (en) | 2017-06-16 | 2017-06-16 | Method for unlocking and electronic equipment based on bluetooth |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710459151.7A CN107393062A (en) | 2017-06-16 | 2017-06-16 | Method for unlocking and electronic equipment based on bluetooth |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107393062A true CN107393062A (en) | 2017-11-24 |
Family
ID=60331976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710459151.7A Pending CN107393062A (en) | 2017-06-16 | 2017-06-16 | Method for unlocking and electronic equipment based on bluetooth |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107393062A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107833334A (en) * | 2017-11-29 | 2018-03-23 | 南华大学 | Shared place door lock key management system and method based on bluetooth and mobile network |
CN108712736A (en) * | 2018-04-28 | 2018-10-26 | 北京小米移动软件有限公司 | Find the methods, devices and systems of equipment |
CN109191629A (en) * | 2018-08-02 | 2019-01-11 | 北京拜克洛克科技有限公司 | Unlocking method of vehicle, terminal and server |
CN109255864A (en) * | 2018-08-02 | 2019-01-22 | 深圳市朗仁科技有限公司 | Shared bicycle bluetooth method for unlocking and device |
CN109410378A (en) * | 2018-09-06 | 2019-03-01 | 上海麦士信息技术有限公司 | A method of bicycle is shared based on bluetooth connection |
CN111654844A (en) * | 2020-04-23 | 2020-09-11 | 杭州涂鸦信息技术有限公司 | Device pairing method and related device and device |
CN111862400A (en) * | 2019-12-30 | 2020-10-30 | 北京骑胜科技有限公司 | Unlocking method, unlocking device, electronic equipment and computer readable storage medium |
CN112767615A (en) * | 2021-01-14 | 2021-05-07 | 广州乐摇摇信息科技有限公司 | Amusement equipment starting method and device |
CN113395667A (en) * | 2021-05-31 | 2021-09-14 | 佛山市利升光电有限公司 | Lamp control method and system based on mobile terminal |
CN114553530A (en) * | 2022-02-22 | 2022-05-27 | 深圳市冠旭电子股份有限公司 | Bluetooth headset payment method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104217478A (en) * | 2014-08-13 | 2014-12-17 | 王波 | Hotel Bluetooth access control intelligent management method |
CN104348953A (en) * | 2013-07-26 | 2015-02-11 | 深圳市赛格导航科技股份有限公司 | System for automatically matching vehicle-borne device and mobile phone terminal based on Bluetooth and method thereof |
CN104464040A (en) * | 2014-07-28 | 2015-03-25 | 冯林 | Car keyless entry system based on smart phone |
US20160196706A1 (en) * | 2014-02-12 | 2016-07-07 | Viking Access Systems, Llc | Movable barrier operator configured for remote actuation |
CN106740680A (en) * | 2016-12-15 | 2017-05-31 | 连宁 | The vehicles and its rent method, device and system |
-
2017
- 2017-06-16 CN CN201710459151.7A patent/CN107393062A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104348953A (en) * | 2013-07-26 | 2015-02-11 | 深圳市赛格导航科技股份有限公司 | System for automatically matching vehicle-borne device and mobile phone terminal based on Bluetooth and method thereof |
US20160196706A1 (en) * | 2014-02-12 | 2016-07-07 | Viking Access Systems, Llc | Movable barrier operator configured for remote actuation |
CN104464040A (en) * | 2014-07-28 | 2015-03-25 | 冯林 | Car keyless entry system based on smart phone |
CN104217478A (en) * | 2014-08-13 | 2014-12-17 | 王波 | Hotel Bluetooth access control intelligent management method |
CN106740680A (en) * | 2016-12-15 | 2017-05-31 | 连宁 | The vehicles and its rent method, device and system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107833334A (en) * | 2017-11-29 | 2018-03-23 | 南华大学 | Shared place door lock key management system and method based on bluetooth and mobile network |
CN108712736A (en) * | 2018-04-28 | 2018-10-26 | 北京小米移动软件有限公司 | Find the methods, devices and systems of equipment |
CN109191629A (en) * | 2018-08-02 | 2019-01-11 | 北京拜克洛克科技有限公司 | Unlocking method of vehicle, terminal and server |
CN109255864A (en) * | 2018-08-02 | 2019-01-22 | 深圳市朗仁科技有限公司 | Shared bicycle bluetooth method for unlocking and device |
CN109410378A (en) * | 2018-09-06 | 2019-03-01 | 上海麦士信息技术有限公司 | A method of bicycle is shared based on bluetooth connection |
CN111862400A (en) * | 2019-12-30 | 2020-10-30 | 北京骑胜科技有限公司 | Unlocking method, unlocking device, electronic equipment and computer readable storage medium |
CN111654844A (en) * | 2020-04-23 | 2020-09-11 | 杭州涂鸦信息技术有限公司 | Device pairing method and related device and device |
CN112767615A (en) * | 2021-01-14 | 2021-05-07 | 广州乐摇摇信息科技有限公司 | Amusement equipment starting method and device |
CN113395667A (en) * | 2021-05-31 | 2021-09-14 | 佛山市利升光电有限公司 | Lamp control method and system based on mobile terminal |
CN113395667B (en) * | 2021-05-31 | 2023-08-15 | 佛山市利升光电有限公司 | Lamp control method and system based on mobile terminal |
CN114553530A (en) * | 2022-02-22 | 2022-05-27 | 深圳市冠旭电子股份有限公司 | Bluetooth headset payment method and device, electronic equipment and storage medium |
CN114553530B (en) * | 2022-02-22 | 2023-08-15 | 深圳市冠旭电子股份有限公司 | Bluetooth headset payment method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107393062A (en) | Method for unlocking and electronic equipment based on bluetooth | |
CN101233699B (en) | Method and equipment for executing NFC | |
EP2721748B1 (en) | Wireless local area communication method and terminal supporting the same | |
AU2011324229B2 (en) | Method and apparatus for connecting wireless network in a digital device | |
CN105325018B (en) | Wireless communication device and communication control unit | |
US8150310B2 (en) | Setting method of communication parameters, communicating apparatus, control method of communicating apparatus, and program | |
US20070123165A1 (en) | Methods, systems and devices for assisted discovery in bluetooth enabled devices | |
KR101332813B1 (en) | Wireless communication apparatus and method for generating wireless access channel thereof | |
US9083810B2 (en) | Apparatus and method for motion detecting in mobile communication terminal | |
WO2013104153A1 (en) | Quick bluetooth device pairing method and bluetooth device | |
US20120129454A1 (en) | Communication terminal and communication control method | |
JP5960558B2 (en) | Wireless router device | |
US8909152B2 (en) | Automatic-switching wireless communication system and method | |
US9094950B2 (en) | Portable communication apparatus and method for establishing wireless connection thereof | |
EP3326392B1 (en) | System and method to transfer operations between mobile and portable devices | |
US20160021487A1 (en) | Near field communication method and device | |
KR101601397B1 (en) | Telematics system for wifi direct communicating using near field communication | |
CN108496381A (en) | Information processing equipment, information processing method and program | |
CN104661326A (en) | Managing Concurrent Connections Between Wireless Dockee Devices In A Wireless Docking Environment | |
JP2008072577A (en) | Station device and wireless lan communication system | |
CN110832947A (en) | Networking method and equipment | |
KR101451675B1 (en) | Point-to-multipoint Connectable Slave Keyboard Combined With Wired USB And Wireless Bluetooth And Automatically Charged | |
JP6246353B2 (en) | Communication apparatus and communication control method | |
CN106302777A (en) | A kind of point-to-point matching process of radio hand-held equipment self adaptation | |
CN108616856A (en) | A kind of communication means, intelligence module and the storage medium of intelligence module |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171124 |