CN107968995B - Short-distance communication equipment sharing request and control method, electronic equipment and storage medium - Google Patents
Short-distance communication equipment sharing request and control method, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN107968995B CN107968995B CN201711222975.9A CN201711222975A CN107968995B CN 107968995 B CN107968995 B CN 107968995B CN 201711222975 A CN201711222975 A CN 201711222975A CN 107968995 B CN107968995 B CN 107968995B
- Authority
- CN
- China
- Prior art keywords
- equipment
- short
- request
- distance communication
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
This application involves short-distance communication equipment sharing request and control method and electronic equipments.According to an exemplary embodiment, it is a kind of request share short-distance communication equipment method include: to control equipment send scan request with scan it is described control equipment around short-distance communication equipment;The information of the short-distance communication equipment scanned by the control equipment is received from the control equipment;The connection request for being directed to the short-distance communication equipment is sent to the control equipment;It is received from the control equipment and indicates that the control equipment has established the message that short haul connection is connect with the short-distance communication equipment;And it is communicated by the control equipment with the short-distance communication equipment.
Description
Technical field
Present invention relates generally to the communications fields, more particularly, to short-distance communication equipment sharing request and controlling party
Method and electronic equipment, it can be used to share the short-distance communication equipment around electronic equipment, such as bluetooth equipment.
Background technique
Bluetooth has many advantages, such as low cost, low-power consumption, convenient and efficient as a kind of short-distance wireless communication technology scheme,
Therefore it is widely used in various occasions and field always.For example, being set in portable electronic device, smart home or intelligence wearing
In standby, bluetooth connection be used to establish always connection between devices with sharing data and/or various functions, to realize
As the convenient information between household, friend is shared.
When establishing bluetooth connection between devices, safety is a very important Consideration.In order to ensure to the greatest extent
Under permission control that may be safe, easily share bluetooth equipment, traditional bluetooth sharing scheme is needed using token
(token).Its token is shared to sharing request equipment by cloud by bluetooth equipment to be shared, and sharing request equipment will be wait share
The token of bluetooth equipment is locally downloading by synchronizing from cloud, for example, such as the portable mobile terminal of smart phone etc, then
Bluetooth connection is established with bluetooth equipment to be shared using the token, directly establishes communication channel.
However, this traditional bluetooth sharing mode depends on token and cloud, brings security risk and there is application limit
System.
Summary of the invention
In view of above-mentioned prior art situation, the application proposes that a kind of short-distance communication equipment shares scheme, passes through short distance
Sharing from communication environment realizes that multiple short-distance communication equipments are compactly shared between devices, breaks through wait divide
The short-distance communication equipment enjoyed must be positioned at the limitation around sharing request equipment, and need not lead to short distance to be shared
The token of letter equipment is distributed to sharing request equipment.The sharing process can use cloud to carry out, and also may not need cloud ginseng
With.
According to one exemplary embodiment of the application, a kind of method of request sharing short-distance communication equipment is provided, comprising: to
Control equipment sends scan request to scan the short-distance communication equipment around the control equipment;It is received from the control equipment
By the information for the short-distance communication equipment that the control equipment scans;It is sent to the control equipment logical for the short distance
Believe the connection request of equipment;It is received from the control equipment and indicates that the control equipment has been built with the short-distance communication equipment
The message of vertical short haul connection connection;And it is communicated by the control equipment with the short-distance communication equipment.
In some instances, the method also includes: to the control equipment send short haul connection environment sharing request;
And in response to the message for receiving short haul connection environment sharing request from the control equipment, the control equipment is increased
It is added in environment list.
In some instances, the information of the short-distance communication equipment includes: device mac address, device type ID, equipment
One or more of unique identification dID, device name and equipment user ID.
In some instances, the information of the short-distance communication equipment further include: the institute scanned by the control equipment
State the signal strength of short-distance communication equipment.
In some instances, the method also includes: in response to receiving from the control equipment by the control equipment
The information of the short-distance communication equipment scanned establishes the list of the short-distance communication equipment.
In some instances, establish the short-distance communication equipment list include: by the short-distance communication equipment with
Corresponding control equipment and signal strength are associated.
In some instances, include: for the connection request of the short-distance communication equipment to the control equipment transmission
The connection request for being directed to the short-distance communication equipment is sent to the maximum control equipment of signal strength.
In some instances, the method also includes: in response to from the signal strength it is maximum control equipment company
Failed message is connect, the control equipment big to signal strength time sends the connection request for being directed to the short-distance communication equipment.
In some instances, the short haul connection include Bluetooth communication, near-field communication (NFC), infrared communication and
Zigbee communication.
According to the application another exemplary embodiment, a kind of method that control short-distance communication equipment is shared is provided, comprising:
Receive the scan request from request equipment;Scan the short-distance communication equipment in ambient enviroment;The short haul connection is set
Standby information is sent to the request equipment;Receive the connection for the short-distance communication equipment from the request equipment
Request;Short haul connection is established with the short-distance communication equipment to connect, and indicates successfully to build to request equipment transmission
The message of vertical connection;And the communication instruction between the forwarding request equipment and the short-distance communication equipment.
In some instances, the method also includes: receive from it is described request equipment short haul connection environment sharing
Request;Receive the short haul connection environment sharing request, and the request equipment is added and shares list;And to described
Equipment is requested to send the message that instruction receives the short haul connection environment sharing request.
In some instances, receive the short haul connection environment sharing request further include: it is special to assign the request equipment
Fixed sharing claim.
In some instances, being successfully established the message of connection to the instruction that the request equipment is sent includes connected institute
State the token of short-distance communication equipment.
In some instances, the communication instruction between the forwarding request equipment and the short-distance communication equipment includes:
The short-distance communication equipment is supplemented in the communication instruction for being sent to the short-distance communication equipment by the request equipment
Then the communication instruction is transmitted to the short-distance communication equipment by token information.
According to the application another exemplary embodiment, a kind of electronic equipment is provided, comprising: short-range communication module uses
Short-range communication protocols are communicated;And processor, be configured to the computer program instructions in run memory to execute on
State method.
In some instances, the electronic equipment further include: remote communication module is led to using telecommunication protocol
Letter.
In some instances, the electronic equipment includes mobile phone, plate or personal digital assistant.
According to the another exemplary embodiment of the application, a kind of computer readable storage medium is provided, is stored thereon with calculating
Machine program instruction, the computer program instructions make the processor execute the above method when being run by processor.
Share scheme by the short-distance communication equipment of the application, control equipment position can be scanned and is connected to
All short-distance communication equipments be shared with multiple request equipment, establish control equipment with wait share between short-distance communication equipment
Direct short haul connection, control equipment can be used as agency forward equipment to be shared and request equipment between communication, and
Thus it participates in sharing process with monitoring short haul connection, it is not necessary to which exposure token gives sharing request equipment, and token will not be revealed, enhancing
The safety shared.Shared by short haul connection environment, without constantly repeating sharing process, and without being set wait share
Standby surrounding also communicates, and can break through geographical location limitation.In addition, cloud participates in not being the necessary item for realizing sharing process
Part.
The above and other feature and advantage of the application will become aobvious and easy from the following description to exemplary embodiment
See.
Detailed description of the invention
The exemplary embodiment of the application is described in more detail in conjunction with the accompanying drawings, the application above-mentioned and its
His purpose, feature and advantage will be apparent.Attached drawing is used to provide to further understand the embodiment of the present application, and structure
At part of specification, it is used to explain the application together with the embodiment of the present application, does not constitute the limitation to the application.Attached
In figure, identical reference label typically represents same parts or step.
Fig. 1 illustrates the systems of the executable short haul connection environment sharing method according to one exemplary embodiment of the application
Topological diagram.
The sharing that Fig. 2A is illustrated in the short haul connection environment sharing method according to one exemplary embodiment of the application is awarded
The flow chart of power process.
Fig. 2 B illustrates the sharing in the short haul connection environment sharing method according to one exemplary embodiment of the application
The flow chart of journey.
Fig. 3 illustrates the structural block diagram of the electronic equipment according to one exemplary embodiment of the application.
Specific embodiment
In the following, the exemplary embodiment that the application will be described in detail by referring to the drawings.Obviously, described embodiment is only
It is a part of the embodiment of the application, rather than the whole embodiments of the application, it should be appreciated that the application is not shown by described herein
The limitation of example embodiment.
As described above, there are the following problems for traditional bluetooth sharing scheme:
1. bluetooth sharing process needs to expose token, if sharing request equipment is without bluetooth equipment to be shared or its control
Person processed authorizes and reveals its token, then bluetooth equipment to be shared will face security risk;
2. sharing request equipment utilization token directly establishes communication channel with equipment to be shared, and bluetooth equipment to be shared
Controller can not participate in and monitor bluetooth sharing process;
3. if there is multiple equipment to be shared need to be shared with multiple request equipment then need that sharing process is repeated several times,
It is very cumbersome;
4. sharing request equipment must be shared and communicate with equipment to be shared wait share just to can be carried out around equipment, geographical
Position is limited.
In view of the above-mentioned drawbacks in the prior art, the basic conception of the application is to propose that environment shares scheme, and can be with
Bluetooth communication protocol is expanded into various short-range communication protocols, i.e. short haul connection environment shares scheme, proposes a kind of request
Share the method for short-distance communication equipment, the method that control short-distance communication equipment is shared, electronic equipment, computer program product
And computer readable storage medium, all short-distance communication equipments point that equipment position can be scanned and be connected to will be controlled
It enjoys to multiple request equipment, establishes control equipment with wait share the direct short haul connection between equipment, control equipment can be made
To act on behalf of the communication forwarded between equipment to be shared and request equipment, and thus participate in sharing with monitoring short haul connection
Journey, it is not necessary to which exposure token gives sharing request equipment, and token will not be revealed, and the safety of sharing is enhanced.Pass through short haul connection
Environment is shared, and without constantly repeating sharing process, and without also communicating around equipment wait share, can break through ground
Manage position limitation.
It should be noted that the above-mentioned basic conception of the application can be applied not only to smart home or intelligence wearing scene
In, it can also be applied in other systems application, there is short-range communications functionality as long as participating in the relevant device of communication.Example
Such as, the application is equally applicable to the sharing application of the short-range device in industrial environment, such as is related to short distance in IoT applications
From sharing short-range device in the scene of communication.
After describing the basic principle of the application, carry out the various non-limits for specifically introducing the application below with reference to the accompanying drawings
Property embodiment processed.
Fig. 1 illustrates the systems of the executable short haul connection environment sharing method according to one exemplary embodiment of the application
Topological diagram, it illustrates a kind of typical short haul connection environment to share application scenarios.As shown in Figure 1, sharing request equipment B
Its short haul connection environment can be shared to control equipment A request, control equipment A can scan short present in its ambient enviroment
Field communication device, such as equipment E to be shared, and short-distance communication equipment is shared with request equipment B.When sharing, control
Control equipment A establishes direct short haul connection with the equipment E to be shared to be shared first and connect, and then controls equipment A and turns between two parties
Communication information between hair request equipment B and equipment E to be shared.The communication controlled between equipment A and sharing request equipment B can be with
It is short distance direct communication, is also possible to the telecommunication carried out by cloud.By taking home environment as an example, the mobile phone of owner or
Tablet device can be used as control equipment A, control the intelligent appliance equipment as equipment E to be shared, such as speaker, television set
Deng.The mobile phone or tablet device of guest can be used as sharing request equipment B, and request is shared to use such as speaker, television set
Etc intelligent appliance equipment.Controlling each of equipment A, sharing request equipment B and equipment E to be shared has short haul connection mould
Block, so as to execute the various short haul connections being described below in detail operation.It is established in equipment E to be shared and control equipment A
After direct short haul connection connection, control equipment A can be used as agency forwarding sharing request equipment B and equipment E to be shared it
Between communication.As previously mentioned, the communication between control equipment A and sharing request equipment B can be short haul connection, it is also possible to
Telecommunication, remote communication module, such as internet communication mould can also be had by controlling equipment A and sharing request equipment B at this time
The mobile communication module of block or such as 3G, 4G and 5G etc.Cloud represents background server, usually passes through various cable modems
Letter mode or communication provide necessary auxiliary background service, and details are aftermentioned.
Short haul connection described herein may include the short haul connection of any existing and following exploitation, such as but not
It is limited to Bluetooth communication, near-field communication (NFC), infrared communication and Zigbee communication etc..
It should be noted that above-mentioned application scenarios are merely for convenience of understanding spirit herein and principle and showing, this
The embodiment of application is without being limited thereto.On the contrary, embodiments herein can be applied to any scene that may be applicable in.For example, In
It may include two or more sharing request equipment, equipment to be shared and control in any application environment of family, industry etc.
Control equipment is also possible to one or more pairs of, and a control equipment also can control two or more equipment to be shared.
Below with reference to the application scenarios of Fig. 1, described with reference to Fig. 2A and 2B according to the short of one exemplary embodiment of the application
Distance communication environment sharing method, wherein Fig. 2A is illustrated according to the short haul connection environment of one exemplary embodiment of the application point
The flow chart of the sharing licensing process in method is enjoyed, Fig. 2 B illustrates the short haul connection according to one exemplary embodiment of the application
The flow chart of sharing process in environment sharing method.
As shown in Figure 2 A, short haul connection environment sharing method 100 may begin at step S101, and sharing request equipment B is to control
Control equipment A sends short haul connection environment sharing request.In one embodiment, request equipment B can be located near control equipment A,
Therefore the environment sharing request can be sent by short haul connection.For example, sharing request equipment B can be with scanning controller
The Bluetooth broadcast of A, and bluetooth connection is established with control equipment A, then request control equipment A to share it by Bluetooth communication
Short haul connection environment.In another embodiment, request equipment B and control equipment A can be located at mutual remote location, at this time
Request equipment B that can send short haul connection environment sharing request to control equipment A by cloud.For example, request equipment B and control
Same application or app can be run on control equipment A, request equipment B passes through the application program or app to control equipment A
Short haul connection environment sharing request is sent, the application program of cloud operation or the server of app are responsible for transfer and are asked
It seeks equipment B and controls the communication information between equipment A.
Next in step s 102, control equipment A determines whether to receive the environment sharing request of request equipment B.This can
Determined with the user by control equipment A according to various situations, for example, current time, geographical location, equipment A operation conditions
Deng.If controlling the environment sharing request of equipment A refusal request equipment B, method 100 terminates in step S103.At this point, control
Equipment A can also send refuse information to request equipment B, and optionally, blacklist can also be added in request equipment B, from
And the environment sharing request message from request equipment B is no longer responded later.
If control equipment A receives to request the environment sharing request of equipment B in step s 102, in step S104,
It controls equipment A and request equipment B can be added and share in list.Control equipment A can locally safeguard the sharing column of oneself
Table, wherein listing its each request equipment for allowing for short haul connection environment to be shared with.Control equipment A can also set for request
Standby B distribution is specific to share permission, and the authority information is equally recorded in the sharing list.
For example, the sharing claim that control equipment A is given to request equipment B may include one or more in following:
● equipment permission, such as when control equipment A controls the sharing of multiple short-distance communication equipments, it is possible to specify it is certain
Short-distance communication equipment can be shared with request equipment B, and certain short-distance communication equipments are not shared with request equipment B.
● operating right limits the operation that request equipment B can execute short-distance communication equipment, such as reads, writes
Enter, modify.
● token shares permission, and whether restriction control equipment A, which is shared with request for the token of short-distance communication equipment, sets
Standby B.When sharing token, the token for requesting equipment B to require the short-distance communication equipment connected can be shared with by control equipment A
Equipment B, in this way request equipment B is requested to can use the token to directly generate to the information of short-distance communication equipment.If control
Control equipment A does not share token to request equipment B, then when control equipment A forwarding request equipment B is sent to short-distance communication equipment
When information, it is also necessary to fill upper token field wherein.
● share form, such as unidirectional sharing, two-way sharing or transmitting are shared.That is, control equipment A and request equipment
Environment sharing between B be it is unidirectional or two-way, if it is two-way, then in subsequent operation, control equipment A also requires to request to set
Standby B agrees to its short haul connection environment of sharing, and both sides could establish sharing.Transmitting, which is shared, shows to control equipment A for its environment point
It enjoys to after request equipment B, whether request equipment B can also further be shared with other equipment for the environment for controlling equipment A.Some
In embodiment, even if control equipment A agrees to that transmitting is shared, the short haul connection environment of equipment A will be controlled into one in request equipment B
When step is shared with other equipment, it is also desirable to which first notice control equipment A, the authorization for obtaining control equipment A could continue to share.
● the sharing of having ready conditions for situations such as sharing condition, that is, considering geographical location, time, remaining capacity.For example, in public affairs
It can share in department, cannot share outside company;Daytime can share, and cannot share at night;Remaining capacity foot (is more than predetermined threshold
Value) when can share, otherwise cannot share, etc..
After equipment B will be requested to be added in sharing list and distribute claim for it, in step S105, control is set
Standby A can send the message that instruction receives its short haul connection environment sharing request to request equipment B.In some embodiments,
The message can also include the sharing permission that control equipment A assigns request equipment B.
In step s 106, sharing request equipment B receives the above-mentioned message from control equipment A.At this point, in response to this
Control equipment A can be added in its environment list by message, sharing request equipment B.Request equipment B can locally safeguard ring
Border list, wherein listing the information that short haul connection environment is shared with to each control equipment of request equipment B, such as can be with
The sharing permission of request equipment B is assigned including each control equipment A.In some embodiments, if the message shows that control is set
What standby A assigned request equipment B is sharing of having ready conditions, such as two-way sharing, then requests equipment B also to send to control equipment A and agree to
The request of sharing, to reach two-way sharing, otherwise sharing request fails, and method 100 terminates.
Short haul connection is participated in beyond the clouds to share in the embodiment of process, can also synchronize and safeguard beyond the clouds each equipment
Sharing list and/or environment list, so that cloud can also monitor and control this and share process.
Other than request equipment B actively shares communication environment to control equipment A request, in an alternative em bodiment, control
Control equipment A actively can also send short haul connection environment active sharing request to request equipment B.Receive control in request equipment B
After the active sharing request of control equipment A, both sides can update respective environment list with share list.
After establishing sharing authorization between control equipment A and request equipment B as described above, request equipment B can
To request the short haul connection environment using control equipment A as needed, detailed process will describe referring to Fig. 2 B.
As shown in Figure 2 B, in step s 110, sharing request equipment B can send short haul connection ring to control equipment A
Border scan request, with the short-distance communication equipment around scanning controller A, this can request equipment B-scan from itself week
The short-distance communication equipment while progress enclosed.By taking Bluetooth communication as an example, for example, request equipment B opens bluetooth communication simultaneously
And when executing bluetooth scanning, surrounding Bluetooth broadcast is not only scanned, but also each control equipment A into its environment list
Scan request is sent, to scan the bluetooth equipment around each control equipment A.
In response to the scan request, in the step s 120, the short haul connection controlled in equipment A sweep ambient enviroment is set
It is standby, to obtain the information of short-distance communication equipment.For example, the bluetooth of the bluetooth equipment in control equipment A sweep ambient enviroment is wide
It broadcasts, and parses the Bluetooth broadcast to obtain the information of bluetooth equipment.The information of short-distance communication equipment for example including but it is unlimited
In device mac address, device type ID, equipment unique identification dID, device name, equipment user ID (userid) etc..Some
In embodiment, control equipment A can also determine the signal strength for the short-distance communication equipment that it is scanned, and can also be used as
One of the facility information of the short-distance communication equipment.
In step s 130, the information hair for the short-distance communication equipment in ambient enviroment that control equipment A is scanned into
Give request equipment B.In response to the information, in step S140, request equipment B can establish the column of short-distance communication equipment
Table.It should be understood that not only including being returned from each control equipment A in the list that request equipment B establishes short-distance communication equipment
Facility information can also include the information that request equipment B directly scans surrounding's short-distance communication equipment of acquisition.Request equipment B
Facility information from various sources is summarized, to generate the list of short-distance communication equipment.Control equipment A sweep is arrived
Short-distance communication equipment not only records the information of the equipment itself in list, also by the equipment and corresponding control equipment A and letter
Number intensity is associated.In some special circumstances, possible multiple control equipment A are scanned simultaneously sets to the same short haul connection
It is standby, then request that the short-distance communication equipment can be associated with multiple control equipment A in lists by equipment B and corresponding signal is strong
Degree.
In step S150, request equipment B can select the particular short range communication equipment in list, will claim below
For equipment E to be shared, and the connection request for being directed to the equipment E to be shared is sent to its corresponding control equipment A.It is set when wait share
It (is arrived that is, it is scanned simultaneously by multiple control equipment A) when standby E corresponds to multiple control equipment A, then requests equipment B can be first
Connection request is sent to the highest control equipment A of signal strength.In response to the connection request, controlling equipment A can be in step
Trial is established short haul connection with equipment E to be shared and is connect in S160.
In step S170, short haul connection established with equipment E to be shared connect if control equipment A fails,
In step S180, control equipment A sends the message that connection failure is established in instruction to request equipment B.In response to the message, in step
In rapid S190, request equipment B can be inquired in list of devices with the presence or absence of other control equipment corresponding with equipment E to be shared
A, such as the control equipment A that signal strength time is strong.If it is present method 100 is back to step S160, to the signal strength time
Strong control equipment A sends the connection request for being directed to the equipment E to be shared.These steps are repeated, are connected as until being successfully established
Only.If all corresponding control equipment A fail to establish short haul connection with equipment E to be shared and connect, in step S200
Place's this method terminates.
On the other hand, connect if controlling equipment A success in step S170 and establishing short haul connection with equipment E to be shared
It connects, then in step S210, control equipment A sends the message that successful connection is established in instruction to request equipment B.In some embodiments
In, if controlling the permission that equipment A is request equipment B distribution in step S104 is to allow to share token (token) to it,
It within the message, can also include the token for the equipment E to be shared that control equipment A is successfully connected.Controlling equipment A can in advance
It is saved the token for needing to be shared equipment E, such as equipment E to be shared is that user is set by the household electronic of control equipment A management
It is standby;Alternatively, control equipment A can obtain the token of equipment E to be shared during establishing short haul connection and connecting.Control is set
Standby A and equipment E to be shared establish the process that short haul connection is connect can as in the state of the art, and details are not described herein again.
In response to the message, in step S220, request equipment B is led to by controlling equipment A with equipment E to be shared
Letter.All communication informations between equipment B and equipment E to be shared are requested all to be forwarded by control equipment A.Request equipment B that can incite somebody to action
The address that short haul connection order takes equipment E to be shared is sent to control equipment A, equipment E to be shared and corresponding response disappears
The address that breath takes request equipment B is sent to control equipment A, and control equipment A forwards these message between two parties.When request equipment B does not have
When needing to be shared the token of equipment E, control equipment A can also be sent in the communication information of equipment E to be shared in request equipment B
Fill the token information of equipment E to be shared.But for request equipment B user for, control equipment A can be it is hiding,
It is carried out as short haul connection just as request equipment B with surrounding local short-distance communication equipment.Control equipment A can be monitored
Request the communication between equipment B and equipment E to be shared.If controlling equipment A finds malicious communication, forwarding communication can be refused and disappeared
Breath, and disconnect with equipment E to be shared and/or request at any time the connection of equipment B.
Fig. 3 illustrates the structural block diagram of the electronic equipment 200 according to one exemplary embodiment of the application.It should be appreciated that root
It can be aforementioned sharing request equipment B according to the electronic equipment 200 of one exemplary embodiment of the application and control any in equipment A
One.As shown in figure 3, electronic equipment 200 may include processor 210, short-range communication module 220 and memory 230, it
Be connected to each other by bus 270.
Processor 210 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution capability
Other forms processing unit, and can control the other assemblies in electronic equipment to execute desired function.
Short-range communication module 220 can be any module communicated using short-range communication protocols, such as bluetooth
Module, near-field communication (NFC) module, infrared communication module, Zigbee communication module etc..
Memory 230 may include various forms of computer readable storage mediums, such as volatile memory and/or non-
Volatile memory.Volatile memory for example may include random access memory (RAM) and/or cache memory
(cache) etc..Nonvolatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..It can in memory 230
To be stored with computer program instructions, processor 210 can run these computer program instructions, to realize the application above
Each embodiment short haul connection environment sharing method and/or other desired functions.
With continued reference to Fig. 3, in one example, electronic equipment 200 may also include remote communication module 240.Telecommunication mould
Block 240 can be used telecommunication protocol and be communicated, such as can be wired or wireless internet communication module or shifting
Dynamic communication module etc..
In some instances, electronic equipment 200 may also include input unit 250 and output unit 260.Input unit 250
It can be performed with output unit 260 and various output and input function.In one embodiment, input unit 250 and output unit 260
It can integrate in individual devices, such as touch-screen display.Processor 210 is connect by bus 270 with above-mentioned module or unit,
To control their operation.
As specific and preferred embodiment, electronic equipment 200 shown in Fig. 3 may include mobile phone, plate, individual digital
The portable electronic devices such as assistant.
Other than the above method and equipment, embodiments herein can also be computer program product comprising meter
Calculation machine program instruction, it is above-described according to this that the computer program instructions execute processor
Apply for the step in the short-distance communication equipment sharing method of each embodiment.
The computer program product can be write with any combination of one or more programming languages for holding
The program code of row the embodiment of the present application operation, programming language includes object oriented program language, such as Java,
C++ etc. further includes conventional procedural programming language, such as " C " language or similar programming language.Program code
It can fully execute on the user computing device, partly execute, held as an independent software package on a user device
Part executes on a remote computing or completely in remote computing device or service on the user computing device for row, part
It is executed on device.
In addition, embodiments herein can also be computer readable storage medium, it is stored thereon with computer program and refers to
It enables, the computer program instructions make processor execution is above-described respectively to be implemented according to the application when being run by processor
Step in the short-distance communication equipment sharing method of example.
The computer readable storage medium can be using any combination of one or more readable mediums.Readable medium can
To be readable signal medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can include but is not limited to electricity, magnetic, light, electricity
Magnetic, the system of infrared ray or semiconductor, device or device, or any above combination.Readable storage medium storing program for executing it is more specific
Example (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory
Device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc
Read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The basic principle of the application is described in conjunction with specific embodiments above, however, it is desirable to, it is noted that in this application
The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the application
Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand
With, rather than limit, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the application,.
Device involved in the application, device, equipment, system block diagram only as illustrative example and be not intended to
It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that
, it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool
" etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above
"or" and "and" refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made
Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
It may also be noted that each component or each step are can to decompose in the device of the application, device and method
And/or reconfigure.These decompose and/or reconfigure the equivalent scheme that should be regarded as the application.
The above description of disclosed aspect is provided so that any person skilled in the art can make or use this
Application.Various modifications in terms of these are readily apparent to those skilled in the art, and are defined herein
General Principle can be applied to other aspect without departing from scope of the present application.Therefore, the application is not intended to be limited to
Aspect shown in this, but according to principle disclosed herein and the consistent widest range of novel feature.
In order to which purpose of illustration and description has been presented for above description.In addition, this description is not intended to the reality of the application
It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill
Its certain modifications, modification, change, addition and sub-portfolio will be recognized in art personnel.
Claims (13)
1. the method for short-distance communication equipment is shared in a kind of request, comprising:
Scan request is sent to control equipment to scan the short-distance communication equipment around the control equipment;
The information of the short-distance communication equipment scanned by the control equipment is received from the control equipment, the short distance is logical
The information of letter equipment includes: the signal strength of the short-distance communication equipment scanned by the control equipment;
In response to receiving the information of the short-distance communication equipment scanned by the control equipment from the control equipment, establish
The list of the short-distance communication equipment, and the list for establishing the short-distance communication equipment includes: by the short haul connection
Equipment is associated with corresponding control equipment and signal strength;
The particular short range communication equipment in the list of the short-distance communication equipment is selected as equipment to be shared;
Into the equipment to be shared corresponding multiple control equipment the maximum control equipment of signal strength send for it is described to
Share the connection request of equipment;
It is received from the control equipment and indicates that the control equipment is established short haul connection with the equipment to be shared and connect
Message;And
It is communicated by the control equipment with the equipment to be shared.
2. the method as described in claim 1, it is short around the control equipment to scan to send scan request to control equipment
Before field communication device, further includes:
Short haul connection environment sharing request is sent to the control equipment;And
In response to the message for receiving short haul connection environment sharing request from the control equipment, the control equipment is increased
It is added in environment list.
3. the method for claim 1, wherein the information of the short-distance communication equipment includes: device mac address, sets
One or more of standby type ID, equipment unique identification dID, device name and equipment user ID.
4. the method as described in claim 1, further includes: in response to the connection from the maximum control equipment of the signal strength
Failed message, the control equipment big to signal strength time send the connection request for the equipment to be shared.
5. method according to any one of claims 1-4, wherein the short haul connection includes that Bluetooth communication, near field are logical
Believe (NFC), infrared communication or Zigbee communication.
6. a kind of method that control short-distance communication equipment is shared, comprising:
Receive the scan request from request equipment;
Scan the short-distance communication equipment in ambient enviroment;
The information of the short-distance communication equipment is sent to the request equipment;
Receive the connection request for selected short-distance communication equipment from the request equipment;
Short haul connection is established with the selected short-distance communication equipment to connect, and to the request equipment send instruction at
Function establishes the message of connection;And
Forward the communication instruction between the request equipment and the selected short-distance communication equipment;
Wherein, the communication instruction between the request equipment and the selected short-distance communication equipment is forwarded, comprising: by institute
It states in the communication instruction for requesting equipment to be sent to the selected short-distance communication equipment and supplements the selected short haul connection
Then the communication instruction is transmitted to the selected short-distance communication equipment by the token information of equipment.
7. before method as claimed in claim 6, receiving the scan request from request equipment, further includes:
Receive the short haul connection environment sharing request from the request equipment;
Receive the short haul connection environment sharing request, and the request equipment is added and shares list;And
The message that instruction receives the short haul connection environment sharing request is sent to the request equipment.
8. method as claimed in claim 6, wherein receive the short haul connection environment sharing request further include: assign institute
It states request equipment and specifically shares claim.
9. method as claimed in claim 6, wherein the instruction sent to the request equipment is successfully established the message package of connection
Include the token of the selected short-distance communication equipment connected.
10. a kind of electronic equipment, comprising:
Short-range communication module is communicated using short-range communication protocols;And
Processor is configured to the computer program in run memory with perform claim and requires side described in any one of 1-9
Method.
11. electronic equipment as claimed in claim 10, further includes: remote communication module is led to using telecommunication protocol
Letter.
12. electronic equipment as claimed in claim 10, wherein the electronic equipment includes that mobile phone, plate or individual digital help
Reason.
13. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is transported by processor
The processor is made to execute method as claimed in any one of claims 1-9 wherein when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711222975.9A CN107968995B (en) | 2017-11-29 | 2017-11-29 | Short-distance communication equipment sharing request and control method, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711222975.9A CN107968995B (en) | 2017-11-29 | 2017-11-29 | Short-distance communication equipment sharing request and control method, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107968995A CN107968995A (en) | 2018-04-27 |
CN107968995B true CN107968995B (en) | 2019-11-29 |
Family
ID=61998081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711222975.9A Active CN107968995B (en) | 2017-11-29 | 2017-11-29 | Short-distance communication equipment sharing request and control method, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107968995B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089251B (en) * | 2018-09-05 | 2021-09-17 | 北京字节跳动网络技术有限公司 | Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection |
CN110187854B (en) * | 2019-04-28 | 2022-12-13 | 深圳市万普拉斯科技有限公司 | Method, terminal, computer device and storage medium for sharing content |
CN113784297A (en) * | 2020-06-10 | 2021-12-10 | 华为技术有限公司 | Short-distance notification method based on application program, electronic device and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8347366B2 (en) * | 2010-03-31 | 2013-01-01 | Koamtac, Inc. | Method and apparatus for improved connection of wireless devices using third party programming capability |
US9769594B2 (en) * | 2015-01-30 | 2017-09-19 | Cassia Networks Inc. | Methods, devices and systems for increasing wireless communication range |
CN105578386A (en) * | 2015-11-26 | 2016-05-11 | 小米科技有限责任公司 | Bluetooth device management method and device |
CN105471686B (en) * | 2015-12-26 | 2022-01-07 | 腾讯科技(深圳)有限公司 | Terminal control method, device and system |
-
2017
- 2017-11-29 CN CN201711222975.9A patent/CN107968995B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107968995A (en) | 2018-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108886676B (en) | The selection of coordinator unit for automated environment | |
CN107770761B (en) | Bluetooth device sharing request and control method and device, and computer storage medium | |
KR102478098B1 (en) | Method and apparatus for controlling visitor calling in home network system | |
CN107528733B (en) | Management method of Internet of things and Internet of things system | |
CN107968995B (en) | Short-distance communication equipment sharing request and control method, electronic equipment and storage medium | |
KR101678606B1 (en) | SERVICE PROVIDING METHOD USING IoT DEVICE AND SERVICE PROVIDING SYSTEM USING IoT DEVICE | |
CN105580310A (en) | Security management method and security management device in home network system | |
CN110830968A (en) | Networking method and device, Bluetooth equipment and computer readable medium | |
CN105099985A (en) | Login method and device of multiple applications | |
CN105282868A (en) | System and Method for Temporarily Joining a WiFi Network | |
CN108111999A (en) | Short-distance communication equipment shares request and control method and electronic equipment | |
JP2017535122A (en) | Sensor code verification processing method, apparatus, network platform device, and Internet gateway of things | |
US9479916B2 (en) | Method and apparatus for providing access to local services and applications to multi-agency responders | |
CN105338529A (en) | Wireless network connecting method and system | |
CN111091644A (en) | Authorization management of elevator service requests and authorization requests | |
CN107211265B9 (en) | Method and device for secure interaction between terminals | |
JP2005080065A (en) | Service provision system, authentication system, and signature formation device, service utilization device and verification device | |
CN105553921B (en) | Internet of things communication method and device and internet of things communication system | |
CN113794996A (en) | Device communication method, device control method, device communication apparatus, electronic device, and storage medium | |
KR20070075874A (en) | Wireless usb host and association process executing method thereof | |
US10200441B2 (en) | Methods, an online object, a web-based message exchange server, a mobile device, a target offline object, a network and a computer program product | |
CN105657665A (en) | Information interaction method based on nearby users | |
CN114500136B (en) | Smart home networking method, system, equipment and storage medium | |
KR101924313B1 (en) | System for m2m adaptive platform | |
CN116017352A (en) | Vehicle-mounted system, terminal, vehicle and resource sharing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |