CN112533187B - Networking method and device for Bluetooth low-energy equipment, storage medium and device - Google Patents

Networking method and device for Bluetooth low-energy equipment, storage medium and device Download PDF

Info

Publication number
CN112533187B
CN112533187B CN202011326880.3A CN202011326880A CN112533187B CN 112533187 B CN112533187 B CN 112533187B CN 202011326880 A CN202011326880 A CN 202011326880A CN 112533187 B CN112533187 B CN 112533187B
Authority
CN
China
Prior art keywords
bluetooth low
bluetooth
network access
low energy
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011326880.3A
Other languages
Chinese (zh)
Other versions
CN112533187A (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN202011326880.3A priority Critical patent/CN112533187B/en
Publication of CN112533187A publication Critical patent/CN112533187A/en
Application granted granted Critical
Publication of CN112533187B publication Critical patent/CN112533187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • 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 discloses a networking method, equipment, storage medium and device of Bluetooth low energy equipment, and relates to the field of Bluetooth communication; selecting a current network access mode of Bluetooth low energy equipment to be added from preset network access modes according to the equipment connection information; and adding the Bluetooth low-energy equipment to be added to the wireless mesh network according to the current network access mode. In the prior art, bluetooth low energy equipment is added into a wireless mesh network through a fixed network access mode, and the invention realizes the addition of bluetooth low energy equipment in a special scene by acquiring the equipment connection information of local bluetooth, determining the current network access mode of the bluetooth low energy equipment to be added according to the equipment connection information, and adding the bluetooth low energy equipment to be added into the wireless mesh network according to the current network access mode.

Description

Networking method and device for Bluetooth low-energy equipment, storage medium and device
Technical Field
The present invention relates to the field of bluetooth communication technologies, and in particular, to a method, an apparatus, a storage medium, and a device for accessing a bluetooth low energy device.
Background
Along with the progress of science and technology, more and more new technology applications are people's life at present, and the emergence of wireless network is more so that fields such as thing networking, intelligent house are fast rising. From the current market; three general categories are known: and the intelligent device is connected with Bluetooth low energy Ble and supports wireless Internet WiFi, the ZigBee protocol and the ZigBee. Since the low-energy Bluetooth equipment and the wireless mesh network mesh technology are dynamic network architecture which can be continuously expanded, the wide attention in the market is paid; the intelligent home has been developed better. In the field of smart home, various home appliances and some detected appliances, such as smart lamps, smart switches, smart door locks, etc., are used. The low power consumption performance of the intelligent household system takes a significant role in the intelligent household.
In the prior art, a fixed device adding mode is often adopted to add the Bluetooth low-energy device into the mesh. In some special scenarios, for example, the distance is far and the mesh is connected with a ble device, the fixed device adding mode is difficult to realize adding the Bluetooth low-energy device into the mesh.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a networking method, equipment, storage medium and device of Bluetooth low-energy equipment, and aims to solve the technical problem that in the prior art, the fixed equipment adding mode is difficult to realize that the Bluetooth low-energy equipment is added to a network cable grid network under a special scene.
In order to achieve the above object, the present invention provides a method for accessing bluetooth low energy device, the method for accessing bluetooth low energy device comprising the steps of:
when a Bluetooth low energy device adding command is received, acquiring device connection information of local Bluetooth;
selecting a current network access mode of Bluetooth low energy equipment to be added from preset network access modes according to the equipment connection information;
and adding the Bluetooth low-energy equipment to be added to the corresponding wireless mesh network according to the current network access mode.
Preferably, the step of selecting the current network access mode of the bluetooth low energy device to be added from the preset network access modes according to the device connection information includes:
judging whether the local Bluetooth is in a connection state according to the equipment connection information;
when the local Bluetooth is in a connection state, a Bluetooth broadcast channel network allocation mode is selected from a preset network access mode to serve as a network access mode of the Bluetooth low-energy equipment to be added.
Preferably, after the step of determining whether the local bluetooth is in the connected state according to the device connection information, the method further includes:
and when the local Bluetooth is not in the connection state, selecting a Bluetooth direct connection network distribution mode from a preset network access mode as the network access mode of the Bluetooth low-energy equipment to be added.
Preferably, the step of determining whether the local bluetooth is in a connected state according to the device connection information includes:
determining whether a target Bluetooth low-energy device which is accessed to the network exists in the wireless mesh network according to the device connection information;
determining a Bluetooth communication state of the target Bluetooth low energy device when the target Bluetooth low energy device exists in a wireless mesh network;
and judging whether the local Bluetooth is in a connection state according to the Bluetooth communication state of the target Bluetooth low-energy device.
Preferably, the step of adding the bluetooth low energy device to be added to the corresponding wireless mesh network according to the current network access mode includes:
when the current network access mode is a Bluetooth broadcast channel network allocation mode, acquiring equipment information of target Bluetooth low-energy equipment connected by local Bluetooth;
and sending a network access control instruction to the target Bluetooth low energy device according to the device information, so that the target Bluetooth low energy device adds the Bluetooth low energy device to be added to the wireless mesh network according to the network access control instruction.
Preferably, after the step of sending the network access control instruction to the target bluetooth low energy device according to the device information, the method further includes:
detecting the equipment state of the target Bluetooth low energy equipment in the process that the Bluetooth low energy equipment to be added is added to the wireless mesh network in real time;
and when the device state is in a connection state, continuing to perform the operation of adding the Bluetooth low energy device to be added to the wireless mesh network.
Preferably, after the step of detecting the device state of the target bluetooth low energy device in the process of adding the bluetooth low energy device to be added to the wireless mesh network in real time, the method further includes:
when the equipment state is in a disconnection state, changing the current network access mode of the Bluetooth low-energy equipment to be added into a Bluetooth direct connection network distribution mode;
and adding the Bluetooth low-energy equipment to be added to a corresponding wireless mesh network in the Bluetooth direct connection network distribution mode.
In addition, in order to achieve the above object, the present invention further provides a network access device of a bluetooth low energy device, where the network access device of the bluetooth low energy device includes a memory, a processor, and a network access program of the bluetooth low energy device stored in the memory and capable of running on the processor, where the network access program of the bluetooth low energy device is configured to implement the steps of the network access method of the bluetooth low energy device as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a network access program of a bluetooth low energy device, which when executed by a processor implements the steps of the network access method of a bluetooth low energy device as described above.
In addition, in order to achieve the above object, the present invention further provides a network access device of a bluetooth low energy apparatus, where the network access device of the bluetooth low energy apparatus includes: the system comprises an information acquisition module, a network access mode determination module and a network access configuration module;
the information acquisition module acquires equipment connection information of the local Bluetooth when receiving a Bluetooth low-energy equipment adding command;
the network access mode determining module is used for selecting a current network access mode of the Bluetooth low-energy equipment to be added from preset network access modes according to the equipment connection information;
the network access configuration module is used for adding the Bluetooth low-energy equipment to be added to the corresponding wireless mesh network according to the current network access mode.
The invention provides a networking method, equipment, storage medium and device of Bluetooth low energy equipment, wherein the method obtains equipment connection information of local Bluetooth when receiving a command of adding the Bluetooth low energy equipment; selecting a current network access mode of Bluetooth low energy equipment to be added from preset network access modes according to the equipment connection information; and adding the Bluetooth low-energy equipment to be added to the wireless mesh network according to the current network access mode. In the prior art, bluetooth low energy equipment is added into a wireless mesh network through a fixed network access mode, and the invention realizes the addition of bluetooth low energy equipment in a special scene by acquiring the equipment connection information of local bluetooth, determining the current network access mode of the bluetooth low energy equipment to be added according to the equipment connection information, and adding the bluetooth low energy equipment to be added into the wireless mesh network according to the current network access mode.
Drawings
Fig. 1 is a schematic structural diagram of a network access device of a bluetooth low energy device in a hardware running environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a network access method of the bluetooth low energy device according to the present invention;
fig. 3 is a schematic flow chart of a second embodiment of a network access method of the bluetooth low energy device according to the present invention;
fig. 4 is a schematic flow chart of a third embodiment of a network access method of the bluetooth low energy device according to the present invention;
fig. 5 is a block diagram of a first embodiment of a network access device of the bluetooth low energy apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a network access device of a bluetooth low energy device in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the network access device of the bluetooth low energy device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), and the optional user interface 1003 may also include a standard wired interface, a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the architecture shown in fig. 1 does not constitute a limitation of the network access device of the bluetooth low energy device, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
As shown in fig. 1, a memory 1005, which is considered to be a computer storage medium, may include an operating system, a network communication module, a user interface module, and a networking program for a bluetooth low energy device.
In the network access device of the bluetooth low energy device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the network access device of the bluetooth low energy device invokes the network access program of the bluetooth low energy device stored in the memory 1005 through the processor 1001, and executes the network access method of the bluetooth low energy device provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the networking method of the Bluetooth low-energy device is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a networking method of a bluetooth low energy device according to the present invention, and the first embodiment of the networking method of the bluetooth low energy device according to the present invention is provided.
In a first embodiment, the networking method of the bluetooth low energy device includes the following steps:
step S10: and when receiving a Bluetooth low energy device adding command, acquiring the device connection information of the local Bluetooth.
It should be understood that the execution body of this embodiment may be a smart tv box controller. The controller comprises an information acquisition unit, a processing judging unit and an equipment adding control unit. The information acquisition unit is used for acquiring equipment connection information of local Bluetooth, namely Bluetooth connection information of the intelligent television box. The processing judging unit is used for analyzing the acquired information and judging the current connection condition. The device addition control unit is used for controlling the addition process of the Bluetooth low-energy device.
It should be noted that bluetooth low energy is a personal area network technology designed and sold by bluetooth technology alliance, and is intended for emerging applications in the fields of medical care, sports and fitness, beacon, security, home entertainment, etc. Compared with classical bluetooth, bluetooth with low energy aims at significantly reducing power consumption and cost while maintaining an equivalent communication range. The bluetooth low energy device is a device which has bluetooth low energy technology and can be connected with other bluetooth devices, such as a bluetooth low energy desk lamp, a sports bracelet and the like. The local Bluetooth is connected with Bluetooth of central equipment of other low-energy Bluetooth equipment, such as Bluetooth of a smart television box, bluetooth of a smart phone, bluetooth of a computer, bluetooth of a server and the like. The device connection information refers to connection information of the local bluetooth and the bluetooth low energy device.
In a specific implementation, when receiving a command of adding the low-power consumption Bluetooth device sent by other terminals, the intelligent television box controller can acquire information of a current connection device of the local Bluetooth by generating a self-checking instruction and detecting the connection state of the local Bluetooth, namely the Bluetooth of the intelligent television box, according to the self-checking instruction. The self-checking instruction is an instruction for self-checking generated by the intelligent television box controller, so that the device connection state of the local Bluetooth can be checked, and other functions can be checked.
Step S20: and selecting a current network access mode of the Bluetooth low-energy equipment to be added from preset network access modes according to the equipment connection information.
The preset network access mode is a preset network access mode of Bluetooth low-energy equipment, and the mode comprises network access modes such as a Bluetooth broadcast channel network allocation mode PB-ADV, a Bluetooth direct network allocation mode PB-GATT and the like. The bluetooth broadcast channel network allocation mode is to use bluetooth low energy equipment connected in a wireless mesh network to configure the bluetooth low energy equipment to be added into the network, namely to perform corresponding network access operation based on a session model, for example, a bluetooth low energy smart phone is connected in the wireless mesh network of local bluetooth, the bluetooth broadcast channel network allocation mode can be that an intelligent television box controller controls the bluetooth low energy smart phone in a mode of sending an instruction, when the bluetooth low energy smart phone receives the instruction, the instruction information is executed to configure the bluetooth low energy equipment to be added into the network, and the bluetooth broadcast channel network allocation mode is to perform communication through broadcast channels of 37, 38 and 39. The maximum transmission unit for transmitting the configuration data is determined by the size of the maximum transmission unit of the Bluetooth low energy smart phone. The bluetooth direct connection network distribution mode can be a mode that the intelligent television box directly configures the bluetooth low energy equipment to be added to access the network, namely, a sequence of network access operation is performed based on a connected model, and the mode is communicated through a data channel. Its maximum transmission unit is only 24 bytes at maximum and a connection setup procedure is used.
It should be understood that the bluetooth low energy device to be added is a bluetooth low energy device that needs to be added to the wireless mesh network, such as a newly purchased bluetooth low energy desk lamp or a smart tv that is not added to the wireless mesh network, etc. The current network access mode is one of preset network access modes. Wireless mesh networks are one of the key technologies to solve the "last mile" problem. In the evolution towards the next generation network, wireless is an indispensable technology. The wireless mesh network can cooperatively communicate with other networks, is a dynamic network architecture which can be continuously expanded, and any two devices can keep wireless interconnection.
In a specific implementation, when the intelligent television box controller acquires the equipment connection information, selecting a current network access mode meeting network access conditions of the Bluetooth low-energy equipment to be added from preset network access modes according to the connection information of the current equipment. For example, when the current wireless mesh network is provided with a low-energy Bluetooth smart phone connected with a local Bluetooth, the smart television box controller selects a Bluetooth broadcast channel network allocation mode from a preset network access mode as a current network access mode; and if the current wireless mesh network does not comprise the low-energy Bluetooth smart phone connected with the local Bluetooth, the smart television box controller selects a Bluetooth direct connection network distribution mode from a preset network access mode as the current network access mode.
Step S30: and adding the Bluetooth low-energy equipment to be added to the corresponding wireless mesh network according to the current network access mode.
It should be noted that, the current network access modes are different, and the network access processes of the to-be-added low-energy bluetooth devices are also different. In the implementation process, the network access configuration equipment is determined according to the current network access mode, and then the Bluetooth low-energy equipment to be added can be added to the corresponding wireless mesh network in a mode of instruction control or direct configuration.
In this embodiment, a network access method of bluetooth low energy device is provided, where when a command for adding bluetooth low energy device is received, device connection information of local bluetooth is obtained; selecting a current network access mode of Bluetooth low energy equipment to be added from preset network access modes according to the equipment connection information; and adding the Bluetooth low-energy equipment to be added to the wireless mesh network according to the current network access mode. In the prior art, bluetooth low energy equipment is added into a wireless mesh network through a fixed network access mode, but in the embodiment, the bluetooth low energy equipment is added into the wireless mesh network according to the current network access mode by acquiring the equipment connection information of local bluetooth and determining the current network access mode of the bluetooth low energy equipment to be added according to the equipment connection information, so that the bluetooth low energy equipment to be added is added in a special scene.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of a network access method of the bluetooth low energy apparatus according to the present invention, and based on the first embodiment shown in fig. 2, the second embodiment of the network access method of the bluetooth low energy apparatus according to the present invention is provided.
In a second embodiment, the step S20 includes:
step S2011: and determining whether the network-accessed target Bluetooth low-energy device exists in the wireless mesh network according to the device connection information.
It should be noted that the target bluetooth low energy device refers to a bluetooth low energy device already existing in the wireless mesh network of the current local device, or a device that connects with the current local device and completes a data transmission operation before that. The current state of the device may be a disconnected state from the local bluetooth device or may be in a connected state. The target bluetooth low energy device may be one bluetooth low energy device or a set of bluetooth low energy devices.
In a specific implementation, the intelligent television box controller determines whether a bluetooth low energy device exists in a local bluetooth wireless mesh network by analyzing device connection information. And if the Bluetooth low energy device exists, taking the Bluetooth low energy device in the wireless mesh network as a target Bluetooth low energy device.
Step S2012: and when the target Bluetooth low energy device exists in the wireless mesh network, determining the Bluetooth communication state of the target Bluetooth low energy device.
It should be noted that, the bluetooth communication state refers to a current bluetooth communication state of the target bluetooth low energy device, and the state may be a communication state or a non-communication state. The number of bluetooth low energy devices that one bluetooth device can connect to is limited, and the number of bluetooth low energy devices that communicate to the same time is limited, so when the bluetooth low energy device is not in a data transmission state with the local bluetooth device, the connection between the bluetooth low energy device and the local bluetooth device is often actively disconnected.
In specific implementation, the intelligent television box controller can send out an instruction in a broadcast feedback mode, and the Bluetooth communication state of the target Bluetooth low-energy device is determined in an instruction feedback mode. The broadcast feedback mode is a mode of broadcasting an instruction and receiving feedback information. And if the target Bluetooth low-energy device does not perform instruction feedback, indicating that the device is not in a Bluetooth communication state currently. And similarly, if the target Bluetooth low-energy equipment performs instruction feedback, the equipment is indicated to be in a Bluetooth communication state currently.
Step S2013: and judging whether the local Bluetooth is in a connection state according to the Bluetooth communication state of the target Bluetooth low-energy device.
It should be noted that, according to the communication state of the target bluetooth low energy device, the device connection state of the local bluetooth may be reversely deduced. The Bluetooth connection is the connection of at least two devices, and the connection state of the other device can be determined according to the Bluetooth connection state of any one device. In the specific implementation process, the intelligent television box controller can determine the connection state of the intelligent television box controller according to the connection state of the target low-energy Bluetooth device.
Step S202: when the local Bluetooth is in a connection state, a Bluetooth broadcast channel network allocation mode is selected from a preset network access mode to serve as a network access mode of the Bluetooth low-energy equipment to be added.
It should be noted that, the local bluetooth is in a connection state, that is, the wireless mesh network corresponding to the local bluetooth includes a target bluetooth low energy device, and the target bluetooth low energy device is connected with the local bluetooth device through bluetooth.
In a specific implementation, when the intelligent television box controller determines that the local Bluetooth is in a connection state, a Bluetooth broadcast channel network allocation mode can be selected through a characteristic information selection mode to serve as a network access mode of Bluetooth low-energy equipment to be added. The feature information is information with a unique identifier, and in this embodiment, may be information such as a data transmission channel of a bluetooth broadcast channel network configuration mode.
Step S203: and when the local Bluetooth is not in the connection state, selecting a Bluetooth direct connection network distribution mode from a preset network access mode as the network access mode of the Bluetooth low-energy equipment to be added.
It should be noted that, the local bluetooth is in an unconnected state, that is, the wireless mesh network corresponding to the local bluetooth does not include the target bluetooth low energy device or includes the target bluetooth low energy device, but the bluetooth of the target bluetooth low energy device and the local bluetooth device is in an unconnected state. In the implementation process, the smart television box controller may be selected by the above-mentioned feature information selecting manner, or may be selected by other manners, which are not limited herein.
Correspondingly, step S30 includes:
step S301: and when the current network access mode is a Bluetooth broadcast channel network allocation mode, acquiring equipment information of the target Bluetooth low-energy equipment connected by the local Bluetooth.
The device information refers to identification information of the target bluetooth low energy device, and the information may be network information or hardware identification information, which is not limited herein. The intelligent television box controller adopting the Bluetooth broadcast channel network allocation mode needs to perform configuration addition on Bluetooth low energy pens to be added through target Bluetooth low energy equipment, and then the target Bluetooth low energy equipment needs to be determined first.
In a specific implementation, the intelligent television box controller can identify the hardware or network interface of the target Bluetooth low energy device, and takes the identified hardware identification number or interface number as the device information of the target Bluetooth low energy device.
Step S302: and sending a network access control instruction to the target Bluetooth low energy device according to the device information, so that the target Bluetooth low energy device adds the Bluetooth low energy device to be added to the wireless mesh network according to the network access control instruction.
It should be noted that, the network access control instruction is an instruction for controlling the target bluetooth low energy device to add the bluetooth low energy device, and the instruction is generated by the smart television box controller and is sent to the target bluetooth low energy device.
In a specific implementation, the intelligent television box controller generates a network access control instruction and sends the instruction to the target Bluetooth low energy device. And the target low-power consumption equipment analyzes the instruction when receiving the instruction, carries out relevant configuration on the Bluetooth low-power consumption equipment to be added according to the analysis result, and adds the Bluetooth low-power consumption equipment to be added into the wireless mesh network. The relevant configuration may be a configuration for checking the bluetooth low energy device to be added, for example, checking the bluetooth low energy device to be added through a PIN code, or a configuration of a connection channel of the bluetooth low energy device to be added, which is not particularly limited herein.
In this embodiment, a network access method of bluetooth low energy device is provided, where when a command for adding bluetooth low energy device is received, device connection information of local bluetooth is obtained; selecting a current network access mode of Bluetooth low energy equipment to be added from preset network access modes according to the equipment connection information; and adding the Bluetooth low-energy equipment to be added to the wireless mesh network according to the current network access mode. In the prior art, bluetooth low energy equipment is added into a wireless mesh network through a fixed network access mode, but in the embodiment, the bluetooth low energy equipment is added into the wireless mesh network according to the current network access mode by acquiring the equipment connection information of local bluetooth and determining the current network access mode of the bluetooth low energy equipment to be added according to the equipment connection information, so that the bluetooth low energy equipment to be added is added in a special scene.
Referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of a network access method of the bluetooth low energy apparatus according to the present invention, and based on the first embodiment shown in fig. 2 and the foregoing description, the third embodiment of the network access method of the bluetooth low energy apparatus according to the present invention is provided.
In a third embodiment, after the step S30, the method further includes:
step S301': and detecting the device state of the target Bluetooth low energy device in the process that the Bluetooth low energy device to be added is added to the wireless mesh network in real time.
It should be noted that the device state is a connection state of the target bluetooth low energy device and the local bluetooth device. The real-time detection of the device state of the target bluetooth low energy device is to prevent the addition of the bluetooth low energy device to be added from being interrupted due to the connection state of the target bluetooth low energy device during the addition process of the bluetooth low energy device to be added.
In a specific implementation, the intelligent television box controller can send a feedback instruction to the target bluetooth low energy device every time a preset time threshold value passes through by setting the preset time threshold value, and if feedback information is received, the intelligent television box controller determines that the device state is in a connection state and returns to the step of sending the feedback instruction to the target bluetooth low energy device by the preset time threshold value. And if no feedback information is received, the equipment state is determined to be in a disconnection state.
Step S302': and when the device state is in a connection state, continuing to perform the operation of adding the Bluetooth low energy device to be added to the wireless mesh network.
It should be noted that, when the device state is still in the connection state, the operation of adding the bluetooth low energy device to be added to the wireless mesh network is continuously performed until the adding is completed and the adding step is exited. In the implementation process, the detection result of each time is that the equipment state is in a connection state, and the smooth addition of the Bluetooth low-energy equipment to be added is ensured to be continuously executed.
Step S303': and when the equipment state is in a disconnection state, changing the current network access mode of the Bluetooth low-energy equipment to be added into a Bluetooth direct connection network distribution mode.
When detecting that the device state is in the disconnected state in real time, the target bluetooth low energy device cannot continue to execute the step of adding the bluetooth low energy device to be added to the wireless mesh network, and needs to wait for reconnection of the target bluetooth low energy device, and repeatedly execute the step of sending a network access control instruction to the target bluetooth low energy device according to the device information so that the target bluetooth low energy device adds the bluetooth low energy device to be added to the wireless mesh network according to the network access control instruction. After the preset times, the current network access mode of the Bluetooth low-energy equipment to be added is changed into a Bluetooth direct-connection network distribution mode. In the specific implementation process, the intelligent television box controller can change the current network access mode into a Bluetooth direct connection network distribution mode through an instruction switching mode.
Step S304': and adding the Bluetooth low-energy equipment to be added to a corresponding wireless mesh network in the Bluetooth direct connection network distribution mode.
It should be noted that, under the condition that the connection of the target bluetooth low energy device is unstable, the bluetooth low energy device to be added can be added to the corresponding wireless mesh network in a bluetooth direct connection network distribution mode.
In this embodiment, a network access method of bluetooth low energy device is provided, where when a command for adding bluetooth low energy device is received, device connection information of local bluetooth is obtained; selecting a current network access mode of Bluetooth low energy equipment to be added from preset network access modes according to the equipment connection information; and adding the Bluetooth low-energy equipment to be added to the wireless mesh network according to the current network access mode. In the prior art, bluetooth low energy equipment is added into a wireless mesh network through a fixed network access mode, but in the embodiment, the bluetooth low energy equipment to be added is added into the wireless mesh network according to the current network access mode by acquiring the equipment connection information of local bluetooth and determining the current network access mode of the bluetooth low energy equipment to be added according to the equipment connection information, so that the bluetooth low energy equipment to be added is added under a special scene.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a networking program of the Bluetooth low energy device, and the networking program of the Bluetooth low energy device realizes the steps of the networking method of the Bluetooth low energy device when being executed by a processor.
In addition, referring to fig. 5, an embodiment of the present invention further provides a network access device of a bluetooth low energy device, where the device includes: the system comprises an information acquisition module 10, a network access mode determination module 20 and a network access configuration module 30;
the information acquisition module 10 acquires the device connection information of the local Bluetooth when receiving a command of adding the Bluetooth low-energy device;
the network access mode determining module 20 is configured to select a current network access mode of the bluetooth low energy device to be added from preset network access modes according to the device connection information;
the network access configuration module 30 is configured to add the bluetooth low energy device to be added to the corresponding wireless mesh network according to the current network access mode.
In this embodiment, a network access device of a bluetooth low energy device is provided, where the device information obtaining module 10 obtains device connection information of a local bluetooth when receiving a command for adding the bluetooth low energy device; the network access mode determining module 20 selects a current network access mode of the Bluetooth low-energy equipment to be added from preset network access modes according to the equipment connection information; the network access configuration module 30 adds the bluetooth low energy device to be added to the wireless mesh network according to the current network access mode. In the prior art, bluetooth low energy equipment is added into a wireless mesh network through a fixed network access mode, and the invention realizes the addition of bluetooth low energy equipment in a special scene by acquiring the equipment connection information of local bluetooth, determining the current network access mode of the bluetooth low energy equipment to be added according to the equipment connection information, and adding the bluetooth low energy equipment to be added into the wireless mesh network according to the current network access mode.
Other embodiments or specific implementation manners of the network access device of the bluetooth low energy apparatus according to the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the terms first, second, third, etc. do not denote any order, but rather the terms first, second, third, etc. are used to interpret the terms as names.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read only memory mirror (Read Only Memory image, ROM)/random access memory (Random Access Memory, RAM), magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (6)

