CN107393062A - Method for unlocking and electronic equipment based on bluetooth - Google Patents

Method for unlocking and electronic equipment based on bluetooth Download PDF

Info

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
unlocking
shared
terminal
shared equipment
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
Application number
CN201710459151.7A
Other languages
Chinese (zh)
Inventor
王文斌
周金虎
李承敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yude Technology Co Ltd
Original Assignee
Shanghai Yude Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yude Technology Co Ltd filed Critical Shanghai Yude Technology Co Ltd
Priority to CN201710459151.7A priority Critical patent/CN107393062A/en
Publication of CN107393062A publication Critical patent/CN107393062A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • 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

Method for unlocking and electronic equipment based on bluetooth
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of method for unlocking and electronics based on bluetooth are set It is standby.
Background technology
With the development of shared Economic concept, related novel economizer activity starts to emerge, from " shared bicycle " to " shared Charger baby " arrives " shared umbrella " again, and by the innovative idea and brand-new platform to emerge in an endless stream, " shared economy " is also increasingly towards more Wide field is added to expand.In actual applications, user can be shared by terminal scanning Quick Response Code on mobile device or Input equipment number obtains PUK, so as to use shared mobile device accordingly.The popularization of shared mobile device, it is Daily life brings great convenience.
Inventor has found that at least there are the following problems in the prior art:Because current shared mobile device only has an equipment Mark, therefore, some people are by damaging device identification (such as the Quick Response Code and equipment of shared mobile device of shared mobile device Numbering), the purpose that other users can not use to reach the shared mobile device of occupancy alone, cause mobile shared resource Waste.
The content of the invention
The purpose of embodiment of the present invention is to provide a kind of method for unlocking and electronic equipment based on bluetooth, reached i.e. , also can be to sharing the purpose that be unlocked of equipment when making the device identification of the shared equipment such as no Quick Response Code.
In order to solve the above technical problems, embodiments of the present invention provide a kind of method for unlocking based on bluetooth, application In shared equipment, including:When shared equipment is in pairing wait state, it then follows Bluetooth communication protocol periodically sends broadcast Information;When receiving pairing connection request, response pairing connection request, the terminal with sending pairing connection request establishes bluetooth Communication connection;Established with sending the terminal of pairing connection request after Bluetooth communication be connected, release the locking shape for sharing equipment State.
Embodiments of the present invention additionally provide a kind of method for unlocking based on bluetooth, applied to terminal, including:Follow indigo plant Tooth communication protocol scans broadcast message, the shared equipment around search terminal current location;The shared equipment row searched are provided Table selects for user;When any shared equipment is selected in shared list of devices, pairing connection request is sent;Receive to pairing The response of connection request, establish Bluetooth communication with the shared equipment chosen and be connected.
Embodiments of the present invention additionally provide a kind of electronic equipment, including:At least one processor;And with least The memory of one processor communication connection;Wherein, memory storage, which has, to be instructed by the instruction of at least one computing device By at least one computing device, so that at least one processor is able to carry out any unlocking side based on bluetooth as described above Method.
Embodiment of the present invention in terms of existing technologies, is attached by actively contacting terminal by shared equipment, Rather than terminal actively contacts shared equipment and is attached, even if having reached the device identification without the shared equipment such as Quick Response Code When, it can also realize the purpose being unlocked to sharing equipment.
In addition, the method for unlocking based on bluetooth also includes:When the button set on detecting shared equipment is pressed, open Bluetooth module is opened, equipment is shared and enters pairing wait state.By not making shared equipment be constantly in pairing wait state, but When the button set in shared equipment is pressed, just enter pairing wait state, even if reaching without Quick Response Code etc. altogether When enjoying the device identification of equipment, while can also realizing the purpose being unlocked to shared equipment, also help and save shared set Standby power consumption.
In addition, the method for unlocking based on bluetooth also includes:When receiving the unlatching Bluetooth commands from server, open Bluetooth module, share equipment and enter pairing wait state.It is not to be constantly in pairing wait state by shared equipment, but When shared equipment receives the unlatching Bluetooth commands from server, share equipment and just enter pairing wait state, there is provided be another A kind of method for effectively saving shared amount of equipment power consumption.
In addition, the method for unlocking based on bluetooth also includes:Bluetooth communication is established in the terminal with sending pairing connection request After connection, if receiving unlocking instruction of the terminal by Bluetooth communication linkup transmit, the locking shape of shared equipment is released State.Sending unlocking instruction by using terminal makes shared equipment unlock, and is advantageous to the time timing using shared equipment to user It is more accurate.
In addition, the method for unlocking based on bluetooth also includes:Bluetooth communication is established in the terminal with sending pairing connection request After connection, if receive the unlocking instruction from server, the lock-out state of the shared equipment is released.Pass through end End uploads unlocking information to server, then sending unlocking instruction by server makes shared equipment unlock, there is provided a kind of effective Method for unlocking to sharing equipment.
In addition, the method for unlocking based on bluetooth also includes:Bluetooth communication is established in the terminal with sending pairing connection request After connection, the prompt message for guiding user to find shared equipment is sent.By sending prompt message to guide user to seek Shared equipment is looked for, is advantageous to user and is quickly found out the shared equipment.
In addition, before Bluetooth communication protocol scanning broadcast message is followed, the method for unlocking based on bluetooth also includes:Report Terminal is presently in position to server;Wherein, being presently in position, for whois lookup to be presently in around position one pre- If the shared equipment in scope, and issue unlatching Bluetooth commands to the shared equipment found.By the bluetooth for making shared equipment Opening need not be constantly in, beneficial to the power consumption for saving shared equipment.
Brief description of the drawings
One or more embodiments are illustrative by the picture in corresponding accompanying drawing, these exemplary theorys The bright restriction not formed to embodiment, the element for having same reference numbers label in accompanying drawing are expressed as similar element, removed Non- have a special statement, and composition does not limit the figure in accompanying drawing.
Fig. 1 is the flow chart according to the method for unlocking based on bluetooth of first embodiment of the invention;;
Fig. 2 is the flow chart according to the method for unlocking based on bluetooth of second embodiment of the invention;
Fig. 3 is the flow chart according to the method for unlocking based on bluetooth of third embodiment of the invention;
Fig. 4 is the flow chart according to the method for unlocking based on bluetooth of four embodiment of the invention;
Fig. 5 is the flow chart according to the method for unlocking based on bluetooth of fifth embodiment of the invention;
Fig. 6 is the structured flowchart according to the electronic equipment of sixth embodiment of the invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order that reader more fully understands the application and proposes many ins and outs.But even if without these ins and outs With many variations based on following embodiment and modification, the application technical scheme claimed can also be realized.
The first embodiment of the present invention is related to a kind of method for unlocking based on bluetooth.This method for unlocking based on bluetooth It can be used in shared equipment, shared equipment mentioned here can be shared bicycle, shared charger baby, shared umbrella etc. Deng being illustrated below by taking shared bicycle as an example, Fig. 1 gives a kind of flow of the method for unlocking based on bluetooth, specifically includes:
Step 101, judge shared equipment whether in pairing wait state.If it is determined that shared equipment is in equity State is treated, then into step 102, otherwise, continues to judge shared equipment whether in pairing wait state.
Specifically, share equipment and be in pairing wait state, can be shared equipment when static and locked, one It is straight in pairing wait state, established until with sending the terminal of pairing connection request untill Bluetooth communication is connected.Can also be Shared equipment when static and locked, intermittence in pairing wait state, such as, shared bicycle is static and locked Timing, in pairing wait state, then automatically exits from pairing wait shape in the first preset time when beyond the first preset time State, automatically exit from match wait state exceed the second preset time when, enter back into pairing wait state, so circulate, until Terminal with sending pairing connection request is established Bluetooth communication and is connected.Wherein, the first preset time and the second preset time can be with It is identical can also be different, and can voluntarily set, be not specifically limited herein according to the actual requirements.
Certainly, two kinds of shared equipment are presented above how in two kinds of examples for matching wait state, the present invention is not Be exemplified as limiting with above-mentioned, any shared equipment how in pairing wait state method all should protection scope of the present invention it It is interior, do not repeat one by one herein.
Step 102, it then follows Bluetooth communication protocol periodically sends broadcast message.
It should be noted that the purpose for following Bluetooth communication protocol is to make to meet between the shared equipment and terminal of the specification Interconnection can be realized.Followed in shared equipment after Bluetooth communication protocol periodically sends broadcast message, if terminal receives To the broadcast message transmitted by shared equipment, then the broadcast packet can be parsed, and carry out equipment identification, pairing, thing Part notifies and instruction controls etc..
Preferably, in actual applications, bluetooth low energy consumption (BLE, Bluetooth Low Energy letter can be passed through Claim) technology, periodically send broadcast message to terminal.Wherein, bluetooth low energy consumption technologies be a kind of low cost, short distance, can The robustness wireless technology of interoperability, it is (such as shared that it can utilize many intelligent means reduce mobile device to greatest extent Bicycle) power consumption, and it is possible to make shared equipment be connected with terminal using very quick mode.
Step 103, judge whether to receive pairing connection request.If it is determined that receiving pairing connection request, then respond Connection request is matched, into step 104;Otherwise, continue to determine whether to receive pairing connection request.
In fact, the pairing of shared equipment and terminal is exactly the process of a certification, if shared equipment and terminal are unpaired, Authentication relationship just can not be established between so two equipment, and then can not be attached and its operation afterwards, it is therefore, shared to set The standby pairing with terminal ensure that the safety of Bluetooth communication to a certain extent.For example, shared if certain user will use Bicycle, then the user open the application program to be used shared bicycle in the terminal, then at the interface that the application program provides In, the shared bicycle to be used is selected, now, shared bicycle can receive the pairing connection request that terminal is sent, altogether When enjoying bicycle and receiving pairing connection request, it can be flashed by sharing the indicator lamp of bicycle, either auditory tone cues or will be upper The mode that two ways is combined is stated, matches connection request as response, and enter step 104.
Certainly, the mode of equipment response pairing connection request is shared, it is not limited to which the example above, any shared equipment are rung The mode that connection request should be matched all should not repeat one by one herein within the scope of the present invention.
Step 104, establish Bluetooth communication with sending the terminal of pairing connection request and be connected.
It should be noted that due to bluetooth master (such as shared bicycle) can simultaneously with multiple slave units (such as terminal) Communication pairing connection is carried out, still, in actual applications, a shared bicycle can not be used by multiple users simultaneously, only Can be that a shared bicycle is used by a user simultaneously.Therefore, in present embodiment, can be asked with sending pairing connection During the terminal asked establishes Bluetooth communication connection, it is arranged to bluetooth master and can only be carried out in the same time with a terminal Communication pairing connection.Or pair can not be limited with the quantity of the pairing of bluetooth master, however, it is possible to set pair with The quantity that bluetooth master connects simultaneously is only one.Wherein, this slave unit being connected with bluetooth master, such as, Can be to establish Bluetooth communication with sharing the nearest terminal of bicycle apart from this be connected, or, can also be with send pairing company earliest The terminal for connecing request establishes Bluetooth communication connection.
Step 105, whether the terminal for judging and sending pairing connection request establishes Bluetooth communication connection.If it is determined that with hair The terminal for going out to match connection request establishes Bluetooth communication connection, then into step 106;Otherwise, return to step 103, judgement are It is no to receive pairing connection request.
It is noted that established with sending the terminal of pairing connection request during Bluetooth communication is connected, may Situation about not connected due to the reason such as network signal is bad with sending the terminal of pairing connection request, now, continue and hair The terminal for going out to match connection request establishes Bluetooth communication connection, certainly, if it happens multiple (such as three times) connect with sending pairing The situation that the terminal of request is established Bluetooth communication connection and do not connected is connect, then can be directly entered done state.If Terminal with sending pairing connection request establishes Bluetooth communication and is connected, then into step 106.
Step 106, the lock-out state of shared equipment is released.
Specifically, can be that the terminal that connection request is matched when shared equipment and sending establishes Bluetooth communication and is connected When, the lock-out state of shared equipment is released immediately, can also be to be established in shared equipment with sending the terminal of pairing connection request After the preset time of Bluetooth communication connection, the lock-out state of shared equipment is released.Such as in shared bicycle and send pairing After the terminal of connection request establishes 1 minute of Bluetooth communication connection, the lock-out state of shared equipment is released.Certainly, on pre- If the setting of time, should not be exemplified as limiting with above-mentioned, can also according to actual conditions provide preset time selective listing for Family voluntarily sets uncaging time.Preferably, rationally utilized to reach the abundant of shared resource, the setting of its preset time is unsuitable Overlong time, any time on releasing the lock-out state of shared equipment set all should within protection scope of the present invention, No longer repeat one by one herein.
Compared with prior art, a kind of method for unlocking based on bluetooth that present embodiment provides, by shared equipment actively Contact terminal is attached, rather than terminal actively contacts shared equipment and is attached, even if efficiently solving without two dimension , also can be to sharing the purpose that be unlocked of equipment during the device identifications of shared equipment such as code.
Second embodiment of the present invention is related to a kind of method for unlocking based on bluetooth.Second embodiment is implemented first Improve on the basis of mode, mainly the improvement is that:In embodiments of the present invention, by shared equipment receive come From the unlatching Bluetooth commands of server, the bluetooth module for sharing equipment is opened so that shared equipment just enters pairing wait state, Without being constantly in pairing wait state, the power consumption of terminal is further saved.
Step 201, judge whether to receive the unlatching Bluetooth commands from server.If it is determined that receive from service The unlatching Bluetooth commands of device, then into step 202;Otherwise, continue to determine whether to receive the unlatching bluetooth from server to refer to Order.
That is, shared equipment is not to be constantly in pairing wait state, but received in shared equipment from clothes The unlatching Bluetooth commands of business device, when opening the bluetooth of shared equipment, shared equipment, which just enters, matches wait state.
In practical application, the unlatching Bluetooth commands of server can open answering for the shared equipment to be used in user During with program, the positional information of user is uploaded onto the server, now, server can according to the present position information of user, The shared equipment near user present position is searched, and is sent to the shared equipment near user present position and opens indigo plant Tooth instructs, so that the shared equipment near user present position enters pairing wait state.
It is noted that for the shared equipment near user present position searched, can be limited with distance, Search for a range of shared equipment near user present position, for example, search for by the center of circle of user with 10 meters for half The shared equipment of the border circular areas in footpath, can also limit the quantity of the shared equipment searched on this basis, for example search for 3 shared equipment by the center of circle of user with 10 meters of distances for the border circular areas of radius and user from the near to the remote.Certainly, with On by way of example only, it is any for the method for the shared equipment near user present position searched, all should be in this hair Within bright protection domain.
Step 202, share equipment and enter pairing wait state.
Step 203, it then follows Bluetooth communication protocol periodically sends broadcast message.
Step 204, judge whether to receive pairing connection request.If it is determined that receiving pairing connection request, then ring Connection request should be matched, into step 206;Otherwise, continue to determine whether to receive pairing connection request.
Step 205, establish Bluetooth communication with sending the terminal of pairing connection request and be connected.
Step 206, whether the terminal for judging and sending pairing connection request establishes Bluetooth communication connection.If it is determined that with The terminal for sending pairing connection request establishes Bluetooth communication connection, then into step 207;Otherwise, return to step 204, judge Whether pairing connection request is received.
Step 207, judge whether to receive unlocking instruction of the terminal by Bluetooth communication linkup transmit.If it is determined that receive Unlocking instruction to terminal by Bluetooth communication linkup transmit, then into step 208;Otherwise continue to determine whether to receive terminal Pass through the unlocking instruction of Bluetooth communication linkup transmit.
Specifically, established with sending the terminal of pairing connection request after Bluetooth communication is connected, can be in user The options for user whether unlocked in terminal by ejecting selects, to ask whether that the shared equipment for giving terminal connection is opened Lock, now, if user clicks on the prompt options unlocked, the lock for the shared equipment being connected with terminal automatically opens up.Above only For for example, user can also be by inputting unlocking code or by phonetic entry unlocking information, to pass through indigo plant in the terminal Tooth communication connection, which sends unlocking instruction, automatically opens up the lock of shared equipment.Certainly, user can also be connected finding with terminal Shared equipment when, then by such as choosing the prompt options of unlocking in the user terminal, receive terminal in shared equipment and lead to When crossing the unlocking instruction of Bluetooth communication linkup transmit, so that the lock of shared equipment automatically opens up.
Step 208, the prompt message for guiding user to find shared equipment is sent.
For example, can be information of voice prompt for guiding user to find the prompt message of shared equipment, can be with Can also be that the indicator lamp color (such as green) of shared equipment light to share the flicker of the indicator lamp of equipment, can also will Aforesaid way any combination, any prompt message that can be used for guiding user to find shared equipment is in the protection model of the present invention Within enclosing, it is not specifically limited herein.
Step 209, the lock-out state of shared equipment is released.
Because step 202 is to step 206 in present embodiment, step 209 and step 101 in first embodiment to step 106 is roughly the same, when shared equipment is in pairing wait state, it then follows Bluetooth communication protocol periodically sends broadcast letter Breath;When receiving pairing connection request, response pairing connection request, the terminal with sending pairing connection request is established bluetooth and led to Letter connection;Established with sending the terminal of pairing connection request after Bluetooth communication be connected, release the lock-out state for sharing equipment, Here is omitted.
Compared with prior art, a kind of method for unlocking based on bluetooth that present embodiment provides, by shared equipment The unlatching Bluetooth commands from server are received, open the bluetooth module of shared equipment so that shared equipment just enters pairing Wait state, without being constantly in pairing wait state, further save the power consumption of terminal.
Third embodiment of the invention is related to a kind of method for unlocking based on bluetooth, and present embodiment is in the first embodiment party Further improvement has been done on the basis of formula, has specifically been theed improvement is that:By detect the button set in shared equipment whether by Pressing, when the button on detecting shared equipment is pressed, open the bluetooth module of shared equipment so that shared equipment is just entered Enter to match wait state, without being constantly in pairing wait state, be advantageous to save the power consumption of shared equipment.Idiographic flow As shown in figure 3, including:
Step 301, detect whether the button set in shared equipment is pressed.If detect what is set in shared equipment Button is pressed, then into step 302;Otherwise, continue to detect whether the button set in shared equipment is pressed.
It should be noted that the button set on a sharing device, can be button button, or touch to press Button, due to there is corresponding triggering office under button button, button also has trickle gap in itself with shared equipment in itself, anti- It can be all restricted on water, anti-soil and robustness, and touch-button can not pressed with the fuselage integration of shared equipment What trickle gap was brought between button enters water problems, and waterproof, stain resistance are more preferable.Moreover, modern touch-screen technique is very first Enter, not only support multi-point touch, practical level and degree easy to use are all higher than button.It is preferred, therefore, that on a sharing device Touch-button is set to be preferred.
In addition, the position of settings button on a sharing device, can be pressed according to the shape of shared equipment, user whether side Just etc. free setting is considered.Such as the button set on shared bicycle, it can be arranged on handlebar, also may be used To be arranged on lock;The button set on shared umbrella, can be arranged on the handle of umbrella, can also be arranged on umbrella Snap-fastener on etc., be not specifically limited herein.After the button set on shared equipment is detected is pressed, into step 302。
Step 302, share equipment and enter pairing wait state.
Step 303, it then follows Bluetooth communication protocol periodically sends broadcast message.
Step 304, judge whether to receive pairing connection request.If it is determined that receiving pairing connection request, then ring Connection request should be matched, into step 305;Otherwise, continue to determine whether to receive pairing connection request.
Step 305, establish Bluetooth communication with sending the terminal of pairing connection request and be connected.
Step 306, whether the terminal for judging and sending pairing connection request establishes Bluetooth communication connection.If it is determined that with The terminal for sending pairing connection request establishes Bluetooth communication connection, then into step 307;Otherwise, return to step 304, judge Whether pairing connection request is received.
Step 307, judge whether to receive the unlocking instruction from server.If it is determined that receive from server Unlocking instruction, then into step 308;Otherwise continue to determine whether to receive the unlocking instruction from server.
Specifically, established with sending the terminal of pairing connection request after Bluetooth communication is connected, can be in user The options for user whether unlocked in terminal by ejecting selects, to ask whether that the shared equipment for giving terminal connection is opened Lock, now, if user clicks on the prompt options unlocked, the information that the shared equipment being connected with terminal is unlocked is uploaded to clothes Business device, then unlocking instruction is sent to shared equipment by server.Certainly, these are only for example, user can also by Unlocking code is inputted in terminal or by phonetic entry unlocking information, the information of unlocking is uploaded onto the server, then by server Unlocking instruction is sent to shared equipment, so that the shared equipment of unblock.Certainly, user can also find be connected with terminal it is shared During equipment, then by such as choosing the prompt options of unlocking in the user terminal, unlocked in the shared equipment that will be connected with terminal Information upload onto the server, then by server send unlocking instruction to shared equipment, to unlock shared equipment.
Step 308, the lock-out state of shared equipment is released.
Due in present embodiment step 302 into step 306, step 308 and first embodiment step 101 to step 106 is roughly the same, when shared equipment is in pairing wait state, it then follows Bluetooth communication protocol periodically sends broadcast letter Breath;
When receiving pairing connection request, response pairing connection request, the terminal with sending pairing connection request is established Bluetooth communication connects;Established with sending the terminal of pairing connection request after Bluetooth communication be connected, release the lock for sharing equipment Determine state, here is omitted.
Compared with prior art, a kind of method for unlocking based on bluetooth that present embodiment provides, by detecting shared set Whether the button of standby upper setting is pressed, and when the button on detecting shared equipment is pressed, opens the bluetooth of shared equipment Module so that shared equipment just enters pairing wait state, without being constantly in pairing wait state, is advantageous to save and shares The power consumption of equipment.
In addition, it is necessary to explanation, is divided the step of any of the above method, be intended merely to describe it is clear, can be with when realizing Merge into a step or some steps are split, be decomposed into multiple steps, such as, detection can also be shared and set The button of standby upper setting is pressed with receiving mode that the unlatchings Bluetooth commands of server are combined to open shared equipment indigo plant Tooth module.Similarly, when releasing the lock-out state of shared equipment, can also by terminal opening by Bluetooth communication linkup transmit Lock instruction receives the unlocking instruction from server with shared equipment and is combined, and no longer repeats one by one herein.
Four embodiment of the invention is related to a kind of method for unlocking based on bluetooth, and this method for unlocking based on bluetooth can To use in the terminal, terminal mentioned here can be mobile phone, tablet personal computer, wearable electronic equipment etc., below with Illustrated exemplified by mobile phone.Fig. 4 gives a kind of flow of the method for unlocking based on bluetooth, specifically includes:
Step 401, it then follows Bluetooth communication protocol scans broadcast message, the shared equipment around search terminal current location.
Specifically, illustrated so that user's shared equipment to be used is shared bicycle as an example, when user opens hand Machine terminal enters so during the application program of the shared bicycle used, it then follows the broadcast letter of the shared bicycle of Bluetooth communication protocol scanning Cease, the shared equipment around search terminal current location.Wherein, the shared bicycle around the terminal current location searched, can So that according to distance, by being closely ranked up and provide apart from list for user's selection to remote, for example it is being the center of circle with 10 using user to search for Rice is the shared bicycle of the border circular areas of radius, can also limit the quantity of the shared bicycle searched on this basis, such as Search in 3 shared bicycles by the center of circle of user with 10 meters of distances for the border circular areas of radius and user from the near to the remote. Certainly, these are only for example, the method for the shared equipment around any search terminal current location, all should be the present invention's Within protection domain.
Step 402, there is provided the shared list of devices searched selects for user.
Such as, there is provided the shared bicycle list searched for user's selection, can be according to distance by closely to far entering Whether row sequence selects for user, can also be that red packet bicycle judges to the shared bicycle searched, then to red packet list Car priority ordering, is not specifically limited herein.
Step 403, judge whether any shared equipment is selected in shared list of devices.If it is determined that shared equipment row Any shared equipment is selected in table, then into step 404;Otherwise, continue to judge any shared equipment in shared list of devices Whether it is selected.
Step 404, pairing connection request is sent.
The pairing of shared equipment and terminal is exactly the process of a certification, if shared equipment and terminal are unpaired, then Just authentication relationship can not be established between two equipment, and then can not be attached and its operation afterwards, therefore, share equipment with The pairing of terminal ensure that the safety of Bluetooth communication to a certain extent.For example, if certain user will use shared bicycle, Then the user opens the application program to be used shared bicycle in the terminal, then in the interface that the application program provides, choosing The shared bicycle to be used is selected, now, shared bicycle can receive the pairing connection request that terminal is sent.
Step 405, judge whether to receive the response for matching connection request.
If it is determined that the response of pairing connection request is received, then into step 406;Otherwise, continue to determine whether to connect Receive the response of pairing connection request.In addition, when shared bicycle receives the pairing connection request that terminal is sent, can pass through The indicator lamp flicker of shared bicycle, either auditory tone cues or the mode for being combined above two mode, are matched as response Connection request, the request that otherwise can also be connected as response pairing, is not specifically limited herein.
Step 406, Bluetooth communication is established with the shared equipment chosen to be connected.
That is, after the device identification that terminal receives the shared equipment that user chooses, with the shared equipment chosen Bluetooth communication connection is established, in order to be identified in closely interior mobile phone and shared equipment and data exchange.
Compared with prior art, the method for the shared bicycle of searching that present embodiment provides, applied to terminal, passes through scanning Broadcast message and the shared equipment searched for around current location, when user chooses the shared equipment to be used in the terminal, Pairing connection request is sent to shared equipment, establishing Bluetooth communication to share equipment with this is connected, and does not have even if efficiently solving When having the device identification of the shared equipment such as Quick Response Code, shared equipment can be also unlocked.
Fifth embodiment of the invention is related to a kind of method for unlocking based on bluetooth, and present embodiment is in the 4th embodiment party Further improvement has been done on the basis of formula, has specifically been theed improvement is that:In terminal scanning broadcast message, search terminal current location Before the shared equipment of surrounding, reporting terminal is presently in position to server.Position is presently in clothes by reporting terminal Business device, whois lookup can be utilized to be presently in around position the shared equipment in preset range, and it is shared to what is found Equipment issues unlatching Bluetooth commands, makes the bluetooth of shared equipment need not be constantly in opening, not only efficiently solves i.e. When making the device identification of the shared equipment such as no Quick Response Code, shared equipment can be also unlocked, also help and save shared set Standby power consumption.Idiographic flow as shown in figure 5, including:
Step 501, reporting terminal is presently in position to server.Wherein, it is presently in position and is used for whois lookup The shared equipment being presently in around position in preset range, and issue unlatching Bluetooth commands to the shared equipment found.
It should be noted that be presently in around position the shared equipment in preset range in whois lookup, and to looking into The shared equipment found is issued before opening Bluetooth commands, and its preset range can be set according to the actual requirements, such as, can be with To search the shared equipment being presently in around position in 10 meters, it is not specifically limited herein.
Step 502, it then follows Bluetooth communication protocol scans broadcast message, the shared equipment around search terminal current location.
Step 503, there is provided the shared list of devices searched selects for user;
Step 504, judge whether any shared equipment is selected in shared list of devices.
Step 505, pairing connection request is sent.
Step 506, judge whether to receive the response to matching connection request,
Step 507, Bluetooth communication is established with the shared equipment chosen to be connected.
Due in step 502 to step 507 and the 4th embodiment in present embodiment step 401 to step 406 substantially It is identical, it is intended to follow Bluetooth communication protocol scanning broadcast message, the shared equipment around search terminal current location;Search is provided The shared list of devices arrived selects for user;When any shared equipment is selected in shared list of devices, pairing connection is sent Request;The response to matching connection request is received, Bluetooth communication is established with the shared equipment chosen and is connected, here is omitted.
Compared with prior art, the method for unlocking based on bluetooth that present embodiment provides, in terminal scanning broadcast message, Before shared equipment around search terminal current location, reporting terminal is presently in position to server.Pass through reporting terminal Position is presently in server, the shared equipment that can be presently in using whois lookup around position in preset range, And unlatching Bluetooth commands are issued to the shared equipment found, make the bluetooth of shared equipment need not be constantly in opening, no Even if only effectively solve the device identification without the shared equipment such as Quick Response Code, shared equipment can be also unlocked, also Be advantageous to save the power consumption of shared equipment.
Because second embodiment is mutually corresponding with present embodiment, therefore present embodiment can be mutual with second embodiment It is engaged implementation.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, implement second The technique effect that can reach in mode can similarly be realized in the present embodiment, no longer superfluous here in order to reduce repetition State.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in second embodiment.
The step of various methods divide above, be intended merely to describe it is clear, can be merged into when realizing a step or Some steps are split, are decomposed into multiple steps, as long as including identical logical relation, all protection domain in this patent It is interior;To either adding inessential modification in algorithm in flow or introducing inessential design, but its algorithm is not changed Core design with flow is all in the protection domain of the patent.
In addition, it will be understood by those skilled in the art that the respective embodiments described above be realize the present invention specific embodiment, and In actual applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Sixth embodiment of the invention is related to a kind of electronic equipment, as shown in fig. 6, including:At least one processor 601; And the memory with the communication connection of at least one processor 601;Wherein, be stored with can be by least one processing for memory 602 The instruction that 601 devices perform, instructs and is performed by least one processor 601, so that at least one processor 601 is able to carry out as above State any method for unlocking based on bluetooth.
Wherein, memory is connected with processor using bus mode, and bus can include the bus of any number of interconnection And one or more processors and the various of memory are electrically connected to together by bridge, bus.Bus can also will be such as peripheral The various other of equipment, voltage-stablizer and management circuit or the like are electrically connected to together, and these are all well known in the art , therefore, no longer it is described further herein.EBI provides interface between bus and transceiver.Transceiver Can be an element or multiple element, such as multiple receivers and transmitter, there is provided for over a transmission medium with The unit of various other device communications.The data handled through processor are transmitted on the radio medium by antenna, further, Antenna also receives data and transfers data to processor.
Processor is responsible for bus and common processing, can also provide various functions, including regularly, peripheral interface, Voltage-regulation, power management and other control functions.And memory can be used to store processor in execution operation when institute The data used.
Seventh embodiment of the invention is related to a kind of computer-readable recording medium, is stored with computer program.Computer Method for unlocking embodiment of any of the above-described based on bluetooth is realized when program is executed by processor.
That is, it will be understood by those skilled in the art that realize that all or part of step in above-described embodiment method is can be with The hardware of correlation is instructed to complete by program, the program storage is in the storage medium, including some instructions are making Obtain an equipment (can be single-chip microcomputer, chip etc.) or processor (processor) performs side described in each embodiment of the application The all or part of step of method.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize the specific embodiment of the present invention, And in actual applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (10)

