CN110958593A - Bluetooth networking method, device, system and computer readable medium - Google Patents

Bluetooth networking method, device, system and computer readable medium Download PDF

Info

Publication number
CN110958593A
CN110958593A CN201911007938.5A CN201911007938A CN110958593A CN 110958593 A CN110958593 A CN 110958593A CN 201911007938 A CN201911007938 A CN 201911007938A CN 110958593 A CN110958593 A CN 110958593A
Authority
CN
China
Prior art keywords
bluetooth
identification information
gateway
connection request
bluetooth gateway
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.)
Pending
Application number
CN201911007938.5A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911007938.5A priority Critical patent/CN110958593A/en
Publication of CN110958593A publication Critical patent/CN110958593A/en
Pending legal-status Critical Current

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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The invention relates to a Bluetooth networking method, a device, a system and a computer readable medium, wherein the method comprises the following steps: receiving a connection request sent by a Bluetooth device; extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request; judging whether the identification information is consistent with the identification information of the Bluetooth gateway; and if the Bluetooth devices are consistent, connecting the Bluetooth devices. According to the invention, the identification information of the Bluetooth gateway is compared with the identification information in the connection request sent by the Bluetooth equipment, so that the accuracy of the distribution network is ensured, and the condition that the Bluetooth gateway and the Bluetooth equipment are connected in error is greatly reduced.

Description

