小米扫地机器人无法连接上WiFi华三AP排障

一、背景

某客户家里购买了一个小米机器人,但是在APP上始终无法连接到家中的。APP上总是提示“连接失败,请重置WiFi”。虽然也能使用,但是很多功能缺失了,让客户无法完整的使用到米家扫地机器人的相关服务。

米家扫地机器人

二、处理方法

刚开始的时候其实没有往设备底层驱动去思考,常规性的重置WiFi,重启路由器,在米家APP上删除重新添加设备。但是都没用。

后来看了一眼客户家的设备,发现是华三的设备。瞬间感觉有了处理思路。三下五除二,telnet登录到华三设备上。

1、查看日志。发现该扫地机器人在连接的时候始华三设备上始终在报错,具体错误为PTK协商失败。

华三设备:系统日志查询

%Apr  3 10:50:10:973 2019 WA4320H_KeTing WMAC/5/WSEC_CLIENT_ASSIGN_PTK_FAILED:  Failed to assign PTK to the client 34ce-00e7-c719, IP address: 0.0.0.0.

%Apr  3 10:50:10:973 2019 WA4320H_KeTing WMAC/6/WMAC_CLIENT_GOES_OFFLINE:  Client 34ce-00e7-c719 disconnected from WLAN 51ZOT. Reason code is 15.

大概含义是PTK错误,无法连接网络,错误代码15.代码15的含义是握手超时。

2、根据错误提示,总觉得是不是无线的密码没配置好呢,于是多次在华三设备上重新设置无线密码。比如123456,但都不行。

3、然后我用手机开了个热点测试下,发现扫地机器人可以连上手机热点WiFi。随后扫地机器人,还有升级提示。

扫地机器人升级提示

4、升级完固件以后,可以正常连接华三的WiFi热点了。

扫地机器人正常连上WiFi,并获取到了IP地址。

查看设备日志,也可以看到,设备已经join。“
%Apr  3 11:01:45:097 2019 WA4320H_KeTing WMAC/6/WMAC_CLIENT_JOIN_WLAN:  Client 34ce-00e7-c719 successfully joins WLAN 51ZOT, on APID 1 with BSSID 3891-d504-ca30. ”

三、小结

让扫地机器人连接到手机热点上,升级固件以后。可以正常连接上华三AP的WiFi了。

这个华三AP下连接了米家智能插板、米家灯泡、米家网关、米家净水器等多个小米智能家居设备。

所以我司认为此次故障是小米扫地机器人的固件上存在问题。建议升级版本

四、其他感慨

说老实话,一个网络产品有点bug是可以理解的。但是小米或者及其生态链产品还是不够严谨。在处理问题的时候,我花了很长时间都没有在产品的说明书、包装盒上找到网卡的MAC地址。导致无法及时查看设备的日志信息,最后还是用电脑连上其重置时的ssid获取到了无线网卡的MAC信息。

为了便于以后排障,自己把记录的信息用标签记录一下,贴在设备上。

自己标注一下呗

附:无线协议规定的802.11 Deauth报文的Reason Code

Code Reason
0 Reserved
1 Unspecific Reason
2 Previous authentication no longer valid
3 Deauthenticated because sending STA is leaving (or has left) IBSS or ESS
4 Disassociated due to inactivity
5 Disassociated because AP is unable to handle all currently associated STAs
6 Class 2 frame received from nonauthenticated STA
7 Class 3 frame received from nonassociated STA
8 Disassociated because sending STA is leaving (or has left) BSS
9 STA requesting (re)association is not authenticated with responding STA
10 Disassociated because the information in the Power Capability element is unacceptable
11 Disassociated because the information in the Supported Channels element is unacceptable
12 Reserved
13 Invalid information element.
14 Message integrity code (MIC) failure
15 4-Way Handshake timeout
16 Group Key Handshake timeout
17 Information element in 4-Way Handshake different from (Re)Association Request/Probe Response/Beacon frame
18 Invalid group cipher or Association denied due to requesting STA not supporting all of the data rates in the BSSBasicRateSet parameter
19 Invalid pairwise cipher
20 Invalid AKMP
21 Unsupported RSN information element version
22 Invalid RSN information element capabilities
23 IEEE 802.1X authentication failed
24 Cipher suite rejected because of the security policy
25-31 Reserved
32 Disassociated for unspecified, QoS-related reason
33 Disassociated because QoS AP lacks sufficient bandwidth for this QoS STA
34 Disassociated because excessive number of frames need to be acknowledged, but are not acknowledged due to AP transmissions and/or poor channel conditions
35 Disassociated because STA is transmitting outside the limits of its TXOPs
36 Requested from peer STA as the STA is leaving the BSS (or resetting)
37 Requested from peer STA as it does not want to use the mechanism
38 Requested from peer STA as the STA received frames using the mechanism for which a setup is required
39 Requested from peer STA due to timeout
45 Peer STA does not support the requested cipher suite
45-65 Reserved
535 Reserved