The invention discloses an intelligent control box, a method for re binding network equipment and an intelligent control box. The intelligent control box to get the current IP address itself at startup, comparing the intelligent control box of current IP address and IP address of the original storage is consistent; if not, then the intelligent control box receives data sent UDP radio network equipment package, from the UDP broadcast packet parsing out the current IP address of network equipment; the intelligent control box of the current IP address is transmitted to the network equipment in accordance with the current IP address of network equipment, network equipment for the intelligent control box according to the current IP address re configuration; configuration success message sending and receiving network equipment, network equipment to restart sending network equipment command. The invention also discloses an intelligent control box. After changing the IP address of the intelligent control box, the invention can realize the re binding of the intelligent control box and the network equipment without the user re operating.
【技术实现步骤摘要】
智能控制盒重新绑定网络设备的方法和智能控制盒
本专利技术涉及物联
,更具体地,涉及一种智能控制盒重新绑定网络设备的方法、以及一种智能控制盒。
技术介绍
智能家电家居设备已经走进人们的生活,用户有时会利用一个智能控制盒控制多个例如智能空调、智能加湿器的网络设备,这需要提前绑定智能控制盒和这些网络设备。一旦发生断电或网络重启等导致智能控制盒的IP地址发生变化的情况,这些网络设备都需要重新绑定到智能控制盒,通常的做法是通过手机一台台重新绑定网络设备和智能控制盒,这种方法给用户带来很大的工作量,因此有必要提出一种在智能控制盒IP地址改变后无需用户操作手机就能够实现智能控制盒重新绑定网络设备的方法。
技术实现思路
本专利技术的一个目的是提供在智能控制盒IP地址改变后无需用户操作手机就能够实现智能控制盒重新绑定网络设备的新技术方案。根据本专利技术的第一方面,提供了一种智能控制盒重新绑定网络设备的方法,包括以下步骤:智能控制盒在启动时获取自身的当前IP地址,对比所述智能控制盒的当前IP地址与存储的原IP地址是否一致;如果所述智能控制盒的当前IP地址与原IP地址不一致,则智能控制盒接收所述网络设备发出的UDP广播数据包,从所述UDP广播数据包中解析出所述网络设备的当前IP地址;按照所述网络设备的当前IP地址将所述智能控制盒的当前IP地址发送至所述网络设备,以供所述网络设备根据所述智能控制盒的当前IP地址重新进行配置;接收所述网络设备发送的配置成功消息;以及,在接收到所述网络设备发送的配置成功消息后向所述网络设备发送重启所述网络设备的命令。优选地,所述智能控制盒创建与所述 ...
【技术保护点】
一种智能控制盒重新绑定网络设备的方法,其特征在于,包括以下步骤:智能控制盒在启动时获取自身的当前IP地址,对比所述智能控制盒的当前IP地址与存储的原IP地址是否一致;如果所述智能控制盒的当前IP地址与原IP地址不一致,则智能控制盒接收所述网络设备发出的UDP广播数据包,从所述UDP广播数据包中解析出所述网络设备的当前IP地址;按照所述网络设备的当前IP地址将所述智能控制盒的当前IP地址发送至所述网络设备,以供所述网络设备根据所述智能控制盒的当前IP地址重新进行配置;接收所述网络设备发送的配置成功消息;以及,在接收到所述网络设备发送的配置成功消息后向所述网络设备发送重启所述网络设备的命令。
【技术特征摘要】
1.一种智能控制盒重新绑定网络设备的方法,其特征在于,包括以下步骤:智能控制盒在启动时获取自身的当前IP地址,对比所述智能控制盒的当前IP地址与存储的原IP地址是否一致;如果所述智能控制盒的当前IP地址与原IP地址不一致,则智能控制盒接收所述网络设备发出的UDP广播数据包,从所述UDP广播数据包中解析出所述网络设备的当前IP地址;按照所述网络设备的当前IP地址将所述智能控制盒的当前IP地址发送至所述网络设备,以供所述网络设备根据所述智能控制盒的当前IP地址重新进行配置;接收所述网络设备发送的配置成功消息;以及,在接收到所述网络设备发送的配置成功消息后向所述网络设备发送重启所述网络设备的命令。2.根据权利要求1所述的方法,其特征在于,所述智能控制盒创建与所述网络设备的SOCKET连接以将所述智能控制盒的当前IP地址发送至所述网络设备。3.根据权利要求1所述的方法,其特征在于,所述智能控制盒或者所述网络设备将绑定结果发送至手机和云端以便同步手机和云端上的绑定状态。4.一种智能控制盒,其特征在于,包括以下模块:存储模块,用于存储所述智能控制盒的IP地址;IP地址获取模块,用于在智能控制盒启动时获取自...
【专利技术属性】
技术研发人员:杨燕辉,曹敏峰,李建平,郭国良,
申请(专利权)人:深圳市领耀东方科技股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。