CN110830968A - Networking method and device, Bluetooth equipment and computer readable medium - Google Patents

Networking method and device, Bluetooth equipment and computer readable medium Download PDF

Info

Publication number
CN110830968A
CN110830968A CN201910945829.1A CN201910945829A CN110830968A CN 110830968 A CN110830968 A CN 110830968A CN 201910945829 A CN201910945829 A CN 201910945829A CN 110830968 A CN110830968 A CN 110830968A
Authority
CN
China
Prior art keywords
bluetooth
mesh network
bluetooth device
equipment
bluetooth equipment
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
CN201910945829.1A
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 CN201910945829.1A priority Critical patent/CN110830968A/en
Publication of CN110830968A publication Critical patent/CN110830968A/en
Priority to PCT/CN2020/100325 priority patent/WO2021063059A1/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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/069Authentication using certificates or pre-shared keys
    • 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 invention relates to a networking method, a networking device, Bluetooth equipment and a computer readable medium, wherein the method comprises the following steps: scanning whether a second Bluetooth device exists around; if the second Bluetooth equipment exists, determining whether the second Bluetooth equipment and third Bluetooth equipment establish a Bluetooth mesh network; and if the second Bluetooth equipment and third Bluetooth equipment establish a Bluetooth mesh network, adding the second Bluetooth equipment into the Bluetooth mesh network. The invention can automatically join the Bluetooth mesh network when the Bluetooth mesh network exists around the first Bluetooth equipment, realizes automatic networking of intelligent equipment based on the Bluetooth communication technology, synchronizes the control instruction received by any Bluetooth equipment in the Bluetooth mesh network to other Bluetooth equipment after networking, realizes interconnection and intercommunication among the networked Bluetooth equipment, does not need to send the control instruction to a plurality of Bluetooth equipment one by one, saves the operation time of a user, improves the control efficiency of the plurality of Bluetooth equipment, and is convenient for the user to use.

Description

