CN111641997B - Equipment network access method and device based on Bluetooth Mesh network, and storage medium - Google Patents

Equipment network access method and device based on Bluetooth Mesh network, and storage medium Download PDF

Info

Publication number
CN111641997B
CN111641997B CN202010550725.3A CN202010550725A CN111641997B CN 111641997 B CN111641997 B CN 111641997B CN 202010550725 A CN202010550725 A CN 202010550725A CN 111641997 B CN111641997 B CN 111641997B
Authority
CN
China
Prior art keywords
target
bluetooth
information
equipment
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010550725.3A
Other languages
Chinese (zh)
Other versions
CN111641997A (en
Inventor
丁宜辰
魏巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Yilai Intelligent Technology Co Ltd
Original Assignee
Qingdao Yeelink Information 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 Qingdao Yeelink Information Technology Co Ltd filed Critical Qingdao Yeelink Information Technology Co Ltd
Priority to CN202010550725.3A priority Critical patent/CN111641997B/en
Publication of CN111641997A publication Critical patent/CN111641997A/en
Application granted granted Critical
Publication of CN111641997B publication Critical patent/CN111641997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a device networking method and device based on a Bluetooth Mesh network and a storage medium, wherein the method comprises the following steps: acquiring a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal on the target terminal; responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target equipment from the scanned Bluetooth information of the first group of Bluetooth equipment, and establishing Bluetooth connection between the target terminal and the target equipment according to the Bluetooth information of the target equipment; sending a Bluetooth command to target equipment on a target terminal; under the condition that the target equipment sends out prompt information, binding equipment identification of the target equipment in the Bluetooth information of the target equipment with pre-established target description information on the target terminal; and accessing the target equipment to the target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment. The invention solves the technical problem of lower network access efficiency of equipment in the Bluetooth Mesh network in the related technology.

Description

Equipment network access method and device based on Bluetooth Mesh network, and storage medium
Technical Field
The invention relates to the field of communication, in particular to a device networking method and device based on a Bluetooth Mesh network and a storage medium.
Background
In an internet of things smart home scene, a low-power-consumption network topology for many-to-many device communication can be established based on a Bluetooth Mesh network. Based on Bluetooth Mesh, a large network based on multiple devices can be created, the network may include tens of, hundreds of, or even thousands of Bluetooth Low Energy (BLE) Mesh devices, and these devices may mutually perform information transfer. The device networking is a process of accessing the bluetooth Mesh device to a certain Mesh network, and relates to processes of configuring Mesh network information for the Mesh device, allocating Mesh network addresses and setting node attributes. For a single device, node information to be added to the device can be acquired, and then a target terminal (for example, a mobile phone) and the device configure the information to the device through a standard bluetooth Mesh protocol, so that network access of the single device is completed.
When a device accesses a network, since there are usually many devices in a Mesh network, it is necessary to identify which devices are the devices that a user wants to connect to (i.e., determine the devices to be accessed to the network). In the related art, for the device identification information (for example, the mac address of the device) in the bluetooth scanning result, it is not possible to determine which device the identification information corresponds to, and therefore the identification information on the device needs to be manually checked one by one, so as to determine which device the device identification information in the bluetooth scanning result specifically corresponds to, and further access the corresponding device, so that the network access efficiency of the device is low.
Aiming at the technical problem that the networking efficiency of equipment in a Bluetooth Mesh network is low in the related technology, an effective technical scheme is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a device network access method and device based on a Bluetooth Mesh network and a storage medium, which at least solve the technical problem of low network access efficiency of devices in the Bluetooth Mesh network in the related technology.
According to an embodiment of the present invention, a device networking method based on a bluetooth Mesh network is provided, including: acquiring a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth equipment, and the Bluetooth information of the first group of Bluetooth equipment comprises equipment identification of the first group of Bluetooth equipment; responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target device from the scanned Bluetooth information of the first group of Bluetooth devices, and establishing Bluetooth connection between the target terminal and the target device according to the Bluetooth information of the target device; sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information; under the condition that the target equipment sends the prompt message, the equipment identification of the target equipment in the Bluetooth information of the target equipment is bound with the pre-established target description information on the target terminal; and accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment.
Optionally, the accessing, according to the target description information and the bluetooth information of the target device, the target device to a target bluetooth Mesh network includes: acquiring a second group of Bluetooth scanning results obtained by the Bluetooth scanning on the target terminal, wherein the second group of Bluetooth scanning results comprise the scanned Bluetooth information of a second group of Bluetooth equipment, and the Bluetooth information of the second group of Bluetooth equipment comprises equipment identification of the second group of Bluetooth equipment; and under the condition that the device identifier of the target device bound with the target description information is matched with the device identifier of a first device in the second group of Bluetooth devices, determining that the Bluetooth information of the first device is the Bluetooth information of the target device on the target terminal, and accessing the target device to the target Bluetooth Mesh network according to the Bluetooth information of the first device, wherein the Bluetooth information of the second group of Bluetooth devices comprises the Bluetooth information of the first device, and the device identifier of the first device is the device identifier included in the Bluetooth information of the first device.
Optionally, after obtaining, on the target terminal, a second set of bluetooth scanning results obtained by the bluetooth scanning on the target terminal, the method further includes: acquiring the device identification of the target device bound with the target description information; and searching the scanned Bluetooth information of the second group of Bluetooth devices for a device identifier matched with the device identifier of the target device.
Optionally, before obtaining, on a target terminal, a first set of bluetooth scanning results obtained by bluetooth scanning on the target terminal, the method further includes: and creating the target description information on the target terminal, wherein the target description information is used for searching the equipment identifier of the target equipment after being bound with the equipment identifier of the target equipment.
Optionally, creating the target description information on the target terminal includes: in response to a target interactive operation detected on the target terminal, creating the target description information on the target terminal; and/or acquiring a topological relation of Mesh nodes in a first Mesh network on the target terminal, and creating the target description information according to the topological relation of the Mesh nodes, wherein the target description information comprises a plurality of pieces of description information, and the plurality of pieces of description information correspond to part or all of the Mesh nodes in the first Mesh network in a one-to-one manner according to the topological relation.
Optionally, the binding, on the target terminal, the device identifier of the target device in the bluetooth information of the target device with the pre-created target description information includes: and under the condition that the target description information comprises N pieces of description information and the equipment identifier of the target equipment comprises the equipment identifiers of N pieces of equipment, binding the equipment identifiers of the N pieces of equipment and the N pieces of description information in a one-to-one correspondence manner, wherein N is 1, or N is a natural number which is greater than or equal to 2.
Optionally, when the device identifier of the target device bound to the target description information is matched with the device identifier of the first device in the second group of bluetooth devices, determining, on the target terminal, that the bluetooth information of the first device is the bluetooth information of the target device, and accessing the target device to the target bluetooth mesh network according to the bluetooth information of the first device, includes: and under the condition that the first device comprises M devices and the device identifiers of the M devices in the first device are matched with the device identifiers of the M devices in the target device one by one, determining that the Bluetooth information of the M devices in the first device is the Bluetooth information of the M devices in the target device on the target terminal, and accessing the M devices in the target device to the target Bluetooth mesh network according to the Bluetooth information of the M devices in the first device, wherein M is 1, or M is a natural number greater than or equal to 2 and is less than or equal to N.
Optionally, the method further comprises: and displaying prompt information on the target terminal under the condition that the first equipment comprises M equipment and the equipment identifications of the M equipment in the first equipment are matched with the equipment identifications of the M equipment in the target equipment one by one, wherein the prompt information is used for prompting that the equipment identifications of the M equipment in the target equipment bound with the M description information in the N description information are scanned.
Optionally, the pre-created target description information includes spatial location information, and/or device type information; wherein, in the case that the target device sends the prompt message, the binding, on the target terminal, the device identifier of the target device in the bluetooth information of the target device with the pre-created target description information includes: and under the condition that the type information of the target equipment is consistent with the equipment type information included in the target description information, binding the equipment identification of the target equipment with the target description information on the target terminal.
Optionally, the target device is a lighting device.
According to another embodiment of the present invention, an apparatus for accessing a network by a device based on a bluetooth Mesh network is provided, including: the first acquisition module is used for acquiring a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth devices, and the Bluetooth information of the first group of Bluetooth devices comprises device identifiers of the first group of Bluetooth devices; the connection module is used for responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target equipment from the scanned Bluetooth information of the first group of Bluetooth equipment, and establishing Bluetooth connection between the target terminal and the target equipment according to the Bluetooth information of the target equipment; the sending module is used for sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information; a binding module, configured to bind, on the target terminal, a device identifier of the target device in the bluetooth information of the target device with pre-created target description information when the target device sends the prompt information; and the processing module is used for accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment.
Optionally, the processing module is further configured to obtain, on the target terminal, a second group of bluetooth scanning results obtained by the bluetooth scanning on the target terminal, where the second group of bluetooth scanning results includes scanned bluetooth information of a second group of bluetooth devices, and the bluetooth information of the second group of bluetooth devices includes device identifiers of the second group of bluetooth devices; and the target terminal is used for determining that the Bluetooth information of the first device is the Bluetooth information of the target device under the condition that the device identifier of the target device bound with the target description information is matched with the device identifier of the first device in the second group of Bluetooth devices, and accessing the target device to the target Bluetooth Mesh network according to the Bluetooth information of the first device, wherein the Bluetooth information of the second group of Bluetooth devices comprises the Bluetooth information of the first device, and the device identifier of the first device is the device identifier included in the Bluetooth information of the first device.
Optionally, the apparatus further includes a searching module, configured to obtain a device identifier of the target device bound to the target description information; and searching the scanned Bluetooth information of the second group of Bluetooth devices for a device identifier matched with the device identifier of the target device.
Optionally, the apparatus further includes a creating module, configured to create the target description information on the target terminal, where the target description information is used to find the device identifier of the target device after being bound with the device identifier of the target device.
Optionally, the creating module is further configured to create the target description information on the target terminal in response to a target interaction operation detected on the target terminal; and/or acquiring a topological relation of Mesh nodes in a first Mesh network on the target terminal, and creating the target description information according to the topological relation of the Mesh nodes, wherein the target description information comprises a plurality of pieces of description information, and the plurality of pieces of description information correspond to part or all of the Mesh nodes in the first Mesh network in a one-to-one manner according to the topological relation.
Optionally, the binding module is further configured to, under the condition that the target description information includes N pieces of description information and the device identifier of the target device includes device identifiers of N devices, bind the device identifiers of the N devices and the N pieces of description information in a one-to-one correspondence, where N is 1, or N is a natural number greater than or equal to 2.
Optionally, the processing module is further configured to determine, on the condition that the first device includes M devices and the device identifiers of the M devices in the first device are matched with the device identifiers of the M devices in the target device one by one, that the bluetooth information of the M devices in the first device is the bluetooth information of the M devices in the target device on the target terminal, and access the M devices in the target device to the target bluetooth mesh network according to the bluetooth information of the M devices in the first device, where M is 1, or M is a natural number greater than or equal to 2, and M is not greater than N.
Optionally, the apparatus further includes a prompt module, configured to display prompt information on the target terminal when the first device includes M devices and device identifiers of the M devices in the first device are matched with device identifiers of the M devices in the target device one by one, where the prompt information is used to prompt that the device identifiers of the M devices in the target device bound to the M pieces of description information in the N pieces of description information are scanned.
Optionally, the pre-created target description information includes spatial location information, and/or device type information; the binding module is further configured to bind, on the target terminal, the device identifier of the target device with the target description information when the type information of the target device is consistent with the device type information included in the target description information.
Optionally, the target device is a lighting device.
Alternatively, according to another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is arranged to perform the above method when executed.
Alternatively, according to another embodiment of the present invention, there is provided an electronic apparatus, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the above method.
According to the invention, a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal are obtained on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth equipment, and the Bluetooth information of the first group of Bluetooth equipment comprises equipment identification of the first group of Bluetooth equipment; responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target device from the scanned Bluetooth information of the first group of Bluetooth devices, and establishing Bluetooth connection between the target terminal and the target device according to the Bluetooth information of the target device; sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information; under the condition that the target equipment sends the prompt message, the equipment identification of the target equipment in the Bluetooth information of the target equipment is bound with the pre-established target description information on the target terminal; and accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment. Therefore, the technical problem of low network access efficiency of the equipment in the Bluetooth Mesh network in the related technology can be solved, and the network access efficiency of the equipment in the Bluetooth Mesh network is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a device networking method based on a bluetooth Mesh network according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of creating object description information according to an embodiment of the invention;
FIG. 3 is a diagram illustrating a prompt displayed in a target terminal according to an embodiment of the present invention;
fig. 4 is a timing diagram illustrating a device networking method based on a bluetooth Mesh network according to another embodiment of the present invention;
fig. 5 is a timing diagram illustrating a device networking method based on a bluetooth Mesh network according to another embodiment of the present invention;
fig. 6 is a device networking apparatus based on a bluetooth Mesh network according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The embodiment of the invention provides a device networking method based on a bluetooth mesh network, and fig. 1 is a flowchart of the device networking method based on the bluetooth mesh network according to the embodiment of the invention, as shown in fig. 1, the method comprises the following steps:
step S102, a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal are obtained on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth devices, and the Bluetooth information of the first group of Bluetooth devices comprises device identifications of the first group of Bluetooth devices;
step S104, responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target device from the scanned Bluetooth information of the first group of Bluetooth devices, and establishing Bluetooth connection between the target terminal and the target device according to the Bluetooth information of the target device;
step S106, a Bluetooth command is sent to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send out prompt information;
step S108, under the condition that the target device sends the prompt message, the device identification of the target device in the Bluetooth information of the target device is bound with the pre-established target description information on the target terminal;
step S1010, the target device is accessed to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target device.
According to the invention, a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal is obtained on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth devices, and the Bluetooth information of the first group of Bluetooth devices comprises the device identification of the first group of Bluetooth devices; responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target equipment from the scanned Bluetooth information of the first group of Bluetooth equipment, and establishing Bluetooth connection between the target terminal and the target equipment according to the Bluetooth information of the target equipment; sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information; under the condition that the target equipment sends the prompt message, binding equipment identification of the target equipment in the Bluetooth information of the target equipment with pre-established target description information on the target terminal, wherein the target description information is used for identifying the target equipment on the target terminal; and accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment. Therefore, the technical problem of low network access efficiency of the equipment in the Bluetooth Mesh network in the related technology can be solved, and the network access efficiency of the equipment in the Bluetooth Mesh network is improved.
In the above embodiment, the target terminal may be a mobile phone, a computer, an intelligent wearable device, and the like, and the target device may be a lighting device, that is, a Mesh lighting bluetooth device, for example, a lamp having a Mesh bluetooth function. The target description information is used for identifying the target device in the target terminal, that is, the target description information is used for identifying a device to be accessed to the bluetooth Mesh network.
In the above embodiment, the accessing the target device to the target bluetooth Mesh network according to the target description information and the bluetooth information of the target device includes: determining target equipment corresponding to the equipment identification bound with the target description information as equipment to be accessed to the target Bluetooth Mesh network, and accessing the target equipment to the target Bluetooth Mesh network according to Bluetooth information of the target equipment; or responding to a second interactive operation executed on the target terminal, and selecting the target description information on the target terminal; and responding to the fact that the target description information is selected, and accessing the target equipment to the target Bluetooth Mesh network on the target terminal according to the Bluetooth information of the target equipment.
As an optional implementation, the prompt message may include one of the following: and lighting or flashing, namely the Bluetooth command is used for lighting the target equipment or controlling the target equipment to flash. The sending of the prompt information by the target equipment comprises the following steps: and the target equipment sends out a flashing prompt.
In the above embodiment, the bluetooth command is further used to instruct the target device to send the location information of the target device after receiving the bluetooth command, that is, the bluetooth command is further used to obtain the location information of the target device.
It should be noted that, in the above embodiment, the target device corresponding to the device identifier bound to the target description information may be directly used as a device to be networked, for example, when the target description information includes N pieces of description information, and the device identifier of the target device includes device identifiers of N devices, and the device identifiers of the N devices are bound to the N pieces of description information in a one-to-one correspondence manner, all the N devices may be accessed to the target bluetooth mesh network, thereby implementing batch networking of all devices bound to all the target description information; or, in response to a second interactive operation executed on the target terminal, selecting the target description information on the target terminal (for example, executing a click operation on the target description information on the target terminal to select the responded target description information), and accessing the target device corresponding to the device identifier bound to the selected target description information to the target bluetooth Mesh network, thereby implementing selection among all devices bound to all the target description information, and accessing only selected partial devices to the network individually (for example, only one device is selected) or in batch (for example, the number of the selected devices is greater than or equal to 2).
Based on the above embodiment, the accessing the target device to the target bluetooth Mesh network according to the target description information and the bluetooth information of the target device includes: acquiring a second group of Bluetooth scanning results obtained by the Bluetooth scanning on the target terminal, wherein the second group of Bluetooth scanning results comprise the scanned Bluetooth information of a second group of Bluetooth equipment, and the Bluetooth information of the second group of Bluetooth equipment comprises equipment identification of the second group of Bluetooth equipment; and under the condition that the device identifier of the target device bound with the target description information is matched with the device identifier of a first device in the second group of Bluetooth devices, determining that the Bluetooth information of the first device is the Bluetooth information of the target device on the target terminal, and accessing the target device to the target Bluetooth Mesh network according to the Bluetooth information of the first device, wherein the Bluetooth information of the second group of Bluetooth devices comprises the Bluetooth information of the first device, and the device identifier of the first device is the device identifier included in the Bluetooth information of the first device.
It should be noted that the second group of bluetooth scanning results are obtained by bluetooth scanning after the bluetooth scanning on the target terminal obtains the first group of bluetooth scanning results, that is, performing bluetooth scanning on the target terminal at a first time to obtain the first group of bluetooth scanning results, and performing bluetooth scanning on the target terminal at a second time to obtain the second group of bluetooth scanning results, where the second time is later than the first time.
In the above embodiment, after obtaining, on the target terminal, a second group of bluetooth scanning results obtained by the bluetooth scanning on the target terminal, the method further includes: acquiring the device identification of the target device bound with the target description information; and searching the scanned Bluetooth information of the second group of Bluetooth devices for a device identifier matched with the device identifier of the target device.
Based on the above embodiment, after obtaining the second group of bluetooth scanning results obtained by bluetooth scanning on the target terminal, the device identifier of the target device bound to the target description information is obtained, and the device identifier matched with the device identifier of the target device is searched in the scanned bluetooth information of the second group of bluetooth devices, so as to determine whether the device identifier of the target device bound to the target description information is bluetooth scanned.
It should be noted that, in the foregoing embodiment, after the device identifier of the target device in the bluetooth information of the target device is bound with the pre-created target description information on the target terminal, if it is determined that the network entry process needs to be executed, the network entry process may be immediately started (for example, within a preset time interval after the binding operation is completed), so as to access the determined device to be networked to the target bluetooth mesh network, where the device to be networked is all devices bound with all target description information or a part of devices selected from all devices bound with all target description information. And when the network access process is executed after the preset time interval is exceeded, the target terminal needs to perform bluetooth scanning again to obtain a second group of bluetooth scanning results, match the device identifier of the target device bound with the target description information with the device identifier of the second group of bluetooth devices in the second group of bluetooth scanning results obtained by scanning, and determine that the target device is accessed to the target bluetooth Mesh network according to the bluetooth information of the first device when the matching is successful (namely, under the condition that the device identifier of the target device bound with the target description information is matched with the device identifier of the first device in the second group of bluetooth devices).
It should be noted that, before the target terminal obtains the first set of bluetooth scanning results obtained by the bluetooth scanning on the target terminal, the method further includes: and creating the target description information on the target terminal, wherein the target description information is used for searching the equipment identifier of the target equipment after being bound with the equipment identifier of the target equipment.
As an optional implementation manner, creating the target description information on the target terminal includes: creating the target description information on the target terminal in response to the target interactive operation detected on the target terminal; and/or acquiring a topological relation of Mesh nodes in a first Mesh network on the target terminal, and creating the target description information according to the topological relation of the Mesh nodes, wherein the target description information comprises a plurality of pieces of description information, and the plurality of pieces of description information correspond to part or all of the Mesh nodes in the first Mesh network in a one-to-one manner according to the topological relation.
Based on the above embodiment, when creating the target description information, the target description information may be created based on a target interaction operation detected on the target terminal and/or based on a topological relation of the Mesh node in the first Mesh network acquired by the target terminal. Fig. 2 is a schematic diagram of creating object description information according to an embodiment of the present invention, as shown in fig. 2, object description information may be created on a target terminal in response to an object interaction operation detected on the target terminal, that is, an operation of "add new device" is clicked, and the object description information may include device type information (for example, "down light"). The method includes the steps that a topological relation of Mesh nodes in a first Mesh network is obtained on a target terminal, the topological relation of the first Mesh network can be obtained by the target terminal from a cloud (such as a cloud node), the topological relation can include the number of the Mesh nodes in the first Mesh network, and can also include device type information (such as 'down lamps') of each Mesh node, and description information corresponding to part or all of the Mesh nodes in the first Mesh network in a one-to-one mode is created based on the obtained topological relation. It should be noted that, as an alternative implementation, the first Mesh network may be the target bluetooth Mesh network, or a bluetooth Mesh network different from the target bluetooth Mesh network.
As an optional implementation manner, creating the target description information according to the topological relation of the Mesh node includes: and taking each node included in the topological relation as description information.
Based on the above embodiment, the binding, on the target terminal, the device identifier of the target device in the bluetooth information of the target device with the pre-created target description information includes: and under the condition that the target description information comprises N pieces of description information and the device identifier of the target device comprises the device identifiers of N pieces of devices, binding the device identifiers of the N pieces of devices and the N pieces of description information in a one-to-one correspondence manner, wherein N is 1, or N is a natural number greater than or equal to 2.
For example, when N is equal to 3, that is, when the target description information includes 3 pieces of description information, the target device that sends the prompt information is sequentially bound with the description information, that is, a first target device that sends the prompt information is bound with a corresponding piece of description information, and a second target device that sends the prompt information is bound with a corresponding piece of description information, until all the 3 pieces of target information are bound with the corresponding target device.
Wherein, under the condition that the device identifier of the target device bound with the target description information is matched with the device identifier of the first device in the second group of bluetooth devices, determining that the bluetooth information of the first device is the bluetooth information of the target device on the target terminal, and accessing the target device to a target bluetooth mesh network according to the bluetooth information of the first device, comprises: and under the condition that the first device comprises M devices and the device identifiers of the M devices in the first device are matched with the device identifiers of the M devices in the target device one by one, determining that the Bluetooth information of the M devices in the first device is the Bluetooth information of the M devices in the target device on the target terminal, and accessing the M devices in the target device to the target Bluetooth mesh network according to the Bluetooth information of the M devices in the first device, wherein M is 1, or M is a natural number greater than or equal to 2 and is less than or equal to N.
For example, when N is equal to 3 and m is equal to 2, it is determined that the device identifiers (e.g., device identifier 1, device identifier 2) of two devices in the first device match the device identifiers (e.g., device identifier 1 'and device identifier 2') of two devices in the 3 target devices one by one, that is, it indicates that the device identifier 1 is consistent with the device identifier 1 'and the device identifier 2 is consistent with the device identifier 2', so that it can be determined that the target devices respectively corresponding to the device identifiers 1 'and 2' are scanned by bluetooth, and then, on the target terminal, the two devices in the target devices are accessed into the target bluetooth Mesh network according to the bluetooth information of the two devices in the first device.
Based on the embodiment, the network access of the batch devices can be realized, and the network access efficiency of the devices in the Bluetooth Mesh network is further improved.
The above embodiment may also implement the following technical solutions: and displaying prompt information on the target terminal under the condition that the first equipment comprises M equipment and the equipment identifications of the M equipment in the first equipment are matched with the equipment identifications of the M equipment in the target equipment one by one, wherein the prompt information is used for prompting that the equipment identifications of the M equipment in the target equipment bound with the M description information in the N description information are scanned.
As an optional implementation manner, displaying the prompt message on the target terminal includes one of the following: displaying the areas corresponding to the M pieces of description information one by one according to the specified color; controlling the areas corresponding to the M pieces of description information one by one to carry out flicker display; and displaying identification information in an area corresponding to the M pieces of description information one by one, wherein the identification information is used for indicating that the target equipment bound with the corresponding description information is scanned. Fig. 3 is a schematic diagram of displaying a prompt message in a target terminal according to an embodiment of the present invention, as shown in fig. 3, where there are three pieces of description information, i.e. corresponding to "office downlight", "office pendant lamp 1", and office pendant lamp 2, respectively, the description information being used for indicating device type and control location information; wherein, the displaying of the prompt information on the target terminal may be: displaying the identification information in an area corresponding to the description information (e.g., the area where the description information is located, i.e., the frame where the description information is located) (e.g., displaying the identification information "scanned" in the area where the description information is located); displaying the area where the description information is located (i.e., the frame where the description information is located) in a specified color; and controlling the area corresponding to the description information to flash and display.
In the above embodiment, the pre-created target description information includes spatial location information, and/or device type information; wherein, in the case that the target device sends the prompt message, the binding, on the target terminal, the device identifier of the target device in the bluetooth information of the target device with the pre-created target description information includes: under the condition that the type information of the target equipment is consistent with the equipment type information included in the target description information, binding the equipment identification of the target equipment with the target description information on the target terminal; and/or binding the device identifier of the target device with the target description information on the target terminal under the condition that the position information of the target device is consistent with the spatial position information included in the target description information.
As an optional implementation manner, in a case that the type information of the target device is inconsistent with the device type information included in the target description information, or in a case that the location information of the target device is inconsistent with the spatial location information included in the target description information, feedback information is displayed on the target terminal, where the feedback information is used to indicate that the binding between the device identifier of the target device and the target description information fails. That is, in the above embodiment, only in the case that the type information of the target device is consistent with the device type information included in the target description information, the device identifier of the target device can be successfully bound with the target description information.
The device networking method based on the bluetooth Mesh network in the foregoing embodiment is explained with reference to an example, but is not limited to the technical solution of the embodiment of the present invention.
In the related art, a device is identified by the identity information of the device (corresponding to the device identifier in the above embodiment, that is, the identifier information of the device, for example, the mac address of the device) in the bluetooth scanning result, a user selects a device to be connected according to the identity information of the device and accesses the device into the bluetooth Mesh network, and the user cannot directly know which device corresponds to the device according to the identity information of the scanned device, so that the user needs to check the identifier information on the devices one by one, and compare the checked identifier information with the identity information in the bluetooth scanning result, thereby determining which device specifically corresponds to the identity information of the device in the bluetooth scanning result, so that the operation complexity of network access of the device is increased, and the method can only access one device at a time, thereby reducing the network access efficiency of the device, and failing to realize batch network access of a plurality of devices, and simultaneously ensuring the correctness of node information.
The embodiment of the invention can be applied to a Mesh-based internet of things, and the device networking method based on the Bluetooth Mesh network comprises the following steps:
step 1, a mobile phone (i.e. the target terminal in the above embodiment) creates a device virtual pit (or referred to as a slot, i.e. the target description information in the above embodiment), where the device virtual pit may be created in the following manner:
simulating the position of equipment (namely target equipment in the embodiment) at a mobile phone end, and manually creating an equipment virtual pit position by a user; and/or the mobile phone end acquires a cloud node network topological relation from the cloud end and automatically creates an equipment virtual pit position according to the topological relation; wherein, the automatically creating the device virtual pit bit according to the topological relation includes: and taking the node in the topological relation as a virtual pit bit.
The virtual pit bit may include information such as device type information, spatial location information, and a group to which the device belongs.
Step 2, the mobile phone end obtains nearby Bluetooth equipment through Bluetooth scanning, and equipment identity information in a scanning result is obtained;
step 3, the mobile phone end is connected with the equipment through the Bluetooth and sends a control command (namely the Bluetooth command in the embodiment) to the equipment, wherein the control command is used for controlling the equipment to send out a flash prompt;
step 4, binding the equipment and the virtual pit position by the mobile phone end:
the mobile phone end stores the equipment identity information of the equipment into the created virtual pit position, wherein the equipment identity information of the equipment can be recorded into the corresponding node under the condition that the node in the topological relation is used as one virtual pit position;
and 5, executing the network access process of the Bluetooth Mesh device by the device in the virtual pit position.
Through the embodiment, the specific equipment can be accurately identified in the Bluetooth Mesh network, the Bluetooth Mesh sub-equipment is efficiently added into the Mesh network in batches, and meanwhile, the position information of the equipment can be ensured to be correct.
As an optional implementation manner, steps 2 to 4 may be repeatedly performed, that is, multiple times of bluetooth scanning are performed until the device identity information of the corresponding device is bound for each virtual pit bit, and then in step 5, all devices in the virtual pit bits may be accessed to the bluetooth Mesh network.
By the embodiment, the Mesh equipment can be quickly and efficiently connected in batches; in addition, the network access and construction steps of the equipment can be effectively separated through abstracting the Mesh network node topological relation and storing equipment configuration information, and therefore the processing efficiency is improved.
Fig. 4 is a timing chart of a device networking method based on a bluetooth Mesh network according to another embodiment of the present invention, as shown in fig. 4, the embodiment of the present invention includes the following steps:
step 1, accessing a mobile phone end into a network, namely accessing the mobile phone end into a Mesh network;
step 2, the mobile phone end creates a virtual pit (i.e. the target description information in the above embodiment) of the device, where the virtual pit is used to store the device identifier of the device;
step 3, the mobile phone end scans the Bluetooth equipment of the accessory through Bluetooth;
step 4, the mobile phone end obtains a scanning result of the Bluetooth scanning;
step 5, establishing Bluetooth connection between the mobile phone end and the scanned Bluetooth equipment, and sending an instruction to the equipment;
step 6, the equipment flashes through light to send a prompt;
step 7, storing the identity information of the device into the created virtual pit (i.e. binding the device identifier of the device with the target description information in the above embodiment);
and 8, accessing the equipment in the virtual pit position into a target Bluetooth mesh network.
And 9, after the step 7 is executed, if the equipment in the virtual pit position is not accessed to the network within the preset time interval, performing Bluetooth scanning again, matching the scanning result with the identity information of the equipment in the virtual pit position, and accessing the network after the matching is successful.
Fig. 5 is a timing diagram of a device networking method based on a bluetooth Mesh network according to another embodiment of the present invention, and as shown in fig. 5, the embodiment of the present invention includes the following steps:
step 1, carrying out initialization configuration at a mobile phone end;
step 2, the mobile phone end requests the cloud end to acquire Mesh network node topological information (namely the topological relation of the Mesh nodes in the embodiment), wherein the topological relation of the Mesh nodes is pre-established, and the topological relation of the Mesh nodes is not bound with specific equipment;
wherein, the topological relation of the Mesh node comprises the Mesh node;
step 3, the cloud returns network node topology information to the mobile phone end;
step 4, the mobile phone end carries out Bluetooth scanning to find out the mesh equipment of the accessory;
step 5, establishing Bluetooth connection between the mobile phone end and the scanned Bluetooth equipment;
step 6, the mobile phone end sends a flicker control command (namely the bluetooth command in the embodiment) to the device;
step 7, determining equipment to be connected, recording the identity information of the equipment into a corresponding node in the topological relation of the Mesh node, and disconnecting the equipment;
it should be noted that, in the above embodiment of the present invention, when creating the target description information (i.e., the virtual pit bits) according to the network node topology information acquired from the cloud, each node in the network node topology information (i.e., each Mesh node included in the topology relationship of the Mesh node) may be used as one description information, so that when binding the device identifier (i.e., the identity information of the device) and the target description information, the device identifier may be directly written into the node.
Step 8, repeating the steps 5 to 7 for each device obtained by scanning in the step 4;
step 9, after a preset time interval, the mobile phone end performs bluetooth scanning again, and matches the scanned identity information of the bluetooth device with the identity information of the device recorded in the node to obtain a successfully matched device 1;
in the above embodiment, after step 7 is executed, there may be the following two processing manners: 1) Directly executing a normal network access process of the Bluetooth Mesh equipment; 2) After the identity information of the device is saved, the device is selected to access the network at a later time (for example, after a preset time interval elapses). When network access is needed at a later time, nearby Bluetooth equipment needs to be scanned again to acquire the identity information of the Bluetooth equipment, the information stored in the virtual pit position (for example, the identity information of the equipment recorded in the node) is matched, and the Mesh equipment is executed to normally access the network after the matching is successful;
step 10, establishing mesh Bluetooth connection between the mobile phone end and the equipment 1;
step 11, the mobile phone end writes the node information (such as configuration information) into the Mesh device (namely the device 1);
step 12, the device 1 successfully accesses the network;
and step 13, repeating the steps 9-12 until the devices corresponding to all the nodes successfully access the network.
It should be noted that, in the foregoing embodiment, the target device (i.e., the Mesh device) needs to provide a non-Mesh service (Mesh service), that is, the Mesh device carries the identity information of the device (i.e., the unique identifier of the device, such as the mac address of the device, the device id, or the device product id, which can uniquely identify the device) in the bluetooth broadcast beacon (beacon), so that the identity information of the device can be obtained from the broadcast data scanned by the mobile phone bluetooth.
It should be noted that, in the above embodiment, the target device may be controlled to send a blinking prompt, and send its own location information.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
According to another embodiment of the present invention, a device networking apparatus based on a bluetooth Mesh network is provided, which is used for implementing the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a device networking apparatus based on a bluetooth Mesh network according to an embodiment of the present invention, where the apparatus includes:
a first obtaining module 62, configured to obtain, on a target terminal, a first group of bluetooth scanning results obtained by bluetooth scanning on the target terminal, where the first group of bluetooth scanning results includes bluetooth information of a first group of scanned bluetooth devices, and the bluetooth information of the first group of bluetooth devices includes device identifiers of the first group of bluetooth devices;
a connection module 64, configured to select, in response to a first interactive operation performed on the target terminal, bluetooth information of a target device from the scanned bluetooth information of the first group of bluetooth devices, and establish a bluetooth connection between the target terminal and the target device according to the bluetooth information of the target device;
a sending module 66, configured to send a bluetooth command to the target device on the target terminal, where the bluetooth command is used to instruct the target device to send a prompt message;
a binding module 68, configured to bind, on the target terminal, a device identifier of the target device in the bluetooth information of the target device with pre-created target description information when the target device sends the prompt information;
and the processing module 70 is configured to access the target device to a target bluetooth Mesh network according to the target description information and the bluetooth information of the target device.
According to the invention, a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal is obtained on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth devices, and the Bluetooth information of the first group of Bluetooth devices comprises the device identification of the first group of Bluetooth devices; responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target equipment from the scanned Bluetooth information of the first group of Bluetooth equipment, and establishing Bluetooth connection between the target terminal and the target equipment according to the Bluetooth information of the target equipment; sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information; under the condition that the target equipment sends the prompt message, binding equipment identification of the target equipment in the Bluetooth information of the target equipment with pre-established target description information on the target terminal, wherein the target description information is used for identifying the target equipment on the target terminal; and accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment. Therefore, the technical problem of low network access efficiency of the equipment in the Bluetooth Mesh network in the related technology can be solved, and the network access efficiency of the equipment in the Bluetooth Mesh network is improved.
The processing module 70 is further configured to obtain, on the target terminal, a second group of bluetooth scanning results obtained by the bluetooth scanning on the target terminal, where the second group of bluetooth scanning results includes bluetooth information of a second group of scanned bluetooth devices, and the bluetooth information of the second group of bluetooth devices includes device identifiers of the second group of bluetooth devices; and the bluetooth information of the first device is determined to be the bluetooth information of the target device on the target terminal under the condition that the device identifier of the target device bound with the target description information is matched with the device identifier of the first device in the second group of bluetooth devices, and the target device is accessed to the target bluetooth Mesh network according to the bluetooth information of the first device, wherein the bluetooth information of the second group of bluetooth devices comprises the bluetooth information of the first device, and the device identifier of the first device is the device identifier included in the bluetooth information of the first device.
Based on the above embodiment, the apparatus further includes a search module, configured to obtain a device identifier of the target device bound to the target description information; and searching the scanned Bluetooth information of the second group of Bluetooth devices for a device identifier matched with the device identifier of the target device.
Optionally, the apparatus further includes a creating module, configured to create the target description information on the target terminal, where the target description information is used to find the device identifier of the target device after being bound with the device identifier of the target device.
In the above embodiment, the creating module is further configured to create the target description information on the target terminal in response to a target interaction operation detected on the target terminal; and/or acquiring a topological relation of Mesh nodes in a first Mesh network on the target terminal, and creating the target description information according to the topological relation of the Mesh nodes, wherein the target description information comprises a plurality of pieces of description information, and the plurality of pieces of description information correspond to part or all of the Mesh nodes in the first Mesh network in a one-to-one manner according to the topological relation.
It should be noted that the binding module 68 is further configured to, under the condition that the target description information includes N pieces of description information and the device identifier of the target device includes device identifiers of N devices, bind the device identifiers of the N devices and the N pieces of description information in a one-to-one correspondence, where N is 1, or N is a natural number greater than or equal to 2.
In the above embodiment, the processing module 70 is further configured to determine, on the target terminal, that the bluetooth information of the M devices in the first device is the bluetooth information of the M devices in the target device when the first device includes M devices and the device identifiers of the M devices in the first device are matched with the device identifiers of the M devices in the target device one by one, and access the M devices in the target device to the target bluetooth mesh network according to the bluetooth information of the M devices in the first device, where M is 1, or M is a natural number greater than or equal to 2, and M is not greater than N.
The apparatus further includes a prompt module, configured to display prompt information on the target terminal when the first device includes M devices and device identifiers of the M devices in the first device are matched with device identifiers of M devices in the target device one by one, where the prompt information is used to prompt that device identifiers of the M devices in the target device, which are bound to M pieces of description information in the N pieces of description information, are scanned.
As an optional implementation manner, the pre-created target description information includes spatial location information, and/or device type information; the binding module 68 is further configured to bind, on the target terminal, the device identifier of the target device with the target description information when the type information of the target device is consistent with the device type information included in the target description information.
It should be noted that the target device in the above embodiments may be a lighting device.
An embodiment of the present invention further provides a storage medium including a stored program, where the program executes the method of any one of the above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
step S1, a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal are obtained on the target terminal, wherein the first group of Bluetooth scanning results comprise scanned Bluetooth information of a first group of Bluetooth devices, and the Bluetooth information of the first group of Bluetooth devices comprises device identifications of the first group of Bluetooth devices;
s2, responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target equipment from the scanned Bluetooth information of the first group of Bluetooth equipment, and establishing Bluetooth connection between the target terminal and the target equipment according to the Bluetooth information of the target equipment;
s3, sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information;
s4, under the condition that the target equipment sends the prompt message, binding the equipment identification of the target equipment in the Bluetooth information of the target equipment with pre-established target description information on the target terminal;
and S5, accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment.
Optionally, in this embodiment, the storage medium may include but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
step S1, obtaining a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth devices, and the Bluetooth information of the first group of Bluetooth devices comprises device identifications of the first group of Bluetooth devices;
s2, responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target equipment from the scanned Bluetooth information of the first group of Bluetooth equipment, and establishing Bluetooth connection between the target terminal and the target equipment according to the Bluetooth information of the target equipment;
s3, sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information;
s4, under the condition that the target equipment sends the prompt message, binding the equipment identification of the target equipment in the Bluetooth information of the target equipment with pre-established target description information on the target terminal;
and S5, accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment.
Fig. 7 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention. Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 7 is a diagram illustrating the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 1002 may be configured to store software programs and modules, such as program instructions/modules corresponding to a device networking method based on a bluetooth mesh network and a device networking apparatus based on the bluetooth mesh network in the embodiments of the present invention, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, implements the operation identification method described above. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. As an example, the memory 1002 may include, but is not limited to, the first obtaining module 62, the connection module 64, the sending module 66, the binding module 68, and the processing module 70 of the device networking apparatus based on the bluetooth mesh network. In addition, the device may further include, but is not limited to, other module units in the device networking apparatus based on the bluetooth mesh network, which is not described in detail in this example.
Optionally, the transmission device 1006 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a Network adapter (NIC) that can be connected to a router via a Network line to communicate with the internet or a local area Network. In one example, the transmitting device 1006 is a Radio Frequency (RF) module that is used to communicate with the internet via wireless means.
In addition, the electronic device further includes: a display 1008 for displaying a screen; and a connection bus 1010 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal or the server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication form. Nodes can form a Peer-To-Peer (P2P) network, and any type of computing device, such as an electronic device like a server or a terminal, can become a node in the blockchain system by joining the Peer-To-Peer network.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A device network access method based on a Bluetooth mesh network is characterized by comprising the following steps:
acquiring a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth equipment, and the Bluetooth information of the first group of Bluetooth equipment comprises equipment identification of the first group of Bluetooth equipment;
responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target device from the scanned Bluetooth information of the first group of Bluetooth devices, and establishing Bluetooth connection between the target terminal and the target device according to the Bluetooth information of the target device;
sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information;
under the condition that the target equipment sends the prompt message, the equipment identification of the target equipment in the Bluetooth information of the target equipment is bound with the pre-established target description information on the target terminal;
and accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment.
2. The method of claim 1, wherein the accessing the target device to a target bluetooth Mesh network according to the target description information and the bluetooth information of the target device comprises:
acquiring a second group of Bluetooth scanning results obtained by the Bluetooth scanning on the target terminal, wherein the second group of Bluetooth scanning results comprise the scanned Bluetooth information of a second group of Bluetooth equipment, and the Bluetooth information of the second group of Bluetooth equipment comprises equipment identification of the second group of Bluetooth equipment;
and under the condition that the device identifier of the target device bound with the target description information is matched with the device identifier of a first device in the second group of Bluetooth devices, determining that the Bluetooth information of the first device is the Bluetooth information of the target device on the target terminal, and accessing the target device to the target Bluetooth Mesh network according to the Bluetooth information of the first device, wherein the Bluetooth information of the second group of Bluetooth devices comprises the Bluetooth information of the first device, and the device identifier of the first device is the device identifier included in the Bluetooth information of the first device.
3. The method of claim 2, wherein after obtaining a second set of bluetooth scan results from the bluetooth scan at the target terminal, the method further comprises:
acquiring the device identification of the target device bound with the target description information;
and searching the scanned Bluetooth information of the second group of Bluetooth devices for a device identifier matched with the device identifier of the target device.
4. The method of claim 1, wherein before obtaining the first set of bluetooth scan results from the bluetooth scan at the target terminal, the method further comprises:
and creating the target description information on the target terminal, wherein the target description information is used for searching the device identifier of the target device after being bound with the device identifier of the target device.
5. The method of claim 4, wherein creating the target description information on the target terminal comprises:
creating the target description information on the target terminal in response to the target interactive operation detected on the target terminal; and/or
The method comprises the steps of obtaining a topological relation of Mesh nodes in a first Mesh network on a target terminal, and creating target description information according to the topological relation of the Mesh nodes, wherein the target description information comprises a plurality of pieces of description information, and the plurality of pieces of description information correspond to part or all of the Mesh nodes in the first Mesh network in a one-to-one mode according to the topological relation.
6. The method of claim 2, wherein binding the device identifier of the target device in the bluetooth information of the target device with pre-created target description information on the target terminal comprises:
and under the condition that the target description information comprises N pieces of description information and the device identifier of the target device comprises the device identifiers of N pieces of devices, binding the device identifiers of the N pieces of devices and the N pieces of description information in a one-to-one correspondence manner, wherein N is 1, or N is a natural number greater than or equal to 2.
7. The method as claimed in claim 6, wherein when the device identifier of the target device bound to the target description information matches the device identifier of the first device in the second group of bluetooth devices, determining that the bluetooth information of the first device is the bluetooth information of the target device on the target terminal, and accessing the target device to a target bluetooth mesh network according to the bluetooth information of the first device, comprises:
and under the condition that the first device comprises M devices and the device identifiers of the M devices in the first device are matched with the device identifiers of the M devices in the target device one by one, determining that the Bluetooth information of the M devices in the first device is the Bluetooth information of the M devices in the target device on the target terminal, and accessing the M devices in the target device to the target Bluetooth mesh network according to the Bluetooth information of the M devices in the first device, wherein M is 1, or M is a natural number greater than or equal to 2 and is less than or equal to N.
8. The method of claim 7, further comprising:
and displaying prompt information on the target terminal under the condition that the first equipment comprises M equipment and the equipment identifications of the M equipment in the first equipment are matched with the equipment identifications of the M equipment in the target equipment one by one, wherein the prompt information is used for prompting that the equipment identifications of the M equipment in the target equipment bound with the M description information in the N description information are scanned.
9. The method according to claim 1, wherein the pre-created target description information comprises spatial location information, and/or device type information; wherein, in the case that the target device sends the prompt message, the binding, on the target terminal, the device identifier of the target device in the bluetooth information of the target device with the pre-created target description information includes:
and under the condition that the type information of the target equipment is consistent with the equipment type information included in the target description information, binding the equipment identification of the target equipment with the target description information on the target terminal.
10. The method according to any one of claims 1 to 9, wherein the target device is a lighting device.
11. A device network access device based on a Bluetooth mesh network is characterized by comprising:
the first acquisition module is used for acquiring a first group of Bluetooth scanning results obtained by Bluetooth scanning on a target terminal on the target terminal, wherein the first group of Bluetooth scanning results comprise the scanned Bluetooth information of a first group of Bluetooth devices, and the Bluetooth information of the first group of Bluetooth devices comprises device identifiers of the first group of Bluetooth devices;
the connection module is used for responding to a first interactive operation executed on the target terminal, selecting the Bluetooth information of the target equipment from the scanned Bluetooth information of the first group of Bluetooth equipment, and establishing Bluetooth connection between the target terminal and the target equipment according to the Bluetooth information of the target equipment;
the sending module is used for sending a Bluetooth command to the target equipment on the target terminal, wherein the Bluetooth command is used for indicating the target equipment to send prompt information;
a binding module, configured to bind, on the target terminal, a device identifier of the target device in the bluetooth information of the target device with pre-created target description information when the target device sends the prompt information;
and the processing module is used for accessing the target equipment to a target Bluetooth Mesh network according to the target description information and the Bluetooth information of the target equipment.
12. The apparatus according to claim 11, wherein the processing module is further configured to obtain, on the target terminal, a second group of bluetooth scanning results obtained by the bluetooth scanning on the target terminal, where the second group of bluetooth scanning results includes bluetooth information of a second group of scanned bluetooth devices, and the bluetooth information of the second group of bluetooth devices includes device identifiers of the second group of bluetooth devices; and the bluetooth information of the first device is determined to be the bluetooth information of the target device on the target terminal under the condition that the device identifier of the target device bound with the target description information is matched with the device identifier of the first device in the second group of bluetooth devices, and the target device is accessed to the target bluetooth Mesh network according to the bluetooth information of the first device, wherein the bluetooth information of the second group of bluetooth devices comprises the bluetooth information of the first device, and the device identifier of the first device is the device identifier included in the bluetooth information of the first device.
13. The apparatus according to claim 12, wherein the apparatus further comprises a lookup module, configured to obtain a device identifier of the target device bound to the target description information; and searching the scanned Bluetooth information of the second group of Bluetooth devices for a device identifier matched with the device identifier of the target device.
14. A storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, performs the method of any one of claims 1 to 10.
15. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to perform the method of any of claims 1 to 10 when running the computer program.
CN202010550725.3A 2020-06-16 2020-06-16 Equipment network access method and device based on Bluetooth Mesh network, and storage medium Active CN111641997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010550725.3A CN111641997B (en) 2020-06-16 2020-06-16 Equipment network access method and device based on Bluetooth Mesh network, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010550725.3A CN111641997B (en) 2020-06-16 2020-06-16 Equipment network access method and device based on Bluetooth Mesh network, and storage medium

