收藏官网首页
查看: 24888|回复: 3

用安卓sdk中airLink配网方法死活配不成功

1

主题

2

帖子

24

积分

新手上路

Rank: 1

积分
24
跳转到指定楼层
楼主
发表于 2018-3-7 18:15:36 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
免费使用STM32、APP自动代码生成工具
最后都是报连接超时。


1

主题

2

帖子

24

积分

新手上路

Rank: 1

积分
24
来自 2#
 楼主| 发表于 2018-3-8 11:36:26 | 只看该作者
03-08 11:30:18.274 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.220][GizWifiSDK.java:53 setListener][Start => listener: com.blx.detector.ui.activity.LinkWifiActivity$1@4e0e000]
03-08 11:30:18.275 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.221][GizWifiSDK.java:55 setListener][End <= ]
03-08 11:30:18.276 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.223][GizWifiSDK.java:285 setDeviceOnboardingDeploy][Start => ssid: BLX-H3C, key: blx***168, mode: GizWifiAirLink, softAPSSIDPrefix: null, timeout: 60, types: [GizGAgentESP]]
03-08 11:30:18.277 15746-15841/com.blx.detector I/GizSDKClientLog: [BIZ][2018-03-08 11:30:18.229][onboarding_start][GIZ_SDK_SUCCESS][{"gagent_type": ["GizGAgentESP"], "config_mode": GizWifiAirLink, "config_ssid": "BLX-H3C", "route_encrypt_mode": "WIFICIPHER_INVALID", "route_model": "84:d9:31:3e:51:ed"}]
03-08 11:30:18.278 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.231][SDKEventManager.java:550 appendDomain2Onboarding][config key and dataAppend = blx***16827 48 27 56 48 ]
03-08 11:30:18.278 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.235][Esptouch.java:19 <init>][Esptouchnew a Esptouch() ok]
03-08 11:30:18.279 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.236][ESPTouchConfigManager.java:22 start][=====> Start ESP config: ssid = BLX-H3C, key = blx***80]
03-08 11:30:18.280 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.236][Esptouch.java:35 start][Esptouch, Esptouch start() ssid:BLX-H3C,psw:***,timeout:60]
03-08 11:30:18.281 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.241][Esptouch1.java:134 start][Esptouch1, ssid_original_byte[0] = 66]
03-08 11:30:18.283 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.242][Esptouch1.java:134 start][Esptouch1, ssid_original_byte[1] = 76]
03-08 11:30:18.284 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.242][Esptouch1.java:134 start][Esptouch1, ssid_original_byte[2] = 88]
03-08 11:30:18.286 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.243][Esptouch1.java:134 start][Esptouch1, ssid_original_byte[3] = 45]
03-08 11:30:18.287 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.243][Esptouch1.java:134 start][Esptouch1, ssid_original_byte[4] = 72]
03-08 11:30:18.287 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.243][Esptouch1.java:134 start][Esptouch1, ssid_original_byte[5] = 51]
03-08 11:30:18.288 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.244][Esptouch1.java:134 start][Esptouch1, ssid_original_byte[6] = 67]
03-08 11:30:18.288 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.273][Esptouch1.java:138 start][Esptouch1, start, apSsid = BLX-H3C]
03-08 11:30:18.292 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.274][Esptouch1.java:142 start][Esptouch1, ssid_ISO88591_byte[0] = 66]
03-08 11:30:18.294 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.274][Esptouch1.java:142 start][Esptouch1, ssid_ISO88591_byte[1] = 76]
03-08 11:30:18.295 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.274][Esptouch1.java:142 start][Esptouch1, ssid_ISO88591_byte[2] = 88]
03-08 11:30:18.296 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.275][Esptouch1.java:142 start][Esptouch1, ssid_ISO88591_byte[3] = 45]
03-08 11:30:18.297 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.275][Esptouch1.java:142 start][Esptouch1, ssid_ISO88591_byte[4] = 72]
03-08 11:30:18.298 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.276][Esptouch1.java:142 start][Esptouch1, ssid_ISO88591_byte[5] = 51]
03-08 11:30:18.299 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.276][Esptouch1.java:142 start][Esptouch1, ssid_ISO88591_byte[6] = 67]
03-08 11:30:18.300 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.282][__EsptouchTask.java:55 <init>][EsptouchTask, Welcome Esptouch v0.3.4.6]
03-08 11:30:18.301 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.289][GizWifiSDK.java:289 setDeviceOnboardingDeploy][End <= ]
03-08 11:30:18.305 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.290][MessageHandler.java:158 handleMessage][=================> send jsonStr to daemon: ]
03-08 11:30:18.308 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.290][__EsptouchTask.java:312 executeForResults][EsptouchTask, execute()]
03-08 11:30:18.310 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.290][MessageHandler.java:161 handleMessage][{cmd: 1011, sn: 6}]
03-08 11:30:18.310 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.293][__EsptouchTask.java:320 executeForResults][EsptouchTask, localInetAddress: /192.168.1.3]
03-08 11:30:18.310 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.306][__EsptouchTask.java:252 __execute][EsptouchTask, send gc code ]
03-08 11:30:18.311 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.309][__EsptouchTask.java:162 run][EsptouchTask, __listenAsyn() start]
03-08 11:30:18.311 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.310][__EsptouchTask.java:169 run][EsptouchTask, expectOneByte: 32]
03-08 11:30:18.413 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.364][MessageHandler.java:226 recvJsonStrFromGizWifiSDKDaemon][receive length: 33]
03-08 11:30:18.413 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.365][MessageHandler.java:262 recvJsonStrFromGizWifiSDKDaemon][=================> recv jsonStr from daemon: {cmd: 1012, sn: 6, errorCode: 0}]
03-08 11:30:18.413 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.365][MessageHandler.java:451 recvJsonStrFromGizWifiSDKDaemon][find cmd: 1012]
03-08 11:30:18.414 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:18.409][Utils.java:154 isApkBackground][is   background  :false]
03-08 11:30:24.327 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:24.313][__EsptouchTask.java:252 __execute][EsptouchTask, send gc code ]
03-08 11:30:28.434 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:28.420][Utils.java:154 isApkBackground][is   background  :false]
03-08 11:30:30.344 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:30.314][__EsptouchTask.java:252 __execute][EsptouchTask, send gc code ]
03-08 11:30:36.362 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:36.317][__EsptouchTask.java:252 __execute][EsptouchTask, send gc code ]
03-08 11:30:38.467 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:38.436][Utils.java:154 isApkBackground][is   background  :false]
03-08 11:30:42.383 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:42.323][__EsptouchTask.java:252 __execute][EsptouchTask, send gc code ]
03-08 11:30:48.407 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:48.323][__EsptouchTask.java:252 __execute][EsptouchTask, send gc code ]
03-08 11:30:48.507 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:48.451][Utils.java:154 isApkBackground][is   background  :false]
03-08 11:30:54.424 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:54.341][__EsptouchTask.java:252 __execute][EsptouchTask, send gc code ]
03-08 11:30:58.546 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:30:58.465][Utils.java:154 isApkBackground][is   background  :false]
03-08 11:31:00.453 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:00.367][__EsptouchTask.java:252 __execute][EsptouchTask, send gc code ]
03-08 11:31:08.576 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:08.479][Utils.java:154 isApkBackground][is   background  :false]
03-08 11:31:18.300 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:18.286][__EsptouchTask.java:224 run][EsptouchTask, receive rubbish message, just ignore]
03-08 11:31:18.400 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:18.371][__EsptouchTask.java:224 run][EsptouchTask, receive rubbish message, just ignore]
03-08 11:31:18.401 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:18.378][__EsptouchTask.java:232 run][EsptouchTask, __listenAsyn() finish]
03-08 11:31:18.502 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:18.490][Utils.java:154 isApkBackground][is   background  :false]
03-08 11:31:19.405 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:19.346][SDKEventManager.java:2990 handleMessage][timeout  cmd: 1012   sn: 6 isHasMes :  false]
03-08 11:31:19.406 15746-15841/com.blx.detector I/GizSDKClientLog: [BIZ][2018-03-08 11:31:19.350][onboarding_end][GIZ_SDK_DEVICE_CONFIG_TIMEOUT][{"elapsed_time": 61.124, "gagent_type": ["GizGAgentESP"], "config_mode": "GizWifiAirLink"}]
03-08 11:31:19.406 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:19.352][SDKEventManager.java:614 onDidSetDeviceOnboarding][Ready to callback, listener: com.blx.detector.ui.activity.LinkWifiActivity$1@4e0e000]
03-08 11:31:19.407 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:19.353][SDKEventManager.java:615 onDidSetDeviceOnboarding][Callback begin, result: GIZ_SDK_DEVICE_CONFIG_TIMEOUT, device: null]
03-08 11:31:19.407 15746-15841/com.blx.detector D/GizSDKClientLog: [SYS][DEBUG][2018-03-08 11:31:19.354][SDKEventManager.java:628 onDidSetDeviceOnboarding][Callback end]

