CN108966200B - Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection - Google Patents

Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection Download PDF

Info

Publication number
CN108966200B
CN108966200B CN201811034175.9A CN201811034175A CN108966200B CN 108966200 B CN108966200 B CN 108966200B CN 201811034175 A CN201811034175 A CN 201811034175A CN 108966200 B CN108966200 B CN 108966200B
Authority
CN
China
Prior art keywords
bluetooth
information
equivalent
equipment
connection
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
CN201811034175.9A
Other languages
Chinese (zh)
Other versions
CN108966200A (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811034175.9A priority Critical patent/CN108966200B/en
Publication of CN108966200A publication Critical patent/CN108966200A/en
Application granted granted Critical
Publication of CN108966200B publication Critical patent/CN108966200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The disclosure discloses a Bluetooth communication method, a device, an electronic device and a computer readable storage medium for inquiring equivalent devices based on Bluetooth connection. The Bluetooth communication method for inquiring the equivalent equipment based on the Bluetooth connection comprises the following steps: creating a first service; transmitting a first broadcast with information of a third device through the first service; connecting to a second device in response to receiving a connection request of the second device; receiving information of a fourth device from the second device, the fourth device being an equivalent device of the third device; and connecting the fourth equipment according to the information of the fourth equipment. The embodiment of the disclosure forwards the information of the equivalent device through the user equipment occupying the Bluetooth device, thereby solving the problem of monopolization of the Bluetooth device.

Description

Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection
Technical Field
The present disclosure relates to the field of communications, and in particular, to a bluetooth communication method and apparatus for querying an equivalent device based on bluetooth connection, an electronic device, and a computer-readable storage medium.
Background
In recent years, as the technology updating speed is increasing, people hope to apply the emerging technology to daily life. Compared with the traditional home product, the intelligent and networked home product is more popular due to the characteristics of safety, simplicity, convenience, powerful functions and the like. By means of the mature automation technology, the sensor technology, the electrical technology and the embedded technology, part of household products are intelligentized to be practical, such as intelligent curtains, intelligent lighting, intelligent sockets and the like. However, the final purpose of smart home is not the intellectualization of a single home product, but a home network is formed by a plurality of home devices, and the daily home life is continuously more convenient and humanized by combining the smart client devices which are popularized at present, such as smart phones, smart tablets and the like. At present, the standardization degree is high in the aspect of intelligent household terminal equipment, and the mainstream wireless communication mode is bluetooth communication.
However, when bluetooth communication is used, there is an exclusive problem of bluetooth devices, that is, when a bluetooth device is already connected by one device, other devices are connected to the bluetooth device, and the connected device must wait for the disconnection of the bluetooth communication before the bluetooth device can be connected, which causes inconvenience in the use of the bluetooth device.
Disclosure of Invention
In a first aspect, an embodiment of the present disclosure provides a bluetooth communication method for querying an equivalent device based on bluetooth connection, including: creating a first service; transmitting a first broadcast with information of a third device through the first service; connecting to a second device in response to receiving a connection request of the second device;
receiving information of a fourth device from the second device, the fourth device being an equivalent device of the third device; and connecting the fourth equipment according to the information of the fourth equipment. .
Further, the bluetooth communication method for inquiring the equivalent device based on the bluetooth connection further includes: disconnecting the fourth device; and sending a second broadcast through the first service, wherein the second broadcast comprises information of the fourth device and an identifier indicating that the fourth device is idle.
Further, before the scanning the first broadcast of the second device, the first broadcast having information of a third device, the method further includes: transmitting a connection request for requesting connection of a third device using Bluetooth; determining that the connection request received no response or was denied.
Further, the information of the third device is the MAC address of the third device, and the information of the fourth device is the MAC address of the fourth device.
In a second aspect, an embodiment of the present disclosure provides a bluetooth communication method for querying an equivalent device based on bluetooth connection, including: receiving a connection request of a second device and connecting to the second device; sending a scan instruction to the second device, the scan instruction causing the second device to scan a first broadcast with information of a third device; receiving an equivalent device query request sent by the second device; and in response to the inquiry that the fourth device is the equivalent device, sending the information of the fourth device to the second device.
Further, after the sending the information of the fourth device to the second device, the method further includes: setting the fourth device to a busy state.
Further, after the setting the fourth device to the busy state, the method further includes: receiving a state updating instruction sent by second equipment; and setting the fourth equipment to be in an idle state according to the state updating instruction.
Further, the information of the fourth device includes: MAC address of the fourth device.
Further, the sending information of a fourth device to the second device in response to the query that the fourth device is an equivalent device includes:
and inquiring the equivalent device list, and sending the information of the first free fourth device in the list to the second device.
In a third aspect, an embodiment of the present disclosure provides a bluetooth communication method for querying an equivalent device based on bluetooth connection, including: sending a connection request to a third device and connecting to the third device; receiving a scanning instruction sent by third equipment, and scanning a first broadcast with information of the third equipment, wherein the first broadcast is sent by a first service of the first equipment; sending a connection request to the first device in response to scanning for the first broadcast; sending an equivalent device query request to the third device in response to connecting to the first device; receiving information of fourth equipment sent by third equipment, wherein the fourth equipment is equivalent equipment of the third equipment; and forwarding the information of the fourth device to the first device.
Further, after the forwarding the information of the fourth device to the first device, the method further includes: scanning a second broadcast with information of the fourth device and an identifier indicating that the fourth device is idle; in response to scanning for the second broadcast, sending a fourth device status update instruction to the third device.
In a fourth aspect, an embodiment of the present disclosure provides a bluetooth communication apparatus for querying an equivalent device based on bluetooth connection, including:
a first creation module for creating a first service;
a first broadcasting module, configured to send a first broadcast with information of a third device through the first service;
a first connection module for connecting to a second device in response to receiving a connection request of the second device;
a first receiving module, configured to receive information of a fourth device from the second device, where the fourth device is an equivalent device of the third device;
and the second connecting module is used for connecting the fourth equipment according to the information of the fourth equipment.
Further, the bluetooth communication apparatus for querying equivalent devices based on bluetooth connection further includes:
a first disconnection module for disconnecting the connection with the fourth device;
and a second broadcast module, configured to send a second broadcast through the first service, where the second broadcast includes information of the fourth device and an identifier indicating that the fourth device is idle.
Further, the bluetooth communication apparatus for querying equivalent devices based on bluetooth connection further includes:
the first connection sending module is used for sending a connection request, and the connection request is used for requesting to use Bluetooth to connect a third device;
a determining module for determining that the connection request has not received a response or has been denied.
In a fifth aspect, an embodiment of the present disclosure provides a bluetooth communication apparatus for querying an equivalent device based on bluetooth connection, including:
a third connection module, configured to receive a connection request of a second device, and connect to the second device;
a scanning instruction sending module, configured to send a scanning instruction to the second device, where the scanning instruction causes the second device to scan a first broadcast with information of a third device;
the query request receiving module is used for receiving the equivalent device query request sent by the second device;
and the first sending module is used for responding to the inquiry that the fourth equipment is equivalent equipment and sending the information of the fourth equipment to the second equipment.
Further, the bluetooth communication apparatus for querying equivalent devices based on bluetooth connection further includes:
a first setting module configured to set the fourth device to a busy state.
Further, the bluetooth communication apparatus for querying equivalent devices based on bluetooth connection further includes:
the updating instruction receiving module is used for receiving a state updating instruction sent by the second equipment;
and the second setting module is used for setting the fourth equipment into an idle state according to the state updating instruction.
Further, the first sending module is configured to query the equivalent device list, and send information of a first idle fourth device in the list to the second device.
In a sixth aspect, an embodiment of the present disclosure provides a bluetooth communication apparatus for querying an equivalent device based on bluetooth connection, including:
a fourth connection module, configured to send a connection request to a third device, and connect to the third device;
a scanning instruction receiving module, configured to receive a scanning instruction sent by a third device, and scan a first broadcast with information of the third device, where the first broadcast is sent by a first service of a first device;
a connection request sending module for sending a connection request to the first device in response to scanning the first broadcast;
a query request sending module, configured to send an equivalent device query request to the third device in response to being connected to the first device;
a second receiving module, configured to receive information of a fourth device sent by a third device, where the fourth device is an equivalent device of the third device;
and the first forwarding module is used for forwarding the information of the fourth device to the first device.
Further, the bluetooth communication apparatus for querying equivalent devices based on bluetooth connection further includes:
a second scanning module, configured to scan a second broadcast, where the second broadcast includes information of the fourth device and an identifier indicating that the fourth device is idle;
and the updating instruction sending module is used for responding to the scanning of the second broadcast and sending a fourth equipment state updating instruction to the third equipment.
In a seventh aspect, an embodiment of the present disclosure provides a bluetooth communication device for querying an equivalent device based on bluetooth connection, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of bluetooth communication for querying an equivalent device based on bluetooth connectivity of any of the first aspect.
In an eighth aspect, an embodiment of the present disclosure provides a bluetooth communication device for querying an equivalent device based on bluetooth connection, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of bluetooth communication for querying an equivalent device based on bluetooth connectivity of any of the second aspects as previously described.
In a ninth aspect, an embodiment of the present disclosure provides a bluetooth communication device for querying an equivalent device based on bluetooth connection, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of bluetooth communication for querying an equivalent device based on bluetooth connectivity of any of the third aspect.
In a tenth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium, which stores computer instructions for causing a computer to execute the bluetooth communication method for querying an equivalent device based on bluetooth connection in any one of the foregoing first aspects.
In an eleventh aspect, the disclosed embodiments provide a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute any of the bluetooth communication methods for querying an equivalent device based on bluetooth connection in the foregoing second aspect.
In a twelfth aspect, the disclosed embodiments provide a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute any of the bluetooth communication methods for querying an equivalent device based on bluetooth connection in the third aspect.
The embodiment of the disclosure provides a Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection, electronic equipment and a computer readable storage medium. The Bluetooth communication method for inquiring the equivalent equipment based on the Bluetooth connection comprises the following steps: scanning a first broadcast, the first broadcast being sent by a second device and carrying information of a third device; connecting to the second device in response to scanning for the first broadcast; receiving information of a fourth device from the second device, the fourth device being an equivalent device of the third device; and connecting the fourth equipment according to the information of the fourth equipment. The embodiment of the disclosure forwards the information of the equivalent device by the user equipment occupying the Bluetooth device, thereby solving the problem of monopolization of the Bluetooth device and enabling the user equipment needing to be connected with the Bluetooth device to be connected with the required Bluetooth device in time.
The foregoing is a summary of the present disclosure, and for the purposes of promoting a clear understanding of the technical means of the present disclosure, the present disclosure may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained according to the drawings without creative efforts for those skilled in the art.
FIG. 1 is a schematic diagram of an exemplary application environment of an embodiment of the present disclosure;
fig. 2 is a flowchart of a first embodiment of a bluetooth communication method for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure;
fig. 3 is a flowchart of an embodiment of a bluetooth communication method for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure;
fig. 4 is a flowchart of an embodiment of a bluetooth communication method for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure
Fig. 5 is a communication flow diagram of a bluetooth communication system for querying an equivalent device based on bluetooth connection provided by an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a first bluetooth communication apparatus for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a second embodiment of a bluetooth communication apparatus for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a third embodiment of a bluetooth communication apparatus for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a bluetooth communication device for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure;
FIG. 10 is a schematic structural diagram of a computer-readable storage medium provided in accordance with an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a bluetooth communication terminal for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
Fig. 1 is a schematic diagram of a typical application scenario of the present disclosure. In a typical application, there are a plurality of user equipments 101 in the system, typically, the user equipment 101 may be a smart phone, the user equipment 101 may control the bluetooth device 102 through a specific APP, typically, the bluetooth device 102 may be a bluetooth lamp, the bluetooth device 102 may be managed by a bluetooth gateway 103, the user equipment 101 and the bluetooth gateway 103 and the bluetooth device 102 and the bluetooth gateway 103 are connected through a bluetooth link 105, and the bluetooth gateway 103 may be connected with a cloud server through wifi or a 4G network 106.
Fig. 2 is a flowchart of a first embodiment of a bluetooth communication method for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure, where the bluetooth communication method for querying an equivalent device based on bluetooth connection according to this embodiment may be executed by a bluetooth communication apparatus for querying an equivalent device based on bluetooth connection, the bluetooth communication apparatus for querying an equivalent device based on bluetooth connection may be implemented as software, or implemented as a combination of software and hardware, and the bluetooth communication apparatus for querying an equivalent device based on bluetooth connection may be integrated in a certain device in a communication system, such as a communication terminal device. As shown in fig. 2, the method comprises the steps of:
step S201, a first service is established;
in this step, user equipment B creates the first service locally, which may be a gatt server.
In this step, the user equipment B scans for a first broadcast, which is sent by the user equipment a and carries information of a third device, which is a bluetooth device C connected to the user equipment a, and the information of the third device may be a MAC address of the bluetooth device C. Where bluetooth device C is the device to which user device B wants to connect, but is temporarily occupied by user device a. It should be noted that, although the information of the device may be the MAC address of the device in the present disclosure, it is understood that the information of the device is not limited to the MAC address, and any information that can distinguish the device may be incorporated in the present disclosure.
Step S202, a first broadcast is sent through the first service, and the first broadcast has information of a third device;
in this step, the user equipment B transmits a first broadcast through the first service, and the first broadcast has information of a third device, the third device is a bluetooth device C connected with the user equipment a, and the information of the third device may be a MAC address of the bluetooth device C. Where bluetooth device C is the device to which user device B wants to connect, but is temporarily occupied by user device a. It should be noted that, although the information of the device may be the MAC address of the device in the present disclosure, it is understood that the information of the device is not limited to the MAC address, and any information that can distinguish the device may be incorporated in the present disclosure.
Step S203, responding to the receiving of the connection request of the second device, connecting to the second device;
when the user equipment A scans the first broadcast with the MAC address of the Bluetooth equipment C, a connection request is sent to the user equipment B, and after the user equipment B receives the connection request of the user equipment A, the user equipment A is connected.
Step S204, receiving information of a fourth device from the second device, wherein the fourth device is an equivalent device of the third device;
in this step, the user equipment B receives information of a fourth device transmitted from the user equipment a, the fourth device being an equivalent device of the bluetooth device C, the bluetooth device D, and the information of the fourth device may be a MAC address of the bluetooth device D. The equivalent device may be the same type of device as the second device or a device with the same function, for example, in an application scenario, there are 4 bluetooth lamps in a room, and a user wants to turn on 1 of the 4 bluetooth lamps, and the 4 bluetooth lamps have the same brightness and are located close to each other, so that if only one of the bluetooth lamps is turned on, the effect of turning on any one of the bluetooth lamps is the same, and the 4 bluetooth lamps are equivalent devices of each other.
Step S205, connecting the fourth device according to the information of the fourth device.
In this step, the user device B uses the received MAC address of the bluetooth device D to connect to the bluetooth device D, and since the bluetooth device D is an equivalent device of the bluetooth device C, it can process data to be processed by the user device B, and the effect is the same as that of using the bluetooth device C, and is completely transparent and non-sensible to the user.
In this embodiment, after step S205, the method may further include:
step S206, disconnecting the fourth device;
step S207, sending a second broadcast through the first service, where the second broadcast includes the information of the fourth device and an identifier indicating that the fourth device is idle.
And when the communication between the user equipment B and the Bluetooth equipment D is finished, disconnecting the connection with the Bluetooth equipment D. Or the user equipment B uses an authentication means with time efficiency such as a token to connect the Bluetooth equipment D, and when the token expires, the connection with the Bluetooth equipment D is disconnected. At this time, the user equipment B may transmit a second broadcast with the MAC address of the bluetooth device D and the identifier indicating that the bluetooth device D has been idle through the first service created locally, so that the bluetooth device C updates the state of the bluetooth device D. Wherein the first service may be a gatt server created locally by user equipment B.
In this embodiment, before step S201, the method may further include:
step S208, sending a connection request, wherein the connection request is used for requesting to use Bluetooth to connect a third device;
step S209 determines that the connection request has not received a response or is rejected.
The user equipment B connects to a third device, such as the bluetooth device C, but the third device is already occupied by the connection of other devices, such as the user equipment a, and when the user equipment B determines that the third device cannot be connected, it starts to perform step S201.
The embodiment of the disclosure provides a Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection, electronic equipment and a computer readable storage medium. The Bluetooth communication method for inquiring the equivalent equipment based on the Bluetooth connection comprises the following steps: creating a first service; transmitting a first broadcast with information of a third device through the first service; connecting to a second device in response to receiving a connection request of the second device; receiving information of a fourth device from the second device, the fourth device being an equivalent device of the third device; and connecting the fourth equipment according to the information of the fourth equipment. The embodiment of the disclosure forwards the information of the equivalent device by the user equipment occupying the Bluetooth device, thereby solving the problem of monopolization of the Bluetooth device and enabling the user equipment needing to be connected with the Bluetooth device to be connected with the required Bluetooth device in time.
Fig. 3 is a flowchart of a first embodiment of a bluetooth communication method for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure, where the bluetooth communication method for querying an equivalent device based on bluetooth connection according to this embodiment may be executed by a bluetooth communication apparatus for querying an equivalent device based on bluetooth connection, the bluetooth communication apparatus for querying an equivalent device based on bluetooth connection may be implemented as software, or implemented as a combination of software and hardware, and the bluetooth communication apparatus for querying an equivalent device based on bluetooth connection may be integrated in a device in a communication system, such as a bluetooth device. As shown in fig. 3, the method comprises the steps of:
step 301, receiving a connection request of a second device, and connecting to the second device;
in this step, the bluetooth device C receives a connection request of the user device a and establishes a connection with the user device a.
Step 302, sending a scan instruction to the second device, the scan instruction causing the second device to scan a first broadcast with information of a third device;
after establishing a connection with a user equipment a, a bluetooth device C sends a scanning instruction to the user equipment a, so that the user equipment a continuously scans whether other devices need to be connected to the bluetooth device C, where the user equipment a scans a first broadcast with information of the bluetooth device C, and the information of the bluetooth device C may be a MAC address of the bluetooth device C.
Step 303, receiving an equivalent device query request sent by the second device;
in this step, the bluetooth device C receives an equivalent device query request sent by the user equipment a, where the equivalent device query request is used to query an equivalent device of the bluetooth device C, and the equivalent device may be preset and stored in the bluetooth device C. Or the bluetooth gateway may update the collected data to the bluetooth device C, which is not limited herein. In short, the bluetooth device C stores therein information of equivalent devices of the bluetooth device C.
And 304, responding to the inquiry that the fourth device is the equivalent device, and sending the information of the fourth device to the second device.
In this step, after receiving the inquiry request, the bluetooth device C inquires the stored equivalent device list, where all equivalent devices of the bluetooth device C and the current states of the equivalent devices are stored in the equivalent device list, where the current states may be busy and idle, and after inquiring the equivalent devices, the bluetooth device C may send information of a first idle bluetooth device D in the list to the user device a. In an embodiment, in order to ensure the query efficiency, the bluetooth device C may also maintain two lists, namely a free equivalent device list and a busy equivalent device list, so that the free equivalent device list is directly queried when looking up the table. And after inquiring that the Bluetooth device D is an equivalent device of the Bluetooth device C, sending the information of the Bluetooth device D to the user device A, wherein the information of the Bluetooth device D can be the MAC address of the Bluetooth device D.
In this embodiment, after step S304, the method may further include:
step S305, setting the fourth device to be in a busy state;
after the information of the bluetooth device D is sent to the user device a, it indicates that there is another user device to connect to the bluetooth device D, at this time, the status of the bluetooth device D may be set to a busy status, and the bluetooth device D may be moved to the busy equivalent device table.
In this embodiment, after step S305, the method further includes:
step S306, receiving a state updating instruction sent by the second equipment;
step S307, setting the fourth device to an idle state according to the state update instruction.
After the communication between the user equipment B and the Bluetooth equipment D is finished, a second broadcast is sent, the user equipment A scans the second broadcast, and the second broadcast contains the information of the Bluetooth equipment D and an identifier which represents that the Bluetooth equipment D is idle and can be connected with other user equipment. When the user equipment A scans the second broadcast, a state updating instruction is generated according to the information of the Bluetooth equipment D in the second broadcast, such as the MAC address of the Bluetooth equipment D, and is sent to the Bluetooth equipment C, the Bluetooth equipment C receives the state updating instruction sent by the user equipment A, a busy equivalent equipment list is inquired according to the information of the Bluetooth equipment D in the instruction, the state of the Bluetooth equipment D is set to be an idle state, and the Bluetooth equipment D is moved to the idle equivalent equipment list.
Fig. 4 is a flowchart of a first embodiment of a bluetooth communication method for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure, where the bluetooth communication method for querying an equivalent device based on bluetooth connection according to this embodiment may be executed by a bluetooth communication apparatus for querying an equivalent device based on bluetooth connection, the bluetooth communication apparatus for querying an equivalent device based on bluetooth connection may be implemented as software, or implemented as a combination of software and hardware, and the bluetooth communication apparatus for querying an equivalent device based on bluetooth connection may be integrated in a certain device in a communication system, such as a communication terminal. As shown in fig. 4, the method includes the steps of:
step S401, sending a connection request to a third device, and connecting to the third device;
in this step, the user equipment a sends a connection request to the bluetooth device C, connects to the bluetooth device C, and monopolizes the bluetooth device C.
Step S402, receiving a scanning instruction sent by a third device, and scanning a first broadcast with information of the third device, wherein the first broadcast is sent by a first service of the first device;
after being connected by the user equipment a, the bluetooth device C sends a scanning instruction to the user equipment a, after receiving the scanning instruction sent by the bluetooth device C, the user equipment a continuously scans a first broadcast, the first broadcast is sent by a first service on the user equipment B, the first service may be a gatt server on the user equipment B, the first broadcast contains information of the bluetooth device C, and the information of the bluetooth device C may be a MAC address of the bluetooth device C, and the like.
Step S403, in response to scanning the first broadcast, sending a connection request to the first device;
when the user equipment A scans the first broadcast sent by the user equipment B, the user equipment A actively sends a connection request to the user equipment B.
Step S404, in response to connecting to the first device, sending an equivalent device query request to the third device;
after connecting to the user equipment B, the user equipment a sends an equivalent device inquiry request to the bluetooth device C, so that the bluetooth device C inquires its equivalent device.
Step S405, receiving information of a fourth device sent by a third device, wherein the fourth device is an equivalent device of the third device;
after receiving the inquiry request, the bluetooth device C inquires the equivalent device, and when the inquiry result shows that the equivalent device is the bluetooth device D, the bluetooth device C sends information of the bluetooth device D to the user device a, and the user device a receives the information of the bluetooth device D sent by the bluetooth device C, where the information of the bluetooth device D may be an MAC address of the bluetooth device D.
Step S406, forwarding the information of the fourth device to the first device.
After receiving the information of the Bluetooth device D, the user device A forwards the information of the Bluetooth device D to the user device B.
In this embodiment, after step S406, the method may further include:
step S407, scanning a second broadcast, wherein the second broadcast has information of the fourth device and an identifier indicating that the fourth device is idle;
step S408, in response to scanning the second broadcast, sending a fourth device status update instruction to the third device.
In this step, after the bluetooth device D disconnects from the user device B, the user device B may send a second broadcast, where the second broadcast includes information of the bluetooth device D and an identifier indicating that the bluetooth device D is idle, and when the user device a scans the second broadcast, it generates a status update instruction of the bluetooth device D and sends the status update instruction to the bluetooth device C.
Through the technical scheme in the embodiment, when the user equipment B is connected with the Bluetooth equipment, the user equipment C needing to be connected is found to be occupied, the user equipment B can send the broadcast signal needing to be connected with the Bluetooth equipment C, the user equipment A connected with the Bluetooth equipment C can continuously scan the broadcast signal needing to be connected with the Bluetooth equipment C after being connected with the Bluetooth equipment C, and after the broadcast signal is scanned, the information of the equivalent equipment Bluetooth equipment D of the Bluetooth equipment C is sent to the user equipment B, so that the user equipment B is connected with the Bluetooth equipment D, and the problem that the Bluetooth equipment occupies and cannot be connected is solved.
Fig. 5 is an overall flowchart of a bluetooth communication system for querying equivalent devices based on bluetooth connection according to an embodiment of the present disclosure, and as shown in fig. 5, the overall system includes four parts, namely a user equipment a, a bluetooth device C, a user equipment B, and a bluetooth device D. In this communication system, after user device a connects to bluetooth device C, bluetooth device C instructs user device a to continuously scan for broadcasts with the MAC address of bluetooth device C. The user equipment B is also connected with the Bluetooth equipment C, but the Bluetooth equipment C is not connected because the Bluetooth equipment C is connected by the user A, at the moment, the user equipment B establishes a gatt server locally to broadcast the MAC address of the Bluetooth equipment C to indicate that the user needs to be connected with the Bluetooth equipment C, after the user equipment A scans the broadcast of the user equipment B, the user equipment A is actively connected with the user equipment B and sends an equivalent equipment inquiry request to the Bluetooth equipment C, the Bluetooth equipment C inquires the equivalent equipment of the user equipment C and inquires that the Bluetooth equipment D is the equivalent equipment of the user equipment C, at the moment, the Bluetooth equipment C sends the MAC address of the Bluetooth equipment D to the user equipment A, the user equipment A forwards the MAC address of the Bluetooth equipment D to the user equipment B, and the user equipment B is connected with the Bluetooth equipment D according to the MAC address of the Bluetooth equipment D.
In an embodiment, after the user equipment B is connected to the bluetooth device D, the bluetooth device D may send a scanning instruction to the user equipment B, and the user equipment B scans the broadcast with the information of the bluetooth device D, so that when other equipment wants to connect to the bluetooth device D, the technical scheme in the above embodiment may be repeated, where the user equipment B is equivalent to the user equipment a in the above embodiment, and the bluetooth device D is equivalent to the bluetooth device C in the above embodiment, which is not described herein again.
In the above process, an authentication process may also be added, for example, when the user equipment a is connected to the user equipment B, the user equipment a is requested to send the user ID first, and the user ID is forwarded to the bluetooth equipment C, authentication is performed in the bluetooth equipment C, if the authentication is passed, the bluetooth equipment C forwards a token to the user equipment B through the user equipment a, and the user equipment a simultaneously sends an equivalent equipment inquiry request, and then forwards the received information of the bluetooth equipment D to the user equipment B.
Fig. 6 is a schematic structural diagram of a first embodiment of a bluetooth communication apparatus 60 for querying an equivalent device based on bluetooth connection according to an embodiment of the present disclosure, and as shown in fig. 6, the apparatus includes: a first creation module 61, a first broadcast module 62, a first connection module 63, a first reception module 64, and a second connection module 65. Wherein the content of the first and second substances,
a first creation module 61 for creating a first service;
a first broadcasting module 62, configured to send a first broadcast with information of a third device through the first service;
a first connection module 63, configured to connect to a second device in response to receiving a connection request of the second device;
a first receiving module 64, configured to receive information of a fourth device from the second device, where the fourth device is an equivalent device of the third device;
a second connection module 65, configured to connect the fourth device according to the information of the fourth device.
Further, the bluetooth communication apparatus 60 for inquiring the equivalent device based on the bluetooth connection further includes:
a first disconnection module 66 for disconnecting the connection with the fourth device;
a second broadcast module 67, configured to send a second broadcast through the first service, where the second broadcast includes information of the fourth device and an identifier indicating that the fourth device is idle.
Further, the bluetooth communication apparatus 60 for inquiring the equivalent device based on the bluetooth connection further includes:
a first connection sending module 68, configured to send a connection request, where the connection request is used to request a connection to a third device using bluetooth;
a determining module 69 for determining that the connection request has not received a response or has been rejected.
The apparatus shown in fig. 6 can perform the method of the embodiment shown in fig. 2, and reference may be made to the related description of the embodiment shown in fig. 2 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 2, and are not described herein again.
In a second embodiment of the bluetooth communication apparatus 70 for querying an equivalent device based on bluetooth connection provided in the embodiment of the present disclosure, as shown in fig. 7, the bluetooth communication apparatus 70 for querying an equivalent device based on bluetooth connection includes: a third connection module 71, a scan command sending module 72, an inquiry request receiving module 73, and a first sending module 74. Wherein the content of the first and second substances,
a third connection module 71, configured to receive a connection request of a second device, and connect to the second device;
a scanning instruction sending module 72, configured to send a scanning instruction to the second device, where the scanning instruction causes the second device to scan a first broadcast with information of a third device;
a query request receiving module 73, configured to receive an equivalent device query request sent by the second device;
a first sending module 74, configured to send information of a fourth device to the second device in response to querying that the fourth device is an equivalent device.
Further, the bluetooth communication apparatus 70 for inquiring the equivalent device based on the bluetooth connection further includes:
a first setting module 75 for setting the fourth device to a busy state.
Further, the bluetooth communication apparatus 70 for inquiring the equivalent device based on the bluetooth connection further includes:
an update instruction receiving module 76, configured to receive a status update instruction sent by the second device;
a second setting module 77, configured to set the fourth device to an idle state according to the state update instruction.
Further, the first sending module 74 is configured to query the equivalent device list, and send information of a first free fourth device in the list to the second device.
The apparatus in the second embodiment shown in fig. 7 can perform the method of the embodiment shown in fig. 3, and reference may be made to the related description of the embodiment shown in fig. 3 for a part not described in detail in this embodiment. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 3, and are not described herein again.
In a third embodiment of the bluetooth communication apparatus 80 for querying an equivalent device based on bluetooth connection provided in the embodiment of the present disclosure, as shown in fig. 8, the bluetooth communication apparatus 80 for querying an equivalent device based on bluetooth connection includes: a fourth connection module 81, a scan command receiving module 82, a connection request sending module 83, an inquiry request sending module 84, a second receiving module 85, and a first forwarding module 86. Wherein the content of the first and second substances,
a fourth connection module 81, configured to send a connection request to a third device, and connect to the third device;
a scanning instruction receiving module 82, configured to receive a scanning instruction sent by a third device, and scan a first broadcast with information of the third device, where the first broadcast is sent by a first service of a first device;
a connection request sending module 83, configured to send a connection request to the first device in response to scanning the first broadcast;
a query request sending module 84, configured to send an equivalent device query request to the third device in response to being connected to the first device;
a second receiving module 85, configured to receive information of a fourth device sent by a third device, where the fourth device is an equivalent device of the third device;
a first forwarding module 86, configured to forward the information of the fourth device to the first device.
Further, the bluetooth communication apparatus 80 for querying the equivalent device based on the bluetooth connection further includes:
a second scanning module 87, configured to scan a second broadcast, where the second broadcast includes information of the fourth device and an identifier indicating that the fourth device is idle;
an update instruction sending module 88, configured to send a fourth device status update instruction to the third device in response to scanning the second broadcast.
The apparatus in the second embodiment shown in fig. 8 can perform the method in the embodiment shown in fig. 4, and reference may be made to the related description of the embodiment shown in fig. 4 for a part not described in detail in this embodiment. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 4, and are not described herein again.
Fig. 9 is a hardware block diagram illustrating an electronic device according to an embodiment of the present disclosure. As shown in fig. 9, an electronic device 90 according to an embodiment of the present disclosure includes a memory 91 and a processor 92.
The memory 91 is used to store non-transitory computer readable instructions. In particular, memory 91 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. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc.
The processor 92 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 90 to perform desired functions. In one embodiment of the present disclosure, the processor 92 is configured to execute the computer readable instructions stored in the memory 91, so that the electronic device 90 performs all or part of the aforementioned steps of the bluetooth communication method for querying an equivalent device based on bluetooth connection according to the embodiments of the present disclosure.
Those skilled in the art should understand that, in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus, an interface, and the like, and these well-known structures should also be included in the protection scope of the present invention.
For the detailed description of the present embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, which are not repeated herein.
Fig. 10 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. As shown in fig. 10, a computer-readable storage medium 100, having non-transitory computer-readable instructions 101 stored thereon, in accordance with an embodiment of the present disclosure. The non-transitory computer readable instructions 101, when executed by a processor, perform all or a portion of the steps of the bluetooth communication method for querying an equivalent device based on a bluetooth connection of the embodiments of the present disclosure as described above.
The computer-readable storage medium 100 includes, but is not limited to: optical storage media (e.g., CD-ROMs and DVDs), magneto-optical storage media (e.g., MOs), magnetic storage media (e.g., magnetic tapes or removable disks), media with built-in rewritable non-volatile memory (e.g., memory cards), and media with built-in ROMs (e.g., ROM cartridges).
For the detailed description of the present embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, which are not repeated herein.
Fig. 11 is a diagram illustrating a hardware structure of a terminal device according to an embodiment of the present disclosure. As shown in fig. 11, the bluetooth communication terminal 110 for inquiring about equivalent devices based on bluetooth connection includes the above-mentioned embodiment of the bluetooth communication apparatus for inquiring about equivalent devices based on bluetooth connection.
The terminal device may be implemented in various forms, and the terminal device in the present disclosure may include, but is not limited to, mobile terminal devices such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation apparatus, a vehicle-mounted terminal device, a vehicle-mounted display terminal, a vehicle-mounted electronic rear view mirror, and the like, and fixed terminal devices such as a digital TV, a desktop computer, and the like.
The terminal may also include other components as equivalent alternative embodiments. As shown in fig. 11, the bluetooth communication terminal 110 inquiring about equivalent devices based on bluetooth connection may include a power supply unit 111, a wireless communication unit 112, an a/V (audio/video) input unit 113, a user input unit 114, a sensing unit 115, an interface unit 116, a controller 117, an output unit 118, and a storage unit 119, and the like. Fig. 11 shows a terminal having various components, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may alternatively be implemented.
The wireless communication unit 112 allows, among other things, radio communication between the terminal 110 and a wireless communication system or network. The a/V input unit 113 is for receiving an audio or video signal. The user input unit 114 may generate key input data to control various operations of the terminal device according to a command input by a user. The sensing unit 115 detects a current state of the terminal 110, a position of the terminal 110, presence or absence of a touch input of the terminal 110 by a user, an orientation of the terminal 110, acceleration or deceleration movement and direction of the terminal 110, and the like, and generates a command or signal for controlling an operation of the terminal 110. The interface unit 116 serves as an interface through which at least one external device is connected to the terminal 110. The output unit 118 is configured to provide output signals in a visual, audio, and/or tactile manner. The storage unit 119 may store software programs or the like for processing and controlling operations performed by the controller 117, or may temporarily store data that has been output or is to be output. The storage unit 119 may include at least one type of storage medium. Also, the terminal 110 may cooperate with a network storage device that performs a storage function of the storage unit 119 through a network connection. The controller 117 generally controls the overall operation of the terminal device. In addition, the controller 117 may include a multimedia module for reproducing or playing back multimedia data. The controller 117 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image. The power supply unit 111 receives external power or internal power and supplies appropriate power required to operate the respective elements and components under the control of the controller 117.
Various embodiments of the bluetooth communication method for querying an equivalent device based on a bluetooth connection as set forth in the present disclosure may be implemented using a computer-readable medium such as computer software, hardware, or any combination thereof. For hardware implementation, various embodiments of the bluetooth communication method based on the bluetooth connection inquiry equivalent device proposed by the present disclosure may be implemented by using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, various embodiments of the bluetooth communication method based on the bluetooth connection inquiry equivalent device proposed by the present disclosure may be implemented in the controller 77. For software implementation, various embodiments of the bluetooth communication method for querying an equivalent device based on a bluetooth connection proposed by the present disclosure may be implemented with a separate software module that allows at least one function or operation to be performed. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory unit 119 and executed by the controller 117.
For the detailed description of the present embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, which are not repeated herein.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
The block diagrams of devices, apparatuses, systems referred to in this disclosure 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".
Also, as used herein, "or" as used in a list of items beginning with "at least one" indicates a separate list, such that, for example, a list of "A, B or at least one of C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the described example is preferred or better than other examples.
It is also noted that in the systems and methods of the present disclosure, components or steps may be decomposed and/or re-combined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure.
Various changes, substitutions and alterations to the techniques described herein may be made without departing from the techniques of the teachings as defined by the appended claims. Moreover, the scope of the claims of the present disclosure is not limited to the particular aspects of the process, machine, manufacture, composition of matter, means, methods and acts described above. Processes, machines, manufacture, compositions of matter, means, methods, or acts, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein may be utilized. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or acts.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. 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 disclosure. Thus, the present disclosure 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, this description is not intended to limit embodiments of the disclosure 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 (20)

1. A Bluetooth communication method for inquiring equivalent devices based on Bluetooth connection is characterized by comprising the following steps:
creating a first service;
transmitting a first broadcast with information of a third device through the first service;
connecting to a second device in response to receiving a connection request of the second device;
receiving information of a fourth device from the second device, the fourth device being an equivalent device of the third device;
connecting the fourth device according to the information of the fourth device; wherein the information of the fourth device is different from the information of the third device.
2. The method of claim 1, wherein the method further comprises:
disconnecting the fourth device;
and sending a second broadcast through the first service, wherein the second broadcast comprises information of the fourth device and an identifier indicating that the fourth device is idle.
3. The bluetooth communication method for querying an equivalent device based on bluetooth connection according to claim 1, wherein before the sending a first broadcast with information of a third device in the first broadcast through the first service, further comprising:
transmitting a connection request for requesting connection of a third device using Bluetooth;
determining that the connection request received no response or was denied.
4. The bluetooth communication method for querying equivalent devices based on bluetooth connection as claimed in claim 1, wherein the information of the third device is the MAC address of the third device, and the information of the fourth device is the MAC address of the fourth device.
5. A Bluetooth communication method for inquiring equivalent devices based on Bluetooth connection is characterized by comprising the following steps:
receiving a connection request of a second device and connecting to the second device;
sending a scan instruction to the second device, the scan instruction causing the second device to scan a first broadcast with information of a third device;
receiving an equivalent device query request sent by the second device;
in response to the inquiry that the fourth device is the equivalent device, sending information of the fourth device to the second device; wherein the information of the fourth device is different from the information of the third device.
6. The bluetooth communication method for querying an equivalent device based on bluetooth connection according to claim 5, further comprising, after the transmitting the information of the fourth device to the second device:
setting the fourth device to a busy state.
7. The bluetooth communication method for querying an equivalent device based on bluetooth connection according to claim 6, further comprising, after the setting the fourth device to busy state:
receiving a state updating instruction sent by second equipment;
and setting the fourth equipment to be in an idle state according to the state updating instruction.
8. The method of claim 5, wherein the information of the fourth device comprises: MAC address of the fourth device.
9. The bluetooth communication method for querying an equivalent device based on bluetooth connection according to claim 8, wherein the transmitting information of a fourth device to the second device in response to querying that the fourth device is the equivalent device comprises:
and inquiring the equivalent device list, and sending the information of the first free fourth device in the list to the second device.
10. A Bluetooth communication method for inquiring equivalent devices based on Bluetooth connection is characterized by comprising the following steps:
sending a connection request to a third device and connecting to the third device;
receiving a scanning instruction sent by third equipment, and scanning a first broadcast with information of the third equipment, wherein the first broadcast is sent by a first service of the first equipment;
sending a connection request to the first device in response to scanning for the first broadcast;
sending an equivalent device query request to the third device in response to connecting to the first device;
receiving information of fourth equipment sent by third equipment, wherein the fourth equipment is equivalent equipment of the third equipment; wherein the information of the fourth device is different from the information of the third device;
and forwarding the information of the fourth device to the first device.
11. The bluetooth communication method for querying an equivalent device based on bluetooth connection according to claim 10, further comprising, after forwarding the information of the fourth device to the first device:
scanning a second broadcast with information of the fourth device and an identifier indicating that the fourth device is idle;
in response to scanning for the second broadcast, sending a fourth device status update instruction to the third device.
12. A bluetooth communication apparatus for inquiring equivalent devices based on bluetooth connection, comprising:
a first creation module for creating a first service;
a first broadcasting module, configured to send a first broadcast with information of a third device through the first service;
a first connection module for connecting to a second device in response to receiving a connection request of the second device;
a first receiving module, configured to receive information of a fourth device from the second device, where the fourth device is an equivalent device of the third device; wherein the information of the fourth device is different from the information of the third device;
and the second connecting module is used for connecting the fourth equipment according to the information of the fourth equipment.
13. A bluetooth communication apparatus for inquiring equivalent devices based on bluetooth connection, comprising:
a third connection module, configured to receive a connection request of a second device, and connect to the second device;
a scanning instruction sending module, configured to send a scanning instruction to the second device, where the scanning instruction causes the second device to scan a first broadcast with information of a third device;
the query request receiving module is used for receiving the equivalent device query request sent by the second device; wherein the information of the fourth device is different from the information of the third device;
and the first sending module is used for responding to the inquiry that the fourth equipment is equivalent equipment and sending the information of the fourth equipment to the second equipment.
14. A bluetooth communication apparatus for inquiring equivalent devices based on bluetooth connection, comprising:
a fourth connection module, configured to send a connection request to a third device, and connect to the third device;
a scanning instruction receiving module, configured to receive a scanning instruction sent by a third device, and scan a first broadcast with information of the third device, where the first broadcast is sent by a first service of a first device;
a connection request sending module for sending a connection request to the first device in response to scanning the first broadcast;
a query request sending module, configured to send an equivalent device query request to the third device in response to being connected to the first device; wherein the information of the fourth device is different from the information of the third device;
a second receiving module, configured to receive information of a fourth device sent by a third device, where the fourth device is an equivalent device of the third device;
and the first forwarding module is used for forwarding the information of the fourth device to the first device.
15. A bluetooth communication device for querying an equivalent device based on a bluetooth connection, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when executing implements the bluetooth communication method for querying an equivalent device based on bluetooth connection according to any one of claims 1 to 4.
16. A bluetooth communication device for querying an equivalent device based on a bluetooth connection, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when executing implements the bluetooth communication method for querying an equivalent device based on bluetooth connection according to any of claims 5-9.
17. A bluetooth communication device for querying an equivalent device based on a bluetooth connection, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when executing implements the bluetooth communication method for querying an equivalent device based on bluetooth connection according to any of claims 10-11.
18. A computer-readable storage medium storing non-transitory computer-readable instructions which, when executed by a computer, cause the computer to perform the bluetooth communication method for querying an equivalent device based on bluetooth connection as claimed in any one of claims 1 to 4.
19. A computer-readable storage medium storing non-transitory computer-readable instructions which, when executed by a computer, cause the computer to perform the bluetooth communication method for querying an equivalent device based on bluetooth connection as claimed in any one of claims 5 to 9.
20. A computer-readable storage medium storing non-transitory computer-readable instructions which, when executed by a computer, cause the computer to perform the bluetooth communication method for querying an equivalent device based on bluetooth connection as claimed in any one of claims 10 to 11.
CN201811034175.9A 2018-09-05 2018-09-05 Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection Active CN108966200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811034175.9A CN108966200B (en) 2018-09-05 2018-09-05 Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811034175.9A CN108966200B (en) 2018-09-05 2018-09-05 Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection

Publications (2)

Publication Number Publication Date
CN108966200A CN108966200A (en) 2018-12-07
CN108966200B true CN108966200B (en) 2021-09-17

Family

ID=64476027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811034175.9A Active CN108966200B (en) 2018-09-05 2018-09-05 Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection

Country Status (1)

Country Link
CN (1) CN108966200B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466339B (en) * 2021-06-18 2023-05-23 荣耀终端有限公司 Bluetooth pairing method, system, storage medium and chip

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077169A (en) * 2014-07-21 2014-10-01 北京深思数盾科技有限公司 BLE (Bluetooth Low Energy) device, information safety device and automatic start-up method of application program
CN105101362A (en) * 2014-05-05 2015-11-25 刘洪明 Method of reducing signal transmitting radiation of Bluetooth low-power consumption equipment and system
CN105848306A (en) * 2016-05-30 2016-08-10 努比亚技术有限公司 Method for establishing connection between terminals and terminal
CN106507437A (en) * 2016-11-08 2017-03-15 北京小米移动软件有限公司 Smart machine networking method and device
CN107241679A (en) * 2016-03-29 2017-10-10 阿里巴巴集团控股有限公司 One kind connection method for building up, method for sending information, message method and device
CN107770761A (en) * 2017-10-19 2018-03-06 北京地平线机器人技术研发有限公司 Bluetooth equipment shares request and control method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101362A (en) * 2014-05-05 2015-11-25 刘洪明 Method of reducing signal transmitting radiation of Bluetooth low-power consumption equipment and system
CN104077169A (en) * 2014-07-21 2014-10-01 北京深思数盾科技有限公司 BLE (Bluetooth Low Energy) device, information safety device and automatic start-up method of application program
CN107241679A (en) * 2016-03-29 2017-10-10 阿里巴巴集团控股有限公司 One kind connection method for building up, method for sending information, message method and device
CN105848306A (en) * 2016-05-30 2016-08-10 努比亚技术有限公司 Method for establishing connection between terminals and terminal
CN106507437A (en) * 2016-11-08 2017-03-15 北京小米移动软件有限公司 Smart machine networking method and device
CN107770761A (en) * 2017-10-19 2018-03-06 北京地平线机器人技术研发有限公司 Bluetooth equipment shares request and control method and electronic equipment

Also Published As

Publication number Publication date
CN108966200A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN109219028B (en) Equivalent device Bluetooth communication method and device based on cloud
CN106878923B (en) Quick networking method for ultra-low power consumption intelligent equipment and intelligent home system
US20150077231A1 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
WO2020168569A1 (en) Intelligent device network distribution method, apparatus, electronic device and storage medium
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
CN110012328B (en) Method and device for interacting with smart television
CN109218994B (en) Equivalent equipment Bluetooth communication method and device based on gateway
CN110830968A (en) Networking method and device, Bluetooth equipment and computer readable medium
CN109996260B (en) Configuration system, client device, embedded device configuration method and storage medium
CN106603944B (en) Smart television control method and system
US20230422024A1 (en) Bluetooth address allocation method for intelligent light, computer device, and computer-readable storage medium
US20220022022A1 (en) Device discovery method and apparatus, control terminal, and internet of things auxiliary device
CN104486816A (en) Quick automatic scanning method of Wifi (Wireless Fidelity) terminal equipment in multiple access points
CN112105009A (en) Device discovery and Bluetooth broadcasting method, device, electronic device and storage medium
CN102255947A (en) STB (Set Top Box) and man-machine interaction method for STB
AU2013388030A1 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
CN105827443A (en) Network device discovery method and device
CN108966200B (en) Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection
CN113132967A (en) Fusion networking method, device, system and computer readable storage medium
EP2560404A2 (en) Electronic device and operating method of the same
CN109151787B (en) Bluetooth communication method and device based on cloud scheduling
CN111190634B (en) Layout information processing method and device and electronic equipment
CN106998501B (en) Television control method and device
CN109309965B (en) Bluetooth communication method and device based on shared channel controlled by cloud
CN109089251B (en) Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.