Bluetooth networking method, device, system and computer readable medium
Technical Field
The invention relates to the field of distribution networks, in particular to a Bluetooth networking method, device and system and a computer readable medium.
Background
At present, bluetooth gateway is a product that can let bluetooth equipment possess and connect the internet function, and bluetooth gateway possess and connect wifi router function and connect bluetooth equipment function, consequently can connect bluetooth equipment and internet.
The specific implementation process is as follows: firstly, a network of the Bluetooth gateway is required to be distributed, so that the Bluetooth gateway is connected to the router and the server, and then the Bluetooth equipment is in a relationship with the Bluetooth gateway through Bluetooth, so that the Bluetooth equipment can communicate with the server through the gateway and further communicate with the client.
However, in the prior art, the situation that the bluetooth gateway and the bluetooth device are connected in error occurs, and the accuracy of the distribution network is low.
Disclosure of Invention
To solve the above technical problem or at least partially solve the above technical problem, the present invention provides a bluetooth networking method, apparatus, system and computer readable medium.
In a first aspect, the present invention provides a bluetooth networking method, applied to a bluetooth gateway, including:
receiving a connection request sent by a Bluetooth device;
extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request;
judging whether the identification information is consistent with the identification information of the Bluetooth gateway;
and if the Bluetooth devices are consistent, connecting the Bluetooth devices.
Optionally, before the receiving the connection request sent by the bluetooth device, the method further includes:
receiving a first configuration instruction sent by a client, wherein the first configuration instruction is used for indicating that a communication mode is configured to be a monitoring broadcast mode;
and configuring the communication mode of the self-body into a monitoring broadcast mode.
Optionally, before the receiving the configuration instruction sent by the client, the method further includes:
establishing network connection with the client;
receiving a second configuration instruction sent by the client through the network connection, wherein the second configuration instruction is used for indicating that a communication mode is configured to be a broadcast sending mode;
configuring a communication mode of the mobile terminal into a broadcast transmission mode;
and sending first broadcast data to the Bluetooth equipment so that the Bluetooth equipment returns the connection request according to the first broadcast data.
In a second aspect, a bluetooth networking method is provided, which is applied to a bluetooth device, and includes:
receiving first broadcast data sent by a Bluetooth gateway;
extracting identification information used for identifying Bluetooth gateway identity information in the first broadcast data;
generating a connection request according to the identification information;
and sending the connection request to a Bluetooth gateway so that the Bluetooth gateway is connected with the Bluetooth equipment when the identification information is determined to be consistent with the identification information of the Bluetooth gateway.
Optionally, the generating a connection request according to the identification information includes:
generating second broadcast data according to the identification information;
transmitting the second broadcast data to a client so that the client transmits indication information according to the second broadcast data;
and receiving the indication information, and if the indication information indicates that the connection is allowed, sending the connection request to the Bluetooth gateway.
Optionally, after the sending the second broadcast data to the client, the method further includes:
and sending a key to the client so that the client can encrypt data transmitted between the Bluetooth device and the Bluetooth gateway after the Bluetooth device is successfully connected with the Bluetooth gateway.
In a third aspect, a bluetooth networking apparatus is provided, which is applied to a bluetooth gateway, and includes:
a first receiving unit for receiving a connection request transmitted by a bluetooth device;
the first extraction unit is used for extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request;
the judging unit is used for judging whether the identification information is consistent with the identification information of the Bluetooth gateway;
and the connecting unit is used for connecting the Bluetooth equipment.
In a fourth aspect, a bluetooth networking apparatus is provided, which is applied to a bluetooth device, and includes:
the second receiving unit is used for receiving the first broadcast data sent by the Bluetooth gateway;
a second extracting unit, configured to extract identification information used for identifying bluetooth gateway identity information in the first broadcast data;
the generating unit is used for generating a connection request according to the identification information;
and the sending unit is used for sending the connection request to the Bluetooth gateway.
In a fifth aspect, there is provided a bluetooth networking system, comprising: a bluetooth gateway and a bluetooth device, wherein,
the Bluetooth device is used for receiving first broadcast data sent by a Bluetooth gateway; extracting identification information used for identifying Bluetooth gateway identity information in the first broadcast data; generating a connection request according to the identification information; sending the connection request to a Bluetooth gateway;
the Bluetooth gateway is used for receiving a connection request sent by Bluetooth equipment; extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request; judging whether the identification information is consistent with the identification information of the Bluetooth gateway; and if the Bluetooth devices are consistent, connecting the Bluetooth devices.
Optionally, the system further comprises a client,
the client is used for configuring a communication mode of the Bluetooth gateway so that the Bluetooth gateway can send or receive data, receiving second broadcast data sent by the Bluetooth equipment according to the first broadcast data, and sending indication information to the Bluetooth equipment according to the second broadcast data.
In a sixth aspect, the present invention provides a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of any of the first and second aspects.
In a seventh aspect, the present invention provides a bluetooth gateway, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the first aspect when executing the program stored in the memory.
In an eighth aspect, the present invention provides a bluetooth device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the second aspect when executing the program stored in the memory.
In a ninth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the bluetooth networking methods described above.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
the method provided by the embodiment of the invention receives a connection request sent by the Bluetooth equipment; extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request; judging whether the identification information is consistent with the identification information of the Bluetooth gateway; and if the Bluetooth devices are consistent, connecting the Bluetooth devices. According to the invention, the identification information of the Bluetooth gateway is compared with the identification information in the connection request sent by the Bluetooth equipment, so that the accuracy of the distribution network is ensured, and the condition that the Bluetooth gateway and the Bluetooth equipment are connected in error is greatly reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a bluetooth networking system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a bluetooth networking method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a bluetooth networking method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a bluetooth networking method according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a bluetooth networking method according to an exemplary embodiment of the present invention;
fig. 6 is a schematic structural diagram of a bluetooth networking device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a bluetooth networking device according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a bluetooth gateway according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a bluetooth device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Because the condition that the Bluetooth gateway and the Bluetooth equipment are connected in error can occur in the prior art, the accuracy of the distribution network is low. Therefore, the bluetooth networking method provided by the embodiment of the invention can be applied to a bluetooth networking system. Fig. 1 is a schematic diagram of a bluetooth networking system according to an embodiment of the present application. The bluetooth networking system may include a client, a bluetooth gateway, a bluetooth device, a router, and a server. The client is configured to configure a communication mode of the bluetooth gateway, so that the bluetooth gateway sends or receives data, and is further configured to receive second broadcast data sent by the bluetooth device according to the first broadcast data, and send indication information to the bluetooth device according to the second broadcast data. A Bluetooth gateway for receiving a connection request transmitted by a Bluetooth device; extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request; judging whether the identification information is consistent with the identification information of the Bluetooth gateway; if the two signals are consistent, the Bluetooth device is connected. The Bluetooth device is used for receiving first broadcast data sent by the Bluetooth gateway; extracting identification information used for identifying Bluetooth gateway identity information in the first broadcast data; generating a connection request according to the identification information; and sending a connection request to the Bluetooth gateway so that the Bluetooth gateway judges whether to be connected with the Bluetooth equipment according to the connection request. The router is a network device for network connection to the bluetooth gateway. The server is a data processing device connected to the cloud end after the Bluetooth gateway is connected through the router.
In this embodiment, the bluetooth gateway, also called a bluetooth probe, integrates two Wireless communication modes, namely, WiFi (Wireless-Fidelity, Wireless network) and bluetooth. Through serial port communication between wiFi and the bluetooth, the bluetooth gateway communicates with bluetooth equipment through the bluetooth mode, and the bluetooth gateway passes through wiFi communication mode and server communication. After the Bluetooth device is connected with the Bluetooth gateway through a network, data are sent to the Bluetooth gateway in a Bluetooth mode, and the Bluetooth gateway is sent to the server in a WiFi mode, so that communication connection between the Bluetooth device and the server is achieved.
The embodiment of the present application provides a bluetooth networking method, which may be applied to a bluetooth gateway in the above bluetooth networking system, as shown in fig. 2, and a processing procedure of the method may include the following steps.
Step S201, a connection request sent by the bluetooth device is received.
In this embodiment, the number of bluetooth devices is not limited, and may be 1 or multiple. Under the condition that the number of the Bluetooth devices is multiple, the Bluetooth gateway can realize the batch distribution of the multiple Bluetooth devices. For example, the bluetooth gateway may process connection requests of a plurality of bluetooth devices simultaneously, or may process connection requests one by one in the order of the received connection requests.
Optionally, in this embodiment, in order to ensure that the bluetooth gateway can receive the connection request sent by the bluetooth device, the communication mode of the bluetooth gateway needs to be a listening broadcast mode, and therefore, before step S201, the method further includes: and receiving a first configuration instruction sent by the client, wherein the first configuration instruction is used for indicating that the communication mode is configured to be the monitoring broadcast mode. And configuring the communication mode of the self-body into a monitoring broadcast mode.
In this embodiment, the communication device based on the bluetooth mode may have two communication modes, one is a broadcast transmission mode, and the other is a broadcast listening mode, in the broadcast transmission mode, broadcast signals may be actively transmitted to other devices, in the broadcast listening mode, broadcast signals of surrounding devices may be actively searched, and one communication device may be in only one of the modes at the same time, so that the client may actively search for a connection request transmitted by the bluetooth device by configuring the bluetooth gateway into the broadcast listening mode. The specific implementation process may be: the client sends a first configuration instruction to the Bluetooth gateway, the Bluetooth gateway can send a trigger signal to a Bluetooth module in the Bluetooth gateway after receiving the first configuration instruction, and the Bluetooth module configures a Bluetooth communication mode into a monitoring broadcast mode according to the trigger signal. For example, if the trigger signal is high, it is configured to listen to the broadcast mode, and if the trigger signal is low, it is configured to transmit the broadcast mode.
Step S202, extracting the identification information used for identifying the Bluetooth gateway identity in the connection request.
In this embodiment, the bluetooth gateway may parse the connection request, so as to extract the identification information for identifying the identity of the bluetooth gateway in the connection request.
In this embodiment, the identification information for identifying the Identity of the bluetooth gateway may be generated according to a preset rule, for example, the preset rule is that the identification information is composed of a brand and a flag bit, for example, GR — XXXX, where GR is the brand of the bluetooth gateway, XXXX is the flag bit generated by the bluetooth gateway according to its own device ID (Identity document), the brand and the flag bit make the bluetooth gateway unique, and the bluetooth gateway stores the generated identification information.
Step S203, judging whether the identification information is consistent with the identification information of the Bluetooth gateway.
In this embodiment, the identification information in the extracted connection request is compared with the identification information of the bluetooth gateway itself stored in the bluetooth gateway, and if the comparison result is inconsistent, it indicates that the connection request received by the bluetooth device is not directed to the bluetooth gateway, and may be directed to another bluetooth gateway, where the bluetooth gateway is not connected to the bluetooth device, so that a connection error between the bluetooth gateway and the bluetooth device can be avoided. If the comparison result is consistent, step 204 is performed.
And step S204, if the connection is consistent, connecting the Bluetooth equipment.
In this embodiment, the method for the bluetooth gateway to network with the bluetooth device is performed on the basis that the bluetooth gateway has successfully configured a network with the server. Accordingly, before the bluetooth networking process of steps S201-S204 is performed, it is detected whether the bluetooth gateway is successfully networked with the server. If the Bluetooth gateway and the server are not successfully networked, the Bluetooth gateway does not execute the process; if the Bluetooth gateway and the server are successfully networked, the Bluetooth gateway starts to execute the process.
Specifically, the bluetooth gateway performs network distribution through the router and the server, and the network distribution process is the prior art and is not described herein again.
The method provided by the embodiment of the invention receives a connection request sent by the Bluetooth equipment; extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request; judging whether the identification information is consistent with the identification information of the Bluetooth gateway; if the two signals are consistent, the Bluetooth device is connected. According to the invention, the identification information of the Bluetooth gateway is compared with the identification information in the connection request sent by the Bluetooth equipment, so that the accuracy of the distribution network is ensured, and the condition that the Bluetooth gateway and the Bluetooth equipment are connected in error is greatly reduced.
Optionally, in this embodiment, in order to receive a connection request of a bluetooth device, broadcast data needs to be sent to the bluetooth device, as shown in fig. 3, a process of sending the broadcast data by the bluetooth gateway is specifically as follows:
step S301, establishing network connection with the client.
In this embodiment, a network connection is established between the client and the bluetooth gateway through WiFi, so that the client sends a configuration instruction to the bluetooth gateway through the network connection.
Step S302, receiving a second configuration instruction sent by the client through the network connection.
The second configuration instruction is used for indicating that the communication mode is configured to be the broadcast transmission mode.
In this embodiment, after the network connection is established between the client and the bluetooth gateway, the second configuration instruction may be sent to the bluetooth gateway through the network connection, and the bluetooth gateway may receive the second configuration instruction.
Step S303, configure its own communication mode to send a broadcast mode.
In this embodiment, the bluetooth gateway sends a trigger signal to the bluetooth module in the triggered bluetooth gateway according to the second configuration instruction, and the bluetooth module configures the communication mode of the bluetooth module into a broadcast sending mode according to the trigger signal. For example, a high level of the trigger signal indicates a configuration to listen to the broadcast mode, and a low level of the trigger signal indicates a configuration to transmit the broadcast mode.
Step S304, the first broadcast data is sent to the Bluetooth device, so that the Bluetooth device returns a connection request according to the first broadcast data.
In this embodiment, the client configures the communication mode of the bluetooth gateway to be a broadcast transmission mode, and the bluetooth gateway encapsulates the generated identification information into the first broadcast data and transmits the first broadcast data to the bluetooth device. After receiving the connection request, the Bluetooth gateway extracts the identification information, compares the identification information with the stored identification information of the Bluetooth gateway, and if the identification information is consistent with the stored identification information, the Bluetooth gateway is connected with the Bluetooth equipment, so that the accuracy of a distribution network is ensured, and the error rate is reduced.
As shown in fig. 4, the present application provides another bluetooth networking method, which is applied to a bluetooth device, and a process of the method may include the following steps.
Step S401, receiving first broadcast data sent by the Bluetooth gateway.
In this embodiment, the method for the bluetooth gateway to network with the bluetooth device is performed on the basis that the bluetooth gateway has successfully configured a network with the server.
In this embodiment, the bluetooth device also needs to configure a communication mode first, and needs to configure a monitor broadcast mode first, so as to be able to search for the first broadcast data sent by the bluetooth gateway, where the bluetooth device configures the communication mode may be configured by hardware, or may be configured by the client, for example, a user performs a reset operation through a reset operation key of the bluetooth device itself, because the initial mode of the bluetooth device is the monitor broadcast mode, and after the reset operation is performed, the bluetooth device configures the monitor broadcast mode.
Upon receiving the first broadcast data, switching to a transmission broadcast mode to transmit a connection request to the Bluetooth device.
Step S402, extracting the identification information used for identifying the Bluetooth gateway identity information in the first broadcast data.
In this embodiment, by extracting the identification information in the first broadcast data and packaging the identification information into the connection request, it can be ensured that the bluetooth gateway can determine whether to connect with the bluetooth device according to the connection request, thereby improving the configuration precision and reducing the error rate.
Step S403, generates a connection request according to the identification information.
Optionally, in this embodiment, the specific process of generating the connection request according to the identification information includes:
step one, second broadcast data is generated according to the identification information.
And step two, sending second broadcast data to the client so that the client can send indication information according to the second broadcast data.
Optionally, in this embodiment, after the bluetooth device sends the second broadcast data to the client, the bluetooth device may also send a key to the client, so that the client encrypts data transmitted between the bluetooth device and the bluetooth gateway after the bluetooth device successfully connects to the bluetooth gateway.
In this embodiment, when the bluetooth gateway sends the first broadcast data, the client may also receive the first broadcast data, extract the identification information in the first broadcast data for storage, when the second broadcast data is received, compare the identification information in the second broadcast data with the identification information in the first broadcast data stored by the client, if the two identification information are consistent, it is indicated that the bluetooth device has a bluetooth gateway paired with the bluetooth device for pairing and networking, the key of the bluetooth device may be obtained, and the key is sent to the server for storage, so that after subsequent bluetooth devices and bluetooth gateways are successfully networked, the data to be transmitted later is encrypted, so as to improve the security of the data.
In the present embodiment, the key of the bluetooth device is generated by the bluetooth device from its own ID information or the like.
And step three, receiving the indication information, and if the indication information indicates that the connection is allowed, sending a connection request to the Bluetooth gateway.
In this embodiment, the bluetooth device extracts the identification information from the first broadcast data, encapsulates the identification information into the second broadcast data, and sends the second broadcast data to the client. For example, the content of the second broadcast data may be "waiting for connection with the client", and the client, receiving the second broadcast data, determines whether the second broadcast data includes identification information of a bluetooth gateway, and if the second broadcast data includes broadcast information that proves that the bluetooth gateway has indeed been received by the bluetooth device, and a bluetooth gateway can be connected with the bluetooth device, sends an indication information to the bluetooth device indicating that the bluetooth device can be connected, so that the bluetooth device can send a connection request to the bluetooth gateway, and if the client determines that the second broadcast data does not include identification information, which indicates that no bluetooth gateway capable of networking with the bluetooth device is available, sends an indication information to the bluetooth device indicating that the bluetooth device does not send a connection request.
By the method, the Bluetooth equipment can accurately send the connection request, unnecessary connection requests are reduced, the accuracy of the connection request received by the Bluetooth gateway is ensured, unnecessary data processing is avoided, and data transmission resources are saved.
Step S404, a connection request is sent to a Bluetooth gateway, so that the Bluetooth gateway is connected with the Bluetooth equipment when the identification information is determined to be consistent with the identification information of the Bluetooth gateway.
In this embodiment, the number of the bluetooth devices sending the connection request to the bluetooth gateway is not limited, and may be 1 or multiple, and if there are multiple bluetooth devices, a batch network distribution is implemented.
The embodiment of the present application further provides an example of a bluetooth networking method, as shown in fig. 5, the method specifically includes the following steps:
step S501: and the client sends a second configuration instruction to the Bluetooth gateway through the same WiFi connected with the Bluetooth gateway.
The second configuration instruction is used for indicating that the communication mode is configured to be the broadcast transmission mode.
Step S502: and the Bluetooth gateway configures the communication mode into a broadcast sending mode according to the second configuration instruction.
Step S503: the bluetooth device resets and sets to listen for the broadcast mode.
Step S504: the Bluetooth gateway sends first broadcast data to the Bluetooth device, wherein the first broadcast data is packaged with identification information of the Bluetooth gateway.
Step S505: and after receiving the first broadcast data, the Bluetooth device switches the communication mode into a broadcast sending mode, extracts the identification information in the first broadcast data, and packages the identification information into the connection request and the second broadcast data.
Step S506: the Bluetooth device sends second broadcast data to the client.
Wherein the content of the second broadcast data may be "waiting for connection with the client".
Step S507: and the client sends the indication information to the Bluetooth equipment according to the second broadcast data.
Step S508: if the indication information indicates that the connection is allowed, the Bluetooth device sends a connection request to the Bluetooth gateway.
Step S509: the client sends a first configuration instruction to the Bluetooth gateway.
The first configuration instruction is used for indicating that the communication mode is configured to be the monitoring broadcast mode.
Step S510: the Bluetooth gateway configures the communication mode into a monitoring broadcast mode according to the first configuration instruction.
In this embodiment, step S509 and step S510 may precede step S505, but are not limited thereto.
Step S511: and the Bluetooth gateway receives the connection request, extracts the identification information in the connection request, compares the identification information with the identification information of the Bluetooth gateway, and connects the Bluetooth equipment if the identification information is consistent with the identification information of the Bluetooth gateway.
Based on the same technical concept, an embodiment of the present application further provides a bluetooth networking apparatus, which is applied to a bluetooth gateway, and as shown in fig. 6, the apparatus includes:
a first receiving unit 610 for receiving a connection request transmitted by a bluetooth device;
a first extracting unit 620, configured to extract identification information for identifying an identity of a bluetooth gateway in the connection request;
a judging unit 630, configured to judge whether the identification information is consistent with identification information of the bluetooth gateway itself;
and a connection unit 640 for connecting the bluetooth device.
Optionally, the apparatus further includes a third receiving unit and a first configuration unit, the second receiving unit is configured to receive a first configuration instruction sent by the client, and the first configuration instruction is used to indicate that the communication mode is configured to the listening broadcast mode.
The configuration unit is used for configuring the communication mode of the configuration unit into a monitoring broadcast mode.
Optionally, the apparatus further comprises:
a fourth receiving unit, configured to receive a second configuration instruction sent by the client through the network connection, where the second configuration instruction is used to instruct to configure a communication mode into a broadcast sending mode.
And the second configuration unit is used for configuring the communication mode of the second configuration unit into a broadcast sending mode.
The first sending unit is used for sending first broadcast data to the Bluetooth equipment so that the Bluetooth equipment returns a connection request according to the first broadcast data.
Based on the same technical concept, an embodiment of the present application provides a bluetooth networking apparatus, which is applied to a bluetooth device, and as shown in fig. 7, the apparatus includes:
a second receiving unit 710, configured to receive first broadcast data sent by a bluetooth gateway;
a second extracting unit 720, configured to extract identification information for identifying the bluetooth gateway identity information in the first broadcast data;
a generating unit 730, configured to generate a connection request according to the identification information;
a sending unit 740, configured to send a connection request to the bluetooth gateway.
Optionally, the generating unit is specifically configured to:
generating second broadcast data according to the identification information;
transmitting the second broadcast data to a client so that the client transmits indication information according to the second broadcast data;
and receiving the indication information, and if the indication information indicates that the connection is allowed, sending the connection request to the Bluetooth gateway.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit or module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail herein.
Based on the same technical concept, the embodiment of the present application further provides a bluetooth networking system, including: the invention provides a Bluetooth gateway and Bluetooth equipment, which are schematic diagrams of a Bluetooth networking system provided by the invention. Wherein the content of the first and second substances,
the Bluetooth device is used for receiving first broadcast data sent by the Bluetooth gateway; extracting identification information used for identifying Bluetooth gateway identity information in the first broadcast data; generating a connection request according to the identification information; sending the connection request to a Bluetooth gateway;
a Bluetooth gateway for receiving a connection request transmitted by a Bluetooth device; extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request; judging whether the identification information is consistent with the identification information of the Bluetooth gateway; and if the Bluetooth devices are consistent, connecting the Bluetooth devices.
Optionally, the system further includes a client configured to configure a communication mode of the bluetooth gateway, so that the bluetooth gateway sends or receives data, and is further configured to receive second broadcast data sent by the bluetooth device according to the first broadcast data, and send instruction information to the bluetooth device according to the second broadcast data.
The embodiment of the present application further provides a bluetooth gateway, as shown in fig. 8, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the method steps performed by the bluetooth gateway in the bluetooth networking method when executing the program stored in the memory 803.
The communication bus mentioned in the bluetooth gateway may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the client and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The embodiment of the present application further provides a bluetooth device, as shown in fig. 9, which includes a processor 901, a communication interface 902, a memory 903 and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the method steps executed by the bluetooth device in the bluetooth networking method when executing the program stored in the memory 903.
The communication bus mentioned in the bluetooth gateway may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the sink node and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In yet another embodiment provided herein, there is also provided a computer readable storage medium having a computer program stored therein, the computer program implementing the steps of any of the above-mentioned bluetooth networking methods when executed by a processor.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the above-described embodiments of the method of bluetooth networking.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (ssd)), among others.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A Bluetooth networking method is applied to a Bluetooth gateway and comprises the following steps:
receiving a connection request sent by a Bluetooth device;
extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request;
judging whether the identification information is consistent with the identification information of the Bluetooth gateway;
and if the Bluetooth devices are consistent, connecting the Bluetooth devices.
2. The method of claim 1, further comprising, prior to said receiving the connection request sent by the Bluetooth device:
receiving a first configuration instruction sent by a client, wherein the first configuration instruction is used for indicating that a communication mode is configured to be a monitoring broadcast mode;
and configuring the communication mode of the self-body into a monitoring broadcast mode.
3. The method of claim 2, further comprising, prior to the receiving the configuration instruction sent by the client:
establishing network connection with the client;
receiving a second configuration instruction sent by the client through the network connection, wherein the second configuration instruction is used for indicating that a communication mode is configured to be a broadcast sending mode;
configuring a communication mode of the mobile terminal into a broadcast transmission mode;
and sending first broadcast data to the Bluetooth equipment so that the Bluetooth equipment returns the connection request according to the first broadcast data.
4. A Bluetooth networking method is applied to Bluetooth equipment and comprises the following steps:
receiving first broadcast data sent by a Bluetooth gateway;
extracting identification information used for identifying Bluetooth gateway identity information in the first broadcast data;
generating a connection request according to the identification information;
and sending the connection request to a Bluetooth gateway so that the Bluetooth gateway is connected with the Bluetooth equipment when the identification information is determined to be consistent with the identification information of the Bluetooth gateway.
5. The method of claim 4, wherein the generating a connection request according to the identification information comprises:
generating second broadcast data according to the identification information;
transmitting the second broadcast data to a client so that the client transmits indication information according to the second broadcast data;
and receiving the indication information, and if the indication information indicates that the connection is allowed, sending the connection request to the Bluetooth gateway.
6. The method of claim 5, further comprising, after the sending the second broadcast data to the client:
and sending a key to the client so that the client can encrypt data transmitted between the Bluetooth device and the Bluetooth gateway after the Bluetooth device is successfully connected with the Bluetooth gateway.
7. A Bluetooth networking device, applied to a Bluetooth gateway, comprising:
a first receiving unit for receiving a connection request transmitted by a bluetooth device;
the first extraction unit is used for extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request;
the judging unit is used for judging whether the identification information is consistent with the identification information of the Bluetooth gateway;
and the connecting unit is used for connecting the Bluetooth equipment.
8. A Bluetooth networking device, applied to a Bluetooth device, comprising:
the second receiving unit is used for receiving the first broadcast data sent by the Bluetooth gateway;
a second extracting unit, configured to extract identification information used for identifying bluetooth gateway identity information in the first broadcast data;
the generating unit is used for generating a connection request according to the identification information;
and the sending unit is used for sending the connection request to the Bluetooth gateway.
9. A bluetooth networking system, comprising: a bluetooth gateway and a bluetooth device, wherein,
the Bluetooth device is used for receiving first broadcast data sent by a Bluetooth gateway; extracting identification information used for identifying Bluetooth gateway identity information in the first broadcast data; generating a connection request according to the identification information; sending the connection request to a Bluetooth gateway;
the Bluetooth gateway is used for receiving a connection request sent by Bluetooth equipment; extracting identification information used for identifying the identity of the Bluetooth gateway in the connection request; judging whether the identification information is consistent with the identification information of the Bluetooth gateway; and if the Bluetooth devices are consistent, connecting the Bluetooth devices.
10. The Bluetooth networking system of claim 9, wherein the system further comprises a client,
the client is used for configuring a communication mode of the Bluetooth gateway so that the Bluetooth gateway can send or receive data, receiving second broadcast data sent by the Bluetooth equipment according to the first broadcast data, and sending indication information to the Bluetooth equipment according to the second broadcast data.
11. A Bluetooth gateway is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 3 when executing a program stored in the memory.
12. The Bluetooth equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 4 to 6 when executing a program stored in the memory.
13. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-3 or 4-6.
CN201911007938.5A 2019-10-22 2019-10-22 Bluetooth networking method, device, system and computer readable medium Pending CN110958593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007938.5A CN110958593A (en) 2019-10-22 2019-10-22 Bluetooth networking method, device, system and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007938.5A CN110958593A (en) 2019-10-22 2019-10-22 Bluetooth networking method, device, system and computer readable medium

