The present invention provides a network state identification method and device for a Zigbee node. The method includes: obtaining the value of the label bit, which is used to identify the current network state of the Zigbee node; when the label bit is the first preset value and the preset condition is satisfied, the restart operation is executed to reset the label bit of the Zigbee node to be reset. Initial values; the first default value is used to identify that the Zigbee node has been added to the ZigBee coordinator but does not join the gateway; the initial value is used to identify the Zigbee node that is not added to the ZigBee coordinator and is also in the network search state. Thus, the network status of Zigbee nodes in the Zigbee network is detected. When the ZigBee node joins the Zigbee coordinator but does not join the gateway, the Zigbee node can be reset and reset automatically, and the Zigbee node can be successfully joined in the network.
【技术实现步骤摘要】
Zigbee节点的网络状态标识方法和装置
本专利技术涉及Zigbee网络
,尤其涉及一种Zigbee节点的网络状态标识方法和装置。
技术介绍
ZigBee技术组建的网络具有低功耗、低成本、低速率的特点,并且能够支持包含大量节点的网络,适用于多种网络拓扑结构;因而在自动控制和远程控制领域得到广泛使用。在传统网关系统中,zigbee节点加入协调器网络后,有一定概率无法和离合式网关的状态保持同步,从而可能出现zigbee节点虽然加入协调器却没有加入网关的情况。当出现这种情况时,控制端就无法成功展示该zigbee节点对应的设备,使得设备脱离控制端的控制。针对这一情况,现有的方法是通过手动方式复位zigbee节点,使其离网之后,再尝试重新加入网关。但是,依靠人工复位方式来使Zigbee节点重新加入网关,需要耗费较高的运维成本,且维护效率低下。
技术实现思路
本专利技术提供一种Zigbee节点的网络状态标识方法和装置,以实现对Zigbee网络中的Zigbee节点的网络状态进行检测,在出现zigbee节点加入Zigbee协调器却没有加入网关的情况时,实现Zigbee节点的自动重启复位,确保Zigbee节点能够成功加入到网关中。第一方面,本专利技术提供一种Zigbee节点的网络状态标识方法,包括:获取标签位的值,所述标签位用于标识Zigbee节点当前的网络状态;确定所述标签位为第一预设值且满足预设的条件时,执行重启操作,以使所述Zigbee节点的标签位复位为初始值;所述第一预设值用于标识Zigbee节点已加入所述zigbee协调器但未加入网关;所述初始值用于标识Zigb ...
【技术保护点】
1.一种Zigbee节点的网络状态标识方法,其特征在于,包括:获取标签位的值,所述标签位用于标识Zigbee节点当前的网络状态;确定所述标签位为第一预设值且满足预设的条件时,执行重启操作,以使所述Zigbee节点的标签位复位为初始值;所述第一预设值用于标识Zigbee节点已加入所述zigbee协调器但未加入网关;所述初始值用于标识Zigbee节点未加入所述zigbee协调器,还处于网络搜索状态。
【技术特征摘要】
1.一种Zigbee节点的网络状态标识方法,其特征在于,包括:获取标签位的值,所述标签位用于标识Zigbee节点当前的网络状态;确定所述标签位为第一预设值且满足预设的条件时,执行重启操作,以使所述Zigbee节点的标签位复位为初始值;所述第一预设值用于标识Zigbee节点已加入所述zigbee协调器但未加入网关;所述初始值用于标识Zigbee节点未加入所述zigbee协调器,还处于网络搜索状态。2.根据权利要求1所述的方法,其特征在于,获取标签位的值之后,还包括:确定所述标签位为初始值时,向zigbee协调器发送加入请求;接收所述zigbee协调器反馈的第一标签,并将所述标签位更新为所述第一标签的值,其中,所述第一标签的值为第一预设值。3.根据权利要求1所述的方法,其特征在于,所述预设条件包括:所述标签位保持第一预设值的时间大于预设上限阈值。4.根据权利要求2所述的方法,其特征在于,在接收所述zigbee协调器反馈的第一标签之后,还包括:接收到所述zigbee协调器反馈的第二标签,并将所述标签位更新为所述第二标签的值,其中,所述第二标签的值为第二预设值;所述第二预设值用于标识Zigbee节点已加入网关。5.一种Zigbee节点的网络状态标识方法,其特征在于,包括:获取Zigbee节点标签位的值;在所述Zigbee节点标签位为初始值时,接收zigbee节点发送的加入请求;在所述zigbee节点加入zigbee协调器时,向所述zigbee节点发送第一标签,其中,所述第一标签的值为第一预设值,所述第一预设值用于标识Zigbee节点已加入所述zigbee协调器但未加入网关。6.根据权利要求5所述的方法,其特征在于,在向所述zigbe...
【专利技术属性】
技术研发人员:周宇航,王侠,沈锦祥,
申请(专利权)人:生迪智慧科技有限公司,
类型:发明
国别省市:上海,31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。