Networking method and device, Bluetooth equipment and computer readable medium
Technical Field
The present invention relates to the field of communications, and in particular, to a networking method and apparatus, a bluetooth device, and a computer readable medium.
Background
Currently, the existing bluetooth technology can only perform point-to-point communication between bluetooth devices, for example: after a smart phone starts a bluetooth function, the smart phone can only be connected to one bluetooth device (for example, a certain household appliance with the bluetooth function), so that the existing bluetooth technology can only control and operate the bluetooth device in a point-to-point connection state, and can only control and operate a single bluetooth device (household appliance).
However, when a user needs to control a plurality of bluetooth devices, if each bluetooth device is connected and controlled one by one, the operation is very inconvenient, and a lot of user time is wasted.
Disclosure of Invention
The invention provides a networking method, a networking device, Bluetooth equipment and a computer readable medium, and aims to solve the technical problems that when a user needs to control a plurality of Bluetooth equipment, if each Bluetooth equipment is connected and controlled one by one, the operation is very inconvenient, and a large amount of user time is wasted.
In a first aspect, the present invention provides a networking method, applied to a first bluetooth device, including:
scanning whether a second Bluetooth device exists around;
if the second Bluetooth equipment exists, determining whether the second Bluetooth equipment and third Bluetooth equipment establish a Bluetooth mesh network;
and if the second Bluetooth equipment and third Bluetooth equipment establish a Bluetooth mesh network, adding the second Bluetooth equipment into the Bluetooth mesh network.
Optionally, the method further includes:
and if the second Bluetooth equipment does not establish the Bluetooth mesh network with third Bluetooth equipment, establishing the Bluetooth mesh network with the second Bluetooth equipment.
Optionally, establishing a bluetooth mesh network with the second bluetooth device includes:
sending a connection request to the second Bluetooth device;
receiving a certificate acquisition request which is sent by the second Bluetooth device and encrypted by using a preset encryption mode, and sending a first encryption certificate to the second Bluetooth device by using the preset encryption mode;
if receiving an authentication success message of the first Bluetooth device sent by the second Bluetooth device, sending a certificate acquisition request encrypted by using a preset encryption mode to the second Bluetooth device;
receiving a second encryption certificate which is sent by the second Bluetooth device and uses the preset encryption mode;
if the second encryption certificate is verified, sending an authentication success message of the second Bluetooth device to the second Bluetooth device;
and sending the name and the key of the established Bluetooth mesh network to the second Bluetooth equipment.
Optionally, the method further includes:
if no second Bluetooth device exists around, receiving a connection request sent by a fourth Bluetooth device;
sending a certificate acquisition request encrypted by using a preset encryption mode to the fourth Bluetooth equipment, and receiving a third encrypted certificate which is sent by the fourth Bluetooth equipment and encrypted by using the preset encryption mode;
if the third encryption certificate is verified, sending an authentication success message of the fourth Bluetooth device to the fourth Bluetooth device;
receiving a certificate acquisition request which is sent by a fourth Bluetooth device and encrypted by using a preset encryption mode;
sending a fourth encryption certificate encrypted by using a preset encryption mode to the fourth Bluetooth device;
and if receiving the successful authentication message of the first Bluetooth device, which is sent by the fourth Bluetooth device, receiving the name and the secret key of the established Bluetooth mesh network, which are sent by the fourth Bluetooth device.
Optionally, the bluetooth mesh network includes: the Bluetooth device is connected with the wireless router, the other Bluetooth devices are not connected with the wireless router, and the Bluetooth device connected with the wireless router is communicated with the other Bluetooth devices in a Bluetooth mode.
Optionally, in the bluetooth mesh network: except that the Bluetooth equipment connected with the wireless router is in a working state, the other Bluetooth equipment is in a dormant state.
Optionally, in the bluetooth mesh network: if the wireless module of any Bluetooth device is in a dormant state, when the Bluetooth module of the Bluetooth device receives a control command or transmits data, the wireless module is awakened.
Optionally, in the bluetooth mesh network, when a bluetooth device connected to the wireless router fails, one bluetooth device is selected from the remaining bluetooth devices to connect to the wireless router.
In a second aspect, the present invention provides a networking apparatus, comprising:
the scanning module is used for scanning whether second Bluetooth equipment exists around;
the determining module is used for determining whether a second Bluetooth device establishes a Bluetooth mesh network with a third Bluetooth device if the second Bluetooth device exists;
and the adding module is used for adding the second Bluetooth equipment into the Bluetooth mesh network if the second Bluetooth equipment and third Bluetooth equipment establish the Bluetooth mesh network.
In a third aspect, the present invention provides a bluetooth device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; the memory has stored therein a computer program operable on the processor, which when executed by the processor performs the steps of the method of any of the first aspects.
In a fourth aspect, the 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 aspects.
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 determines whether the second Bluetooth device establishes the Bluetooth mesh network with the third Bluetooth device or not by scanning whether the second Bluetooth device exists around, if so, the second Bluetooth device can join the Bluetooth mesh network.
The first Bluetooth equipment can automatically join the Bluetooth mesh network when the Bluetooth mesh network exists around, automatic networking of intelligent equipment is realized based on a Bluetooth communication technology, after networking, a control instruction received by any Bluetooth equipment in the Bluetooth mesh network can be synchronized to other Bluetooth equipment, interconnection and intercommunication among the networked Bluetooth equipment can be realized, the control instruction does not need to be sent to a plurality of Bluetooth equipment one by one, user operation time is saved, control efficiency of the plurality of Bluetooth equipment is improved, and the Bluetooth mesh network is convenient for users to use.
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 flowchart illustrating a networking method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a networking method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a networking method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a bluetooth mesh network according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a bluetooth network in which only one bluetooth module of a bluetooth device is connected to a wireless router according to yet another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a networking device according to an embodiment of the present invention;
fig. 7 is a structural diagram of a bluetooth device according to another 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.
When a user needs to control a plurality of Bluetooth devices, if each Bluetooth device is connected and controlled one by one, the operation is very inconvenient, and a large amount of user time is wasted. To this end, in an embodiment of the present invention, the method may be applied to a first Bluetooth device, where the first Bluetooth device refers to a household appliance with a Bluetooth module and a wireless module built therein, where the Bluetooth module may refer to a Bluetooth Low Energy (BLE) module, and the first Bluetooth device has an encryption certificate built therein, as shown in fig. 1, where the method may include the following steps:
step S101, whether second Bluetooth equipment exists around is scanned;
in the embodiment of the present invention, the second Bluetooth device refers to a household appliance having a Bluetooth module and a wireless module built therein, where the Bluetooth module may refer to a Bluetooth Low Energy (BLE) module, and the second Bluetooth device has an encryption certificate built therein.
After the first Bluetooth device and the second Bluetooth device are powered on, the ad hoc network mode can be automatically started, and the periphery can be automatically scanned by using the built-in Bluetooth module.
In the step, after the first Bluetooth device is powered on, the first Bluetooth device can automatically start an ad hoc network mode, a Bluetooth module in the first Bluetooth device is used for automatically scanning whether a second Bluetooth device with the same Bluetooth function is arranged around the first Bluetooth device, and if the second Bluetooth device is scanned, the device identification of the second Bluetooth device is displayed in a Bluetooth device list.
Step S102, if a second Bluetooth device exists, determining whether the second Bluetooth device and a third Bluetooth device establish a Bluetooth mesh network;
in the embodiment of the present invention, if the second bluetooth device is included in the second bluetooth device, it may be determined that there is a second bluetooth device that also starts a bluetooth function around the first bluetooth device.
The third Bluetooth device is a household appliance with a Bluetooth module and a wireless module, wherein the Bluetooth module can be a Bluetooth Low Energy (BLE) module, and an encryption certificate is arranged in the third Bluetooth device.
In this step, an inquiry request for whether networking has been performed may be sent to the second bluetooth device, based on a preset protocol, when the second bluetooth device receives the inquiry request for whether networking has been performed, an inquiry response may be returned to the first bluetooth device according to its own ad hoc network state, and if the first bluetooth device receives the inquiry response for confirming networking sent by the second bluetooth device, it is determined that the second bluetooth device has established a bluetooth mesh network with the third bluetooth device.
Step S103, if the second Bluetooth device and a third Bluetooth device establish a Bluetooth mesh network, adding the second Bluetooth device into the Bluetooth mesh network.
In the embodiment of the present invention, the first bluetooth device may join the bluetooth mesh network by: a first Bluetooth device initiates a connection request to a second Bluetooth device, receives a certificate acquisition request which is sent by the second Bluetooth device and encrypted by using a preset encryption mode, and sends a first encryption certificate to the second Bluetooth device by using the preset encryption mode; if receiving an authentication success message of the first Bluetooth device sent by the second Bluetooth device, sending a certificate acquisition request encrypted by using a preset encryption mode to the second Bluetooth device; receiving a second encryption certificate which is sent by the second Bluetooth device and uses the preset encryption mode; if the second encryption certificate is verified, sending an authentication success message of the second Bluetooth device to the second Bluetooth device; and sending the name and the key of the established Bluetooth mesh network to the second Bluetooth equipment.
The embodiment of the invention determines whether the second Bluetooth equipment establishes the Bluetooth mesh network with the third Bluetooth equipment or not by scanning whether the second Bluetooth equipment exists around, if so, the second Bluetooth equipment can be added into the Bluetooth mesh network.
The first Bluetooth equipment can automatically join the Bluetooth mesh network when the Bluetooth mesh network exists around, automatic networking of intelligent equipment is realized based on a Bluetooth communication technology, after networking, a control instruction received by any Bluetooth equipment in the Bluetooth mesh network can be synchronized to other Bluetooth equipment, interconnection and intercommunication among the networked Bluetooth equipment can be realized, the control instruction does not need to be sent to a plurality of Bluetooth equipment one by one, user operation time is saved, control efficiency of the plurality of Bluetooth equipment is improved, and the Bluetooth mesh network is convenient for users to use.
In a further embodiment of the invention, as shown in fig. 1, the method further comprises the steps of:
and step S104, if the second Bluetooth device does not establish a Bluetooth mesh network with a third Bluetooth device, establishing the Bluetooth mesh network with the second Bluetooth device.
In this step, establishing a bluetooth mesh network with the second bluetooth device, as shown in fig. 2, may include the following steps:
step S201, sending a connection request to the second Bluetooth device;
step S202, receiving a certificate acquisition request which is sent by the second Bluetooth device and encrypted by using a preset encryption mode, and sending a first encryption certificate to the second Bluetooth device by using the preset encryption mode;
step S203, if receiving the authentication success message of the first Bluetooth device sent by the second Bluetooth device, sending a certificate acquisition request encrypted by using a preset encryption mode to the second Bluetooth device;
step S204, receiving a second encryption certificate which is sent by the second Bluetooth device and uses the preset encryption mode;
step S205, if the second encryption certificate is verified, sending an authentication success message to the second Bluetooth device;
step S206, the name and the secret key of the established Bluetooth mesh network are sent to the second Bluetooth device.
The embodiment of the invention can automatically establish the Bluetooth mesh network with the second Bluetooth equipment when the Bluetooth mesh network does not exist around, realize the automatic networking of the intelligent equipment based on the Bluetooth communication technology, after the networking, the control instruction received by any Bluetooth equipment in the Bluetooth mesh network can be synchronized to other Bluetooth equipment, realize the interconnection and intercommunication among the networked Bluetooth equipment, and do not need to send the control instruction to a plurality of Bluetooth equipment one by one, thereby saving the operation time of a user, improving the control efficiency of the plurality of Bluetooth equipment and being convenient for the user to use.
Since in practical applications, while a certain bluetooth device actively discovers other bluetooth devices around, other bluetooth devices may discover the bluetooth device, and when the first bluetooth device does not discover that a second bluetooth device exists around, the function of the bluetooth module is kept turned on until a fourth bluetooth device discovers the second bluetooth device around, in another embodiment of the present invention, as shown in fig. 3, the method may further include the following steps:
step S301, if no second Bluetooth device exists around, receiving a connection request sent by a fourth Bluetooth device;
step S302, sending a certificate acquisition request encrypted by using a preset encryption mode to the fourth Bluetooth device, and receiving a third encryption certificate which is sent by the fourth Bluetooth device and encrypted by using the preset encryption mode;
step S303, if the third encryption certificate is verified, sending an authentication success message to the fourth Bluetooth device;
step S304, receiving a certificate acquisition request which is sent by a fourth Bluetooth device and encrypted by using a preset encryption mode;
step S305, sending a fourth encryption certificate encrypted by using a preset encryption mode to the fourth Bluetooth device;
step S306, if receiving the authentication success message for the first bluetooth device sent by the fourth bluetooth device, receiving the name and the key of the established bluetooth mesh network sent by the fourth bluetooth device.
The embodiment of the invention realizes the establishment of the Bluetooth mesh network with the fourth Bluetooth equipment by receiving the connection request of the fourth Bluetooth equipment and mutually authenticating the connection request with the encryption certificate of the fourth Bluetooth equipment, realizes the automatic networking of intelligent equipment based on the Bluetooth communication technology, synchronizes the control instruction received by any Bluetooth equipment in the Bluetooth mesh network to other Bluetooth equipment after networking, realizes the interconnection and intercommunication among the networked Bluetooth equipment, does not need to send the control instruction to a plurality of Bluetooth equipment one by one, saves the operation time of a user, improves the control efficiency of the plurality of Bluetooth equipment, and is convenient for the user to use.
Based on the foregoing embodiment, in a further embodiment of the present invention, a bluetooth mesh network (taking 3 bluetooth devices included in the bluetooth mesh network as an example) formed by at least two bluetooth devices may be as shown in fig. 4, and in the bluetooth mesh network formed by at least two bluetooth devices, as shown in fig. 5, the bluetooth mesh network includes: the Bluetooth device is connected with the wireless router, the other Bluetooth devices are not connected with the wireless router, and the Bluetooth device connected with the wireless router is communicated with the other Bluetooth devices in a Bluetooth mode.
In the embodiment of the invention, after the networking of the Bluetooth mesh network is finished, the Bluetooth mesh network related to the Bluetooth module between at least two Bluetooth devices is always in a working state, and the wireless module in each Bluetooth device can be turned on or turned off according to the actual communication requirement.
In the embodiment of the invention, after the automatic networking is finished, the wireless module of one Bluetooth device is randomly selected to be kept connected with the wireless router (for remote communication), the other Bluetooth devices are disconnected from the router end, and the Bluetooth device connected with the wireless router is communicated with the other Bluetooth devices in a Bluetooth mode, so that only one Bluetooth device is connected with the wireless router, and the other Bluetooth devices are not connected with the wireless router, thereby saving electric energy and enabling the Bluetooth mesh network to enter a low-power consumption state.
In addition, as long as the wireless module of one Bluetooth device in the Bluetooth mesh network is connected with the wireless router, other Bluetooth devices in the Bluetooth mesh network can keep communication with the server through the wireless router, and the low-power-consumption technology that the Bluetooth devices are not off-line is realized.
Based on the foregoing embodiment, in another embodiment of the present invention, in the bluetooth mesh network: except that the Bluetooth equipment connected with the wireless router is in a working state, the other Bluetooth equipment is in a dormant state.
In the embodiment of the invention, except that the Bluetooth equipment connected with the wireless router is in the working state, the other Bluetooth equipment is in the dormant state, and the electric energy consumed by the Bluetooth equipment in the dormant state is lower than that of the Bluetooth equipment in the working state, so that the electric energy can be further saved, and the Bluetooth mesh network enters the low-power consumption state.
In addition, as long as the wireless module of one Bluetooth device in the Bluetooth mesh network is connected with the wireless router, other Bluetooth devices in the Bluetooth mesh network can keep communication with the server through the wireless router, and the low-power-consumption technology that the Bluetooth devices are not off-line is realized.
Based on the foregoing embodiment, in another embodiment of the present invention, in the bluetooth mesh network: if the wireless module of any Bluetooth device is in a dormant state, when the Bluetooth module of the Bluetooth device receives a control command or transmits data, the wireless module is awakened.
In the embodiment of the invention, the Bluetooth device with the wireless module in the dormant state can automatically awaken the wireless module stored in the dormant state when the Bluetooth module receives a control command or transmits data, and the wireless module is awakened only when the Bluetooth module receives the control command or transmits data, so that the electric energy is saved, and the Bluetooth mesh network enters the low-power consumption state.
In another embodiment of the present invention, in the bluetooth mesh network, when a bluetooth device connected to a wireless router fails, one bluetooth device is selected from the remaining bluetooth devices to connect to the wireless router.
In the embodiment of the invention, after the networking of the Bluetooth mesh network is finished, when a wireless module in a certain Bluetooth device is not connected with a wireless router due to a fault or is not connected with a cloud server due to a network problem, the Bluetooth mesh network of a Bluetooth module assembly is used for establishing contact with the Bluetooth module of any other Bluetooth device which is normally connected with the wireless router, the wireless module can be normally connected with the wireless router and the Bluetooth module in the Bluetooth device to forward transmission data, and simultaneously the server is informed of the information of network abnormality, so that the user network abnormality can be directly reminded on an APP.
In the embodiment of the invention, the Bluetooth mesh network of the Bluetooth module assembly is used for establishing contact with the Bluetooth module of any other Bluetooth device normally connected with the wireless router, for example, the devices A, B and C are both Bluetooth devices, the Bluetooth modules of the devices A, B and C are both in the same Bluetooth mesh network, and when the wireless module of the device A is not connected with the wireless router, the two nodes of the devices B and C in the Bluetooth mesh network connected with the Bluetooth modules can keep communication with the cloud server, so that the intelligent communication between at least two Bluetooth devices is realized.
In addition, as long as the wireless module of one Bluetooth device in the Bluetooth mesh network is connected with the wireless router, other Bluetooth devices in the Bluetooth mesh network can keep communication with the server through the wireless router, and the low-power-consumption technology that the Bluetooth devices are not off-line is realized.
In another embodiment of the present invention, there is also provided a networking apparatus, as shown in fig. 6, including:
the scanning module 11 is configured to scan whether a second bluetooth device exists around;
a determining module 12, configured to determine, if a second bluetooth device exists, whether the second bluetooth device has established a bluetooth mesh network with a third bluetooth device;
and the adding module 13 is configured to add the second bluetooth device to the bluetooth mesh network if the second bluetooth device has established the bluetooth mesh network with a third bluetooth device.
The device provided by the embodiment of the invention scans whether second Bluetooth equipment exists around through the scanning module, determines whether the second Bluetooth equipment establishes a Bluetooth mesh network with third Bluetooth equipment through the determining module if the second Bluetooth equipment exists, and can join the Bluetooth mesh network through the joining module if the second Bluetooth equipment establishes the Bluetooth mesh network with the third Bluetooth equipment.
The first Bluetooth equipment can automatically join the Bluetooth mesh network when the Bluetooth mesh network exists around, automatic networking of intelligent equipment is realized based on a Bluetooth communication technology, after networking, a control instruction received by any Bluetooth equipment in the Bluetooth mesh network can be synchronized to other Bluetooth equipment, interconnection and intercommunication among the networked Bluetooth equipment can be realized, the control instruction does not need to be sent to a plurality of Bluetooth equipment one by one, user operation time is saved, control efficiency of the plurality of Bluetooth equipment is improved, and the Bluetooth mesh network is convenient for users to use.
In still another embodiment of the present invention, there is also provided a bluetooth device including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; the memory stores a computer program that can be run on the processor, and the processor executes the computer program to implement the steps of the method of the above-mentioned method embodiments.
According to the Bluetooth device provided by the embodiment of the invention, the processor executes the program stored in the memory to realize whether the second Bluetooth device exists around the processor; if the second Bluetooth equipment exists, determining whether the second Bluetooth equipment and third Bluetooth equipment establish a Bluetooth mesh network; if the second Bluetooth equipment establishes a Bluetooth mesh network with third Bluetooth equipment, the second Bluetooth equipment is added into the Bluetooth mesh network, the Bluetooth mesh network can be automatically added when the Bluetooth mesh network exists around, the automatic networking of the intelligent equipment is realized based on a Bluetooth communication technology, after the networking, a control instruction received by any Bluetooth equipment in the Bluetooth mesh network can be synchronized to other Bluetooth equipment, the interconnection and intercommunication among the Bluetooth equipment after the networking can be realized, the control instruction does not need to be sent to a plurality of Bluetooth equipment one by one, the user operation time is saved, the control efficiency of the plurality of Bluetooth equipment is improved, and the use by a user is facilitated.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), 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 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit 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, or discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of the method embodiment.
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 (11)