Publications (1)

Publication Number Publication Date
CN110958593A true CN110958593A (en) 2020-04-03

Family

ID=69975728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007938.5A Pending CN110958593A (en) 2019-10-22 2019-10-22 Bluetooth networking method, device, system and computer readable medium

Country Status (1)

Country Link
CN (1) CN110958593A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556555A (en) * 2020-04-29 2020-08-18 杭州涂鸦信息技术有限公司 Low-power-consumption keep-alive method and system for network camera and gateway
CN111654844A (en) * 2020-04-23 2020-09-11 杭州涂鸦信息技术有限公司 Device pairing method and related device and device
CN113329385A (en) * 2021-06-03 2021-08-31 永安行科技股份有限公司 Networking method and system based on low-power-consumption Bluetooth router and terminal
CN113727291A (en) * 2020-05-26 2021-11-30 菜鸟智能物流控股有限公司 Equipment interaction method, device, server and data processing method
CN115460073A (en) * 2022-06-28 2022-12-09 杭州涂鸦信息技术有限公司 Equipment configuration method, device, equipment deployment system and storage medium
WO2023010962A1 (en) * 2021-08-03 2023-02-09 海尔(深圳)研发有限责任公司 Method and apparatus for bluetooth device networking, server, mobile terminal, and bluetooth gateway device
CN116033070A (en) * 2021-10-27 2023-04-28 中移(杭州)信息技术有限公司 Alarm method and device based on signal detection and storage medium
CN116801258A (en) * 2023-08-22 2023-09-22 北京领创医谷科技发展有限责任公司 Wireless communication connection method, system, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
CN107197424A (en) * 2017-06-06 2017-09-22 欧普照明股份有限公司 Bluetooth connecting method, bluetooth equipment and bluetooth connection system
CN108093387A (en) * 2018-01-17 2018-05-29 深圳市信锐网科技术有限公司 Enterprise-level blueteeth network framework, central controller, Bluetooth gateway and dispositions method
WO2018127200A1 (en) * 2017-01-09 2018-07-12 云丁网络技术(北京)有限公司 Method for smart device to access network, mobile terminal, cloud server, device, and system
CN108881052A (en) * 2018-06-26 2018-11-23 新华三技术有限公司 A kind of message forwarding method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
WO2018127200A1 (en) * 2017-01-09 2018-07-12 云丁网络技术(北京)有限公司 Method for smart device to access network, mobile terminal, cloud server, device, and system
CN107197424A (en) * 2017-06-06 2017-09-22 欧普照明股份有限公司 Bluetooth connecting method, bluetooth equipment and bluetooth connection system
CN108093387A (en) * 2018-01-17 2018-05-29 深圳市信锐网科技术有限公司 Enterprise-level blueteeth network framework, central controller, Bluetooth gateway and dispositions method
CN108881052A (en) * 2018-06-26 2018-11-23 新华三技术有限公司 A kind of message forwarding method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654844A (en) * 2020-04-23 2020-09-11 杭州涂鸦信息技术有限公司 Device pairing method and related device and device
CN111556555A (en) * 2020-04-29 2020-08-18 杭州涂鸦信息技术有限公司 Low-power-consumption keep-alive method and system for network camera and gateway
CN113727291A (en) * 2020-05-26 2021-11-30 菜鸟智能物流控股有限公司 Equipment interaction method, device, server and data processing method
CN113329385A (en) * 2021-06-03 2021-08-31 永安行科技股份有限公司 Networking method and system based on low-power-consumption Bluetooth router and terminal
WO2023010962A1 (en) * 2021-08-03 2023-02-09 海尔(深圳)研发有限责任公司 Method and apparatus for bluetooth device networking, server, mobile terminal, and bluetooth gateway device
CN116033070A (en) * 2021-10-27 2023-04-28 中移(杭州)信息技术有限公司 Alarm method and device based on signal detection and storage medium
CN115460073A (en) * 2022-06-28 2022-12-09 杭州涂鸦信息技术有限公司 Equipment configuration method, device, equipment deployment system and storage medium
CN116801258A (en) * 2023-08-22 2023-09-22 北京领创医谷科技发展有限责任公司 Wireless communication connection method, system, equipment and storage medium
CN116801258B (en) * 2023-08-22 2023-11-21 北京领创医谷科技发展有限责任公司 Wireless communication connection method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110958593A (en) Bluetooth networking method, device, system and computer readable medium
US10999784B2 (en) Method for smart device to access network, mobile terminal, cloud server, device, and system
US20200177599A1 (en) Network connection method, hotspot terminal and management terminal
CN105813115B (en) WIFI network configuration method and device
US7940732B2 (en) Automatic wireless network device configuration
JP6726426B2 (en) Login-free method and device between terminals
US10171997B2 (en) Method and apparatus for interconnection between terminal device and gateway device
WO2019052532A1 (en) Information interaction method, apparatus and device for internet of things device
JP6756009B2 (en) Data transmission
US10820369B2 (en) Wireless connection establishing methods and wireless connection establishing apparatuses
TW202007221A (en) Network access method and apparatus
CN107567017B (en) Wireless connection system, device and method
WO2018103400A1 (en) Wireless fidelity wifi connection method and related product
CN112969167A (en) Equipment network distribution method, device and system, electronic equipment and storage medium
US9848319B2 (en) Service set determination based upon device type identifier
CN113810427B (en) Penetration testing method, terminal equipment and storage medium
CN112866101A (en) Equipment networking method and device, electronic equipment and storage medium
CN109067666B (en) Message transmission method and device
CN114245405B (en) Equipment network distribution method, electronic equipment and storage medium
US11832163B2 (en) Method for the automatic configuration by audio channel of a wireless device
CN114245402B (en) Network distribution method and device of intelligent equipment, electronic equipment and storage medium
WO2022051917A1 (en) Device configuration method, device network distribution method, and device
CN109361682B (en) Communication method, device, equipment and storage medium
KR102145680B1 (en) Method for automatic wlan connection and apparatus thereof
CN114157562A (en) Network distribution method, device and system, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200403