CN107770761B - Bluetooth device sharing request and control method and device, and computer storage medium - Google Patents

Bluetooth device sharing request and control method and device, and computer storage medium Download PDF

Info

Publication number
CN107770761B
CN107770761B CN201710978689.9A CN201710978689A CN107770761B CN 107770761 B CN107770761 B CN 107770761B CN 201710978689 A CN201710978689 A CN 201710978689A CN 107770761 B CN107770761 B CN 107770761B
Authority
CN
China
Prior art keywords
bluetooth
shared
virtual
information
sharing
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
Application number
CN201710978689.9A
Other languages
Chinese (zh)
Other versions
CN107770761A (en
Inventor
李文田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Horizon Robotics Technology Research and Development Co Ltd
Original Assignee
Beijing Horizon Robotics Technology Research and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Horizon Robotics Technology Research and Development Co Ltd filed Critical Beijing Horizon Robotics Technology Research and Development Co Ltd
Priority to CN201710978689.9A priority Critical patent/CN107770761B/en
Publication of CN107770761A publication Critical patent/CN107770761A/en
Application granted granted Critical
Publication of CN107770761B publication Critical patent/CN107770761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information

Abstract

A sharing request and control method for Bluetooth equipment and electronic equipment are disclosed. The method for requesting sharing of the Bluetooth equipment comprises the following steps: monitoring the Bluetooth broadcast of the Bluetooth device to be shared; analyzing the Bluetooth broadcast of the Bluetooth device to be shared to obtain the information of the Bluetooth device to be shared; sending a Bluetooth sharing request through Bluetooth broadcasting, wherein the Bluetooth sharing request comprises information of requesting equipment and information of the Bluetooth equipment to be shared; receiving a Bluetooth broadcast which is from a virtual device on a control device of the Bluetooth device to be shared and accepts the Bluetooth sharing request, wherein the Bluetooth broadcast comprises information of the request device and the virtual device; and establishing Bluetooth connection with the virtual equipment on the control equipment so as to communicate with the Bluetooth equipment to be shared through the virtual equipment. According to the method, the communication between the Bluetooth device to be shared and the sharing request device can be realized and managed through the virtual device, and a token of the Bluetooth device to be shared does not need to be distributed to the sharing request device.

Description

Bluetooth device sharing request and control method and device, and computer storage medium
Technical Field
The present disclosure relates generally to the field of communications, and more particularly, to a method and apparatus for sharing and controlling bluetooth devices, and a computer storage medium.
Background
Bluetooth has the advantages of low cost, low power consumption, convenience, rapidness and the like as a short-distance wireless communication technical scheme, so that the Bluetooth is widely applied to various occasions and fields all the time. For example, in portable electronic devices, smart homes, or smart wearable devices, bluetooth connections have been used to establish connections between multiple devices to share data and/or various functions to enable convenient information sharing among, for example, family, friends.
Security is a very important consideration when establishing a bluetooth connection between devices. In order to ensure convenient sharing of bluetooth devices under the most secure possible right control, the conventional bluetooth sharing scheme requires the use of tokens (tokens). The Bluetooth device to be shared shares the token of the Bluetooth device to be shared to the sharing request device through the cloud, the sharing request device synchronously downloads the token of the Bluetooth device to be shared to the local, for example, a portable mobile terminal such as a smart phone from the cloud, and then the token and the Bluetooth device to be shared establish Bluetooth connection to directly establish a communication channel.
However, such a conventional bluetooth sharing method relies on a token and a cloud, which brings security risks and has application limitations.
Disclosure of Invention
In view of the above prior art, the present application provides a bluetooth sharing scheme, which uses a control device of a bluetooth device to be shared to generate a virtual device disguising the bluetooth device to be shared, controls and manages bluetooth communication between the virtual device and a sharing request device, and implements communication between the bluetooth device to be shared and the sharing request device without distributing a token of the bluetooth device to be shared to the sharing request device, and moreover, the bluetooth sharing process does not need to be participated in by a cloud.
According to an exemplary embodiment of the present application, a method for requesting sharing of bluetooth devices is provided, which may include: monitoring the Bluetooth broadcast of the Bluetooth device to be shared; analyzing the Bluetooth broadcast of the Bluetooth device to be shared to obtain the information of the Bluetooth device to be shared; sending a Bluetooth sharing request through Bluetooth broadcasting, wherein the Bluetooth sharing request comprises information of requesting equipment and information of the Bluetooth equipment to be shared; receiving a Bluetooth broadcast which is from a virtual device on a control device of the Bluetooth device to be shared and accepts the Bluetooth sharing request, wherein the Bluetooth broadcast comprises information of the request device and the virtual device; and establishing Bluetooth connection with the virtual equipment on the control equipment so as to communicate with the Bluetooth equipment to be shared through the virtual equipment.
According to another exemplary embodiment of the present application, there is provided a method performed by a control device to control sharing of a bluetooth device to be shared, which may include: monitoring Bluetooth broadcast to identify a sharing request for the Bluetooth device to be shared, wherein the sharing request comprises information of a request device and information of the Bluetooth device to be shared; determining that the Bluetooth device to be shared is a device controlled by the control device based on the information of the Bluetooth device to be shared; establishing Bluetooth connection with the Bluetooth device to be shared; generating a virtual device, wherein the virtual device is a device of the same type as the Bluetooth device to be shared; sending a Bluetooth broadcast for accepting the sharing request through the virtual equipment, wherein the Bluetooth broadcast comprises the information of the request equipment and the information of the virtual equipment; and establishing Bluetooth connection between the virtual equipment and the request equipment, so that the request equipment and the Bluetooth equipment to be shared can carry out Bluetooth communication through the virtual equipment.
According to another exemplary embodiment of the present application, there is provided an electronic device, which may include: a Bluetooth module for performing communication using a Bluetooth protocol; and a processor configured to execute the computer program instructions in the memory to perform the above-described method.
According to another exemplary embodiment of the present application, a computer-readable storage medium may have stored thereon computer program instructions which, when executed by a processor, cause the processor to perform the above-described method.
According to another exemplary embodiment of the present application, a computer program product may be provided, which may comprise computer program instructions, which, when executed by a processor, cause the processor to perform the above-mentioned method.
According to the Bluetooth sharing scheme, the virtual device is generated through the control device of the Bluetooth device to be shared to disguise the Bluetooth device to be shared, Bluetooth communication between the virtual device and the sharing request device is controlled and managed, communication between the Bluetooth device to be shared and the sharing request device is achieved, the token of the Bluetooth device to be shared does not need to be distributed to the sharing request device, and the Bluetooth sharing process does not need to be participated in by a cloud.
The foregoing and other features and advantages of the present application will become apparent from the following description of exemplary embodiments.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in more detail embodiments of the present application with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings, like reference numbers generally represent like parts or steps.
Fig. 1 illustrates a system topology for bluetooth device sharing according to an exemplary embodiment of the present application.
Fig. 2 illustrates a flowchart of a bluetooth device sharing method according to an exemplary embodiment of the present application.
FIG. 3 illustrates a block diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be understood that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and that the present application is not limited by the example embodiments described herein.
As described above, the conventional bluetooth sharing scheme has the following problems:
1. the token needs to be exposed in the Bluetooth sharing process, and if the token is leaked by the sharing request equipment without authorization of the Bluetooth equipment to be shared or a controller of the sharing request equipment, the Bluetooth equipment to be shared faces a security risk;
2. the sharing request device directly establishes a communication channel with the device to be shared by using the token, and a controller of the Bluetooth device to be shared cannot participate in and monitor the Bluetooth sharing process;
3. the bluetooth sharing process usually depends on a wireless network and a background server (cloud), and once any party cannot connect with the cloud, the sharing process cannot be performed.
Aiming at the defects in the prior art, the basic idea of the application is that the control device of the Bluetooth device to be shared generates the virtual device to disguise the Bluetooth device to be shared, the control device participates and monitors the Bluetooth sharing process, the token is prevented from being exposed to the sharing request device, and the Bluetooth sharing safety is enhanced. In the process, the virtual device is disguised as the bluetooth device to be shared, so that the user of the requesting device cannot distinguish the difference between the two devices, and obtains the experience same as that of direct communication of the bluetooth device to be shared. Moreover, the Bluetooth sharing process does not need cloud participation and can be completed locally through Bluetooth communication. Therefore, the present application provides a method for requesting sharing of a bluetooth device, a method executed by a control device for controlling sharing of a bluetooth device to be shared, an electronic device, a computer program product, and a computer-readable storage medium, which may generate a virtual device disguised as the bluetooth device to be shared by the control device of the bluetooth device to be shared, establish a virtual communication channel, relay data at both ends of the sharing request device and the bluetooth device to be shared by the virtual device created by the control device, implement end-to-end and service-to-service data relay between the virtual device and a real device, control and manage bluetooth connection between the bluetooth device to be shared and the sharing request device by using the virtual device, without distributing a token of the bluetooth device to be shared to the sharing request device, and without cloud participation in a bluetooth sharing process.
It should be noted that the basic concept of the present application can be applied to smart home or smart wearable scenes, and can also be applied to other system applications as long as the related devices participating in communication have a bluetooth communication function. For example, the present application is equally applicable to bluetooth device sharing applications in industrial environments, such as sharing bluetooth devices in scenarios involving bluetooth communication in internet of things applications.
Having described the general principles of the present application, various non-limiting embodiments of the present application will now be described with reference to the accompanying drawings.
Fig. 1 illustrates a system topology for bluetooth device sharing according to an exemplary embodiment of the present application, which shows a typical bluetooth sharing application scenario. As shown in fig. 1, the sharing request device B requests the device E to be shared to perform bluetooth sharing, and the control device a controls a bluetooth sharing process of the device E to be shared. Taking a home environment as an example, a mobile phone or a tablet device of a host may serve as the control device a, which controls smart home devices serving as the devices to be shared E, such as a sound box, a television, and the like. The guest's mobile phone or tablet device may serve as a sharing request device B that requests sharing to use an intelligent home device such as a speaker, a television, etc. The control device a, the sharing request device B, and the device to be shared E each have a bluetooth communication module so that various bluetooth operations described in detail below can be performed. The control device a creates a virtual device D on its own device in the process of controlling sharing of the bluetooth device, disguising the device E to be shared, as described in detail below. Furthermore, in some embodiments, the control device a and the sharing request device B may further have a second communication module different from the bluetooth communication module, for example, a WIFI communication module, an internet communication module, or a mobile communication module such as 3G, 4G, and 5G, so that the control device a and the sharing request device B may also communicate with each other through other communication means other than bluetooth. The cloud represents a background server, and generally provides necessary auxiliary background services through various wireless communication modes, which will be described in detail later.
It should be noted that the above application scenarios are only shown for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited thereto. Rather, embodiments of the present application may be applied to any scenario where it may be applicable. For example, in any application environment such as home, industry, and the like, two or more sharing request devices may be included, the device to be shared and the control device may also be one or more pairs, and one control device may also control two or more devices to be shared.
In the following, with reference to fig. 2, a bluetooth device sharing method according to an exemplary embodiment of the present application is described with reference to an application scenario of fig. 1.
Fig. 2 illustrates a flowchart of a bluetooth device sharing method according to an exemplary embodiment of the present application.
As shown in fig. 2, the bluetooth device sharing method 100 includes a method of requesting sharing of a bluetooth device and a method executed by a control device to control sharing of a bluetooth device to be shared.
In step S110, the sharing request device B may listen to the bluetooth broadcast. When the bluetooth connection is not established, the device to be shared E may continuously send a bluetooth broadcast, and the bluetooth broadcast may carry device information of the device to be shared E, such as a device type ID, a device unique identifier dID, a device MAC address, a device name, a device userid, and the like. It should be understood that these device information are examples only, and that more information, or less information, may be included in the bluetooth broadcast, depending on the context. In some embodiments, the device to be shared E and the control device a may belong to the same user, and thus both may have the same userid.
It should be understood that the formats of the bluetooth broadcasts of different devices may differ from one another. For example, a bluetooth broadcast of a device produced by a particular manufacturer may have its particular format. Therefore, the sharing request device B may need to identify the format of the bluetooth broadcast when it listens to the bluetooth broadcast. In step S112, the sharing request device B determines whether the format of the bluetooth broadcast is recognizable. The sharing requesting device B may match the format of the monitored bluetooth broadcast with a known bluetooth broadcast format, for example, perform a matching process by regular pattern matching to determine whether the monitored bluetooth broadcast format is recognizable, i.e., is a known format. Here, the sharing request device B may locally store a plurality of known bluetooth broadcast formats, for example, a specific bluetooth format of a common manufacturer.
If the sharing request device B fails to recognize the format of the monitored bluetooth broadcast in step S112, the sharing request device B may request the cloud to recognize the bluetooth broadcast format. For example, in step S114, the sharing requesting device B may upload the description information of the device E to be shared to the cloud. The description information of the device to be shared E may be, for example, a photo image of the device to be shared, or a description language about the device type, brand, model, and the like of the device to be shared, or a sample of bluetooth broadcast of the device to be shared E, and the like. In step S116, the cloud program identifies the device E to be shared according to the description information, and issues the bluetooth broadcast format to the sharing requesting device B. After receiving the bluetooth broadcast format issued by the cloud, the sharing request device B may store the format locally as a known bluetooth broadcast format.
If the sharing request device B successfully identifies the bluetooth broadcast format in step S112, or the sharing request device B receives the bluetooth broadcast format from the cloud in step S116, in step S120, the sharing request device B parses the monitored bluetooth broadcast according to the bluetooth broadcast format, so as to obtain the device information of the device E to be shared, which includes the device MAC address, the device type ID, the device unique identifier dID, the device name, the device userid, and the like of the device E to be shared.
Next, in step S130, the sharing request device B sends a bluetooth sharing request to the device to be shared E through bluetooth broadcast. For example, the user of the sharing requesting device B may click on the device E to be shared in the bluetooth device list, so as to send out the bluetooth broadcast requesting sharing. For example, a bluetooth broadcast may be sent for 5 seconds and then switched to scan for 5 seconds to receive a response to the share request; this continues until the requesting device B exits the page or times out. The bluetooth broadcast sent by the sharing request device B may conform to the bluetooth broadcast format of the device to be shared E, and may include a request sharing instruction, request device information, and device information of the device to be shared E. The requesting device information may include the MAC address of the sharing requesting device B and may further include one or more of a device type ID, a device unique identification dID, a device name, a device userid, and the like. It should be understood that the userid of the sharing requesting device B may be different from the userid of the controlling device a and the device to be shared E.
In another embodiment, when the userid of the device to be shared E identified by the requesting device B in step S120 matches the userid of the requesting device B itself, it indicates that the device to be shared E may belong to the same user as the requesting device B, or that the device to be shared E already knows the information of the requesting device B in advance and allows the requesting device B to connect with it, and then the requesting device B may directly establish a bluetooth connection with the device to be shared E in step S130. On the other hand, when the userid of the sharing requesting device B is different from the userid of the device E to be shared, for example, the user of the device B wants to use the device E of the user of the device a, the sharing requesting device B may transmit the connection request through bluetooth broadcast as described in the above step S130.
In step S140, the control device a also listens to the bluetooth broadcast and parses the listened bluetooth broadcast, thereby identifying the sharing request, the requesting device information, and the device information to be shared included in the bluetooth broadcast. Then, in step S142, the control device a determines whether the device to be shared is a device controlled by the control device a according to the device to be shared information included in the sharing request in the bluetooth broadcast. For example, control device a may maintain locally a list of bluetooth devices it controls, including information of the bluetooth devices controlled, such as device MAC addresses, etc. The control device a may compare the MAC address of the bluetooth device to be shared requested in the sharing request bluetooth broadcast with the MAC addresses in the local list. If no match is found, the control device a determines that the bluetooth device to be shared requested in the bluetooth broadcast is not the device it controls, the control device a ignores the bluetooth broadcast, and the flow of the method 100 returns to step S140 to continue listening to the bluetooth broadcast. If a match is found, the control device a determines that the bluetooth device to be shared requested in the bluetooth broadcast is the device it controls, and the flow of the method 100 continues to step S144.
In step S144, the control device a responds to the bluetooth sharing request from the sharing requesting device B. That is, the user of the control device a determines whether to allow the sharing requesting device B to establish a bluetooth connection with the device to be shared E. The user of the control device a may respond according to the information of the sharing request device B. In one embodiment, the user of the control device a may also view specific personal information of the user, such as head portrait, nickname, name, gender, age, etc., in the cloud according to the information of the user of the sharing request device B, such as the userid of the user. In such an embodiment, the control device a, the sharing request device B, and the cloud may run related app programs, and users of the control device a and the sharing request device B are registered as users on the app.
For example, when the user of the control device a finds that the sharing request device B or the user thereof is an unfamiliar device or an unfamiliar user, the sharing request may be selected to be ignored. At this time, the control device a does not respond to the sharing request, and the flow of the method 100 returns to step S140, and the control device a continues to monitor the bluetooth broadcast. If the request device B does not receive any response within the preset time, the request device B is timed out and quits. If the user of the control device a finds that the sharing request is a malicious request, it may also choose to reject the request. At this time, the control device a adds the sharing request device B to the blacklist, and the control device a automatically ignores the sharing request from the sharing request device B. Alternatively, the control device a may send a rejection message to the sharing request device B in step S146, and then the flow of the method 100 returns to step S140, and the control device a continues to listen to the bluetooth broadcast.
The user of control device a may choose to accept the sharing request if he finds it to come from a known source, such as a close friend. If the control device a decides to accept the sharing request of the sharing request device B, in step S150, the control device a immediately establishes a bluetooth connection with the device E to be shared. After the connection is established, the device to be shared E stops sending the bluetooth broadcast. Then, in step S152, a virtual device D disguised as a device E to be shared is generated on the control device a (e.g., a mobile phone terminal). Disguising as the device E to be shared means that the virtual device D may adopt the same device information as the device E to be shared, for example, the device type ID, the device unique identifier dID, the device name, the device userid, and the like. For example, the control device a may obtain the profile of the device to be shared E through the established bluetooth connection, or the control device a may maintain locally the profile of the device to be shared E it controls. The control device a may generate the virtual device D by copying the profile of the device E to be shared. It should be understood that the generated virtual device D is assigned its own MAC address, which is different from the MAC address of the device E to be shared.
In step S154, the virtual device D transmits a message accepting the connection request of the device B through bluetooth broadcast, which may include, for example, information of the virtual device D itself and information of the requesting device B. As described above, the information of the requesting device B may include one or more of the MAC address, the device type ID, the device unique identification dID, the device name, and the device userid of the sharing requesting device B. Likewise, the information of the virtual device D may include one or more of a MAC address of the virtual device D, a device type ID, a device unique identification dID, a device name, and a device userid. As described above, the virtual device D masquerades as the device to be shared E, and thus has the same device information as the device to be shared E except for the MAC address.
In step S160, the sharing request device B listens (scans) for the bluetooth broadcast. As described above, since the device to be shared E stops the bluetooth broadcast, and the device information of the virtual device D included in the bluetooth broadcast of the virtual device D is the same as the device information of the device to be shared E, the user of the requesting device B sees that the monitored device icon (actually, the virtual device D) for transmitting the bluetooth broadcast presented in the device list is completely the same as the device to be shared E, and therefore the user of the device B will continue the bluetooth connection with the virtual device D as the device to be shared E. The sharing request device B parses the information in the bluetooth broadcast, determines that the bluetooth broadcast is a message for accepting a connection request based on the own userid of the device B included therein, for example, and thereby initiates a bluetooth connection using the information of the virtual device D, for example, the MAC address.
In step S170, the sharing request device B may establish a bluetooth communication connection with the virtual device D by using the information (e.g., MAC address) of the virtual device D in the bluetooth broadcast. In this way, in step S180, the virtual device D may forward bluetooth communication between the requesting device B and the device to be shared E. All communication data from the requesting device B are redirected to the device E to be shared by the device virtual D, and all feedback data of the device E to be shared are also forwarded to the requesting device B by the device virtual D. Therefore, the Bluetooth communication between the request device B and the device E to be shared is realized; and the user of the requesting device B looks like a bluetooth communication directly with the device E to be shared.
In an embodiment, the control device a may also destroy the virtual device D, and then disconnect the bluetooth connection with the bluetooth device E to be shared. Thereafter, the bluetooth broadcast of the bluetooth device E to be shared may be resumed. Destroying virtual device D may also be a response to different situations. For example, requesting device B to disconnect from virtual device D; alternatively, the user of the control device a may wish to stop bluetooth sharing by the device E to be shared, or the control device a may actively destroy the virtual device D for other considerations.
Therefore, by adopting the method for requesting sharing of the bluetooth device or the method executed by the control device to control sharing of the bluetooth device to be shared according to the embodiment of the application, the virtual device can be generated by the control device of the bluetooth device to be shared to disguise the bluetooth device to be shared, the control device participates in and monitors the bluetooth sharing process without distributing a token of the device to the sharing request device, and the bluetooth sharing process does not need cloud participation (the cloud only participates in identification of a new bluetooth broadcast format). According to the Bluetooth sharing scheme, tokens do not need to be exposed, so that the Bluetooth sharing safety is enhanced; the sharing request device does not need to directly establish connection with the Bluetooth device to be shared, but is switched by the virtual device established by the control device, so that the whole Bluetooth communication process is controllable. Because the communication object of the sharing end is the virtual device generated by copying the original device to be shared, the sharing logic is simple. In addition, the Bluetooth sharing process is localized, and the participation of a wireless network and a cloud background server is not needed, so that the application is more convenient.
FIG. 3 illustrates a block diagram of an electronic device according to an exemplary embodiment of the present application. It should be understood that the electronic device 200 according to an exemplary embodiment of the present application may be any one of the aforementioned sharing request device B and control device a. As shown in fig. 3, the electronic device 200 may include a processor 210 and a bluetooth module 220, which are connected to each other through a bus 280.
The processor 210 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. Bluetooth module 220 may communicate using the bluetooth protocol. Processor 210 is coupled to bluetooth module 220 via bus 280 to control their operation.
With continued reference to fig. 3, in an example, the electronic device 200 can also include a communication module 230. The communication module 230 may communicate using a protocol different from the bluetooth protocol. For example, the communication module 230 may be a WIFI communication module, an internet communication module, or a mobile communication network communication module, etc. In another example, the electronic device 200 may further include a camera 240 for taking a picture of the device E to be shared, for example, for cloud recognition. In another example, the electronic device 200 may further include a memory 250, an input unit 260, and an output unit 270. Memory 250 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer-readable storage medium and executed by a processor to implement the bluetooth device sharing methods of the embodiments of the present application above and/or other desired functionality. The input unit 260 and the output unit 270 may perform various input and output functions. In one embodiment, the input unit 260 and the output unit 270 may be integrated into a single device, such as a touch screen display. The processor 210 and the above-described communication module 230, camera 240, memory 250, input unit 260, and output unit 270 may be connected through a bus 280 to control their operations.
As a specific and preferred embodiment, the electronic device 200 shown in fig. 3 may comprise a portable electronic device such as a cell phone, tablet, personal digital assistant, and the like.
In addition to the above methods and devices, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the bluetooth device sharing method according to embodiments of the present application described above.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, cause the processor to perform the steps in the bluetooth device sharing method according to the embodiments of the present application described above.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (15)

1. A method performed by a requesting device to request sharing of bluetooth devices, comprising:
monitoring the Bluetooth broadcast of the Bluetooth device to be shared;
analyzing the Bluetooth broadcast of the Bluetooth device to be shared to obtain the information of the Bluetooth device to be shared;
sending a Bluetooth sharing request through Bluetooth broadcasting, wherein the Bluetooth sharing request comprises information of requesting equipment and information of the Bluetooth equipment to be shared;
receiving a Bluetooth broadcast which is from a virtual device on a control device of the Bluetooth device to be shared and accepts the Bluetooth sharing request, wherein the Bluetooth broadcast which accepts the Bluetooth sharing request comprises information of the request device and the virtual device; and
and establishing Bluetooth connection with the virtual equipment on the control equipment so as to communicate with the Bluetooth equipment to be shared through the virtual equipment.
2. The method of claim 1, wherein the control device has established a bluetooth connection with the bluetooth device to be shared when the virtual device issues a bluetooth broadcast accepting the bluetooth sharing request.
3. The method of claim 1, wherein the virtual device is a same type of device as the Bluetooth device to share.
4. The method of claim 1, wherein the information of the Bluetooth device to be shared comprises a MAC address of the Bluetooth device to be shared, the information of the requesting device comprises a MAC address of the requesting device, and the information of the virtual device comprises a MAC address of the virtual device.
5. The method of claim 4, wherein the information of the Bluetooth device to be shared further comprises one or more of a type ID, a device unique identification (dID), a device name, and a user ID of the Bluetooth device to be shared, the information of the requesting device further comprises one or more of a type ID, a device unique identification (dID), a device name, and a user ID of the requesting device, and the information of the virtual device further comprises one or more of a type ID, a device unique identification (dID), a device name, and a user ID of the virtual device.
6. The method of claim 5, wherein the type ID, device unique identifier dID, device name and user ID of the virtual device are the same as the type ID, device unique identifier dID, device name and user ID of the Bluetooth device to be shared, respectively.
7. A method performed by a control device to control sharing of a bluetooth device to be shared, comprising:
monitoring Bluetooth broadcast to identify a sharing request for the Bluetooth device to be shared, wherein the sharing request comprises information of a request device and information of the Bluetooth device to be shared;
determining that the Bluetooth device to be shared is a device controlled by the control device based on the information of the Bluetooth device to be shared;
establishing Bluetooth connection with the Bluetooth device to be shared;
generating a virtual device, and sending a Bluetooth broadcast accepting the sharing request through the virtual device, wherein the Bluetooth broadcast accepting the sharing request comprises information of the request device and information of the virtual device; and
and establishing Bluetooth connection between the virtual equipment and the request equipment, so that the request equipment and the Bluetooth equipment to be shared can carry out Bluetooth communication through the virtual equipment.
8. The method of claim 7, wherein the virtual device is a same type of device as the Bluetooth device to share.
9. The method of claim 7, further comprising:
maintaining a list of the controlled Bluetooth devices to be shared, wherein the list comprises device information of the Bluetooth devices to be shared.
10. The method of claim 7, further comprising:
after the Bluetooth connection between the virtual equipment and the request equipment is established, destroying the virtual equipment; and
and disconnecting the Bluetooth connection with the Bluetooth device to be shared.
11. The method of claim 7, wherein the generating a virtual appliance comprises:
and copying the profile of the Bluetooth device to be shared as the profile of the virtual device.
12. The method of claim 11 wherein the profile includes one or more of a device type ID, a device unique identification dID, a device name, and a user ID.
13. An electronic device, comprising:
a Bluetooth module for performing communication using a Bluetooth protocol;
a memory storing a computer program; and
a processor configured to execute the computer program in the memory to perform the method of any of claims 1-12.
14. The electronic device of claim 13, wherein the electronic device comprises a cell phone, tablet, or personal digital assistant.
15. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, causes the processor to carry out the method according to any one of claims 1-12.
CN201710978689.9A 2017-10-19 2017-10-19 Bluetooth device sharing request and control method and device, and computer storage medium Active CN107770761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710978689.9A CN107770761B (en) 2017-10-19 2017-10-19 Bluetooth device sharing request and control method and device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710978689.9A CN107770761B (en) 2017-10-19 2017-10-19 Bluetooth device sharing request and control method and device, and computer storage medium

Publications (2)

Publication Number Publication Date
CN107770761A CN107770761A (en) 2018-03-06
CN107770761B true CN107770761B (en) 2020-02-14

Family

ID=61268826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710978689.9A Active CN107770761B (en) 2017-10-19 2017-10-19 Bluetooth device sharing request and control method and device, and computer storage medium

Country Status (1)

Country Link
CN (1) CN107770761B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218994B (en) * 2018-09-05 2021-09-17 北京字节跳动网络技术有限公司 Equivalent equipment Bluetooth communication method and device based on gateway
CN109309965B (en) * 2018-09-05 2021-03-19 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on shared channel controlled by cloud
CN109151787B (en) * 2018-09-05 2021-09-17 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on cloud scheduling
CN109219028B (en) * 2018-09-05 2021-09-17 北京字节跳动网络技术有限公司 Equivalent device Bluetooth communication method and device based on cloud
CN109462841B (en) * 2018-09-05 2022-03-01 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on shared channel
CN109151786B (en) * 2018-09-05 2022-01-04 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on gateway scheduling connection
CN109089249B (en) * 2018-09-05 2022-03-22 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on gateway inquiry buffer node
CN108966200B (en) * 2018-09-05 2021-09-17 北京字节跳动网络技术有限公司 Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection
CN109309966B (en) * 2018-09-05 2021-01-22 北京字节跳动网络技术有限公司 Shared channel Bluetooth communication method and device based on gateway control
CN109089251B (en) * 2018-09-05 2021-09-17 北京字节跳动网络技术有限公司 Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection
CN110972123B (en) * 2019-12-04 2023-11-03 上海肇观电子科技有限公司 Method, hardware and computer medium for realizing wireless connection
CN112596907B (en) 2019-12-31 2021-12-03 华为技术有限公司 Method for occupying equipment and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704648A (en) * 2016-01-11 2016-06-22 深圳职业技术学院 Vehicle-mounted directional communication method and system based on bluetooth beacon and bluetooth beacon device
CN106454706A (en) * 2016-10-12 2017-02-22 广州视源电子科技股份有限公司 Notification information push method and system
CN106817671A (en) * 2017-02-14 2017-06-09 腾讯科技(深圳)有限公司 A kind of networked information sharing method, first terminal and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9872146B2 (en) * 2016-03-22 2018-01-16 Estimote Polska Sp. Z O. O. System and method for multi-beacon interaction and management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704648A (en) * 2016-01-11 2016-06-22 深圳职业技术学院 Vehicle-mounted directional communication method and system based on bluetooth beacon and bluetooth beacon device
CN106454706A (en) * 2016-10-12 2017-02-22 广州视源电子科技股份有限公司 Notification information push method and system
CN106817671A (en) * 2017-02-14 2017-06-09 腾讯科技(深圳)有限公司 A kind of networked information sharing method, first terminal and system

Also Published As

Publication number Publication date
CN107770761A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN107770761B (en) Bluetooth device sharing request and control method and device, and computer storage medium
CN107567009B (en) Bluetooth device sharing request and control method and device, and computer storage medium
CN107708099B (en) Bluetooth device sharing request and control method and device, and readable storage medium
CN107517438B (en) Method for requesting sharing of Bluetooth device, electronic device and computer storage medium
EP3075096B1 (en) Method and system for encrypted communications
KR102124510B1 (en) Methods for downloading an app and executing an app
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
EP2122922B1 (en) Remote control using instant messaging
US9742780B2 (en) Audio based discovery and connection to a service controller
CN107211029B (en) Service controller device and corresponding methods and systems of discovery and connection
US20150188855A1 (en) Systems and Methods for Instant Messaging
CN111787517A (en) Method and device for binding activation of intelligent equipment
US10298446B2 (en) Methods, apparatuses, and system for device management
CN111353141B (en) Intelligent device authority control method, server, user side device and electronic device
CN112533206A (en) Network distribution method and device, storage medium and electronic equipment
US10420156B2 (en) Wireless communication terminal, wireless communication system, wireless communication method, and non-transitory medium saving program
CN105391622A (en) Method and system for sharing resources in instant messaging or social networking application
US20180167283A1 (en) Communication apparatus and communication method, communication system, and computer-readable storage medium
CN111787540A (en) Method and device for accessing Internet of things, electronic equipment and readable storage medium
KR20190101831A (en) Electronic device and method for connecting local communication
US20230156466A1 (en) Bluetooth Networking Method for Electronic Device and Related Device
CN106789843B (en) Method, PORTAL server and system for sharing internet access
CN105306567B (en) Method and device for terminal connection
US20230017859A1 (en) Meeting control method and apparatus, device, and medium
US11678385B2 (en) Method for logging a target device into a network

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