CN109769238B - A method for starting and configuring multiple devices to be distributed in a Bluetooth Mesh network - Google Patents
A method for starting and configuring multiple devices to be distributed in a Bluetooth Mesh network Download PDFInfo
- Publication number
- CN109769238B CN109769238B CN201910168979.6A CN201910168979A CN109769238B CN 109769238 B CN109769238 B CN 109769238B CN 201910168979 A CN201910168979 A CN 201910168979A CN 109769238 B CN109769238 B CN 109769238B
- Authority
- CN
- China
- Prior art keywords
- devices
- upgraded
- upgrade
- transmit power
- configuration
- 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
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及蓝牙Mesh网络,更具体地,涉及一种用于在蓝牙Mesh网络中对多个待配网设备进行启动配置的方法以及一种用于在蓝牙Mesh网络中对多个待升级节点进行软件空中升级的方法。The present invention relates to a Bluetooth Mesh network, and more particularly, to a method for starting and configuring a plurality of devices to be deployed in a Bluetooth Mesh network, and a method for configuring a plurality of nodes to be upgraded in a Bluetooth Mesh network. The method of software over-the-air upgrade.
背景技术Background technique
在蓝牙Mesh中,有一些需要所有设备参与的流程,比如,对于大批未配置入网的设备,需要统一启动配置入网流程配置入网,再比如,需要对大批已成为节点的设备进行软件空中升级等等。在此类场景中,会有一个中心节点或设备第一个发起对应的流程操作,比如用于通过手机开始对待配网设备进行启动配置,或对已入网设备进行空中软件升级。In Bluetooth Mesh, there are some processes that require the participation of all devices. For example, for a large number of devices that are not configured to access the network, it is necessary to start the configuration process to configure the network. For example, a large number of devices that have become nodes need to be upgraded over the air. . In such scenarios, a central node or device will be the first to initiate the corresponding process operation, such as starting the configuration of the device to be distributed through the mobile phone, or performing over-the-air software upgrades for the devices already connected to the network.
在该场景下,流程的最开始阶段会集中在中心节点的周围一小圈范围内进行相关操作,而网络的其它设备或节点将处于空闲状态。这会造成中心节点周围数据包的大量聚集,从而导致信道拥挤,并且干扰严重,丢包现象也较为频繁;另一方面,离中心节点较远的设备或节点处于空闲等待状态,无法及时开始操作流程。In this scenario, the initial stage of the process will focus on performing related operations in a small circle around the central node, while other devices or nodes in the network will be in an idle state. This will cause a large number of data packets to gather around the central node, resulting in channel congestion, severe interference, and frequent packet loss. On the other hand, devices or nodes far from the central node are in an idle waiting state and cannot start operations in time. process.
以下结合图1、2具体说明上述问题产生的过程及原因。如图1所示,图中所有的小圆圈代表一个个设备,它们在启动配置流程的场景下,表示等待启动配置入网的待配网设备,在等待软件空中升级的场景下,表示等待软件空中升级的入网设备。以启动配置过程为例,通常,所有设备安装完毕后,会对其进行同时上电操作,启动后设备开始发送“等待启动配置信标包(Unprovisioned Device Beacon)”。结合图2,这个信标包一般不会很频繁地发送,例如5秒发送一次,每次发送持续时间在1毫秒(ms)左右。在启动配置场景中,因为所有设备同时上电,因此它们基本上会同时发送等待启动配置信标包,5秒后又同时发送第二个包。考虑到蓝牙协议中会对每个广播包加上0至10ms的随机延迟(Delay),因此所有设备启动后第一个包的发送时间集中在上电时间T0至T0+10ms之间,第二个包集中在T0+5s至T0+5s+10ms之间,以此类推。在图2所示的时间轴中,实心部分代表了空中“启动配置信标包”的集中发送时间。The process and causes of the above problems will be described in detail below with reference to FIGS. 1 and 2 . As shown in Figure 1, all the small circles in the figure represent each device. In the scenario of starting the configuration process, they represent the devices waiting to be configured and connected to the network. In the scenario of waiting for the software to be upgraded over the air, they represent the waiting for the software to be over-the-air. Upgraded network access equipment. Taking the startup configuration process as an example, generally, after all devices are installed, they will be powered on at the same time, and after startup, the device starts to send an "Unprovisioned Device Beacon". With reference to FIG. 2 , this beacon packet is generally not sent very frequently, for example, sent once every 5 seconds, and the duration of each sending is about 1 millisecond (ms). In the startup configuration scenario, because all devices are powered up at the same time, they basically send the wait for startup configuration beacon packet at the same time, and then send the second packet at the same time after 5 seconds. Considering that a random delay (Delay) of 0 to 10ms will be added to each broadcast packet in the Bluetooth protocol, the sending time of the first packet after all devices are started is concentrated between the power-on time T0 and T0+10ms, and the second Each packet is concentrated between T0+5s to T0+5s+10ms, and so on. In the time axis shown in Figure 2, the solid part represents the centralized transmission time of the "Start Configuration Beacon Packet" over the air.
在图1的网络图中,假设设备1是中心启动配置设备,它将首先扫描空中的等待配置入网设备。因为所有设备均同时上电,所以此时几乎所有设备会同时发送等待启动配置信标包。从通信角度讲,如果一个设备同时收到不同设备发送的数据包,一般会选择接收信号强度比较大的数据包。即,如果每个设备的发射功率相同,则距离越近的设备发出来的数据包的接收信号强度越大,因此越容易被本设备收到。In the network diagram of FIG. 1, assume that device 1 is the central startup configuration device, it will first scan the air for devices waiting to be configured into the network. Because all devices are powered on at the same time, almost all devices will send wait-to-start configuration beacon packets at the same time. From a communication point of view, if a device receives data packets sent by different devices at the same time, it generally selects data packets with a relatively high received signal strength. That is, if the transmit power of each device is the same, the received signal strength of the data packet sent by the device with the closer distance is higher, so it is easier to be received by the device.
因为设备2、3、11、13相比其他设备离设备1比较近,设备1收到这几个设备发过来的“等待启动配置信标包”的接收信号强度大于其他设备发过来的“等待启动配置信标包”,所以大概率会优先处理这些设备的“等待启动配置信标包”,也就是会优先启动配置这几个设备。例如,图1中,设备1可选择设备2、3、11同时启动配置流程;设备2配置入网结束后,可以继续去找自己周围等待配置入网的设备。类似地,设备2可以选择例如周围的设备21、22、4同时启动配置流程。同理,设备3启动配置入网结束后,可以选择例如周围的设备31、32、33同时启动配置流程;设备4启动配置入网结束后,可以选择例如周围的设备41、42、43同时启动配置流程。应理解,图1中所示用实线和虚线表示的较大圆圈仅示意性地表示位于圆心处的设备与其他设备之间的相对距离关系,并不代表该设备的信号覆盖范围。Because devices 2, 3, 11, and 13 are closer to device 1 than other devices, the received signal strength of device 1 receiving the "waiting to start configuration beacon packet" sent by these devices is greater than the "waiting for configuration beacon packet" sent by other devices. Start the configuration beacon packet", so there is a high probability that the "waiting for the configuration beacon packet" of these devices will be preferentially processed, that is, these devices will be preferentially started and configured. For example, in Figure 1, device 1 can select devices 2, 3, and 11 to start the configuration process at the same time; after device 2 is configured and connected to the network, it can continue to find devices around it waiting to be configured and connected to the network. Similarly, device 2 may select, for example, surrounding devices 21, 22, 4 while initiating the configuration process. Similarly, after the device 3 starts and configures the network, it can select, for example, the surrounding devices 31, 32, and 33 to start the configuration process at the same time; after the device 4 starts and configures the network, it can select, for example, the surrounding devices 41, 42, and 43 to start the configuration process at the same time. . It should be understood that the larger circles represented by solid lines and dotted lines shown in FIG. 1 only schematically represent the relative distance relationship between the device at the center of the circle and other devices, and do not represent the signal coverage of the device.
综上,最开始的时候,只有集中在设备1周围的设备先开始启动配置流程,后面才慢慢扩散到网络的周边设备;这会造成最开始阶段设备1的周围数据包特别多,干扰严重,而网络的周边设备一直空闲,信道也处于空闲状态。一方面,在空间上,这会造成局部区域中的信道过于拥挤,另外还有可能导致最先发起启动配置的设备1等位于中心处的几个节点去争抢附近的少数几个待配网设备,从而导致每个设备无法同时对多个待配网设备进行启动配置,然而距中心较远距离处却有大量设备在等待配网而无法对其配网。另一方面,在时间上,如参照图2中的上述时间轴分析,也会造成在某段时间(例如10ms)内有大量设备集中发送等待启动配置信标包,而其他时间(如剩余的5s-10ms)内没有设备发送等待启动配置信标包,从而造成启动配置设备只能在很短的时间窗口内寻找等待启动配置设备,如果找不到,则只能等待下一个周期(例如5s)。这样的拥堵问题在密集布置的网络中尤其严重。密集布置的网络例如可以是所有设备或大量设备都处在一跳范围内的网络。To sum up, at the very beginning, only the devices concentrated around device 1 start the configuration process first, and then slowly spread to the peripheral devices of the network; this will cause a lot of data packets around device 1 in the initial stage, causing serious interference , and the peripheral devices of the network are always idle, and the channel is also in an idle state. On the one hand, in terms of space, this will cause the channels in the local area to be overcrowded, and on the other hand, it may also lead to several nodes located in the center, such as Device 1, which initiates the configuration first, to compete for the few nearby networks to be configured. As a result, each device cannot start and configure multiple devices to be deployed at the same time. However, there are a large number of devices far away from the center that are waiting for network configuration and cannot be configured. On the other hand, in terms of time, as shown in the above-mentioned time axis analysis in Figure 2, it will also cause a large number of devices to send and wait for the configuration beacon packets within a certain period of time (for example, 10ms), while other time (such as the remaining 5s-10ms), there is no device to send a beacon packet waiting to start configuration, so that the startup configuration device can only look for a waiting startup configuration device within a very short time window. If it is not found, it can only wait for the next cycle (such as 5s). ). Such congestion problems are especially severe in densely arranged networks. A densely arranged network can be, for example, a network in which all or a large number of devices are within a hop.
因此,本领域中需要一种方案,其至少能够在蓝牙Mesh网络中进行启动配置或空中软件升级时消除或缓解上述拥堵。应理解,上述所列举的技术问题仅作为示例而非对本发明的限制,本发明并不限于同时解决上述所有技术问题的技术方案。本发明的技术方案可以实施为解决上述或其他技术问题中的一个或多个。Therefore, there is a need in the art for a solution that can eliminate or alleviate the above-mentioned congestion at least during startup configuration or over-the-air software upgrade in a Bluetooth Mesh network. It should be understood that the technical problems listed above are only examples rather than limitations of the present invention, and the present invention is not limited to technical solutions that simultaneously solve all the above-mentioned technical problems. The technical solutions of the present invention can be implemented to solve one or more of the above or other technical problems.
发明内容SUMMARY OF THE INVENTION
本发明的目的,在于解决现有的蓝牙Mesh网络中进行启动配置时或进行空中软件升级时,因数据包聚集而导致的局部信道拥挤,以及多个启动配置设备争抢少数待配网设备或多个升级服务设备节点争抢少数待升级节点的状态,从而使得设备无法即时完成启动配置或空中软件升级等问题。The purpose of the present invention is to solve the problem of local channel congestion caused by data packet aggregation during startup configuration or over-the-air software upgrade in the existing Bluetooth Mesh network, and multiple startup configuration devices vying for a few network devices to be configured or Multiple upgrade service device nodes compete for the status of a few nodes to be upgraded, so that the device cannot immediately complete startup configuration or over-the-air software upgrade.
在本发明的一个方面,提供了一种用于在蓝牙Mesh网络中对多个待配网设备进行启动配置的方法,包括:(a)对多个待配网设备同时进行上电;(b)对该多个待配网设备中的每一个分配独立的随机时间延迟;(c)当该多个待配网设备中的每个待配网设备等待其对应的随机时间延迟所确定的时间时,该待配网设备发送首个等待启动配置信标包;及(d)多个待配网设备中的每一个继续发送等待启动配置信标包,以使得对应的启动配置设备能够对其进行启动配置操作。In one aspect of the present invention, a method for starting and configuring a plurality of devices to be deployed in a Bluetooth Mesh network is provided, including: (a) simultaneously powering on the plurality of devices to be deployed; (b) ) Allocate an independent random time delay to each of the multiple network devices to be configured; (c) when each of the multiple network devices to be configured waits for a time determined by its corresponding random time delay When the network device to be configured sends the first wait-to-start configuration beacon packet; and (d) each of the multiple network-to-be-configured devices continues to send the wait-to-start configuration beacon packet, so that the corresponding start-up configuration device can Perform the startup configuration operation.
优选地,所述随机时间延迟的长度为0ms到等待启动配置信标包的发送间隔时间之间。Preferably, the length of the random time delay is between 0ms and the interval time for waiting to start the sending of the configuration beacon packet.
优选地,在步骤(a)之后,该多个待配网设备中的每一个确定独立的随机发射功率;并且在步骤(c)和(d)中,该多个待配网设备中的每一个以其对应的随机发射功率发送等待启动配置信标包。所述随机发射功率优选地在-5dbm到该待配网设备的最大发射功率之间。Preferably, after step (a), each of the plurality of devices to be distributed determines an independent random transmit power; and in steps (c) and (d), each of the plurality of devices to be distributed determines independent random transmission power; A wait-to-start configuration beacon packet is sent with its corresponding random transmit power. The random transmit power is preferably between -5dbm and the maximum transmit power of the device to be distributed.
在本发明的第二个方面,还提供了一种用于在蓝牙Mesh网络中对多个待升级节点进行软件空中升级的方法,包括:(a)升级服务设备节点发送升级指令到多个待升级节点;(b)当多个待升级节点中的每一个接收到升级指令且决定接受升级时,对该多个待升级节点中的每一个分配独立的随机时间延迟;(c)当该多个待升级节点中的每个待升级节点等待其对应的随机时间延迟所确定的时间时,该待升级节点发送首个等待空中升级信标包;及(d)多个待升级节点中的每一个继续发送等待空中升级信标包,以使得对应的升级服务设备节点能够对其进行软件空中升级操作。In a second aspect of the present invention, a method for over-the-air software upgrade of a plurality of nodes to be upgraded in a Bluetooth Mesh network is also provided, including: (a) an upgrade service device node sends an upgrade instruction to a plurality of nodes to be upgraded. upgrade the nodes; (b) when each of the plurality of nodes to be upgraded receives an upgrade instruction and decides to accept the upgrade, assigning an independent random time delay to each of the plurality of nodes to be upgraded; (c) when the plurality of nodes to be upgraded When each of the to-be-upgraded nodes waits for a time determined by its corresponding random time delay, the to-be-upgraded node sends the first waiting for over-the-air upgrade beacon packet; and (d) each of the plurality of to-be-upgraded nodes One continues to send and wait for the over-the-air upgrade beacon packet, so that the corresponding upgrade service device node can perform software over-the-air upgrade operations on it.
优选地,所述随机时间延迟的长度为0ms到等待空中升级信标包的发送间隔时间之间。Preferably, the length of the random time delay is between 0ms and the sending interval of waiting for the over-the-air upgrade beacon packet.
优选地,在步骤(a)之后,该多个待升级节点中的每一个确定独立的随机发射功率;并且在步骤(c)和(d)中,该多个待升级节点中的每一个以其对应的随机发射功率发送等待空中升级信标包。所述随机发射功率优选地在-5dbm到该待配网设备的最大发射功率之间。Preferably, after step (a), each of the plurality of nodes to be upgraded determines an independent random transmit power; and in steps (c) and (d), each of the plurality of nodes to be upgraded uses Its corresponding random transmit power sends and waits for the air upgrade beacon packet. The random transmit power is preferably between -5dbm and the maximum transmit power of the device to be distributed.
在本发明的第三个方面,还提供了一种用于在蓝牙Mesh网络中对多个待配网设备进行启动配置的方法,包括:(a)对多个待配网设备同时进行上电;(b)该多个待配网设备中的每一个确定独立的随机发射功率;(c)该多个待配网设备中的每一个以其对应的随机发射功率发送首个等待启动配置信标包;及(d)多个待配网设备中的每一个以其对应的随机发射功率继续发送等待启动配置信标包,以使得对应的启动配置设备能够对其进行启动配置操作。In a third aspect of the present invention, a method for starting and configuring a plurality of devices to be deployed in a Bluetooth Mesh network is also provided, including: (a) simultaneously powering on the plurality of devices to be deployed (b) each of the multiple network devices to be configured determines an independent random transmission power; (c) each of the multiple network devices to be configured sends the first waiting-to-start configuration information with its corresponding random transmission power and (d) each of the multiple devices to be configured on the network continues to send a beacon packet waiting to be configured with its corresponding random transmit power, so that the corresponding device can perform a configuration operation on it.
在本发明的第四个方面,还提供了一种用于在蓝牙Mesh网络中对多个待升级节点进行软件空中升级的方法,其中所述方法包括:(a)升级服务设备节点发送升级指令到多个待升级节点;(b)当多个待升级节点中的每一个接收到升级指令且决定接受升级时,该多个待升级节点中的每一个确定独立的随机发射功率;(c)该待升级节点以其对应的随机发射功率发送首个等待空中升级信标包;及(d)多个待升级节点中的每一个以其对应的随机发射功率继续发送等待空中升级信标包,以使得对应的升级服务设备节点能够对其进行软件空中升级操作。In a fourth aspect of the present invention, a method for over-the-air software upgrade of a plurality of nodes to be upgraded in a Bluetooth Mesh network is also provided, wherein the method includes: (a) the upgrade service device node sends an upgrade instruction to a plurality of nodes to be upgraded; (b) when each of the plurality of nodes to be upgraded receives an upgrade instruction and decides to accept the upgrade, each of the plurality of nodes to be upgraded determines an independent random transmit power; (c) The node to be upgraded sends the first beacon packet waiting for over-the-air upgrade with its corresponding random transmit power; and (d) each of the plurality of nodes to be upgraded continues to send the beacon packet waiting for over-the-air upgrade with its corresponding random transmit power, So that the corresponding upgrade service device node can perform software over-the-air upgrade operation on it.
通过本发明,可有效减少在设备启动配置过程或软件空中升级初期因执行启动配置或软件空中升级的设备过于集中而导致的数据包拥堵、干扰大、数据包丢失严重等问题。The invention can effectively reduce the problems of data packet congestion, large interference, serious data packet loss and the like caused by excessive concentration of devices performing the start-up configuration or software over-the-air upgrade in the initial stage of the device startup configuration process or software over-the-air upgrade.
附图说明Description of drawings
图1示出现有技术中蓝牙Mesh网络设备启动配置流程所处网络环境的示意图;1 shows a schematic diagram of a network environment where a Bluetooth Mesh network device starts a configuration process in the prior art;
图2示出根据图1的设备发送等待启动配置信标包的时间轴示意图;Fig. 2 shows a schematic diagram of a time axis according to which the device of Fig. 1 sends a beacon packet waiting to start the configuration;
图3示出本发明的第一个实施方式的流程示意图;Fig. 3 shows the schematic flow chart of the first embodiment of the present invention;
图4示出本发明的第二个实施方式的流程示意图;FIG. 4 shows a schematic flowchart of a second embodiment of the present invention;
图5示出本发明的第三个实施方式的流程示意图;Fig. 5 shows the schematic flow chart of the third embodiment of the present invention;
图6示出本发明的第四个实施方式的流程示意图;及Figure 6 shows a schematic flow diagram of a fourth embodiment of the present invention; and
图7示出本发明的同步随机发射功率的方法的流程图。FIG. 7 shows a flow chart of the method for synchronizing random transmit power of the present invention.
具体实施方式Detailed ways
以下将结合附图和具体的实施方式,对本发明的方法进行详细说明。应理解,附图所示以及下文所述的实施例仅仅是说明性的,而不作为对本发明的限制。The method of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments shown in the drawings and described below are merely illustrative and not intended to limit the present invention.
图3示出了本发明的用于在蓝牙Mesh网络中对多个待配网设备进行启动配置的方法的第一个实施方式的流程示意图,具体地:3 shows a schematic flowchart of the first embodiment of the method for starting and configuring a plurality of devices to be distributed in a Bluetooth Mesh network according to the present invention, specifically:
在步骤102中,对多个待配网设备同时进行上电。在步骤104中,对该多个待配网设备中的每一个分配独立的随机时间延迟。在步骤106中,当该多个待配网设备中的每个待配网设备等待其对应的随机时间延迟所确定的时间时,该待配网设备发送首个等待启动配置信标包。优选地,随机时间延迟的长度为0ms到等待启动配置信标包的发送间隔时间之间。在步骤108中,多个待配网设备中的每一个继续发送等待启动配置信标包,以使得对应的启动配置设备能够对其进行启动配置操作。In
优选地,为更进一步平衡网络传输流量以缓解信道拥挤,在上述步骤102之后或之前,可为该多个待配网设备中的每一个确定独立的随机发射功率;并且在步骤106和108中,该多个待配网设备中的每一个以其对应的随机发射功率发送等待启动配置信标包。该随机发射功率优选地在-5dbm到该待配网设备的最大发射功率之间。Preferably, in order to further balance the network transmission traffic to relieve channel congestion, after or before the
采用与第一个实施方式类似的解决方案,该发明的第二个实施方式提供了一种用于在蓝牙Mesh网络中对多个待升级节点进行软件空中升级的方法。Using a solution similar to the first embodiment, the second embodiment of the invention provides a method for over-the-air software upgrade of a plurality of nodes to be upgraded in a Bluetooth Mesh network.
具体地,如图4所示,在步骤202中,升级服务设备节点发送升级指令到多个待升级节点。在步骤204中,当多个待升级节点中的每一个接收到升级指令且决定接受升级时,对该多个待升级节点中的每一个分配独立的随机时间延迟。在步骤206中,当该多个待升级节点中的每个待升级节点等待其对应的随机时间延迟所确定的时间时,该待升级节点发送首个等待空中升级信标包。在步骤208中,多个待升级节点中的每一个继续发送等待空中升级信标包,以使得对应的升级服务设备节点能够对其进行软件空中升级操作。类似地,随机时间延迟的长度为0ms到等待启动配置信标包的发送间隔时间之间。应理解,等待启动配置信标包的发送间隔时间可以根据蓝牙Mesh协议确定或按照应用需要确定。例如,该发送间隔时间可以是5秒,但本发明的实施并不限于此。并且优选地,为更进一步平衡网络传输流量以缓解信道拥挤,在步骤202之后或之前,可为该多个待配网设备中的每一个确定独立的随机发射功率;并且在步骤206和208中,该多个待配网设备中的每一个以其对应的随机发射功率发送等待启动配置信标包。该随机发射功率优选地在-5dbm到该待配网设备的最大发射功率之间。Specifically, as shown in FIG. 4, in
采用上述第一个和第二个实施方式所描述的方法,设备在上电启动时,不需即时发送等待启动配置信标包,在收到升级指令后不需即时发送等待空中升级信标包,而是根据上述方法,等待一个随机时间延迟所确定的时间后,再发送数据包。以等待启动配置数据包为例,并结合图1,利用本发明,这样可以让不同的设备在不同的时间窗口发送信标包,对于图1所示的网络图来说,通过设置随机时间延迟,可能使得设备43在T0时间点发包,设备2在时间点T0+100ms发包,设备31在时间点T0+500ms发包,设备3在时间点T0+1s发包等等。由此,在时间点T0,因为只有设备43在发包,所以中心节点设备1只收到设备43在时间点T0发送过来的等待启动配置信标包,首先发起针对设备43的启动配置流程;在T0+100ms的时候,设备1收到了设备2发送过来的等待启动配置信标包,于是发起了针对设备2的启动配置流程;虽然设备2比设备43近,但在时间点T0设备2并没有发包,所以事件T0并没有设备可以和设备43争抢资源。Using the methods described in the first and second embodiments above, when the device is powered on and starts, it does not need to immediately send a beacon packet waiting to start the configuration, and it does not need to immediately send a beacon packet waiting for an over-the-air upgrade after receiving an upgrade instruction , but according to the above method, wait for a time determined by a random time delay before sending the data packet. Taking the waiting to start the configuration data packet as an example, and in conjunction with Fig. 1, the present invention can allow different devices to send beacon packets in different time windows. For the network diagram shown in Fig. 1, by setting a random time delay , it is possible that device 43 sends packets at time T0, device 2 sends packets at time T0+100ms, device 31 sends packets at time T0+500ms, device 3 sends packets at time T0+1s, and so on. Therefore, at the time point T0, because only the device 43 is sending packets, the central node device 1 only receives the wait-to-start configuration beacon packet sent by the device 43 at the time point T0, and first initiates the start-up configuration process for the device 43; At T0+100ms, device 1 receives the wait-to-start configuration beacon packet sent by device 2, so it initiates the startup configuration process for device 2; although device 2 is closer than device 43, at time point T0 device 2 does not The packet is sent, so there is no device in event T0 that can compete for resources with device 43.
因此,通过添加随机时间延迟的方法,远端设备发出来的信标包可能比近的设备的信标包先被中心节点收到,从而优先开始启动配置的流程。这样可以避免所有设备扎堆发送等待启动配置信标包,从而导致靠近中心节点设备更容易获得优先启动配置的流程的资源竞争问题。Therefore, by adding a random time delay method, the beacon packet sent by the remote device may be received by the central node before the beacon packet of the nearby device, so that the configuration process is started first. In this way, all the devices can get together to send the beacon packets waiting to start the configuration, which leads to the resource contention problem that the devices close to the central node can more easily obtain the process of starting the configuration preferentially.
在本发明的第三个实施方式中,在对多个待配网设备进行启动配置时,未采用对待配网设备确定独立的随机时间延迟的手段,而是仅对待配网设备确定独立的随机发射功率。具体地,如图5所示,在步骤302中对多个待配网设备同时进行上电。在步骤304中,该多个待配网设备中的每一个确定独立的随机发射功率。在步骤306中,该多个待配网设备中的每一个以其对应的随机发射功率发送首个等待启动配置信标包。在步骤308中,多个待配网设备中的每一个以其对应的随机发射功率继续发送等待启动配置信标包,以使得对应的启动配置设备能够对其进行启动配置操作。In the third embodiment of the present invention, when starting the configuration of multiple devices to be distributed, the method of determining an independent random time delay is not used for the devices to be distributed, but only to determine an independent random time delay for the devices to be distributed. transmit power. Specifically, as shown in FIG. 5 , in
类似于本发明的第三个实施方式,本发明的第四个实施方式提供了另一种用于在蓝牙Mesh网络中对多个待升级节点进行软件空中升级的方法。类似地,第四个实施方式中未采用对待配网设备确定独立的随机时间延迟的手段,而是仅对待升级节点确定独立的随机发射功率。具体地,如图6所示,在步骤402中,升级服务设备节点发送升级指令到多个待升级节点。在步骤404中,当多个待升级节点中的每一个接收到升级指令且决定接受升级时,该多个待升级节点中的每一个确定独立的随机发射功率。在步骤406中该待升级节点以其对应的随机发射功率发送首个等待空中升级信标包。在步骤408中,多个待升级节点中的每一个以其对应的随机发射功率继续发送等待空中升级信标包,以使得对应的升级服务设备节点能够对其进行软件空中升级操作。Similar to the third embodiment of the present invention, the fourth embodiment of the present invention provides another method for over-the-air software upgrade of a plurality of nodes to be upgraded in a Bluetooth Mesh network. Similarly, in the fourth embodiment, the means of determining an independent random time delay for the device to be distributed is not adopted, but only the node to be upgraded determines an independent random transmission power. Specifically, as shown in FIG. 6, in
单独地采用本发明的第三个或第四个实施方式所述的方案,也可优化启动配置和软件空中升级流程。例如,在启动配置过程中,假设所有设备在1dbm至10dbm之间选择一个随机值作为发射功率,那么不同设备的发射功率通常不同。假设设备2随机选择了1dbm作为发射功率,设备23随机选择了10dbm作为发射功率,即使设备2和设备23的等待启动配置信标包同时发送且设备2更近,但因设备23的发射功率更大,设备1收到设备23发送过来的信标包的接收信号强度可能反而强于设备2发送过来的信标包的强度,所以可能会选择更远的设备23启动配置流程,从而优化配置流程。作为一种优选的方案,可以在-5dbm到待配网设备的最大发射功率之间选择该随机发射功率,以增强发射功率随机化的效果。但本发明的实施并不局限于此。By using the solution described in the third or fourth embodiment of the present invention alone, the startup configuration and the software over-the-air upgrade process can also be optimized. For example, during the startup configuration process, assuming that all devices select a random value between 1dbm and 10dbm as the transmit power, the transmit power of different devices is usually different. Assuming that device 2 randomly selects 1dbm as the transmit power, and device 23 randomly selects 10dbm as the transmit power, even if the wait-to-start configuration beacon packets of device 2 and device 23 are sent at the same time and device 2 is closer, the transmit power of device 23 is higher. If the signal strength of the beacon packet sent by device 1 is greater than that of the beacon packet sent by device 2, the received signal strength of the beacon packet sent by device 1 may be stronger than that of the beacon packet sent by device 2, so the device 23 that is farther away may be selected to start the configuration process, thereby optimizing the configuration process. . As a preferred solution, the random transmit power can be selected between -5dbm and the maximum transmit power of the device to be distributed, so as to enhance the effect of randomizing the transmit power. However, the implementation of the present invention is not limited to this.
在根据本发明的采用随机发射功率的方案中,可采取附加的技术手段以防止在启动配置设备与待配置设备之间或在升级服务设备节点与待升级节点之间,一方可以收到对方的数据包,但是另一方却收不到对方的数据包的情况。例如,若设备1使用发射功率10dbm,而设备2使用发射功率1dbm,且两者距离比较远,则10dbm的发射功率发射的信号可以到达对方,但是1dbm的发射功率发射的信号无法到达对方,从而会导致设备1发送的数据包设备2可以收到,而设备2发送的数据包设备1却无法收到。In the scheme using random transmit power according to the present invention, additional technical means can be taken to prevent one party from receiving data from the other party between the startup configuration device and the device to be configured or between the upgrade service device node and the node to be upgraded packets, but the other party cannot receive the other party's data packets. For example, if device 1 uses a transmit power of 10dbm and device 2 uses a transmit power of 1dbm, and the distance between the two is relatively far, the signal transmitted by the transmit power of 10dbm can reach the other party, but the signal transmitted by the transmit power of 1dbm cannot reach the other party. As a result, the data packet sent by device 1 can be received by device 2, but the data packet sent by device 2 cannot be received by device 1.
对此,本发明还提供一种在两个设备之间同步随机发射功率的方法。这种方式中两个设备需要交互各自的发射功率,用来同步双方的发射功率。作为该同步随机发射功率的方法的一个非限制性示例,如图7所示,该方法开始于步骤502,在该步骤,两个设备中的每个设备在设置的发射功率范围内随机选择一个发射功率以开始通信。在步骤504,一个设备收到对方设备的请求包或响应包。在步骤506,该设备主动汇报自己的发射功率。在步骤508,判断在设定时间内是否收到对方汇报的发射功率。如果否,则在步骤510,停止或对方建立的通信。如果是,则在步骤512判断是否需要调整自己的发射功率。具体地,所以通过主动给对方汇报自己的发射功率,可以让较小发射功率的一方提高自己的发射功率到较高的发射功率。优选地,在实际操作中,可以按更优化的方式来决定是否改变自己的发射功率。例如虽然检测到对方的发射功率比自己大,但是实际发现自己发送的数据包对方也可以收到,或者对方发送的数据包的RSSI足够大,从而确定不必调整自己的发射功率亦能正常完成通信。如果该设备在步骤512判断需要调整自己的发射功率,则在步骤514执行发射功率的调整,并在步骤516继续完成剩余的通信。In this regard, the present invention also provides a method for synchronizing random transmit power between two devices. In this way, the two devices need to exchange their respective transmit powers to synchronize the transmit powers of both parties. As a non-limiting example of the method for synchronizing random transmit power, as shown in FIG. 7, the method begins at
通过上述同步随机发射功率的方法,本发明中采用随机发射功率的方案可避免两个设备之一的随机发射功率过小而影响通信的情况。Through the above method of synchronizing random transmit power, the scheme of random transmit power adopted in the present invention can avoid the situation that the random transmit power of one of the two devices is too small to affect communication.
综上,本发明的方法可减少设备启动配置过程中或者软件空中升级过程中执行启动配置或软件空中升级的设备过于集中而导致数据包拥堵的问题,并可优化设备配置或软件升级流程,从而提升了操作速度和效率。虽然出于本公开的目的已经描述了本发明各方面的各种实施例,但是不应理解为将本公开的教导限制于这些实施例。在一个具体实施例中公开的特征并不限于该实施例,而是可以和不同实施例中公开的特征进行组合。例如,在一个实施例中描述的根据本发明的方法的一个或多个特征和/或操作,亦可单独地、组合地或整体地应用于另一实施例中。此外,应理解,上文所述方法步骤可以顺序执行、并行执行、合并为更少步骤、拆分为更多步骤,以不同于所述方式组合和/或省略。本领域技术人员应理解,还存在可能的更多可选实施方式和变型,可以对上述方法步骤进行各种改变和修改,而不脱离由本发明权利要求所限定的范围。To sum up, the method of the present invention can reduce the problem of data packet congestion caused by excessive concentration of devices performing the startup configuration or software over-the-air upgrade during the device startup configuration process or the software over-the-air upgrade process, and can optimize the device configuration or software upgrade process, thereby Improved operation speed and efficiency. While various embodiments of various aspects of the invention have been described for purposes of this disclosure, it should not be construed to limit the teachings of this disclosure to these embodiments. Features disclosed in one particular embodiment are not limited to that embodiment, but may be combined with features disclosed in different embodiments. For example, one or more features and/or operations of a method according to the invention described in one embodiment may also be applied in another embodiment, alone, in combination or in their entirety. Furthermore, it should be understood that the method steps described above may be performed sequentially, performed in parallel, combined into fewer steps, split into more steps, combined and/or omitted in ways other than those described. Those skilled in the art should understand that there are more possible optional embodiments and modifications, and various changes and modifications can be made to the above method steps without departing from the scope defined by the claims of the present invention.
Claims (8)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111681228.8A CN114339706B (en) | 2019-03-06 | 2019-03-06 | Method for starting configuration of multiple devices to be configured in a Bluetooth Mesh network |
| CN201910168979.6A CN109769238B (en) | 2019-03-06 | 2019-03-06 | A method for starting and configuring multiple devices to be distributed in a Bluetooth Mesh network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910168979.6A CN109769238B (en) | 2019-03-06 | 2019-03-06 | A method for starting and configuring multiple devices to be distributed in a Bluetooth Mesh network |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111681228.8A Division CN114339706B (en) | 2019-03-06 | 2019-03-06 | Method for starting configuration of multiple devices to be configured in a Bluetooth Mesh network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109769238A CN109769238A (en) | 2019-05-17 |
| CN109769238B true CN109769238B (en) | 2022-05-20 |
Family
ID=66457835
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111681228.8A Active CN114339706B (en) | 2019-03-06 | 2019-03-06 | Method for starting configuration of multiple devices to be configured in a Bluetooth Mesh network |
| CN201910168979.6A Active CN109769238B (en) | 2019-03-06 | 2019-03-06 | A method for starting and configuring multiple devices to be distributed in a Bluetooth Mesh network |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111681228.8A Active CN114339706B (en) | 2019-03-06 | 2019-03-06 | Method for starting configuration of multiple devices to be configured in a Bluetooth Mesh network |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN114339706B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110830968A (en) * | 2019-09-30 | 2020-02-21 | 珠海格力电器股份有限公司 | Networking method and device, Bluetooth equipment and computer readable medium |
| CN116367289A (en) * | 2023-04-12 | 2023-06-30 | 上海寰创通信科技股份有限公司 | Method and system for preventing strong signal blocking of wireless network |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104699499A (en) * | 2014-12-31 | 2015-06-10 | 青岛快乐视界数字传媒有限公司 | Heterogeneous terminal software upgrading method |
| CN106843954A (en) * | 2017-01-16 | 2017-06-13 | 武汉慧联无限科技有限公司 | Sensor node remote upgrade method |
| CN107276628A (en) * | 2017-06-09 | 2017-10-20 | 重庆邮电大学 | A kind of industry wireless network time slot centralised allocation method under TSCH patterns |
| CN108551690A (en) * | 2018-01-30 | 2018-09-18 | 京信通信系统(中国)有限公司 | A kind of radio equipment access method, device and terminal device |
| CN109152065A (en) * | 2018-10-31 | 2019-01-04 | 重庆邮电大学 | A kind of safe method of network entry of industry wireless network multinode based on IPv6 |
| CN109417691A (en) * | 2018-09-17 | 2019-03-01 | 深圳市汇顶科技股份有限公司 | A kind of blue tooth cluster online upgrading method and device |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8116247B2 (en) * | 2008-03-11 | 2012-02-14 | Nokia Siemens Networks Oy | Adaptive mechanism for dynamic reconfiguration of mesh networks |
| US8428079B1 (en) * | 2008-09-24 | 2013-04-23 | Marvell International, Ltd | Systems and methods for discovering a wireless network in a peer-to-peer network |
| CN102413558B (en) * | 2011-12-20 | 2015-04-29 | 华为技术有限公司 | Power control method, base station and power control system |
| US9819986B2 (en) * | 2012-08-17 | 2017-11-14 | Flextronics Ap, Llc | Automated DLNA scanning with notification |
| US9417078B1 (en) * | 2015-05-15 | 2016-08-16 | Seibert Williams Glass, LLC | Portable device and method for querying a vehicle network |
| EP3405629A4 (en) * | 2016-01-22 | 2020-01-22 | Hayward Industries, Inc. | SYSTEMS AND METHODS FOR PROVIDING NETWORK CONNECTIVITY AND REMOTE MONITORING, OPTIMIZATION AND CONTROL OF A POOL / SPA EQUIPMENT |
| US20180240322A1 (en) * | 2016-01-22 | 2018-08-23 | Hayward Industries, Inc. | Systems and methods for providing network connectivity and remote monitoring, optimization, and control of pool/spa equipment |
| US10299223B2 (en) * | 2016-10-18 | 2019-05-21 | Cisco Technology, Inc. | System and method to facilitate power domain interference coordination in a network environment |
| WO2018088952A1 (en) * | 2016-11-14 | 2018-05-17 | Telefonaktiebolaget Lm Ericsson (Publ) | First node, second node and methods for filtering messages in a bluetooth mesh network |
| CN108366362B (en) * | 2018-02-01 | 2021-02-12 | 乐鑫信息科技(上海)股份有限公司 | MESH network and MESH equipment security network distribution method thereof |
-
2019
- 2019-03-06 CN CN202111681228.8A patent/CN114339706B/en active Active
- 2019-03-06 CN CN201910168979.6A patent/CN109769238B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104699499A (en) * | 2014-12-31 | 2015-06-10 | 青岛快乐视界数字传媒有限公司 | Heterogeneous terminal software upgrading method |
| CN106843954A (en) * | 2017-01-16 | 2017-06-13 | 武汉慧联无限科技有限公司 | Sensor node remote upgrade method |
| CN107276628A (en) * | 2017-06-09 | 2017-10-20 | 重庆邮电大学 | A kind of industry wireless network time slot centralised allocation method under TSCH patterns |
| CN108551690A (en) * | 2018-01-30 | 2018-09-18 | 京信通信系统(中国)有限公司 | A kind of radio equipment access method, device and terminal device |
| CN109417691A (en) * | 2018-09-17 | 2019-03-01 | 深圳市汇顶科技股份有限公司 | A kind of blue tooth cluster online upgrading method and device |
| CN109152065A (en) * | 2018-10-31 | 2019-01-04 | 重庆邮电大学 | A kind of safe method of network entry of industry wireless network multinode based on IPv6 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114339706A (en) | 2022-04-12 |
| CN114339706B (en) | 2025-05-16 |
| CN109769238A (en) | 2019-05-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20220217575A1 (en) | Sidelink communication method and apparatus, and storage medium | |
| EP2862378B1 (en) | Method and apparatus for wlan initial link setup | |
| CN110536354A (en) | Data transmission method, device and storage medium | |
| WO2021223240A1 (en) | Resource selection method and apparatus, and device and storage medium | |
| EP3993484B1 (en) | Method and device for automatic role assumption, and computer readable storage medium | |
| WO2016161900A1 (en) | Data transmission method and device | |
| US7904534B2 (en) | Network topology aware configuration of network addresses in wireless personal area networks | |
| CN101502057A (en) | Monitor period for asynchronous wireless communication | |
| EP2832168B1 (en) | Dynamic setting of transmisison time in a contention based wireless system | |
| JP2007259271A (en) | Wireless communication apparatus and wireless communication method | |
| WO2020186489A1 (en) | Method, apparatus and device for determining channel detection mechanism, and storage medium | |
| AU2015354674A1 (en) | Method for re-enabling data frame aggregation after bluetooth session | |
| JP2002330138A (en) | Wireless lan system and its communication method | |
| WO2018107370A1 (en) | Point to multi-point channel allocation method, apparatus, and system | |
| CN111345094A (en) | Method and apparatus for uplink scheduling | |
| CN113678491B (en) | Method, device and equipment for evaluating time-frequency resources to be transmitted | |
| CN109769238B (en) | A method for starting and configuring multiple devices to be distributed in a Bluetooth Mesh network | |
| CN106060957A (en) | CSMA/TDMA hybrid access control method | |
| US20230050614A1 (en) | A method of and a coordinator device for selectively commissioning a node device in network | |
| RU2705008C1 (en) | Communication apparatus, a method of controlling said apparatus and a constant machine-readable medium | |
| TW201521494A (en) | Method for implementing device to device (d2d)-based multicast communication in cellular network | |
| US8139525B1 (en) | Carrier selection based on type of packet flow | |
| CN113038623B (en) | Improved method of distributed TDMA (time division multiple Access) adjacent node sensing and network access mechanism | |
| JP2024527068A (en) | Network nodes, systems, methods, circuits and computer program products | |
| WO2023044713A1 (en) | Communication method and apparatus |
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 |