Publications (2)

Publication Number Publication Date
CN111641997A CN111641997A (en) 2020-09-08
CN111641997B true CN111641997B (en) 2023-03-10

Family

ID=72330773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010550725.3A Active CN111641997B (en) 2020-06-16 2020-06-16 Equipment network access method and device based on Bluetooth Mesh network, and storage medium

Country Status (1)

Country Link
CN (1) CN111641997B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885144B (en) * 2020-07-20 2022-09-16 青岛易来智能科技股份有限公司 Equipment binding method and device
CN112423285A (en) * 2020-11-30 2021-02-26 苏州思必驰信息科技有限公司 Networking method of terminal equipment, electronic equipment and storage medium
WO2022204859A1 (en) * 2021-03-29 2022-10-06 华为技术有限公司 Connection configuration method and apparatus
CN113676981A (en) * 2021-08-13 2021-11-19 上海庆科信息技术有限公司 Method, device and equipment for determining proxy node and readable storage medium
CN114513778A (en) * 2022-04-14 2022-05-17 广东南方电信规划咨询设计院有限公司 Wireless data transmission method and system
CN115118609A (en) * 2022-07-13 2022-09-27 深圳市冠辰科技有限公司 MESH network-based control method and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810861A (en) * 2018-05-28 2018-11-13 北京小米移动软件有限公司 Connection method, device and the storage medium of smart machine
CN110460982A (en) * 2019-07-23 2019-11-15 厦门阳光恩耐照明有限公司 The distribution method and device of bluetooth MESH Intelligent illumination device
CN110460977A (en) * 2019-07-23 2019-11-15 厦门阳光恩耐照明有限公司 A kind of Intelligent illumination device based on bluetooth MESH matches network method
CN110784979A (en) * 2019-09-20 2020-02-11 西蒙电气(中国)有限公司 Lighting system and method for realizing simple networking and configuration functions

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602682A (en) * 2019-10-11 2019-12-20 张洋 Network management system and method based on Bluetooth BLE and mesh mixing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810861A (en) * 2018-05-28 2018-11-13 北京小米移动软件有限公司 Connection method, device and the storage medium of smart machine
CN110460982A (en) * 2019-07-23 2019-11-15 厦门阳光恩耐照明有限公司 The distribution method and device of bluetooth MESH Intelligent illumination device
CN110460977A (en) * 2019-07-23 2019-11-15 厦门阳光恩耐照明有限公司 A kind of Intelligent illumination device based on bluetooth MESH matches network method
CN110784979A (en) * 2019-09-20 2020-02-11 西蒙电气(中国)有限公司 Lighting system and method for realizing simple networking and configuration functions

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于蓝牙Mesh无线组网技术的智能照明系统的设计与实现;袁孟林;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20190915;第5.2节 *
蓝牙5.0 mesh组网技术及其在光伏电站中的应用;唐孝舟等;《电力工程技术》;20191128(第06期);全文 *