1. A networking method applied to a first Bluetooth device comprises the following steps:
scanning whether a second Bluetooth device exists around;
if the second Bluetooth equipment exists, determining whether the second Bluetooth equipment and third Bluetooth equipment establish a Bluetooth mesh network;
and if the second Bluetooth equipment and third Bluetooth equipment establish a Bluetooth mesh network, adding the second Bluetooth equipment into the Bluetooth mesh network.
2. The networking method of claim 1, further comprising:
and if the second Bluetooth equipment does not establish the Bluetooth mesh network with third Bluetooth equipment, establishing the Bluetooth mesh network with the second Bluetooth equipment.
3. The networking method of claim 2, wherein establishing a bluetooth mesh network with the second bluetooth device comprises:
sending a connection request to the second Bluetooth device;
receiving a certificate acquisition request which is sent by the second Bluetooth device and encrypted by using a preset encryption mode, and sending a first encryption certificate to the second Bluetooth device by using the preset encryption mode;
if receiving an authentication success message of the first Bluetooth device sent by the second Bluetooth device, sending a certificate acquisition request encrypted by using a preset encryption mode to the second Bluetooth device;
receiving a second encryption certificate which is sent by the second Bluetooth device and uses the preset encryption mode;
if the second encryption certificate is verified, sending an authentication success message of the second Bluetooth device to the second Bluetooth device;
and sending the name and the key of the established Bluetooth mesh network to the second Bluetooth equipment.
4. The networking method of claim 1, further comprising:
if no second Bluetooth device exists around, receiving a connection request sent by a fourth Bluetooth device;
sending a certificate acquisition request encrypted by using a preset encryption mode to the fourth Bluetooth equipment, and receiving a third encrypted certificate which is sent by the fourth Bluetooth equipment and encrypted by using the preset encryption mode;
if the third encryption certificate is verified, sending an authentication success message of the fourth Bluetooth device to the fourth Bluetooth device;
receiving a certificate acquisition request which is sent by a fourth Bluetooth device and encrypted by using a preset encryption mode;
sending a fourth encryption certificate encrypted by using a preset encryption mode to the fourth Bluetooth device;
and if receiving the successful authentication message of the first Bluetooth device, which is sent by the fourth Bluetooth device, receiving the name and the secret key of the established Bluetooth mesh network, which are sent by the fourth Bluetooth device.
5. The networking method according to claim 1, wherein the bluetooth mesh network comprises: the Bluetooth device is connected with the wireless router, the other Bluetooth devices are not connected with the wireless router, and the Bluetooth device connected with the wireless router is communicated with the other Bluetooth devices in a Bluetooth mode.
6. The networking method according to claim 5, wherein in the Bluetooth mesh network: except that the Bluetooth equipment connected with the wireless router is in a working state, the other Bluetooth equipment is in a dormant state.
7. The networking method according to claim 5, wherein in the Bluetooth mesh network: if the wireless module of any Bluetooth device is in a dormant state, when the Bluetooth module of the Bluetooth device receives a control command or transmits data, the wireless module is awakened.
8. The networking method according to claim 5, wherein when the Bluetooth device connected to the wireless router fails in the Bluetooth mesh network, one Bluetooth device is selected from the remaining Bluetooth devices to connect to the wireless router.
9. A networking device, comprising:
the scanning module is used for scanning whether second Bluetooth equipment exists around;
the determining module is used for determining whether a second Bluetooth device establishes a Bluetooth mesh network with a third Bluetooth device if the second Bluetooth device exists;
and the adding module is used for adding the second Bluetooth equipment into the Bluetooth mesh network if the second Bluetooth equipment and third Bluetooth equipment establish the Bluetooth mesh network.
10. A bluetooth device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; the memory has stored thereon a computer program operable on the processor, wherein the processor, when executing the computer program, performs the steps of the method of any of the preceding claims 1 to 8.
11. 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-8.
CN201910945829.1A 2019-09-30 2019-09-30 Networking method and device, Bluetooth equipment and computer readable medium Pending CN110830968A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910945829.1A CN110830968A (en) 2019-09-30 2019-09-30 Networking method and device, Bluetooth equipment and computer readable medium
PCT/CN2020/100325 WO2021063059A1 (en) 2019-09-30 2020-07-06 Networking method and apparatus, bluetooth device, and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945829.1A CN110830968A (en) 2019-09-30 2019-09-30 Networking method and device, Bluetooth equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN110830968A true CN110830968A (en) 2020-02-21