1. a kind of method for unlocking based on bluetooth, it is characterised in that applied to shared equipment;The method for unlocking based on bluetooth Including:
When the shared equipment is in pairing wait state, it then follows Bluetooth communication protocol periodically sends broadcast message;
When receiving pairing connection request, the pairing connection request is responded, the terminal with sending pairing connection request is established Bluetooth communication connects;
Established with sending the terminal of pairing connection request after Bluetooth communication be connected, the locking shape of the releasing shared equipment State.
2. the method for unlocking according to claim 1 based on bluetooth, it is characterised in that the method for unlocking based on bluetooth Also include:
When the button set on detecting the shared equipment is pressed, bluetooth module is opened, the shared equipment enters and matched somebody with somebody To wait state.
3. the method for unlocking according to claim 1 based on bluetooth, it is characterised in that the method for unlocking based on bluetooth Also include:
When receiving the unlatching Bluetooth commands from server, bluetooth module is opened, the shared equipment enters pairing and waited State.
4. the method for unlocking based on bluetooth according to any one of claims 1 to 3, it is characterised in that described to be based on bluetooth Method for unlocking also include:
Established with sending the terminal of pairing connection request after Bluetooth communication is connected, if receive the terminal pass through it is described The unlocking instruction of Bluetooth communication linkup transmit, then release the lock-out state of the shared equipment.
5. the method for unlocking based on bluetooth according to any one of claims 1 to 3, it is characterised in that described to be based on bluetooth Method for unlocking also include:
Established with sending the terminal of pairing connection request after Bluetooth communication is connected, if receiving the unlocking from server During instruction, then the lock-out state of the shared equipment is released.
6. the method for unlocking according to claim 4 based on bluetooth, it is characterised in that the method for unlocking based on bluetooth Also include:
Established with sending the terminal of pairing connection request after Bluetooth communication be connected, send and set for guiding user to find to share Standby prompt message.
7. a kind of method for unlocking based on bluetooth, it is characterised in that applied to terminal;The method for unlocking bag based on bluetooth Include:
Follow Bluetooth communication protocol scanning broadcast message, the shared equipment searched for around the terminal current location;
The shared list of devices searched is provided to select for user;
When any shared equipment is selected in the shared list of devices, pairing connection request is sent;
The response to the pairing connection request is received, Bluetooth communication is established with the shared equipment chosen and is connected.
8. the method for unlocking according to claim 7 based on bluetooth, it is characterised in that following Bluetooth communication protocol scanning Before broadcast message, the method for unlocking based on bluetooth also includes:
Reporting terminal is presently in position to server;
Wherein, the position that is presently in is used to be presently in around position in a preset range described in the whois lookup Shared equipment, and issue unlatching Bluetooth commands to the shared equipment found.
9. a kind of electronic equipment, it is characterised in that including:
At least one processor;And
The memory being connected with least one processor communication;Wherein,
The memory storage has can be by the instruction of at least one computing device, and the instruction is by least one place Manage device to perform, so that at least one processor is able to carry out the opening based on bluetooth as described in any in claim 1 to 6 Locking method.
10. a kind of computer-readable recording medium, is stored with computer program, it is characterised in that the computer program is located Reason device realizes the method for unlocking based on bluetooth any one of claim 1 to 6 when performing.
CN201710459151.7A 2017-06-16 2017-06-16 Method for unlocking and electronic equipment based on bluetooth Pending CN107393062A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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
US9253190B2 (en) Information management system and method for managing identification information
US20070123165A1 (en) Methods, systems and devices for assisted discovery in bluetooth enabled devices
CN101843060B (en) Methods and apparatus related to signaling request to transmit traffic in wireless communications
CN105407450A (en) Intelligent equipment, electronic device, and network connection method based on near-field communication
CN105325018B (en) Wireless communication device and communication control unit
CN104702657A (en) System and method for providing communication service, and vehicle supporting the same
US20100111055A1 (en) Wireless access point, wireless network architecture, and method for establishing wireless network architecture
WO2017146327A1 (en) System and method for locating an occupant within a vehicle
CN104247484B (en) Terminal installation, communication means, computer-readable recording medium and communication system
CN110418328A (en) A kind of communication means and device
CN104660494B (en) A kind of communication system
CN104199071A (en) Method and device for acquiring location information of wearable device
CN107396283A (en) A kind of router wireless connection authentication method and system
CN101098166A (en) Method and system for transmitting information of communication equipment
CN108496381A (en) Information processing equipment, information processing method and program
CN107343325A (en) A kind of data transmission method, device and terminal
CN101765179A (en) Router with on-line waking function and working method thereof
US20070287421A1 (en) Method and system for providing continuity of service with an existing communication network
KR101543373B1 (en) Intercommunication methods and devices based on digital networks
CN104242998A (en) Method and system for fast sharing various types of information through magnetic sensor
JP4506603B2 (en) Terminal automatic setting system, control area information transmitting device, server device, portable terminal device, and program
US20090044258A1 (en) Communication method and service in personal area network
CN108601000A (en) A kind of method and apparatus monitoring on-vehicle Bluetooth to open terminal Wi-Fi hotspot
CN108616586A (en) A kind of communication means and intelligence module 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