CN107567009B - 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
CN107567009B
CN107567009B CN201710894958.3A CN201710894958A CN107567009B CN 107567009 B CN107567009 B CN 107567009B CN 201710894958 A CN201710894958 A CN 201710894958A CN 107567009 B CN107567009 B CN 107567009B
Authority
CN
China
Prior art keywords
bluetooth
shared
sharing
sharing request
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710894958.3A
Other languages
Chinese (zh)
Other versions
CN107567009A (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 CN201710894958.3A priority Critical patent/CN107567009B/en
Publication of CN107567009A publication Critical patent/CN107567009A/en
Application granted granted Critical
Publication of CN107567009B publication Critical patent/CN107567009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

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; responding to a message of accepting the Bluetooth sharing request from a control device of the Bluetooth device to be shared, and requesting a permission code from the control device; and in response to receiving the permission code from the control device, establishing a bluetooth connection with the bluetooth device to be shared for communication using the permission code. Therefore, the bluetooth connection between the bluetooth device to be shared and the sharing requesting device can be controlled and managed using the permission code without using a token for distributing the bluetooth device to be shared to the sharing requesting 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 through 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 utilizes a permission code allocated to a sharing request device by a control device of a bluetooth device to be shared to control and manage bluetooth connection between the bluetooth device to be shared and the sharing request device, without using a token for distributing the bluetooth device to be shared to the sharing request device, and moreover, a 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; the method comprises the steps that a Bluetooth sharing request is sent through Bluetooth broadcasting, wherein the Bluetooth sharing request comprises requester information and information of Bluetooth equipment to be shared; responding to a message of accepting the Bluetooth sharing request from a control device, and inquiring whether the Bluetooth device to be shared is available or not through Bluetooth broadcasting; and responding to a message from the control device that the Bluetooth device to be shared is available, and communicating with the Bluetooth device to be shared through the control device.
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; sending a message for accepting the Bluetooth sharing request to the request equipment; establishing a communication connection with the requesting device; and responding to a message of requesting a permission code for establishing Bluetooth connection with the Bluetooth device to be shared from the request device, and sending the permission code to the request device.
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 the Bluetooth sharing scheme, the control device of the Bluetooth device to be shared does not depend on the token, the permission code distributed to the sharing request device is controlled and managed by the control device of the Bluetooth device to be shared, Bluetooth connection between the Bluetooth device to be shared and the sharing request device is not needed to be distributed to the sharing request device by using the token of the Bluetooth device to be shared, and in addition, 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 sharing device 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 distributes the permission code to the sharing request device, participates and monitors the Bluetooth sharing process, avoids exposing the token to the sharing request device, and enhances the Bluetooth sharing safety. Moreover, the Bluetooth sharing process does not need cloud participation and can be completed locally through Bluetooth communication. Accordingly, the present application provides a method of requesting sharing of a bluetooth device, a method executed by a control device to control sharing of a bluetooth device to be shared, an electronic device, a computer program product, and a computer-readable storage medium, which can control and manage bluetooth connection between the bluetooth device to be shared and a sharing request device by assigning a permission code to the sharing request device through the control device of the bluetooth device to be shared, without using a token for distributing 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 an industrial environment.
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. Further, the control device a and the sharing request device B may also 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 by 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, and the like. However, the formats of the bluetooth broadcasts of different devices may be different from each other. 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 receives the bluetooth broadcast format from the cloud in step S116, the sharing request device B parses the monitored bluetooth broadcast according to the bluetooth broadcast format in step S120, so as to obtain device information of the device E to be shared, including, for example, a device type ID, a device unique identifier dID, a device MAC address, and the like.
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 sharing request device B may send a bluetooth broadcast for 5 seconds, and then switch to scanning the bluetooth broadcast for 5 seconds to receive a response to the sharing 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, device information of the device to be shared E, and request device information. The request device information may be device information of the sharing request device B, such as a device type ID, a device unique identifier dID, or a device MAC address, or may also be information of a user of the sharing request device B, such as a userid (identifier) of the user, where the userid is a unique identifier of each user, and may be, for example, a cloud-assigned 10-bit numeric string.
In an example, the information of the bluetooth device to be shared may include only the MAC address of the bluetooth device to be shared E, and the information of the sharing request device may include only the MAC address of the sharing request device B. In another example, the information of the bluetooth device to be shared may further include one or more of a type ID, a device unique identifier dID, and a user ID (userid) of the bluetooth device to be shared, and the information of the sharing request device further includes one or more of a type ID, a device unique identifier dID, and a user ID of the sharing request device B. For example, when the userid of the device to be shared E is different from the userid of the sharing request device B, the device to be shared E and the sharing request device B cannot directly establish a bluetooth connection.
In step S142, the control device a also listens to the bluetooth broadcast, and parses the listened bluetooth broadcast, and determines that the listened bluetooth broadcast includes a sharing request. Then, in step S144, the control device a determines whether the device to be shared is a device controlled by itself according to the information of the device to be shared E 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 S142 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 S146.
In step S146, 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 S142, 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 S148, and then the flow of the method 100 returns to step S142, and the control device a continues to listen to the bluetooth broadcast. If the user of the control device a finds that the sharing request is from a known source, such as a close friend, he can select to pass the sharing request and send a message to the sharing request device B that the sharing request passed. If the control device a decides to accept the sharing request of the sharing request device B, the control device a may record the MAC address of the sharing request device B. Here, the message that the control device a sends to the sharing request device B to pass or reject the sharing request may be sent in a bluetooth broadcast form, or may be sent through WIFI, the internet, or a mobile communication network via a cloud. Upon passing the request, the message passing the request may also include information related to control device a, such as its device MAC address or user information.
When the sharing request device B receives a message passing the sharing request from the control device a, the sharing request device B stops sending the request sharing broadcast, and an icon of the device E to be shared may appear in the device list available to the sharing request device B. The sharing request device B may record the MAC address of the control device a.
In one embodiment, as shown in step S160, the user of the sharing request device B may click the icon, and the sharing request device B may establish a communication connection with the control device a, and send a permission code request to the control device a through the communication connection.
In another embodiment, as shown in step S152, before step S160, the sharing requesting device B may initiate a bluetooth connection request to the device E to be shared. Then, in step S154, the device E to be shared returns a bluetooth broadcast message to the sharing requesting device B, requesting a permission code. In response to the message requiring the license code, the flow of the method 100 proceeds to step S160.
In step S172, the control device a may return a permission code for performing bluetooth connection with the device E to be shared to the sharing request device B through the communication connection established by the sharing request device B. If the sharing requesting device B does not receive the returned permission code (no in step S172), the process of the method 100 proceeds to step S176, the device E to be shared is unavailable, and the process of the method 100 ends. If the sharing request device B receives the returned permission code (yes in step S172), in step S180, the sharing request device B may perform a bluetooth connection with the device to be shared E. At this time, the sharing request device B may send the license code to the device to be shared E, and the device to be shared E checks the validity of the license code, and if invalid, disconnects the connection.
The license code may be a 16-bit string, which includes a device MAC address, a timestamp, an effective duration, a usage right, and the like, and may be encrypted by a token. The token is a secret key for communication between the control device and the device to be shared, and the device to be shared can obtain the information through decryption after receiving the token. The permission code is time-efficient, determined by the length of time of validity. In addition, the license code generation mode is various, and the license code can be placed at the cloud end or the local mobile end. One license code can be generated at a time, and a plurality of license codes can be generated in batch at a time, so that the mode is very flexible. The expression form of the license code may also be not limited to a character string, but may also be a barcode, a two-dimensional code, or another form, as long as the sharing requesting device B can recognize and convert the sharing requesting device B into an encrypted string that can be recognized by the device E to be shared.
The communication connection established between the sharing request device B and the control device a is not necessarily limited to bluetooth, and may adopt any communication mode, including bluetooth WIFI, internet or mobile communication network, or may communicate via a cloud.
The device E to be shared may set a timer to calculate the time elapsed after the sharing request device B establishes a bluetooth connection with the device E to be shared. According to the effective duration of the permission code received from the sharing request device B, the device E to be shared may push a notification by bluetooth to notify the sharing request device B that the permission code needs to be updated even if the time is out. At this time, the sharing request device B may request the update permission code through the communication connection established with the control device a. The user of the control device a decides whether to update the license code according to its predetermined rule. If the license code is approved to be updated, relevant information in the license code, such as a timestamp, an effective time length and the like, is updated, and then the sharing request device B is returned. The sharing request device B can send the updated permission code to the device E to be shared, the device E to be shared checks the validity of the permission code, and the Bluetooth connection with the sharing request device B is continued according to the updated permission code. If the device E to be shared does not receive the updated permission code after the validity duration (expiration) is exceeded, the device E to be shared can disconnect the bluetooth connection by itself.
In an example, the control device a may interrupt communication between the control device B and the device at any time, and by setting the valid duration of the permission code to be short, it is convenient to control the time for the third party user of the sharing request device B to use the device to be shared more finely.
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 present application, the control device of the bluetooth device to be shared can allocate the permission code to the sharing request device to control and manage bluetooth connection between the bluetooth device to be shared and the sharing request device, without distributing the token of the bluetooth device to be shared to the sharing request device, and the bluetooth sharing process does not need cloud participation (the cloud merely 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 permission code distributed to the sharing request device is temporary and becomes invalid after the effective duration is exceeded, and the Bluetooth sharing duration can be controlled by setting the effective duration of the permission code; although the sharing request device directly establishes the bluetooth communication with the bluetooth device to be shared, the communication process is strictly controlled by the control device, and therefore the bluetooth communication is controllable. In addition, the Bluetooth sharing process is localized, cloud participation is not needed, and application is more convenient. Through the Bluetooth sharing, the control device can not directly participate in the communication between the sharing request device and the Bluetooth device to be shared, but controls the time efficiency and the authority through the dynamic permission code, and is low in coupling and effective.
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 (18)

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;
responding to a message of accepting the Bluetooth sharing request from a control device of the Bluetooth device to be shared, and requesting a permission code from the control device; and
in response to receiving the permission code from the control device, establishing a Bluetooth connection with the Bluetooth device to be shared for communication using the permission code;
wherein the requesting a permission code from the control device in response to the message from the control device of the to-be-shared bluetooth device accepting the bluetooth sharing request includes: establishing a communication connection with the control device in response to a message from the control device accepting the Bluetooth sharing request; and issuing a permission code request to the control device over the communication connection; and the number of the first and second electrodes,
the establishing a communication connection with the control device in response to the message from the control device accepting the bluetooth sharing request includes: responding to a message of accepting the Bluetooth sharing request from the control equipment, and initiating a Bluetooth connection request to the Bluetooth equipment to be shared; and responding to a message of requiring the permission code from the Bluetooth device to be shared, and establishing communication connection with the control device.
2. 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, and the information of the requesting device comprises a MAC address of the requesting device.
3. The method of claim 2, wherein the information of the Bluetooth device to be shared further comprises one or more of a type ID, a device unique identification (dID) and a user ID of the Bluetooth device to be shared, and the information of the requesting device further comprises one or more of a type ID, a device unique identification (dID) and a user ID of the requesting device.
4. The method of claim 1, wherein the communication connection comprises any one of bluetooth, WI-FI, and NFC.
5. The method of claim 1, wherein the establishing a bluetooth connection with the bluetooth device to be shared using the permission code comprises:
and sending the license code to the Bluetooth device to be shared for verifying the validity of the license code.
6. The method of claim 1, wherein the permission code comprises at least one of a MAC address, a timestamp, a validity duration, and a usage right of the bluetooth device to be shared.
7. The method of claim 1, further comprising:
requesting an update permission code from the control device in response to a notification from the to-be-shared bluetooth device that the permission code is about to expire; and
and sending the updated permission code received from the control equipment to the Bluetooth equipment to be shared.
8. The method of claim 1, wherein the license code is encrypted by a communication key between the Bluetooth device to be shared and its owner.
9. The method of claim 1, further comprising:
identifying the format of the Bluetooth broadcast before analyzing the Bluetooth broadcast of the Bluetooth device to be shared; and
and if the Bluetooth broadcast format is identified to be failed, uploading the description information of the Bluetooth device to be shared to a cloud end, and receiving the Bluetooth format of the Bluetooth device to be shared provided by the cloud end.
10. The method of claim 9, wherein the description information of the bluetooth device to be shared comprises one or more of a type, a manufacturer, a model, and an image of the bluetooth device to be shared.
11. The method of claim 9, wherein identifying the format of the bluetooth broadcast comprises matching the format of the bluetooth broadcast to a known format, and
when the Bluetooth format of the Bluetooth device to be shared provided by the cloud is received, the method further comprises the step of storing the Bluetooth format as a known format.
12. 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;
sending a message for accepting the Bluetooth sharing request to the request equipment;
establishing a communication connection with the requesting device; and
responding to a message of requesting a permission code for establishing Bluetooth connection with the Bluetooth device to be shared from the request device, and sending the permission code to the request device;
the communication connection is established by the request device in response to a message of requiring a permission code from the Bluetooth device to be shared after the request device initiates a Bluetooth connection request to the Bluetooth device to be shared in response to a message of receiving the Bluetooth sharing request by the control device.
13. The method of claim 12, 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.
14. The method of claim 12, further comprising:
sending the updated license code to the requesting device in response to a message from the requesting device requesting the license code to be updated.
15. The method of claim 12, wherein the permission code includes an active duration for controlling a bluetooth connection of the requesting device with the bluetooth device to be shared.
16. An electronic device, comprising:
a Bluetooth module for performing communication using a Bluetooth protocol; and
a processor configured to execute a computer program in a memory to perform the method of any one of claims 1-15.
17. The electronic device of claim 16, wherein the electronic device comprises a cell phone, tablet, or personal digital assistant.
18. 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-15.
CN201710894958.3A 2017-09-28 2017-09-28 Bluetooth device sharing request and control method and device, and computer storage medium Active CN107567009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710894958.3A CN107567009B (en) 2017-09-28 2017-09-28 Bluetooth device sharing request and control method and device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710894958.3A CN107567009B (en) 2017-09-28 2017-09-28 Bluetooth device sharing request and control method and device, and computer storage medium

Publications (2)

Publication Number Publication Date
CN107567009A CN107567009A (en) 2018-01-09
CN107567009B true CN107567009B (en) 2020-04-10

Family

ID=60983176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710894958.3A Active CN107567009B (en) 2017-09-28 2017-09-28 Bluetooth device sharing request and control method and device, and computer storage medium

Country Status (1)

Country Link
CN (1) CN107567009B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650667B (en) * 2018-05-15 2021-04-27 北京字节跳动网络技术有限公司 Terminal scheduling method and device
CN109219028B (en) * 2018-09-05 2021-09-17 北京字节跳动网络技术有限公司 Equivalent device Bluetooth communication method and device based on cloud
CN109309965B (en) * 2018-09-05 2021-03-19 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on shared channel controlled by cloud
CN113411789A (en) * 2020-03-16 2021-09-17 瑞昱半导体股份有限公司 Bluetooth mesh network system with control right sharing mechanism and control method thereof
CN111447602B (en) * 2020-06-17 2020-09-29 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN112770201A (en) * 2020-11-16 2021-05-07 无锡时柒伍科技有限公司 Lyric display stereo set that bluetooth is connected
CN112929862B (en) * 2021-02-04 2023-04-25 青岛海信传媒网络技术有限公司 Bluetooth Beacon protocol-based device connection method
CN113347242B (en) * 2021-05-28 2023-04-18 Oppo广东移动通信有限公司 Cross-device resource access method and device, storage medium and electronic device
WO2023184560A1 (en) * 2022-04-02 2023-10-05 Oppo广东移动通信有限公司 Device sharing method and apparatus, device, storage medium, and program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795692A (en) * 2012-10-31 2014-05-14 中国电信股份有限公司 Open authorization method, open authorization system and authentication and authorization server
CN106921647A (en) * 2015-12-28 2017-07-04 现代自动车株式会社 Automobile management system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6684331B1 (en) * 1999-12-22 2004-01-27 Cisco Technology, Inc. Method and apparatus for distributing and updating group controllers over a wide area network using a tree structure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795692A (en) * 2012-10-31 2014-05-14 中国电信股份有限公司 Open authorization method, open authorization system and authentication and authorization server
CN106921647A (en) * 2015-12-28 2017-07-04 现代自动车株式会社 Automobile management system and method

Also Published As

Publication number Publication date
CN107567009A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN107567009B (en) Bluetooth device sharing request and control method and device, and computer storage medium
CN107770761B (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
CN110505606B (en) Bluetooth Mesh network and distribution network authentication method, equipment and storage medium thereof
JP6135963B2 (en) Method, terminal, server, and system for sharing a virtual SIM card among a plurality of terminals
CN108924135B (en) Network access method and device
CN105243318B (en) Method and device for determining control authority of user equipment and terminal equipment
US10645557B2 (en) Transferable ownership tokens for discrete, identifiable devices
EP3323246B1 (en) Using temporary credentials in guest mode
EP3276910B1 (en) Bluetooth-based identity recognition method and device
JP6298217B2 (en) Information push method, server, sharer client, and third party client
KR101743195B1 (en) Method and apparatus for providing information, program and recording medium
CN106211359B (en) Method and device for enabling device to obtain service
CN111787517A (en) Method and device for binding activation of intelligent equipment
CN108282768B (en) Bluetooth device sharing control and request method and device, and computer storage medium
US20190089693A1 (en) Systems and methods for authenticating internet-of-things devices
JP7170550B2 (en) Management device and its control method
WO2017206524A1 (en) Electronic device control method, terminal and control system
US11558844B2 (en) Method for registering a target device with a network
CN111787540A (en) Method and device for accessing Internet of things, electronic equipment and readable storage medium
JP6516009B2 (en) Device authentication system, management apparatus and device authentication method
KR20160131066A (en) Method and system for establishing a connection between a seeker device and a target device
US10498716B2 (en) Management system, communication control method, and communication system
US20230156466A1 (en) Bluetooth Networking Method for Electronic Device and Related Device

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