Family

ID=69548590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945829.1A Pending CN110830968A (en) 2019-09-30 2019-09-30 Networking method and device, Bluetooth equipment and computer readable medium

Country Status (2)

Country Link
CN (1) CN110830968A (en)
WO (1) WO2021063059A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111328058A (en) * 2020-02-25 2020-06-23 南通大学 Bluetooth Mesh low-power-consumption node dynamic awakening method
WO2021063059A1 (en) * 2019-09-30 2021-04-08 珠海格力电器股份有限公司 Networking method and apparatus, bluetooth device, and computer-readable medium
CN113132911A (en) * 2021-03-11 2021-07-16 西安电子科技大学 Ad hoc network method of mobile electronic equipment, electronic equipment node and storage medium
CN115884145A (en) * 2022-11-24 2023-03-31 重庆长安汽车股份有限公司 Networking method of Bluetooth equipment and application of single/multiple Bluetooth equipment vehicle

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891354B (en) * 2021-09-15 2022-07-12 珠海格力电器股份有限公司 method, device, equipment and storage medium for updating mesh network
CN113890776B (en) * 2021-09-30 2023-03-14 珠海格力电器股份有限公司 Equipment ad hoc network method, device and equipment
CN113904891B (en) * 2021-09-30 2023-03-10 珠海格力电器股份有限公司 Method, device and equipment for sharing distribution network information in ad hoc network
CN113904888B (en) * 2021-09-30 2023-02-21 珠海格力电器股份有限公司 Linkage method of air detection equipment and door and window, air detection equipment and door and window
CN113904889B (en) * 2021-09-30 2023-03-10 珠海格力电器股份有限公司 Method and device for sharing running data in ad hoc network and color screen equipment
CN113923069B (en) * 2021-09-30 2023-03-24 珠海格力电器股份有限公司 Health management equipment and kitchen electricity linkage method, health management equipment and kitchen electricity
CN114125990B (en) * 2021-12-09 2023-12-22 思必驰科技股份有限公司 Networking method and system for equipment
CN114339625B (en) * 2021-12-28 2023-10-27 上海庆科信息技术有限公司 Equipment linkage control method and device, storage medium, processor and electronic device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009135061A1 (en) * 2008-04-30 2009-11-05 Qualcomm Incorporated Methods and apparatus for scanning for mesh nodes
CN101616431A (en) * 2009-07-30 2009-12-30 迈玺(北京)科技有限公司 The implementation method of network in wireless mesh network and node
US20150245351A1 (en) * 2014-02-25 2015-08-27 Cambridge Silicon Radio Limited Communicating data over a mesh network
CN106792853A (en) * 2016-12-22 2017-05-31 青岛亿联客信息技术有限公司 Bluetooth mesh network new equipment adding methods
CN107635215A (en) * 2017-08-25 2018-01-26 西安电子科技大学 Mesh network-building methods based on low-power consumption bluetooth
CN107889119A (en) * 2017-11-16 2018-04-06 乐鑫信息科技(上海)有限公司 A kind of aid of Mesh network, Mesh network and distribution, network-building method
CN108111375A (en) * 2017-11-27 2018-06-01 海尔优家智能科技(北京)有限公司 Equipment method of network entry, device, are waited to network and log equipment intelligent terminal
CN108156644A (en) * 2017-12-29 2018-06-12 乐鑫信息科技(上海)有限公司 The selection method of father node in a kind of mesh networks
CN108391238A (en) * 2018-02-01 2018-08-10 乐鑫信息科技(上海)有限公司 Wireless MESH network matches network method
CN108738005A (en) * 2018-05-22 2018-11-02 西安航天寰星电子科技有限公司 A kind of Mesh network-building methods and its system based on low-power consumption bluetooth
CN109041022A (en) * 2018-08-13 2018-12-18 海尔优家智能科技(北京)有限公司 A kind of network management, bluetooth module, medium and computer
CN109769238A (en) * 2019-03-06 2019-05-17 乐鑫信息科技(上海)股份有限公司 To multiple methods for carrying out starting configuration to distribution net equipment in bluetooth Mesh network
CN109828544A (en) * 2019-02-15 2019-05-31 广州视声智能科技有限公司 A kind of intelligent home control system and its configuration method based on bluetooth mesh

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170134227A1 (en) * 2015-11-11 2017-05-11 Lg Electronics Inc. Method and apparatus for transmitting and receiving data in mesh network using bluetooth
CN108882228B (en) * 2018-05-31 2021-06-25 北京橙鑫数据科技有限公司 Wireless grid network establishing method, device and system of electronic equipment system
CN110830968A (en) * 2019-09-30 2020-02-21 珠海格力电器股份有限公司 Networking method and device, Bluetooth equipment and computer readable medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009135061A1 (en) * 2008-04-30 2009-11-05 Qualcomm Incorporated Methods and apparatus for scanning for mesh nodes
CN101616431A (en) * 2009-07-30 2009-12-30 迈玺(北京)科技有限公司 The implementation method of network in wireless mesh network and node
US20150245351A1 (en) * 2014-02-25 2015-08-27 Cambridge Silicon Radio Limited Communicating data over a mesh network
CN106792853A (en) * 2016-12-22 2017-05-31 青岛亿联客信息技术有限公司 Bluetooth mesh network new equipment adding methods
CN107635215A (en) * 2017-08-25 2018-01-26 西安电子科技大学 Mesh network-building methods based on low-power consumption bluetooth
CN107889119A (en) * 2017-11-16 2018-04-06 乐鑫信息科技(上海)有限公司 A kind of aid of Mesh network, Mesh network and distribution, network-building method
CN108111375A (en) * 2017-11-27 2018-06-01 海尔优家智能科技(北京)有限公司 Equipment method of network entry, device, are waited to network and log equipment intelligent terminal
CN108156644A (en) * 2017-12-29 2018-06-12 乐鑫信息科技(上海)有限公司 The selection method of father node in a kind of mesh networks
CN108391238A (en) * 2018-02-01 2018-08-10 乐鑫信息科技(上海)有限公司 Wireless MESH network matches network method
CN108738005A (en) * 2018-05-22 2018-11-02 西安航天寰星电子科技有限公司 A kind of Mesh network-building methods and its system based on low-power consumption bluetooth
CN109041022A (en) * 2018-08-13 2018-12-18 海尔优家智能科技(北京)有限公司 A kind of network management, bluetooth module, medium and computer
CN109828544A (en) * 2019-02-15 2019-05-31 广州视声智能科技有限公司 A kind of intelligent home control system and its configuration method based on bluetooth mesh
CN109769238A (en) * 2019-03-06 2019-05-17 乐鑫信息科技(上海)股份有限公司 To multiple methods for carrying out starting configuration to distribution net equipment in bluetooth Mesh network

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
ALEXANDER BORMANN: "《工业以太网的原理与应用》", 31 January 2011 *
YK150915: "蓝牙mesh", 《HTTPS://BLOG.CSDN.NET/YK150915/ARTICLE/DETAILS/96158114?UTM_MEDIUM=DISTRIBUTE.PC_RELEVANT.NONE-TASK-BLOG-BLOGCOMMENDFROMMACHINELEARNPAI2-2.NONECASE&DEPTH_1-UTM_SOURCE=DISTRIBUTE.PC_RELEVANT.NONE-TASK-BLOG-BLOGCOMMENDFROMMACHINELEARNPAI2-2.NONECASE》 *
李朝青: "《无线发送/接收IC芯片及其数据通信技术选编》", 1 March 2004 *
王丽娜: "《现代通信技术》", 31 December 2016 *
王朝炜: "《物联网无线传输技术与应用》", 31 August 2012 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021063059A1 (en) * 2019-09-30 2021-04-08 珠海格力电器股份有限公司 Networking method and apparatus, bluetooth device, and computer-readable medium
CN111328058A (en) * 2020-02-25 2020-06-23 南通大学 Bluetooth Mesh low-power-consumption node dynamic awakening method
CN113132911A (en) * 2021-03-11 2021-07-16 西安电子科技大学 Ad hoc network method of mobile electronic equipment, electronic equipment node and storage medium
CN115884145A (en) * 2022-11-24 2023-03-31 重庆长安汽车股份有限公司 Networking method of Bluetooth equipment and application of single/multiple Bluetooth equipment vehicle

