CN108966199B - Bluetooth communication method and device based on cloud inquiry buffer node - Google Patents

Bluetooth communication method and device based on cloud inquiry buffer node Download PDF

Info

Publication number
CN108966199B
CN108966199B CN201811034174.4A CN201811034174A CN108966199B CN 108966199 B CN108966199 B CN 108966199B CN 201811034174 A CN201811034174 A CN 201811034174A CN 108966199 B CN108966199 B CN 108966199B
Authority
CN
China
Prior art keywords
information
equipment
data
cloud
buffer node
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
CN201811034174.4A
Other languages
Chinese (zh)
Other versions
CN108966199A (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 CN201811034174.4A priority Critical patent/CN108966199B/en
Publication of CN108966199A publication Critical patent/CN108966199A/en
Application granted granted Critical
Publication of CN108966199B publication Critical patent/CN108966199B/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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The utility model discloses a bluetooth communication method, device, electronic equipment and computer readable storage medium based on buffer node are inquired to the cloud. The Bluetooth communication method based on the cloud inquiry buffer node comprises the following steps: sending a data transmission request to a cloud, wherein the data transmission request comprises information of second equipment and information of first equipment for receiving the data; receiving first information and information of third equipment sent by a cloud end; connecting the third equipment according to the information of the third equipment; transmitting the data, the first information, and the information of the first device to the third device. The embodiment of the disclosure solves the problem of monopolization of the bluetooth device by inquiring the buffer node and caching the data in the buffer node.

Description

Bluetooth communication method and device based on cloud inquiry buffer node
Technical Field
The present disclosure relates to the field of communications, and in particular, to a bluetooth communication method and apparatus, an electronic device, and a computer-readable storage medium based on a cloud query buffer node.
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 based on a cloud query buffer node, including: sending a data transmission request to a cloud, wherein the data transmission request comprises information of second equipment and information of first equipment for receiving the data; receiving first information and information of third equipment sent by a cloud end; connecting the third equipment according to the information of the third equipment; transmitting the data, the first information, and the information of the first device to the third device.
Further, before sending the data transmission request to the cloud, the method further includes: sending a connection request to the second device; it is determined that a response of the second device is not received or a response to reject the connection is received.
Further, the second device is a bluetooth device, and the information of the second device is an MAC address of the second device.
Further, the information of the first device is a user ID of the first device.
Further, the first information is a token.
In a second aspect, an embodiment of the present disclosure provides a bluetooth communication method based on a cloud query buffer node, including: receiving a data transmission request sent by first equipment, wherein the data transmission request comprises information of second equipment for receiving the data and information of the first equipment; inquiring information of a buffer node corresponding to the second equipment; responding to the inquiry that the buffer node of the second equipment is third equipment, and sending information of the third equipment to the first equipment; sending a data transmission instruction to the third device to indicate that the third device is ready to receive the data transmitted by the first device.
Further, the querying information of the buffer node corresponding to the second device includes: and inquiring a buffer node table through the information of the second equipment to acquire the information of the buffer node corresponding to the information of the second equipment.
Further, the sending a data transmission instruction to the third device to instruct the third device to prepare to receive the data transmitted by the first device includes: and sending a data transmission instruction to the third equipment, wherein the data transmission instruction comprises the information of the first equipment and the information of the second equipment so as to indicate that the third equipment is ready to receive the data transmitted by the first equipment.
Further, before the receiving the data transmission request sent by the first device, the method further includes: receiving registration information of third equipment, wherein the registration information comprises information of equipment which takes the third equipment as a buffer node; and storing the information of the equipment in a buffer node table.
In a third aspect, an embodiment of the present disclosure provides a bluetooth communication method based on a cloud query buffer node, including: receiving a data transmission instruction, wherein the data transmission instruction comprises information of first equipment and information of second equipment; receiving data transmitted by the first equipment and storing the data on the third equipment; connecting to the second device in response to scanning for a broadcast to the second device; transmitting the first device to the second device.
Further, before the receiving the data transmission instruction, the method further includes: responding to the second equipment entering the management range of the third equipment, and generating registration information of the third equipment according to the information of the second equipment; and sending the registration information of the third equipment to a cloud end.
In a fourth aspect, an embodiment of the present disclosure provides a bluetooth communication device based on a cloud query buffer node, including:
the data transmission request sending module is used for sending a data transmission request to a cloud end, wherein the data transmission request comprises information of second equipment and information of first equipment for receiving the data;
the first receiving module is used for receiving first information sent by the cloud and information of the third equipment;
the first connection module is used for connecting the third equipment according to the information of the third equipment;
a first transmission module, configured to transmit the data, the first information, and the information of the first device to the third device.
Further, the bluetooth communication device based on the cloud inquiry buffer node further includes:
a connection request sending module, configured to send a connection request to the second device;
a determining module for determining that no response is received from the second device or a response is received to deny the connection.
In a fifth aspect, an embodiment of the present disclosure provides a bluetooth communication device based on a cloud query buffer node, including:
a data transmission request receiving module, configured to receive a data transmission request sent by a first device, where the data transmission request includes information of a second device that receives the data and information of the first device;
the query module is used for querying the information of the buffer node corresponding to the second equipment;
a first sending module, configured to send information of a third device to the first device in response to querying that a buffer node of the second device is the third device;
and the data transmission instruction sending module is used for sending a data transmission instruction to the third equipment so as to indicate that the third equipment is ready to receive the data transmitted by the first equipment.
Further, the query module is configured to query the buffer node table through information of the second device, and query information of the buffer node corresponding to the information of the second device.
Further, the data transmission instruction sending module is configured to send a data transmission instruction to the third device, where the data transmission instruction includes information of the first device and information of the second device, so as to indicate that the third device is ready to receive data transmitted by the first device.
Further, the bluetooth communication device based on the cloud inquiry buffer node further includes:
a registration information receiving module, configured to receive registration information of a third device, where the registration information includes information of a device using the third device as a buffer node;
and the storage module is used for storing the information of the equipment in a buffer node table.
In a sixth aspect, an embodiment of the present disclosure provides a bluetooth communication device based on a cloud inquiry buffer node, including:
the data transmission instruction receiving module is used for receiving a data transmission instruction, and the data transmission instruction comprises information of first equipment and information of second equipment;
the transmission data receiving module is used for receiving the data transmitted by the first equipment and storing the data on the third equipment;
a second connection module to connect to the second device in response to scanning for a broadcast to the second device;
and the data transmission module is used for transmitting the data transmitted by the first equipment to the second equipment.
Further, the bluetooth communication device based on the cloud inquiry buffer node further includes:
the registration information generating module is used for responding to the fact that the second equipment enters the management range of the third equipment and generating the registration information of the third equipment according to the information of the second equipment;
and the registration information sending module is used for sending the registration information of the third equipment to the cloud.
In a seventh aspect, an embodiment of the present disclosure provides a bluetooth communication device based on a cloud query buffer node, 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 any of the cloud query buffer node based bluetooth communication methods of the first aspect.
In an eighth aspect, an embodiment of the present disclosure provides a bluetooth communication device based on a cloud query buffer node, 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 any of the cloud query buffer node based bluetooth communication methods of the second aspect.
In a ninth aspect, an embodiment of the present disclosure provides a bluetooth communication device based on a cloud inquiry buffer node, 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 any of the cloud query buffer node based bluetooth communication methods 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 any one of the foregoing bluetooth communication methods based on a cloud query buffer node in the first aspect.
In an eleventh 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 any one of the foregoing bluetooth communication methods based on a cloud query buffer node in the second aspect.
In a twelfth 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 any one of the foregoing third aspects of the cloud-based query buffer node-based bluetooth communication method.
The embodiment of the disclosure provides a Bluetooth communication method and device based on a cloud inquiry buffer node, electronic equipment and a computer-readable storage medium. The Bluetooth communication method based on the cloud inquiry buffer node comprises the following steps: sending a data transmission request to a cloud, wherein the data transmission request comprises information of second equipment and information of first equipment for receiving the data; receiving first information and information of third equipment sent by a cloud end; connecting the third equipment according to the information of the third equipment; transmitting the data, the first information, and the information of the first device to the third device. According to the embodiment of the invention, the exclusive problem of the Bluetooth equipment is solved by inquiring the buffer node and caching the data in the buffer node, so that the user equipment needing to be connected with the Bluetooth equipment can be connected to the required Bluetooth equipment 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 based on a cloud query buffer node according to the present disclosure;
fig. 3 is a flowchart of an embodiment of a bluetooth communication method based on a cloud query buffer node according to the present disclosure;
fig. 4 is a flowchart of an embodiment of a bluetooth communication method based on a cloud query buffer node according to the present disclosure
Fig. 5 is a communication flow diagram of a bluetooth communication system based on a cloud query buffer node according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a first embodiment of a bluetooth communication device based on a cloud query buffer node according to the present disclosure;
fig. 7 is a schematic structural diagram of a second bluetooth communication apparatus based on a cloud query buffer node according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a third embodiment of the bluetooth communication apparatus based on a cloud query buffer node according to the present disclosure;
fig. 9 is a schematic structural diagram of a bluetooth communication device based on a cloud query buffer node 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 based on a cloud query buffer node 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 the bluetooth communication method based on the cloud query buffer node according to the present disclosure, where the bluetooth communication method based on the cloud query buffer node according to the present disclosure may be executed by a bluetooth communication device based on the cloud query buffer node, the bluetooth communication device based on the cloud query buffer node may be implemented as software or implemented as a combination of software and hardware, and the bluetooth communication device based on the cloud query buffer node 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, sending a data transmission request to a cloud end, wherein the data transmission request comprises information of a second device and information of a first device for receiving the data;
in this step, the first device sends a data transmission request to the cloud to find a buffer node of the second device, where the buffer node may be a storage-capable device. The first device may be a user device a, a typical user device a may be various intelligent terminal devices, the second device is a bluetooth device B, the information of the second device may be a MAC address of the bluetooth device B, and the information of the first device may be a user ID of the user device a.
Step S202, receiving first information and information of third equipment sent by a cloud end;
in this step, the first device receives first information and information of the third device, which are sent after the cloud query. The third device may be a bluetooth gateway C, which is a buffer node of the bluetooth device B, that is, data sent to the bluetooth device B may be temporarily stored in the bluetooth gateway C. The first information may be a token for communication with the blue device B. The information of the third device may be a MAC address of the bluetooth gateway C.
Step S203, connecting the third device according to the information of the third device;
when receiving the information of the third device, the first device may connect to the third device according to the information of the third device. Specifically, the user equipment a receives the MAC address of the bluetooth gateway C sent from the cloud, and may use the MAC address of the bluetooth gateway C to connect to the bluetooth gateway C.
Step S204, transmitting the data, the first information and the information of the first device to the third device.
After connecting to the bluetooth gateway C, the user equipment a sends the data to be sent to the bluetooth equipment B to the bluetooth gateway C, and also sends the token and the user ID of the user equipment a to the bluetooth gateway C.
In this embodiment, before step S201, the method may further include:
step S205, sending a connection request to the second device;
step S206, it is determined that the response of the second device is not received or the response of rejecting the connection is received.
In the above step, the user equipment a attempts to connect to the bluetooth device B, but may not respond to the connection request of the user equipment a because the bluetooth device B has been connected by other devices or the bluetooth device B temporarily malfunctions, and when the response of the bluetooth device B is not received for a certain time, the user equipment a may determine that the bluetooth device B does not respond; or the bluetooth device B may directly give the user device a direct response to the connection rejection. When the bluetooth device B cannot be connected, the user device a performs step S201.
The embodiment of the disclosure provides a Bluetooth communication method and device based on a cloud inquiry buffer node, electronic equipment and a computer-readable storage medium. The Bluetooth communication method based on the cloud inquiry buffer node comprises the following steps: sending a data transmission request to a cloud, wherein the data transmission request comprises information of second equipment and information of first equipment for receiving the data; receiving first information and information of third equipment sent by a cloud end; connecting the third equipment according to the information of the third equipment; transmitting the data, the first information, and the information of the first device to the third device. According to the embodiment of the invention, the exclusive problem of the Bluetooth equipment is solved by inquiring the buffer node and caching the data in the buffer node, so that the user equipment needing to be connected with the Bluetooth equipment can be connected to the required Bluetooth equipment in time.
Fig. 3 is a flowchart of a first embodiment of the bluetooth communication method based on the cloud query buffer node according to the present disclosure, where the bluetooth communication method based on the cloud query buffer node according to the present disclosure may be executed by a bluetooth communication device based on the cloud query buffer node, the bluetooth communication device based on the cloud query buffer node may be implemented as software or implemented as a combination of software and hardware, and the bluetooth communication device based on the cloud query buffer node may be integrated in a certain device in a communication system, such as a cloud device. As shown in fig. 3, the method comprises the steps of:
step 301, receiving a data transmission request sent by a first device, where the data transmission request includes information of a second device that receives the data and information of the first device;
in this step, the cloud receives a data transmission request sent by the user equipment a, where the data transmission request is a request to transmit data to the bluetooth device B, and therefore the data transmission request includes information of the bluetooth device B and information of the user equipment a, where the data transmission request needs to be received. In this embodiment, the information of the bluetooth device B may be a MAC address of the bluetooth device B
Step 302, inquiring information of a buffer node corresponding to the second device;
in this step, the cloud queries the cache node of the second device according to the information of the second device. In one embodiment, the information of the cache node is stored in a cache node table, the cache node may be a bluetooth gateway C, and the cache node table may be a table of multiple pairs 1, for example, a plurality of bluetooth devices managed by the bluetooth gateway C all use the bluetooth gateway C as a cache node, and the MAC address of the bluetooth gateway C managing the bluetooth device B may be found in the cache node table by using the MAC address of the bluetooth device B.
Step 303, in response to the query that the buffer node of the second device is a third device, sending information of the third device to the first device;
in this step, after inquiring that the buffer node of the bluetooth device B is the bluetooth gateway C, the MAC address of the bluetooth gateway C is transmitted to the user equipment a.
Step S304, sending a data transmission instruction to the third device to indicate that the third device is ready to receive the data transmitted by the first device.
The cloud terminal sends a data transmission instruction to the third equipment to indicate that the third equipment is ready to receive the data of the first equipment while sending the information of the third equipment to the first equipment. The indication may include a user ID of the user equipment a or a MAC address of the user equipment a for use in authentication by the third device. The MAC address of bluetooth device B may also be included in the indication so that the bluetooth device knows which device it buffers data to send to.
In this embodiment, before step S301, the method may further include:
step S305, receiving registration information of a third device, wherein the registration information comprises information of a device which takes the third device as a buffer node;
step S306, saving the information of the device in a buffer node table.
In this step, the cloud may receive registration information of the bluetooth gateway C, where the registration information includes information of a device using the bluetooth gateway C as a buffer node, and the cloud stores the information of the device in a buffer node table, where the registration information may be incremental information including information of devices that need to be added and information of devices that need to be deleted, for example, after some bluetooth devices are out of a management range of the bluetooth gateway, the bluetooth gateway may periodically send the registration information to the cloud to clean the deleted devices.
It should be noted that an authentication step may be added to the cloud, the cloud stores authentication information of the user equipment in advance, and after receiving the query request, the cloud authenticates information of the user equipment a in the data transmission request, for example, whether the user ID and/or the MAC address of the user equipment a is in the registered equipment list is searched. And after the authentication is passed, triggering the subsequent inquiry operation, otherwise, directly sending a rejection to the user equipment A.
Fig. 4 is a flowchart of a third embodiment of the bluetooth communication method based on the cloud query buffer node according to the present disclosure, where the bluetooth communication method based on the cloud query buffer node according to the present embodiment may be executed by a bluetooth communication device based on the cloud query buffer node, the bluetooth communication device based on the cloud query buffer node may be implemented as software or implemented as a combination of software and hardware, and the bluetooth communication device based on the cloud query buffer node may be integrated in a certain device in a communication system, such as a bluetooth gateway device. As shown in fig. 4, the method includes the steps of:
step S401, receiving a data transmission instruction, wherein the data transmission instruction comprises information of a first device and information of a second device;
in this step, the bluetooth gateway C receives a data transmission instruction sent by the cloud, where the transmission instruction includes information of the user equipment a, such as a user ID or a MAC address of the user equipment a, and information of the bluetooth device B, such as a MAC address of the bluetooth device B.
Step S402, receiving the data transmitted by the first device and storing the data in the third device;
in this step, the bluetooth gateway C receives the data sent from the user equipment a and stores it on the bluetooth gateway C. The data may include a user ID of user device a and a token for communicating with the bluetooth device B.
Step S403 of connecting to the second device in response to the broadcast scanned to the second device;
in this step, after receiving the data transmitted by the user equipment a, the bluetooth gateway C starts scanning the broadcast transmitted by the bluetooth equipment B, and after scanning the broadcast of the bluetooth equipment B, connects to the bluetooth equipment B.
Step S404, transmitting the data transmitted by the first device to the second device.
After connecting to the Bluetooth device B, the Bluetooth gateway sends the data transmitted by the user device A to the Bluetooth device B. In this embodiment, the bluetooth gateway may control communication with the bluetooth device B through the token, and may mark the data sent to the bluetooth device B for the user device a through the user ID of the user device a.
In this embodiment, before step S401, the method may further include:
step S405, responding to the second device entering the management range of the third device, and generating registration information of the third device according to the information of the second device;
step S406, sending the registration information of the third device to the cloud.
When the Bluetooth device B is powered on or reset, registration information is sent to the Bluetooth gateway C, the Bluetooth gateway C associates the MAC address of the Bluetooth device B with the MAC address of the Bluetooth gateway C, registration information of the Bluetooth gateway C is generated according to the association information, and after the registration information is generated, the registration information is sent to the cloud end so that the cloud end can store the registration information.
Fig. 5 is an overall flowchart of the bluetooth communication system based on the cloud query buffer node according to the embodiment of the present disclosure, and as shown in fig. 5, the entire system includes four parts, namely, a user equipment a, a bluetooth device B, a bluetooth gateway C, and a cloud. In the communication system, a user device A is initially connected with a Bluetooth device B, but the user device A does not obtain a response or obtains a response of refusing to connect because the Bluetooth device B is connected with other user devices or the Bluetooth device B fails, the user device A sends a data transmission request to a cloud end to request to send data to the Bluetooth device B, the cloud end inquires information of a buffer node of the Bluetooth device B after receiving the request of the user device A, when the buffer node of the Bluetooth device B is inquired to be a Bluetooth gateway C, the MAC address of the Bluetooth gateway C is sent to the user device A, and meanwhile, the cloud end sends a data transmission instruction to the Bluetooth gateway C to indicate that the Bluetooth gateway C is ready to receive the data from the user device A; after receiving the MAC address of the Bluetooth gateway C, the user equipment A is connected to the Bluetooth gateway C and sends data to be sent to the Bluetooth equipment B to the Bluetooth gateway C; and after receiving the data, the Bluetooth gateway starts scanning the broadcast of the Bluetooth device B, shows that the Bluetooth device B is available again when scanning the broadcast of the Bluetooth device B, connects to the Bluetooth device B, and sends the data sent by the user equipment A to the Bluetooth device B.
In the above process, an authentication process may also be added, the cloud stores authentication information of the user equipment in advance, and after receiving the query request, the cloud authenticates information of the user equipment a in the query request, for example, whether the user ID and/or the MAC address of the user equipment a is in the registered equipment list is searched. After the authentication is passed, the inquiry is triggered, otherwise, the rejection is directly sent to the user equipment A.
Fig. 6 is a schematic structural diagram of a first embodiment of a bluetooth communication device 60 for querying a buffer node based on a cloud according to an embodiment of the present disclosure, as shown in fig. 6, the device includes: a data transmission request sending module 61, a first receiving module 62, a first connecting module 63, and a first transmitting module 64. Wherein,
a data transmission request sending module 61, configured to send a data transmission request to a cloud, where the data transmission request includes information of a second device and information of a first device that receive the data;
the first receiving module 62 is configured to receive first information sent by the cloud and information of the third device;
a first connection module 63, configured to connect to the third device according to the information of the third device;
a first transmission module 64, configured to transmit the data, the first information, and the information of the first device to the third device.
Further, the bluetooth communication apparatus 60 based on the cloud query buffer node further includes:
a connection request sending module 65, configured to send a connection request to the second device;
a determining module 66 configured to determine that no response is received from the second device or that a response is received to deny the connection.
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 device 70 according to the cloud inquiry buffer node provided in the embodiment of the present disclosure, as shown in fig. 7, the bluetooth communication device 70 according to the cloud inquiry buffer node includes: a data transmission request receiving module 71, an inquiring module 72, a first sending module 73, and a data transmission instruction sending module 74. Wherein,
a data transmission request receiving module 71, configured to receive a data transmission request sent by a first device, where the data transmission request includes information of a second device that receives the data and information of the first device;
a query module 72, configured to query information of a buffer node corresponding to the second device;
a first sending module 73, configured to send information of a third device to the first device in response to querying that the buffer node of the second device is the third device;
a data transmission instruction sending module 74, configured to send a data transmission instruction to the third device to indicate that the third device is ready to receive the data transmitted by the first device.
Further, the querying module 72 is configured to query the buffer node table through the information of the second device, so as to query the information of the buffer node corresponding to the information of the second device.
Further, the data transmission instruction sending module 74 is configured to send a data transmission instruction to the third device, where the data transmission instruction includes information of the first device and information of the second device, so as to indicate that the third device is ready to receive data transmitted by the first device.
Further, the bluetooth communication apparatus 70 based on the cloud query buffer node further includes:
a registration information receiving module 75, configured to receive registration information of a third device, where the registration information includes information of a device that uses the third device as a buffer node;
a saving module 76, configured to save the information of the device in the buffer node table.
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 second embodiment of the bluetooth communication apparatus 80 according to the cloud inquiry buffer node provided in the present disclosure, as shown in fig. 8, the bluetooth communication apparatus 80 according to the cloud inquiry buffer node includes: a data transmission instruction receiving module 81, a transmission data receiving module 82, a second connecting module 83, and a data transmission module 84. Wherein,
a data transmission instruction receiving module 81, configured to receive a data transmission instruction, where the data transmission instruction includes information of a first device and information of a second device;
a transmission data receiving module 82, configured to receive data transmitted by the first device, and store the data in the third device;
a second connection module 83 for connecting to the second device in response to a broadcast scanned to the second device;
a data transmission module 84, configured to transmit the data from the first device to the second device.
Further, the bluetooth communication apparatus 80 based on the cloud query buffer node further includes:
a registration information generating module 85, configured to generate registration information of the third device according to the information of the second device in response to the second device entering a management range of the third device;
a registration information sending module 86, configured to send the registration information of the third device to the cloud.
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 an 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 based on cloud query buffer node 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. When executed by a processor, the non-transitory computer readable instructions 101 perform all or part of the steps of the cloud query buffer node-based bluetooth communication method according to the embodiments of the disclosure.
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 based on the cloud inquiry buffer node includes the above-mentioned embodiment of the bluetooth communication device based on the cloud inquiry buffer node.
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 cloud query buffer node-based bluetooth communication terminal 110 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, 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 cloud query buffer node based bluetooth communication methods presented in this 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 cloud inquiry buffer node-based bluetooth communication method 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, and an electronic unit designed to perform the functions described herein, and in some cases, various embodiments of the cloud inquiry buffer node-based bluetooth communication method proposed by the present disclosure may be implemented in the controller 77. For software implementation, various embodiments of the cloud query buffer node-based bluetooth communication method 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 (7)

1. A Bluetooth communication method based on a cloud inquiry buffer node is characterized by comprising the following steps:
sending a connection request to the second device;
determining that a response of the second device is not received or a response of refusing connection is received, and sending a data transmission request to a cloud end, wherein the data transmission request comprises information of the second device receiving the data and information of the first device sending the data;
receiving first information and information of third equipment sent by a cloud, wherein the third equipment is a buffer node of the second equipment and is used for caching data sent to the second equipment by the first equipment; wherein the first information is for communicating with the second device;
connecting the third equipment according to the information of the third equipment;
transmitting the data, first information, and information of the first device to the third device;
the third device caches the data;
after receiving the data, the third device scans the broadcast sent by the second device;
the third device connecting to the second device after scanning for the broadcast of the second device;
when connected to the second device, the third device transmits the data to the second device.
2. The cloud query buffer node-based bluetooth communication method according to claim 1, wherein the second device is a bluetooth device, and the information of the second device is a MAC address of the second device.
3. The cloud query buffer node-based bluetooth communication method according to claim 1, wherein the information of the first device is a user ID of the first device.
4. The cloud query buffer node-based bluetooth communication method according to claim 1, wherein the first information is a token.
5. A bluetooth communication device based on high in clouds inquiry buffer node, its characterized in that includes:
a data transmission request sending module, configured to send a connection request to the second device; determining that a response of the second device is not received or a response of refusing connection is received, and sending a data transmission request to a cloud end, wherein the data transmission request comprises information of the second device receiving the data and information of the first device sending the data;
the first receiving module is used for receiving first information sent by a cloud end and information of third equipment, wherein the third equipment is a buffer node of the second equipment and is used for caching data sent to the second equipment by the first equipment; wherein the first information is for communicating with the second device;
the first connection module is used for connecting the third equipment according to the information of the third equipment;
a first transmission module, configured to transmit the data, the first information, and the information of the first device to the third device; the third device caches the data; after receiving the data, the third device scans the broadcast sent by the second device; the third device connecting to the second device after scanning for the broadcast of the second device; when connected to the second device, the third device transmits the data to the second device.
6. A bluetooth communication device based on high in clouds inquiry buffer node includes:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions, so that the processor when executing implements the bluetooth communication method based on the cloud query buffer node according to any one of claims 1 to 4.
7. A computer-readable storage medium storing non-transitory computer-readable instructions that, when executed by a computer, cause the computer to perform the method of bluetooth communication based on a cloud query buffer node of any of claims 1-4.
CN201811034174.4A 2018-09-05 2018-09-05 Bluetooth communication method and device based on cloud inquiry buffer node Active CN108966199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811034174.4A CN108966199B (en) 2018-09-05 2018-09-05 Bluetooth communication method and device based on cloud inquiry buffer node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811034174.4A CN108966199B (en) 2018-09-05 2018-09-05 Bluetooth communication method and device based on cloud inquiry buffer node

Publications (2)

Publication Number Publication Date
CN108966199A CN108966199A (en) 2018-12-07
CN108966199B true CN108966199B (en) 2022-03-04

Family

ID=64475249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811034174.4A Active CN108966199B (en) 2018-09-05 2018-09-05 Bluetooth communication method and device based on cloud inquiry buffer node

Country Status (1)

Country Link
CN (1) CN108966199B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107196921A (en) * 2017-04-28 2017-09-22 成都新橙北斗智联有限公司 A kind of cruising inspection system and method based on Bluetooth beacon equipment
CN107276861A (en) * 2017-06-30 2017-10-20 广州创想健康信息科技有限公司 Method, server, gateway and system that bluetooth peripheral hardware is remotely accessed are provided
CN107453970A (en) * 2017-09-25 2017-12-08 四川长虹电器股份有限公司 The intelligent home control system of home gateway and method are used as using smart mobile phone
CN108111999A (en) * 2017-12-28 2018-06-01 北京地平线机器人技术研发有限公司 Short-distance communication equipment shares request and control method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10349353B2 (en) * 2016-08-11 2019-07-09 Getac Technology Corporation Automatic uploading method and portable information capturing device capable of automatic uploading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107196921A (en) * 2017-04-28 2017-09-22 成都新橙北斗智联有限公司 A kind of cruising inspection system and method based on Bluetooth beacon equipment
CN107276861A (en) * 2017-06-30 2017-10-20 广州创想健康信息科技有限公司 Method, server, gateway and system that bluetooth peripheral hardware is remotely accessed are provided
CN107453970A (en) * 2017-09-25 2017-12-08 四川长虹电器股份有限公司 The intelligent home control system of home gateway and method are used as using smart mobile phone
CN108111999A (en) * 2017-12-28 2018-06-01 北京地平线机器人技术研发有限公司 Short-distance communication equipment shares request and control method and electronic equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109219028B (en) Equivalent device Bluetooth communication method and device based on cloud
US20150077231A1 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
TWI382712B (en) Apparatus, method, system, and computer-readable medium to provide group power management of network devices
US20150133049A1 (en) Method and apparatus for downloading content using nfc
US10110706B2 (en) Remote access method and device
JP6477133B2 (en) Communication equipment
CN109218994B (en) Equivalent equipment Bluetooth communication method and device based on gateway
CN101350813A (en) Method and apparatus for providing WiFi access internet for digital household electrical appliance
CN104486816A (en) Quick automatic scanning method of Wifi (Wireless Fidelity) terminal equipment in multiple access points
US9641395B2 (en) Method of processing device discovery
AU2013388030A1 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
EP2560404A2 (en) Electronic device and operating method of the same
CN109309965B (en) Bluetooth communication method and device based on shared channel controlled by cloud
US20160077986A1 (en) Electronic apparatus providing real-time switching and sharing of usb electronic devices among hosts
CN104301400A (en) Multi-screen cooperation and resource sharing method on basis of Samba protocol
CN109151787B (en) Bluetooth communication method and device based on cloud scheduling
CN108966200B (en) Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection
CN108966199B (en) Bluetooth communication method and device based on cloud inquiry buffer node
CN109089250B (en) Bluetooth communication method and device based on gateway scheduling
CN109151786B (en) Bluetooth communication method and device based on gateway scheduling connection
CN109462841B (en) Bluetooth communication method and device based on shared channel
CN109089249B (en) Bluetooth communication method and device based on gateway inquiry buffer node
CN109089251B (en) Bluetooth communication method and device for inquiring equivalent equipment based on Bluetooth connection
CN109309966B (en) Shared channel Bluetooth communication method and device based on gateway control
KR20200069532A (en) Electronic device for reducing power consumption in network baede on wireless fidelity direct protocol and method thereof

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.