1. A method for accessing a bluetooth low energy device, the method comprising the steps of:
when a Bluetooth low energy device adding command is received, acquiring device connection information of local Bluetooth;
selecting a current network access mode of Bluetooth low energy equipment to be added from preset network access modes according to the equipment connection information;
adding the Bluetooth low energy equipment to be added to a corresponding wireless mesh network according to the current network access mode;
the step of selecting the current network access mode of the Bluetooth low energy equipment to be added from the preset network access modes according to the equipment connection information comprises the following steps:
judging whether the local Bluetooth is in a connection state according to the equipment connection information;
when the local Bluetooth is in a connection state, selecting a Bluetooth broadcast channel network allocation mode from a preset network access mode as a network access mode of Bluetooth low-energy equipment to be added;
after the step of judging whether the local bluetooth is in the connection state according to the device connection information, the method further includes:
when the local Bluetooth is not in a connection state, selecting a Bluetooth direct connection network distribution mode from a preset network access mode as the network access mode of the Bluetooth low-energy equipment to be added;
the step of determining whether the local bluetooth is in a connected state according to the device connection information includes:
determining whether a target Bluetooth low-energy device which is accessed to the network exists in the wireless mesh network according to the device connection information;
determining a Bluetooth communication state of the target Bluetooth low energy device when the target Bluetooth low energy device exists in a wireless mesh network;
judging whether the local Bluetooth is in a connection state according to the Bluetooth communication state of the target Bluetooth low-energy device;
the step of adding the Bluetooth low energy device to be added to the corresponding wireless mesh network according to the current network access mode comprises the following steps:
when the current network access mode is a Bluetooth broadcast channel network allocation mode, acquiring equipment information of target Bluetooth low-energy equipment connected by local Bluetooth;
and sending a network access control instruction to the target Bluetooth low energy device according to the device information, so that the target Bluetooth low energy device adds the Bluetooth low energy device to be added to the wireless mesh network according to the network access control instruction.
2. The method of claim 1, wherein after the step of sending an access control instruction to the target bluetooth low energy device according to the device information, the method further comprises:
detecting the equipment state of the target Bluetooth low energy equipment in the process that the Bluetooth low energy equipment to be added is added to the wireless mesh network in real time;
and when the device state is in a connection state, continuing to perform the operation of adding the Bluetooth low energy device to be added to the wireless mesh network.
3. The method of claim 2, wherein after the step of detecting in real time the device status of the target bluetooth low energy device during the process of adding the bluetooth low energy device to be added to the wireless mesh network, further comprises:
when the equipment state is in a disconnection state, changing the current network access mode of the Bluetooth low-energy equipment to be added into a Bluetooth direct connection network distribution mode;
and adding the Bluetooth low-energy equipment to be added to a corresponding wireless mesh network in the Bluetooth direct connection network distribution mode.
4. The networking equipment of bluetooth low energy equipment, its characterized in that, networking equipment of bluetooth low energy equipment includes: memory, a processor and a networking program of a bluetooth low energy device stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the networking method of a bluetooth low energy device according to any of claims 1 to 3.
5. A storage medium, wherein a network access program of a bluetooth low energy device is stored on the storage medium, and the network access program of the bluetooth low energy device, when executed by a processor, implements the steps of the network access method of the bluetooth low energy device according to any one of claims 1 to 3.
6. A networking device for bluetooth low energy equipment, said device comprising: the system comprises an information acquisition module, a network access mode determination module and a network access configuration module;
the information acquisition module acquires equipment connection information of the local Bluetooth when receiving a Bluetooth low-energy equipment adding command;
the network access mode determining module is used for selecting a current network access mode of the Bluetooth low-energy equipment to be added from preset network access modes according to the equipment connection information;
the network access configuration module is used for adding the Bluetooth low-energy equipment to be added to the corresponding wireless mesh network according to the current network access mode;
the network access mode determining module is further used for judging whether the local Bluetooth is in a connection state according to the equipment connection information; when the local Bluetooth is in a connection state, selecting a Bluetooth broadcast channel network allocation mode from a preset network access mode as a network access mode of Bluetooth low-energy equipment to be added; when the local Bluetooth is not in a connection state, selecting a Bluetooth direct connection network distribution mode from a preset network access mode as the network access mode of the Bluetooth low-energy equipment to be added;
the network access mode determining module is further used for determining whether the network access target Bluetooth low-energy equipment exists in the wireless mesh network according to the equipment connection information; determining a Bluetooth communication state of the target Bluetooth low energy device when the target Bluetooth low energy device exists in a wireless mesh network; judging whether the local Bluetooth is in a connection state according to the Bluetooth communication state of the target Bluetooth low-energy device;
the network access configuration module is further configured to obtain device information of a target bluetooth low energy device connected by a local bluetooth when the current network access mode is a bluetooth broadcast channel network allocation mode; and sending a network access control instruction to the target Bluetooth low energy device according to the device information, so that the target Bluetooth low energy device adds the Bluetooth low energy device to be added to the wireless mesh network according to the network access control instruction.
CN202011326880.3A 2020-11-23 2020-11-23 Networking method and device for Bluetooth low-energy equipment, storage medium and device Active CN112533187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011326880.3A CN112533187B (en) 2020-11-23 2020-11-23 Networking method and device for Bluetooth low-energy equipment, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011326880.3A CN112533187B (en) 2020-11-23 2020-11-23 Networking method and device for Bluetooth low-energy equipment, storage medium and device