34

主题

896

帖子

2274

积分

超级版主

Rank: 8Rank: 8

积分
2274
板凳
发表于 2018-3-9 10:23:32 | 只看该作者
Q:配置失败,设备配不上网,App显示配置超时
A: 设备配网涉及到App以及设备端,以下列出会导致该问题发生的情况或解决方案。

1、使用机智云app进行配置(机智云app下载地址:https://download.gizwits.com/zh-cn/p/98/99)。
2、配置时确认将要配置的网络和手机所链接的网络是否为同一个,确认路由器SSID和密码是否输入正确,确认配置时所选用的模组型号正确。
3、将要配置的路由器不能是5G频段的wifi,不能有链接登陆限制、不可开启ap隔离,尝试更换wifi路由器,或用手机热点作为路由器,不建议使用公共或进行了端口限制的路由器进行配置。
4、判断设备是否进入了相应的配置模式,通过模组的debug口的输出日志,查看模组是否进入配网模式(抓取日志链接:http://docs.gizwits.com/zh-cn/de ... 95%99%E7%A8%8B.html

9

主题

81

帖子

1256

积分

金牌会员

Rank: 6Rank: 6

积分
1256
地板
发表于 2018-3-9 11:42:06 | 只看该作者
你的8266固件不是最新版的吧? 我看了你的截图方法,是最新版的SDK,你用旧方法试一试,因为新版本的协议改了下
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

快速回复 返回顶部 返回列表