The invention discloses a method of realizing the signal connection of the intelligent Wi Fi device. The concrete steps are as follows: the intelligent Wi Fi device connects the wireless router in the SmartConfig mode, gets the IP address information of the smart phone and the MAC address of the wireless router in the monitor mode, and obtains the MD5 value by the hash algorithm of the two. The MD5 value obtained above is reported to the server with the MAC address information of the intelligent Wi Fi device; the smartphone also obtains the MD5 value through the same hash algorithm through its own IP address information and the MAC address of the wireless router which is connected, and then gets the intelligent Wi Fi device information from the server to the same MD5 value. In the case of the wireless router's device cannot communicate, the device and the smart phone interact with the MAC of the router and the IP address of the smart phone as the index value, and the time stamp is composed of the time stamp to ensure the uniqueness of the current active device and complete the connection of the signal so that the user can better experience the smart home. Live life.
【技术实现步骤摘要】
一种智能Wi-Fi设备信号连接的实现方法
本专利技术涉及无线连接
,具体是一种智能Wi-Fi设备信号连接的实现方法。
技术介绍
目前的智能家居产品的功能在设备激活时,有两种方式,一种是通过智能Wi-Fi设备硬件设备的网卡置于监听模式(monitormode),又称为混杂模式(promiscuousmode),从而获取周围的802.11无线数据帧,俗称抓包。加密的无线数据中length字段与MAC地址是可见的,利用length或组播MAC地址这个字段就能约定一种传输数据的协议,从而在硬件设备初次进入环境时为其提供无线路由器的帐号密码等信息,简称SmartConfig模式。另外一种方式是直连模式,智能Wi-Fi设备置于AP模式,智能手机找到智能Wi-Fi设备的SSID并连接上它,然后将无线路由器的账号密码输入给智能Wi-Fi设备。第一种方式在监听模式下仅只能通过智能手机告诉无线路由器的账号密码等信息,智能Wi-Fi设备是被动的,无法将信息传输到智能手机上,当智能Wi-Fi设备获取到无线路由器的账号密码信息,连接上无线路由器后,一般情况下智能手机与智能Wi-Fi设备在局域网内可以互相通信,但是目前存在一些无线组网的环境,不允许无线路由器下面的两台无线设备在局域网内进行通信,这个功能又称AP隔离。第二种方式虽然不存在第一种方式的不能互相通讯导致智能Wi-Fi设备的信息无法告知智能手机的情况,但是直连模式存在用户的交互复杂性,需要切换不同的Wi-Fi名称。以现有组网环境为例:某些公司、酒店、商场等场所为了保护不同用户间的数据安全,会开启AP隔离的功能,从而导致 ...
【技术保护点】
1.一种智能Wi‑Fi设备信号连接的实现方法,其特征在于,具体步骤如下:(1)智能Wi‑Fi设备在SmartConfig模式下,获取智能手机输入的无线路由器的账号与密码信息,从而连接上无线路由器;(2)在监听模式时获取到智能手机的IP地址信息和无线路由器的MAC地址,将二者通过散列算法得到MD5值;(3)将上述得到的MD5值和智能Wi‑Fi设备的MAC地址信息一起上报到服务器;(4)智能手机也通过自己的IP地址信息与所连接的无线路由器的MAC地址通过同样的散列算法得到MD5值,再从服务器上获取到相同的MD5值的智能Wi‑Fi设备信息,从而完成设备的信号连接。
【技术特征摘要】
1.一种智能Wi-Fi设备信号连接的实现方法,其特征在于,具体步骤如下:(1)智能Wi-Fi设备在SmartConfig模式下,获取智能手机输入的无线路由器的账号与密码信息,从而连接上无线路由器;(2)在监听模式时获取到智能手机的IP地址信息和无线路由器的MAC地址,将二者通过散列算法得到MD5值;(3)将上述得到的MD5值和智能Wi-Fi设备的M...
【专利技术属性】
技术研发人员:易爱国,
申请(专利权)人:上海海纳通物联网科技有限公司,
类型:发明
国别省市:上海,31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。