Publications (2)

Publication Number Publication Date
CN112533187A CN112533187A (en) 2021-03-19
CN112533187B true CN112533187B (en) 2023-08-15

Family

ID=74993057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011326880.3A Active CN112533187B (en) 2020-11-23 2020-11-23 Networking method and device for Bluetooth low-energy equipment, storage medium and device

Country Status (1)

Country Link
CN (1) CN112533187B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113573289B (en) * 2021-06-30 2024-03-26 杭州博联智能科技股份有限公司 Method and system for adding devices to Bluetooth-based client

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604212A (en) * 2016-12-21 2017-04-26 深圳市北电仪表有限公司 Mesh networking method based on BLE attribute and GATT
CN107635215A (en) * 2017-08-25 2018-01-26 西安电子科技大学 Mesh network-building methods based on low-power consumption bluetooth
CN108183827A (en) * 2017-12-29 2018-06-19 江苏惠通集团有限责任公司 Configuration method and startup configuration equipment based on low-power consumption bluetooth mesh network
CN110602682A (en) * 2019-10-11 2019-12-20 张洋 Network management system and method based on Bluetooth BLE and mesh mixing
CN111065077A (en) * 2018-10-17 2020-04-24 阿里巴巴集团控股有限公司 Bluetooth Mesh network and communication method, equipment and storage medium thereof
CN211792058U (en) * 2020-05-13 2020-10-27 深圳市中科蓝讯科技股份有限公司 Remote Bluetooth Mesh networking system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107409433B (en) * 2015-02-26 2020-09-15 瑞典爱立信有限公司 Energy efficient BLE mesh initialization and operation
TWI635756B (en) * 2016-07-12 2018-09-11 立創智能股份有限公司 Method for building and monitoring bluetooth low-power wireless network
US20200068369A1 (en) * 2018-08-27 2020-02-27 Keenstar Corporation Iot service system with bluetooth low energy mesh network, and communication method thereof
US11252636B2 (en) * 2019-05-16 2022-02-15 Delta Electronics, Inc. System and method for establishing bluetooth mesh network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604212A (en) * 2016-12-21 2017-04-26 深圳市北电仪表有限公司 Mesh networking method based on BLE attribute and GATT
CN107635215A (en) * 2017-08-25 2018-01-26 西安电子科技大学 Mesh network-building methods based on low-power consumption bluetooth
CN108183827A (en) * 2017-12-29 2018-06-19 江苏惠通集团有限责任公司 Configuration method and startup configuration equipment based on low-power consumption bluetooth mesh network
CN111065077A (en) * 2018-10-17 2020-04-24 阿里巴巴集团控股有限公司 Bluetooth Mesh network and communication method, equipment and storage medium thereof
CN110602682A (en) * 2019-10-11 2019-12-20 张洋 Network management system and method based on Bluetooth BLE and mesh mixing
CN211792058U (en) * 2020-05-13 2020-10-27 深圳市中科蓝讯科技股份有限公司 Remote Bluetooth Mesh networking system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于蓝牙4.0网络的控制;付直兵;陈庆奎;梁晶;高丽萍;;计算机工程与设计(01);全文 *