Also Published As

Publication number Publication date
CN111641997A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN111641997B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN111641996B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN111885144B (en) Equipment binding method and device
CN112073471B (en) Control method and device of equipment, storage medium and electronic device
CN108781174B (en) Device connection method and device, electronic device and readable storage medium
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
CN108337739B (en) Method and device for establishing wireless debugging connection and data processing method
CN111741509A (en) Network distribution method and device, storage medium and processor
CN111885115A (en) Equipment binding change method and device
US20150100674A1 (en) Device for configuration of ethernet equipment and method for configuration of ethernet equipment using such a device
CN112737816B (en) Equipment binding method and device
CN106506717A (en) A kind of automatic discovering method and equipment
CN107645789B (en) Network access method, device and system
CN112637874A (en) BLE Mesh-based intelligent device network distribution method
CN111866856B (en) Mesh device control method and system, storage medium and electronic device
CN105099756A (en) Method and system for prompting upgrading of router
CN113286313B (en) Hardware equipment layout method and device
CN111818611B (en) Equipment binding method and device
CN105094771A (en) Invitation method, device and system used for participating in and responding to applications
CN113891317A (en) Network distribution method and network distribution device of intelligent equipment and electronic equipment
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN109743347B (en) Automatic test method and system for reader-writer
CN112788576A (en) Equipment offline processing method and system, storage medium and electronic device
CN112152850B (en) Internet of things equipment management method based on flash connection protocol and service terminal
CN111556119B (en) Device information changing method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: B4, 10 / F, block B, Qingdao International Innovation Park, No.1, Keyuan Weiyi Road, Laoshan District, Qingdao, Shandong Province

Patentee after: Qingdao Yilai Intelligent Technology Co.,Ltd.

Address before: B4, 10 / F, block B, Qingdao International Innovation Park, No.1, Keyuan Weiyi Road, Laoshan District, Qingdao, Shandong Province

Patentee before: QINGDAO YEELINK INFORMATION TECHNOLOGY Co.,Ltd.