Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method, apparatus of wireless unlock electronic equipment and computer to deposit
Storage media allows the unlock between one or more unlocker devices and one or more unlocker devices.
In order to solve the above technical problems, the present invention provides a kind of methods of wireless unlock electronic equipment, at one or more
A portable electronic device and one or more can be operated and be carried out between equipment, the described method comprises the following steps: described one
The first portable electronic device in a or multiple portable electronic devices initiates to scan with holotype, and one or more
A first operated in equipment can operate equipment and initiate to broadcast with slave pattern, and the broadcast can operate equipment comprising described first
First identifier;Judge whether the first identifier can operate device identification in authorization and arrange in first portable electronic device
In table, equipment if it is can be operated to described first and initiates the first connection, and can be operated described in equipment holding described first
First connection;Equipment can be operated to described first in the portable electronic device and sends unlock message, and can described first
It operates equipment and responds the unlock message, be unlocked.
In one embodiment of this invention, equipment can be operated to described first in the portable electronic device send unlock
Before message further include: judge first portable electronic device and the described first signal strength that can operate between equipment is
It is no to reach third threshold value, the unlock message is if it is sent, is otherwise continued waiting for.
In one embodiment of this invention, the method further include: receive one in first portable electronic device
A or multiple authorizations can operate the input of device identification, and storage can operate in device identification list to the authorization.
In one embodiment of this invention, the first portable electronic in one or more of portable electronic devices
Equipment is initiated with holotype before scanning further include: can be operated equipment described first and be initiated to scan with holotype, and described
The first set of portable electronic device is initiated to broadcast with slave pattern, and the broadcast is comprising each portable in the first set
The mark of electronic equipment;Described first can operate equipment judge each portable electronic device identify whether trust just
It takes in formula electronic device identification list, if it is initiates the second connection to each portable electronic device respectively;From described first
Equipment can be operated send described first to each portable electronic device can operate the mark of equipment, and described each portable
The mark that described first can operate equipment is stored in authorization and can operated in device identification list by electronic equipment.
In one embodiment of this invention, the method further include: described first can operate equipment receive one or
Multiple inputs for trusting portable electronic device mark, and store into the trust portable electronic device identification list.
In one embodiment of this invention, when judging that the first identifier is in institute in first portable electronic device
When device identification list can be operated by stating authorization, also before it can operate the first connection of equipment initiation to described first, described in judgement
Whether the signal strength of first identifier reaches first threshold, first connection is if it is initiated, if not then sending out again
The scanning is played, and sweep spacing is the first interval.
In one embodiment of this invention, before whether the signal strength for judging the first identifier reaches first threshold,
Also judge whether the signal strength of the first identifier reaches second threshold, if not then re-initiating the scanning, and sweeps
The second interval is divided between retouching, wherein second interval is greater than first interval.
In one embodiment of this invention, first portable electronic device is in first connection for keeping holotype
While keep slave pattern connection.
In one embodiment of this invention, it can be operated after equipment keeps first connection described first and further include,
First portable electronic device carries out timing, if the duration is in the 4th threshold value, institute to the duration of the connection
It states the first portable electronic device and the described first signal strength that can operate between equipment is not up to the 5th threshold value, then disconnect institute
The first connection is stated, first portable electronic device re-initiates the scanning.
In one embodiment of this invention, the first portable electronic in one or more of portable electronic devices
When equipment is initiated to scan with holotype, the multiple signal strengths for operating equipment of acquisition, and preferential selection signal maximum intensity
Equipment can be operated and initiate first connection.
In one embodiment of this invention, institute is sent from the portable electronic device to described with operating equipment interval
Unlock message is stated, after described first can operate equipment unlock, if not receiving the unlock message in scheduled duration,
It is locked.
A kind of method that the present invention also proposes wireless unlock electronic equipment, carries out, the method in portable electronic device
The following steps are included: initiating to scan with holotype;Receive the broadcast comprising first identifier;Judge whether the first identifier is awarding
Power can operate in device identification list, if it is initiate the first connection to the corresponding equipment that operates of the first identifier;To
The equipment that operates sends unlock message.
In one embodiment of this invention, to it is described operate equipment send unlock message before further include: judge institute
It states portable electronic device and whether the signal strength operated between equipment reaches third threshold value, if it is send institute
Unlock message is stated, is otherwise continued waiting for.
In one embodiment of this invention, the method further include: equipment mark can be operated by receiving one or more authorizations
The input of knowledge, and storage can operate in device identification list to the authorization.
In one embodiment of this invention, before initiating to scan with holotype further include: it initiates to broadcast with slave pattern, it is described
Broadcast includes the second identifier of the portable electronic device;The scanning that equipment can be operated described in response, sets with described operate
It is standby to establish the second connection;The first identifier of equipment can be operated described in reception, and the first identifier is stored in authorization to operate
In device identification list.
In one embodiment of this invention, when judging that the first identifier is can to operate device identification list in the authorization
When, also to it is described operate equipment initiate first connection before, judge whether the signal strength of the mark reaches the first threshold
Value if it is initiates first connection, and if not then re-initiating scanning, and sweep spacing is first to be spaced.
In one embodiment of this invention, before whether the signal strength for judging the first identifier reaches first threshold,
Also judge whether the signal strength of the first identifier reaches second threshold, if not then re-initiating scanning, and between scanning
It is divided into the second interval, wherein second interval is greater than first interval.
In one embodiment of this invention, the company of slave pattern is kept while the described first connection for keeping holotype
It connects.
In one embodiment of this invention, the method further include: timing is carried out to the duration of first connection, such as
When duration described in fruit is in the 4th threshold value, the portable electronic device and the signal strength operated between equipment do not reach
To the 5th threshold value, then first connection is disconnected, the scanning is re-initiated.
In one embodiment of this invention, Xiang Suoshu first sends the unlock message in which can operate equipment interval.
In one embodiment of this invention, when initiating to scan with holotype, it is strong that multiple signals for operating equipment are obtained
Degree, and the equipment that operates of preferential selection signal maximum intensity establishes connection.
A kind of method that the present invention also proposes wireless unlock electronic equipment, carries out that can operate equipment, the method includes
Following steps: initiating to broadcast with slave pattern, and the broadcast includes the first identifier that can operate equipment;Respond portable electronic
The scanning of equipment establishes with the portable electronic device and keeps the first connection;Unlock message is received, and responds the unlock
Message is unlocked.
In one embodiment of this invention, the method further include: initiate to scan with holotype;It receives described portable
The second identifier of electronic equipment, judges whether the second identifier of the portable electronic device is trusting portable electronic device mark
Know in list, if it is initiates the second connection to the portable electronic device;Institute is sent to the portable electronic device
State the first identifier that can operate equipment.
In one embodiment of this invention, the method further include: receive one or more trust portable electronics and set
The input of standby mark, and store into the trust portable electronic device identification list.
In one embodiment of this invention, after being unlocked, disappear if not receiving the unlock in scheduled duration
Breath, then locked.
The present invention also proposes a kind of portable electronic device, comprising: memory, for storing the finger that can be executed by processor
It enables;Processor realizes method as described above for executing described instruction.
The present invention also proposes that one kind can operate equipment, comprising: memory, for storing the instruction that can be executed by processor;
Processor realizes method as described above for executing described instruction.
The present invention also proposes a kind of computer readable storage medium, is stored thereon with computer instruction, wherein working as computer
When instruction is executed by processor, method as described above is executed.
The present invention also proposes a kind of computer readable storage medium, is stored thereon with computer instruction, wherein working as computer
When instruction is executed by processor, method as described above is executed.
Compared with prior art, by the present invention in that portable electronic device is used to initiate to scan as main equipment, Ke Yishi
An existing portable electronic device establishes communication connection with multiple equipment that operate, and meets the demand of actual scene.In addition, this
Invention by way of the portable electronic device that will trust addition mark, prevented portable electronic device that untrusted is appointed with
A possibility that device pairing can be operated, equipment can be operated by preventing illegally is unlocked by other portable electronic devices, and enhancing can grasp
Make the safety of equipment.
Specific embodiment
For the above objects, features and advantages of the present invention can be clearer and more comprehensible, below in conjunction with attached drawing to tool of the invention
Body embodiment elaborates.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, but the present invention can be with
It is different from other way described herein using other and implements, therefore the present invention is by the limit of following public specific embodiment
System.
As shown in the application and claims, unless context clearly prompts exceptional situation, " one ", "one", " one
The words such as kind " and/or "the" not refer in particular to odd number, may also comprise plural number.It is, in general, that term " includes " only prompts to wrap with "comprising"
Include clearly identify the step of and element, and these steps and element do not constitute one it is exclusive enumerate, method or apparatus
The step of may also including other or element.
The technology for unlocking electronic equipment that the embodiment of the present invention description is wireless.Electronic equipment can be comprising electronic component
Various equipment.In the present invention, the electronic equipment being unlocked further refers to that those can be user-operably operates equipment.
For example, can operate equipment can be computer, printing/duplicator, facsimile machine, cash register etc..Portable electronic can be used
Equipment can operate equipment wirelessly to unlock, and be encountered with facilitating staff that can unlock at any time in frequent moving process
Equipment can be operated.For example, portable electronic device is the mobile terminal of such as mobile phone, tablet computer.In another example portable electronic
Equipment is the wearable devices such as wrist-watch, bracelet, ring, necklace.The agreement wirelessly unlocked may include but be not limited to bluetooth association
View.
When carrying out bluetooth communication between every a pair of of the equipment of Bluetooth protocol regulation, it is necessary to by one be main equipment, another is
From equipment.When communication, it is necessary to be scanned by main equipment, initiate pairing, after establishing successful connection, both sides can sending and receiving data.
Theoretically, a bluetooth master can be communicated with 7 Bluetooth slave devices simultaneously.One has setting for blue tooth communication function
It is standby, it can switch between two roles, usually work in slave pattern, initiate broadcast and other main equipments is waited to connect;When needing,
Equipment can be exchanged into holotype, initiate to call to other equipment.When one bluetooth equipment initiates to scan with holotype, need to know
The information such as Bluetooth address, the pairing password of other side, after the completion of pairing, can directly initiate to call.
It is scanning first before bluetooth master will initiate calling, finds out the bluetooth equipment that surrounding can be searched in broadcast.
Main equipment is found after equipment, is matched with from equipment, needs to input the PIN code from equipment at this time, also has equipment not need
Input PIN code.After the completion of pairing, the trust information of main equipment will record from equipment, main equipment can be initiated to from equipment at this time
Calling, the equipment matched is in calling next time, it is no longer necessary to match again.The equipment matched, as can also be with from equipment
Connection request is established in initiation, but the bluetooth module for carrying out data communication does not initiate generally to call.After connection is successfully established, principal and subordinate two
Two-way data or speech communication can be carried out between end.In a communication state, chain rupture can be initiated from equipment by advocating peace, and be disconnected
Bluetooth connection.
In many offices and business scenario, multiple staff have multiple access authority for operating equipment simultaneously.
Therefore, each staff requires to be able to use that a portable electronic device unlock is multiple operates equipment.It can each grasp
It is also required to allow to be unlocked by the portable electronic device of multiple staff as equipment.In simplified scene, a work people
Member has multiple access authority for operating equipment.The staff require can the unlock of portable electronic device it is multiple
Equipment can be operated.In another scene, many staff have the access authority that can operate equipment simultaneously.This can be operated
Equipment is also required to allow to be unlocked by the portable electronic device of many staff.
Known bluetooth unlocking manner is simultaneously unsatisfactory for these above-mentioned demands.This is because Bluetooth protocol provides, one from setting
The standby same time can only match a main equipment, can not match multiple main frames simultaneously, then be unable to satisfy a portable electronic and set
It is standby to unlock multiple demands for operating equipment.Also, simultaneously one can operate equipment as main equipment allow match just
The quantity for taking formula electronic equipment is also limited, and about 7 or so, then when the portable electronic device quantity of staff is more than
When the maximum quantity for allowing to match, and it is unable to satisfy actual application demand.
The method, apparatus of the wireless unlock electronic equipment of one kind of following embodiments description of the invention and computer storage are situated between
Matter allows one or more portable electronic devices and one or more unlocks that can be operated between equipment.
Example implementation environment
Fig. 1 is example implementation environment according to an embodiment of the invention.Refering to what is shown in Fig. 1, illustrative implementation environment 100
In operate equipment 110 (110a-110c) and multiple portable electronic devices 120 (120a-120c) comprising multiple.It can manage
Solution, the quantity that can operate equipment 110 can change, such as can be more, also may be as few as 1.Similarly, portable electric
What the quantity of sub- equipment can also can change, such as can be more, it also may be as few as 1.
For example, can operate equipment 110 can be computer, printing/duplicator, facsimile machine, cash register etc..It can operate and set
Standby 110 exemplary block diagram is as shown in Fig. 2, include processor 111, communication unit 112, display unit 113, operating unit 114
With memory 115.Processor 111 can further comprise processing unit 111a and memory 111b.Memory 115 can be non-volatile
Memory, such as read-only memory (ROM), erasable electrically-programmable memory (EEPROM) and flash memory etc., can store thereon
Program or data needed for equipment operation can be operated.Memory 111b can be volatile memory, such as synchronous dynamic random stores
Device (SDRAM) temporarily can be loaded into program or data from memory 115 thereon, use for processing unit 111a.Display unit 113
It can show the interface that can operate equipment 110, be checked for user.Operating unit 114 can receive the input of user, and be supplied to
Processor 111.Communication unit 112 permits permit operation equipment 110 and extraneous equipment communication.Communication unit 112 can be based on various
Known communication protocol is communicated.According to the present embodiment, the agreement that communication unit 112 is supported includes Bluetooth protocol.
For example, portable electronic device is the mobile terminal of such as mobile phone, tablet computer.In another example portable electronic is set
Standby is the wearable devices such as wrist-watch, bracelet, ring, necklace.Fig. 3 is that portable electronic according to an embodiment of the invention is set
Standby example block diagram.Refering to what is shown in Fig. 3, the portable electronic device 120 of the present embodiment may include processor 121, memory 122,
Memory 123, communication unit 124, display screen 125, acoustic assembly 126, vibration component 127, input module 128 and power supply
129 etc..Memory 123 can be nonvolatile memory, such as read-only memory (ROM), erasable electrically-programmable memory
(EEPROM) and flash memory etc., program or data needed for can operating equipment operation can be stored thereon.Memory 122 can be volatibility
Memory, such as synchronous DRAM (SDRAM) temporarily can be loaded into program or data from memory 123 thereon, for place
Unit 121 is managed to use.Display screen 125 can show the interface of portable electronic device 120, check for user.Input module 128
It can receive the input of user, and be supplied to processor 121.According to the difference of 120 product form of portable electronic device, display
Screen 125 and input module 128 can have various embodiments.Such as when portable electronic device 120 is mobile terminal, display
Screen 125 and input module 128 may be embodied as touch screen, to have both display interface and receive the function of input.Input module 128
Can also including voice input etc. modes.When portable electronic device 120 is wearable device, display screen 125 be can be implemented
Shield for liquid crystal display (LCD) or Organic Light Emitting Diode (OLED).Input module 128 may be embodied as key.Communication unit 124
Portable electronic device 120 and extraneous equipment is allowed to communicate.Communication unit 124 can be carried out based on various known communication protocols
Communication.According to the present embodiment, the agreement that communication unit 124 is supported includes Bluetooth protocol.
It is appreciated that some components of portable electronic device 120 are dispensed according to the difference of product form,
Such as some portable electronic devices 120 can not have display screen 125, acoustic assembly 126, one in vibration component 127
Or it is multiple.Certainly, portable electronic device 120 can be with the unshowned other assemblies of Fig. 3.
First embodiment
The present embodiment can be shown in Fig. 1 exemplary implementation environment or its change case in implement.
In the present embodiment, selection portable electronic device 120, which initiates scanning with holotype, can operate equipment to call
110, and equipment 110 can be operated and be in slave pattern initiation broadcast, wait portable electronic device 120 to call.Once therebetween
Connection 130 is set up, portable electronic device 120, which can unlock, can operate equipment 110.
Portable electronic device 120 needs to realize the address for obtaining and can operating equipment 110, to initiate to scan.For this purpose, just
It takes formula electronic equipment 120 and can operate and first matched between equipment 110, to obtain its address from equipment 110 can be operated.
Fig. 4 is device pairing flow chart according to an embodiment of the invention.Refering to what is shown in Fig. 4, pairing process includes as follows
Step:
In step 401, one or more inputs for trusting portable electronic device mark are received equipment can be operated.
Referring to fig. 1 and fig. 2, can respectively operate equipment 110 (such as 110a, 110b and 110c) can be by its communication unit
112 receive the trust portable electronic device mark for allowing unlock originally can operate equipment from such as server.These marks are for example
It is the address of portable electronic device, such as MAC Address.Equipment 110, which can respectively be operated, for example to be connect by its operating unit 114
That receives user's input allows to unlock the mark that originally can operate the trust portable electronic device of equipment.In the present embodiment to can
It operates equipment and obtains the mode of trust portable electronic device mark without limitation.Here, the number of mark (such as MAC Address) can
It is even more to reach thousands of, depending on the storage size of equipment 110 can be operated.By taking Fig. 1 as an example, it is assumed that can operate and set
Standby 110a allows to be unlocked by portable electronic device 120a, 120b, then is stored with portable electronic device 110a's in its list
Mark;Similarly, can operate equipment 110b allows to be unlocked by portable electronic device 120a, 120b and 120c, then in its list
It is stored with the mark of portable electronic device 120a, 120b and 120c.
In step 402, stores to being identified to for trust portable electronic device and trust portable electronic device identification list
In.
It is saved refering to what is shown in Fig. 2, can respectively operate equipment 110 and one or more can be trusted to portable electronic device mark
Into the trust portable electronic device identification list for being stored in memory 115.For example, memory 115 can maintain one
A database trusts a part of portable electronic device identification list as database.
In step 403, equipment can be operated and initiate to scan with holotype;Correspondingly, it in step 411, is set in portable electronic
Standby first set is initiated to broadcast with slave pattern, which includes the mark of each portable electronic device in first set.
Equipment 110 can respectively be operated can scan for the portable electronic device on periphery with start by set date.Each portable electric
Some or all (first sets i.e. above) in sub- equipment 120 can be initiated to broadcast, and broadcast includes the mark of itself.
When the portable electronic device person of being carried take to it is a certain operate equipment periphery when, this, which can operate equipment, just will receive portable electric
The mark of sub- equipment 120a.Example as shown in figure 1, when portable electronic device 120a, which is brought to, can operate the equipment periphery 110a, is led to
It crosses the initiation scanning that can operate equipment 110a and portable electronic device 120a initiates broadcast, can operate equipment 110a will receive just
Take the mark of formula electronic equipment 120a;Similarly, it can be operated equipment 110b weeks when portable electronic device 120b, 120c are brought to
Bian Shi initiates broadcast by the initiation scanning and portable electronic device 120b, 120c that can operate equipment 110a, can operate equipment
110a will receive the mark of portable electronic device 120b, 120c.
In step 404, can operate equipment judge each portable electronic device identify whether trusting portable electronic
In device identification list, initiates the connection in step 406 to portable electronic device if step 405 is judged as YES, otherwise return
Return step 404.
Such as can operate equipment 110a can determine that portable electronic device 120a identify whether its trust portable electric
In sub- device identification list, if it is initiated the connection to portable electronic device 120a.
In portable electronic device side, broadcast readjustment is waited in step 412, is entered if receiving readjustment in step 413
Step 414.Such as after portable electronic device 120a initiates broadcast, step 412 and 413 is carried out.
In step 407, the mark of equipment can be operated that can operate equipment and send to each portable electronic device.
After a connection setup, for example, can operate equipment 110a can to portable electronic device 120a initiate can operate equipment
The mark of 110a.
In step 408, connection is kept equipment can be operated.
In step 414, after receiving message, portable electronic device can first determine that the mark of equipment can be operated in step 415
Whether otherwise stored mistake enters step 416 if yes then enter step 417.In step 416, set in each portable electronic
It can be operated in device identification list for the mark that can operate equipment is stored in authorization.It is appreciated that step 415 is in some situations
Under be dispensed, such as portable electronic device for the first time receive the mark that can operate equipment, then need not be judged.
In step 417, portable electronic device can keep connecting with that can operate equipment.In addition in portable electronic device
It can show that pairing is completed on interface, as indicated in step 418.
As supplement and/or substitution, can operate can also carry out Bluetooth protocol rule between equipment and portable electronic device
Fixed conventional pairing, exchanges respective mark, such as MAC Address.
Each of Fig. 1 can operate equipment 110 and can periodically initiate to scan, and find in the portable electronic device on periphery
Be trusted portable electronic device, therewith complete pairing.Each portable electronic device 120 can also can with one or more
It operates equipment 110 and completes pairing, so that equipment 110 can be operated by allowing to unlock these.Such as can operate equipment 110a can by with
Portable electronic device 120a establishes connection 131a, to complete to match, and by establishing with portable electronic device 120b
132a is connected, to complete to match.Similarly, can operate equipment 110b can be by establishing connection with portable electronic device 120b
133a, to complete to match, and by establishing connection 134a with portable electronic device 120c, to complete to match.Here,
Portable electronic device 120b, which can operate equipment 110a and 110b by two, to be allowed to unlock, therefore it is stored with can operate equipment
The mark of 110a and 110b.It is appreciated that the number of devices illustrated herein be it is exemplary, in actual operation, one is portable
Formula electronic equipment, which can be allowed to unlock tens or several hundred, can operate equipment, then mark for operating equipment of its storage can be with
Reach hundreds of, the size depending on memory space.
In the present embodiment by way of the portable electronic device addition mark that will be trusted, untrusted is prevented and has appointed just
A possibility that taking formula electronic equipment and can operating device pairing, equipment can be operated by preventing illegally is solved by other portable electronic devices
Lock, enhances the safety that can operate equipment.
It can serve as main equipment (i.e. holotype) after portable electronic device stores the mark that can operate equipment
Scanning is initiated, the mark for operating equipment that periphery is consistent with storage is searched.Equipment can be operated at the same time to be also used as from equipment
(i.e. slave pattern) initiates broadcast, waits main equipment calling.This process, which can be used to unlock, can operate equipment.
Optionally, when portable electronic device is with that can operate device pairing and keep connecting, reception comes to operate and set
Standby data information.
Fig. 5 is the equipment communication flow diagram of a preferred embodiment according to the present invention.Refering to what is shown in Fig. 5, in step 501, it can
Operation equipment can obtain business information, send message in step 502, can for example call portable electronic device in step 503
SDK (Software Development Kit) send message.In step 504, can operate equipment can obtain business information, in step
505 read message, can for example call the SDK of portable electronic device to receive message in step 506.In portable electronic device
Side, step 511 etc. it is to be received/send message.Step 512,513 can receive can operate equipment on-screen-display messages,
Button message, movement message, heart rate message etc. can be transmitted in step 514-516 in vibration message etc..
Fig. 6 is equipment unlock flow chart according to an embodiment of the invention.Refering to what is shown in Fig. 6, equipment unlock process includes
Following steps:
In step 611, initiate to scan with holotype in portable electronic device.Correspondingly, it can be grasped in step 601, first
Make equipment and initiates to broadcast with slave pattern, the first identifier that broadcast can operate equipment comprising first.
Here, we, which only focus on, can operate the part for initiating broadcast in equipment.By taking Fig. 1 as an example, set in portable electronic
Standby 120a initiates to scan with holotype, can operate in equipment 110a, 110b and 110c and only have 110a, 110c to initiate with slave pattern
Broadcast, therefore our concerns can operate equipment 110a, 110c, referred to as first can operate equipment.It is appreciated that first can operate
Equipment can be one or more.
In step 612, judge whether first identifier can operate in device identification list in authorization in portable electronic device,
If yes then enter step 613, otherwise return step 611.In step 613, equipment can be operated to first and is initiated the connection.
Such as portable electronic device 120a judges to operate from the first identifier that can operate equipment 110a in its authorization
In device identification list, then in step 613, initiated the connection to equipment 110a can be operated.
Equipment side can be being operated, broadcast readjustment is being waited in step 602, judges whether to receive readjustment in step 603, if it is
604 are then entered step, connection is kept, waits message to be received.
By taking Fig. 1 as an example, can operate equipment 110a can keep connecting 131b with portable electronic device 120a, connect herein
In, portable electronic device 120a is main equipment, and can operate equipment 110a is from equipment.
In step 614, equipment can be operated to first in portable electronic device and sends unlock message.And it can be in step
615 displays have sent unlock message.
In step 605, judge whether message unlocks message, responds unlock message in step 606 if receiving, call solution
Lock process is unlocked.In step 607, unlock can be shown on the interface that can operate equipment.In step 608, judge whether
Unlock message is received in scheduled duration (such as 10 seconds), if not receiving unlock message in scheduled duration, is called in step 609
Locking process, and optionally in step 610, in the interface display locking that can operate equipment.
The present embodiment initiates to scan by using portable electronic device as main equipment, and a portable electric may be implemented
Sub- equipment establishes communication connection with multiple equipment that operate, and meets the demand of actual scene.
It is noted that can operate equipment can maintain the first connection and second to connect simultaneously with portable electronic device,
In different connections, their main equipments and from equipment each other respectively.Example as shown in figure 1, can operate equipment 110a and portable electronic
Equipment 120a can maintain the first connection 131a, and the two is respectively main equipment and from equipment;Equipment 110a and portable electric can be operated
Sub- equipment 120a can also maintain the second connection 132a simultaneously, and the two is respectively from equipment and main equipment.Similarly, equipment can be operated
110c can also maintain the first connection 135a and second to connect 135b with portable electronic device 120c.
Second embodiment
In the present embodiment, different from the first embodiment, can be in portable electronic device before step 613
It is just carried out when reaching first threshold with the signal strength (such as signal strength of the first identifier of transmission) that can operate between equipment
Step 613.Fig. 7 is equipment unlock flow chart according to another embodiment of the present invention.Refering to what is shown in Fig. 7, can be in step 612c
Judge whether signal strength reaches first threshold (such as -60dB), if yes then enter step 613, otherwise 611 weight of return step
New scanning.Setting signal intensity may insure portable electronic device and can operate equipment and closely just initiate the connection enough.
In a preferred embodiment, while keeping connection, it can also monitor and judge signal strength, and in signal strength
It is just unlocked when further increasing sufficiently large.Signal strength, which further increases, means that portable electronic device is carried to
From equipment closer proximity can be operated, more accurately embodies carrier and be intended to unlock the intention that can operate equipment.Such as in step
After rapid 613, first judges whether connection establishes in step 613a, if it is can determine whether signal strength reaches in step 613b
Third threshold value (such as -50dB), otherwise returns to step 611.In step 613b, if a determination be made that just carrying out step
614, it otherwise returns to step 613a and decides whether to establish connection.In this way, if portable electronic device is not further close
Equipment (such as stop mobile or be changed to far from equipment can be operated) can be operated, signal strength will be less than third threshold value, portable
Formula electronic equipment does not just retransmit unlock message.
In one embodiment, portable electronic device can be spaced in step 614 and issue unlock message, such as every 2 seconds 1 time.
Equipment, which can be operated, can judge whether to receive unlock message in scheduled duration (such as 10 seconds) in step 606, if it is not, in step
Rapid 608 are locked.This technology combines the judgement of signal strength and third threshold value above, can achieve portable device and leans on
Equipment can be closely operated just to unlock, it is separate to operate the effect that equipment just locks.This can allow can operate equipment accurately identify it is portable
Whether formula electronic equipment leaves unlock range, to lock screen, prevents information leakage.
Further in the preferred embodiment, in order to save power consumption, portable electronic device can dynamic regulation sweep spacing.Still
Refering to what is shown in Fig. 7, when step 612c decision is rescaned sweep spacing can be set as the first interval in step 612d.In addition,
Increase step 612a between step 612 and step 612c, judge whether signal strength reaches second threshold (such as -65dB),
If it is 612c is just entered step, the scanning is re-initiated if not then return step 611, and is returned preceding in step 612b
It is the second interval that sweep spacing, which is arranged, wherein the second interval is greater than the first interval.Such as be divided between first 2 seconds, 5 are divided between second
Second.By using the mode of dynamic regulation sweep spacing, the power consumption of portable electronic device can be reduced.This is for wearable device
This low battery capacity, but need persistently to be scanned the biggish mode of this power consumption as main equipment, it provides more excellent
Continuation of the journey.
In the preferred embodiment, it also can recognize that user carries portable electronic device and passes by the non-targeted equipment of operating
Situation.Specifically, portable electronic device in moving process, as main equipment, is persistently scanned.It is operated when multiple
Equipment when can be in scanning range, first verify multiple marks for operating equipment, if can operate by portable electronic device
For the mark of equipment not in the trust list of portable electronic device, then equipment can be operated by directly ignoring this.
Further, if the mark of equipment can be operated and trust list that portable electronic device is stored in mark phase
Symbol, then portable electronic device continues to monitor the signal strength that can operate equipment.In change case as shown in Figure 8, example
Such as after step 613a, timing can be carried out to the duration of connection, during duration is in the 4th threshold value (such as T1), in step 613c
Whether the signal strength that judges portable electronic device and can operate between equipment reaches the 5th threshold value (such as -50dB).If
The signal strength that step 613c judges portable electronic device and can operate between equipment is not up to the 5th threshold value (such as -50dB),
Then continue cycling through judgement, when judging that duration is more than the 4th threshold value in step 613d, and the condition of step 613c still not up to when, can
To disconnect in step 613e, portable electronic device returns to step 611 and re-initiates scanning.Here, step 613b's sentences
It is that target can operate equipment that disconnected result was regarded as connecting, which operates equipment not, and the user of portable electronic device belongs to road
Cross, thus at this time disconnect both bluetooth connection, portable electronic device continue before scanning motion.Here, passing through
The judgement of the signal strength in specific connection duration is added, can more accurately realize the identification that can operate equipment to target, prevent
Only misread lock.Here, the 5th threshold value can be set as, such as -50dB identical as third threshold value.That is, when connection is established
Afterwards, if the threshold value -50dB that signal strength is lower than again to be unlocked, judgement, which belongs to, to be passed by, and is disconnected.
In aforementioned step 613, it may be multiple for meeting the first of condition to operate equipment, therefore portable electronic is set
Standby available multiple signal strengths for operating equipment, and the equipment that operates of preferential selection signal maximum intensity is initiated to connect
It connects.
3rd embodiment
The present embodiment can be shown in Fig. 1 exemplary implementation environment or its change case in implement.
In the present embodiment, selection portable electronic device 120, which initiates scanning with holotype, can operate equipment to call
110, and equipment 110 can be operated and be in slave pattern initiation broadcast, wait portable electronic device 120 to call.Once therebetween
Connection 130 is set up, portable electronic device 120, which can unlock, can operate equipment 110.
Portable electronic device 120 needs to realize the address for obtaining and can operating equipment 110, to initiate to scan.For this purpose, just
Taking formula electronic equipment 120 can receive one or more inputs for authorizing and can operating device identification, and stores to authorization and can operate
In device identification list.With reference to shown in Fig. 1 and Fig. 3, each portable electronic device 120 (such as 120a, 120b and 120c) can lead to
The mark of equipment can be operated from the authorization that such as server receives the unlock of this portable electronic device by crossing its communication unit 124.This
A little marks are, for example, that can operate the address of equipment, such as MAC Address.Each portable electronic device 120 can also be for example defeated by its
The authorization for entering this portable electronic device of permission unlock that component 128 receives user's input can operate the mark of equipment.At this
The mode of the mark of equipment can be operated in embodiment to portable electronic device acquisition authorization without limitation.Here, mark is (such as
MAC Address) number can achieve several hundred even more, storage sizes depending on portable electronic device 120.With
For Fig. 1, it is assumed that portable electronic device 120b, which is allowed to unlock, can operate equipment 110a and 110b, then is stored in its list
The mark of equipment 110a and 110b can be operated.
Fig. 9 is the equipment unlock flow chart of another embodiment according to the present invention.Refering to what is shown in Fig. 9, portable electronic device
After acquisition authorization can operate device identification list before step 811 in advance, unlock process includes the following steps:
In step 811, initiate to scan with holotype in portable electronic device.Correspondingly, it can be grasped in step 801, first
Make equipment and initiates to broadcast with slave pattern, the first identifier that broadcast can operate equipment comprising first.
Here, we, which only focus on, can operate the part for initiating broadcast in equipment.By taking Fig. 1 as an example, set in portable electronic
Standby 120a initiates to scan with holotype, can operate in equipment 110a, 110b and 110c and only have 110a, 110c to initiate with slave pattern
Broadcast, therefore our concerns can operate equipment 110a, 110c, referred to as first can operate equipment.It is appreciated that first can operate
Equipment can be one or more.
In step 812, judge whether first identifier can operate in device identification list in authorization in portable electronic device,
If yes then enter step 813, otherwise return step 811.In step 813, equipment can be operated to first and is initiated the connection.
Such as portable electronic device 120a judges to operate from the first identifier that can operate equipment 110a in its authorization
In device identification list, then in step 813, initiated the connection to equipment 110a can be operated.
Equipment side can be being operated, broadcast readjustment is being waited in step 802, judges whether to receive readjustment in step 803, if it is
804 are then entered step, connection is kept, waits message to be received.
By taking Fig. 1 as an example, can operate equipment 110a can keep connecting 131b with portable electronic device 120a, connect herein
In, portable electronic device 120a is main equipment, and can operate equipment 110a is from equipment.This connection means that portable electronic is set
Standby 120a is completed with that can operate equipment 110a pairing.
In step 814, equipment can be operated to first in portable electronic device and sends unlock message.And it can be in step
815 displays have sent unlock message.
In step 805, judge whether received message is unlock message, if it is responds unlock message in step 806,
Unlocking process is called to be unlocked.In step 807, unlock can be shown on the interface that can operate equipment.If not in pre- timing
Unlock message is received in length, then locking process is called in step 809, and optionally in step 810, at the interface that can operate equipment
Display locking.
The present embodiment initiates to scan by using portable electronic device as main equipment, and a portable electric may be implemented
Sub- equipment establishes communication connection with multiple equipment that operate, and meets the demand of actual scene.
Other variations of the present embodiment can may insure just with reference to second embodiment above, such as setting signal intensity
Take formula electronic equipment and equipment can be operated closely just initiate the connection and unlock enough, for another example portable electronic device can dynamic regulation sweep
It retouches and is spaced the not reinflated description herein to save power consumption etc..
The method and its change case of the various embodiments described above description, can implement in environment 100 shown in Fig. 1-3.System
The computer instruction that middle storage is encoded according to method and its change case, and these instructions can be performed to realize these methods and its change
Change example.For example, the computer instruction that can operate equipment is storable in memory 115, and is executed by its processor 111;
The computer instruction of portable electronic device is storable in memory 123, and is executed by its processor 121.
The method and its change case of the various embodiments described above description, can encode in computer-readable medium.For example, calculating
Machine readable medium can include but is not limited to magnetic storage apparatus (for example, hard disk, floppy disk, magnetic stripe), CD (for example, compact disk
(CD), digital versatile disc (DVD)), smart card and flash memory device be (for example, electrically erasable programmable read-only memory
(EPROM), card, stick, key driving).In addition, various storage media described herein can represent one or more for storing information
A equipment and/or other machine readable medias.Term " machine readable media " can include but is not limited to store, include and/
Or carry the wireless channel and various other media (and/or storage medium) of code and/or instruction and/or data.
It should be understood that embodiment described herein can be in hardware, software, firmware, middleware, microcode or any combination thereof
Middle realization.For hardware realization, processing unit can be in one or more application-specific IC (ASIC), digital signal
Processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), it processor, controller, microcontroller, microprocessor and/or is designed as executing other electronics lists of function described herein
Member or its combine interior realization.
When embodiment is with the realization of software, firmware, middleware or microcode, program code or code segment, they can be deposited
It is stored in machine readable media (or computer-readable medium), such as in storage unit.Code segment can represent process, function, son
Program, program, routine, subroutine, module, software package, class, or any combination of instruction, data structure or program statement.It is right
In software realization, technique described herein can be real with the module (for example, process, function etc.) for executing function as described herein
It is existing.Software code can be stored in memory cell, and be executed by processor.Memory cell can inside processor or
Realize that, in the case where outside is realized, memory cell can be communicatively coupled to via various means known in the field in outside
The processor.
Meanwhile the application has used particular words to describe embodiments herein.Such as " one embodiment ", " one implements
Example ", and/or " some embodiments " mean a certain feature relevant at least one embodiment of the application, structure or feature.Cause
This, it should be highlighted that and it is noted that " embodiment " or " an implementation referred to twice or repeatedly in this specification in different location
Example " or " alternate embodiment " are not necessarily meant to refer to the same embodiment.In addition, in one or more embodiments of the application
Certain features, structure or feature can carry out combination appropriate.
Similarly, it is noted that in order to simplify herein disclosed statement, to help real to one or more invention
Apply the understanding of example, above in the description of the embodiment of the present application, sometimes by various features merger to one embodiment, attached drawing or
In descriptions thereof.But this disclosure method is not meant to mention in aspect ratio claim required for the application object
And feature it is more.In fact, the feature of embodiment will be less than whole features of the single embodiment of above-mentioned disclosure.
Although the present invention is described with reference to current specific embodiment, those of ordinary skill in the art
It should be appreciated that above embodiment is intended merely to illustrate the present invention, can also make in the case where no disengaging spirit of that invention
Various equivalent change or replacement out, therefore, as long as to the variation of above-described embodiment, change in spirit of the invention
Type will all be fallen in the range of following claims.