Also Published As

Publication number Publication date
CN112533187A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN107231606B (en) WiFi network access method, intelligent hardware equipment and electronic terminal
CN1253808C (en) System for dynamic process assignment in local area network and method therefor
CN105100213B (en) Apparatus bound method and device
CN101682529A (en) Method, system and mobile device for prioritizing a discovered device list
Wirtz et al. Opportunistic interaction in the challenged internet of things
CN104660618A (en) Binding method and binding equipment
CN103199899A (en) Systems for facilitating wireless communication and related methods
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN105208583A (en) Intelligent household electrical appliance networking method and apparatus, and intelligent equipment
CN111830844B (en) Intelligent equipment control method and device and intelligent home control panel
CN112804697B (en) Network distribution method and device for equipment to be networked, electronic equipment and computer readable medium
CN112312515B (en) Binding method and device of intelligent equipment, electronic equipment and storage medium
CN107947985B (en) Equipment network access method and device, intelligent terminal, network access equipment and network access waiting equipment
CN112566113B (en) Key generation and terminal network distribution method, device and equipment
CN108924906A (en) Smart machine control method, ZigBee gateway and storage medium
CN112533187B (en) Networking method and device for Bluetooth low-energy equipment, storage medium and device
CN111161522A (en) Method for processing remote control data, storage medium, computer device and remote control system
CN107181653A (en) Intelligent home device match somebody with somebody network method and intelligent domestic system
CN110601986A (en) Router supporting peripheral control over mobile terminal equipment, control method and device
CN104618990A (en) Access control method and access control device
CN111615086A (en) Method and device for pairing game handles capable of being connected to network
CN112104532B (en) Network connection method, network distribution device, electronic equipment and storage medium
CN114585052A (en) Networking method, networking device, networking gateway and storage medium based on LoRa
Constante et al. Enhanced association mechanism for IEEE 802.15. 4 networks
CN114980358A (en) Automatic network distribution method, system, equipment and storage medium for batch intelligent equipment

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