Also Published As

Publication number Publication date
WO2021063059A1 (en) 2021-04-08

Similar Documents

Publication Publication Date Title
CN110830968A (en) Networking method and device, Bluetooth equipment and computer readable medium
US11889453B2 (en) Method and apparatus for registering wireless device in wireless communication system
US11671813B2 (en) Function execution device and communication terminal
US11979274B2 (en) Network management method and apparatus
US8806023B2 (en) Auto-connect in a peer-to-peer network
US8775533B2 (en) Auto connect in peer-to-peer network
US9565708B2 (en) Auto-connect in a peer-to-peer network
US9317238B2 (en) Image forming apparatus to support wi-fi direct and method of wi-fi direct connecting therein
US8848228B2 (en) Image forming apparatus supporting peer to peer connection and method of performing image forming operation thereof
US20130311692A1 (en) Apparatus and method for direct pairing in a wireless docking system
US20130336161A1 (en) Terminal and method for p2p connection in wifi network
US9019878B2 (en) Phone supporting mode conversion
JP6254747B2 (en) Information providing method, apparatus, program, and recording medium
KR102037256B1 (en) Apparatus and method for connecting service reflected in user intent
CN111263338B (en) Network distribution method of Bluetooth Mesh network, related network distribution equipment and system
CN110602682A (en) Network management system and method based on Bluetooth BLE and mesh mixing
CN109327823B (en) Networking method, device and system, ZigBee equipment and storage medium
US20180139792A1 (en) Wireless communication terminal, wireless communication system, wireless communication method, and non-transitory medium saving program
TWI489900B (en) Wireless network system and connecting method thereof
CN112188488A (en) Network distribution method, device and system
US20170290078A1 (en) Non-Transitory Computer Readable Storage Medium for Terminal Device
KR20130095983A (en) Method and apparatus for providing of wifi direct based service
US20240048990A1 (en) Bluetooth connection method and system, intelligent terminal, and computer storage medium
WO2014113960A1 (en) Method, device, and terminal device for near field communication radiofrequency discovery control
WO2024046143A1 (en) Configuration method, medium, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200221