收藏官网首页
查看: 61369|回复: 16

[求助] APP里设备一直提示 “未绑定”

8

主题

18

帖子

169

积分

注册会员

Rank: 2

积分
169
跳转到指定楼层
楼主
发表于 2017-3-3 10:57:52 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
汉枫LPB120模块
app可以搜索到设备,点击未绑定的设备,可以进入控制页面,但是返回到“我的设备”,还是提示未绑定。
esp8266模块log里一直提示 DID len error!
会是什么问题导致的呢?



[FR]  Receive OnBoarding data.
[Dev]  Save GAgent config data
[Dev]  Flash erase failed, err: 1
[NWK] NWK_WIFI_STA_UP
[NWK]  haiNwkStatus: 0x000A, gagentStatus: 0x000A
[NWK]  haiNwkStatus: 0x000A, gagentStatus: 0x000A
[Local] GAgentStatus change, lastGAgentStatus:0x000C, newGAgentStatus:0x000A
@@@@ GAgentStatus[hex]:0a | [Bin]:0,0,1,0,1,0
OnBoarding: Station mode
gizWiFiStatus
gizwitsEventProcess len:1,
event:2,
WIFI_STATION
event:13,
RSSI 0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 9
cnt

connected with suslaser, channel 11
dhcp client start...
[WiFiEvent] connect to ssid suslaser, channel 11
ip:192.168.10.113,mask:255.255.255.0,gw:192.168.10.1
[WiFiEvent] ip:192.168.10.113,mask:255.255.255.0,gw:192.168.10.1
[NWK] NWK_WIFI_STA_CONNECTED
[GServer]  Not ip, Go to GServer DNS.
[FR]  dns: api.gizwits.com found null obj. idex: 0
[Dev]  Save gagent config data
[Dev]  Flash erase failed, err: 1
[WiFiEvent]  enable bind mode, timeout time: 0.
[FR]  Cancle router connect monitor.
[NWK]  haiNwkStatus: 0x001A, gagentStatus: 0x001A
[Lan] onboardingBroadCastTime:29
[Lan] startupBroadCastTime:29
[Lan] DID len error!
[Local] GAgentStatus change, lastGAgentStatus:0x000A, newGAgentStatus:0x061A
@@@@ GAgentStatus[hex]:61a | [Bin]:0,1,1,0,1,0
OnBoarding: Station mode
WiFi status: connected router
gizWiFiStatus
gizwitsEventProcess len:1,
event:2,
WIFI_STATION
event:5,
event:13,
RSSI 6
[FR]  frDnsIpFound dns ip found: 119.29.47.111
[FR]  frFaultProgress FR_DNS_RESULT.
[GServer]  DNS GServer ip is change. old GServer_ip : 0.0.0.0
[Dev]  Save gagent config data
[Dev]  Flash erase failed, err: 1
[GServer]  DNS result GServer_ip : 119.29.47.111
[Timer]  gagentTimerDel <null> has not linked.
[GServer] Need to get did!!!
[Dev]  Save gagent config data
[Dev]  Flash erase failed, err: 1
[GServer] http connect succeed !!!
[Dev]  Save gagent config data
[Dev]  Flash erase failed, err: 1
[GServer] Register got did : len=0
[GServer] GAgent go to provision!!!
[GServer]  httpResendTimerCb ip is null.
[Lan] onboardingBroadCastTime:28
[Lan] startupBroadCastTime:28
[Lan] DID len error!
[Lan] startupBroadCastTime:27
[Lan] DID len error!
[Lan] onboardingBroadCastTime:27
[WiFiEvent] SC_STATUS_LINK_OVER
[WiFiEvent] Phone ip: 192.168.10.109
[Lan] onboardingBroadCastTime:26
[Lan] startupBroadCastTime:26
[Lan] DID len error!
[GAgent] Create pd:1  ip:192.168.10.109 port:40300
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
pm open,type:0 0
[Lan] lan client num : 0,wan client num : 0
[Lan] onboardingBroadCastTime:25
[Lan] startupBroadCastTime:25
[Lan] DID len error!
[Lan] Lan tcp disconnect success,ip:192.168.10.109 port:40300
[Dev]  Turn on device restart count down, flag: 0
[Lan] onboardingBroadCastTime:24
[Lan] startupBroadCastTime:24
[Lan] DID len error!
[Lan] DID len error!
[Lan] GAgent ack app discover ret=0...
[Lan] startupBroadCastTime:23
[Lan] DID len error!
[Lan] onboardingBroadCastTime:23
[Lan] onboardingBroadCastTime:22
[Lan] startupBroadCastTime:22
[Lan] DID len error!
[Lan] onboardingBroadCastTime:21
[Lan] startupBroadCastTime:21
[Lan] DID len error!
[Lan] onboardingBroadCastTime:20
[Lan] startupBroadCastTime:20
[Lan] DID len error!
[Lan] startupBroadCastTime:19
[Lan] DID len error!
[Lan] onboardingBroadCastTime:19
[Lan] onboardingBroadCastTime:18
[Lan] startupBroadCastTime:18
[Lan] DID len error!
[Lan] onboardingBroadCastTime:17
[Lan] startupBroadCastTime:17
[Lan] DID len error!
[Lan] onboardingBroadCastTime:16
[Lan] startupBroadCastTime:16
[Lan] DID len error!
[Lan] startupBroadCastTime:15
[Lan] DID len error!
[Lan] onboardingBroadCastTime:15
[Lan] onboardingBroadCastTime:14
[Lan] startupBroadCastTime:14
[Lan] DID len error!
[Lan] onboardingBroadCastTime:13
[Lan] startupBroadCastTime:13
[Lan] DID len error!
[Lan] onboardingBroadCastTime:12
[Lan] startupBroadCastTime:12
[Lan] DID len error!
[Lan] startupBroadCastTime:11
[Lan] DID len error!
[Lan] onboardingBroadCastTime:11
[Lan] onboardingBroadCastTime:10
[Lan] startupBroadCastTime:10
[Lan] DID len error!
[Lan] onboardingBroadCastTime:9
[Lan] startupBroadCastTime:9
[Lan] DID len error!
[Lan] onboardingBroadCastTime:8
[Lan] startupBroadCastTime:8
[Lan] DID len error!
[Lan] startupBroadCastTime:7
[Lan] DID len error!
[Lan] onboardingBroadCastTime:7
[Lan] onboardingBroadCastTime:6
[Lan] startupBroadCastTime:6
[Lan] DID len error!
[Lan] onboardingBroadCastTime:5
[Lan] startupBroadCastTime:5
[Lan] DID len error!
[Lan] onboardingBroadCastTime:4
[Lan] startupBroadCastTime:4
[Lan] DID len error!
[Lan] DID len error!
[Lan] GAgent ack app discover ret=0...
[Lan] startupBroadCastTime:3
[Lan] DID len error!
[Lan] onboardingBroadCastTime:3
[GAgent] Create pd:1  ip:192.168.10.109 port:40304
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.10.109 port:40304
[Dev]  Turn on device restart count down, flag: 0
[Lan] lan client num : 0,wan client num : 0
[Lan] onboardingBroadCastTime:2
[Lan] startupBroadCastTime:2
[Lan] DID len error!
[Lan] onboardingBroadCastTime:1
[Lan] startupBroadCastTime:1
[Lan] DID len error!
[GAgent] Create pd:1  ip:192.168.10.109 port:40305
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.10.109 port:40305
[Dev]  Turn on device restart count down, flag: 0
[Lan] lan client num : 0,wan client num : 0
[Lan] onboardingBroadCastTime:0
[Lan] startupBroadCastTime:0
[Lan] DID len error!
[Dev]  Save gagent config data
[Dev]  Flash erase failed, err: 1
[Dev]  Save gagent config data
[Dev]  Flash erase failed, err: 1
[GAgent] Create pd:1  ip:192.168.10.109 port:40306
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.10.109 port:40306
[Dev]  Turn on device restart count down, flag: 0
[Lan] lan client num : 0,wan client num : 0
[Lan] DID len error!


34

主题

896

帖子

2274

积分

超级版主

Rank: 8Rank: 8

积分
2274
沙发
发表于 2017-3-3 17:34:58 | 只看该作者
你这是没获取到did导致的,你检查一下你的设备PK是否和你APP的PK一样,或者你设备的PK填错了

8

主题

18

帖子

169

积分

注册会员

Rank: 2

积分
169
板凳
 楼主| 发表于 2017-3-6 10:45:55 | 只看该作者
是一样的,我用的是soc方案。soc的程序是产品后台 MCU开发自动生成的代码,我查了,程序里pk,是产品基本信息里的Product Key。app的代码是在 安卓APP开源框架下载地址 里下的,我按 Android App快速开发 的步骤,修改了UIConfig.json 文件里的 app_id,app_secret,product_key。
可是一直是这问题。一直未解决。

8

主题

18

帖子

169

积分

注册会员

Rank: 2

积分
169
地板
 楼主| 发表于 2017-3-6 16:04:21 | 只看该作者
烧录了Gagent固件,并用机智云串口调试助手  和  机智云测试APP 调试。也只能到成功连接路由器这一步,不能绑定设备。为什么呢?


8

主题

18

帖子

169

积分

注册会员

Rank: 2

积分
169
5#
 楼主| 发表于 2017-3-8 14:45:33 | 只看该作者
校园创客福利
没有哪位大侠解释一下?

0

主题

2

帖子

350

积分

中级会员

Rank: 3Rank: 3

积分
350
6#
发表于 2017-3-10 19:33:23 | 只看该作者
我也遇到和你一样的问题。
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56697
[Dev]  Turn on device restart count down, flag: 0

[18:19:49.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:19:50.703]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56698
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56698
[Dev]  Turn on device restart count down, flag: 0

[18:19:51.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:19:52.671]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56699
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56699
[Dev]  Turn on device restart count down, flag: 0

[18:19:53.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:19:54.703]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56700
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56700
[Dev]  Turn on device restart count down, flag: 0

[18:19:55.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:19:55.078]收←◆[Lan] DID len error!
[Lan] GAgent ack app discover ret=0...

[18:19:56.968]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56706
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56706
[Dev]  Turn on device restart count down, flag: 0

[18:19:57.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:19:58.750]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56707
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56707
[Dev]  Turn on device restart count down, flag: 0

[18:19:59.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:20:00.750]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56708
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56708
[Dev]  Turn on device restart count down, flag: 0

[18:20:01.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:20:02.734]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56709
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56709
[Dev]  Turn on device restart count down, flag: 0

[18:20:03.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:20:04.812]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56710
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56710
[Dev]  Turn on device restart count down, flag: 0

[18:20:05.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:20:05.203]收←◆[Lan] DID len error!
[Lan] GAgent ack app discover ret=0...

[18:20:06.781]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56711
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56711
[Dev]  Turn on device restart count down, flag: 0

[18:20:07.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:20:08.796]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56712
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56712
[Dev]  Turn on device restart count down, flag: 0

[18:20:09.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:20:10.796]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56713
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56713
[Dev]  Turn on device restart count down, flag: 0

[18:20:11.046]收←◆[Lan] lan client num : 0,wan client num : 0

[18:20:12.781]收←◆[GAgent] Create pd:1  ip:192.168.1.101 port:56714
[Lan] New client connect,pd:1
[Lan] Receive lan tcp packet cnt is 1
[Lan] Send passcode() to client[1][send data len:0].
[Lan] Lan tcp disconnect success,ip:192.168.1.101 port:56714
[Dev]  Turn on device restart count down, flag: 0

3

主题

42

帖子

1450

积分

金牌会员

Rank: 6Rank: 6

积分
1450
7#
发表于 2017-4-11 20:14:12 来自手机 | 只看该作者
也碰到同样问题:soc方案绑定不了设备!官方是否可以回复下

30

主题

164

帖子

630

积分

高级会员

Rank: 4

积分
630
8#
发表于 2017-4-18 10:16:50 | 只看该作者
上电后打印的日志发一下

34

主题

896

帖子

2274

积分

超级版主

Rank: 8Rank: 8

积分
2274
9#
发表于 2017-4-18 10:21:37 | 只看该作者
你的ESP8266的型号是多少。flash是多少兆的。我看你日志显示flash烧写失败。你烧写固件的时候flash是否选择32Mbit进行烧写的

3

主题

42

帖子

1450

积分

金牌会员

Rank: 6Rank: 6

积分
1450
10#
发表于 2017-4-19 06:19:37 来自手机 | 只看该作者
汉枫LPB120模块
是否要求flash最少要32Mbit?少于就不行!

2

主题

13

帖子

258

积分

中级会员

Rank: 3Rank: 3

积分
258
11#
发表于 2017-6-1 14:33:13 来自手机 | 只看该作者
应该是保存wifi账号 密码的写地址超出了01模块1M的位置,所以写失败,不知道这个地址怎么改,改成能用的地址01模块应该能全血复活

7

主题

36

帖子

252

积分

中级会员

Rank: 3Rank: 3

积分
252
12#
发表于 2017-6-3 23:07:41 | 只看该作者
同样的问题,不要说模组的问题,我的是官方开发套件,一样出现这个问题

1

主题

8

帖子

76

积分

注册会员

Rank: 2

积分
76
13#
发表于 2017-6-8 23:19:00 | 只看该作者
楼主的8266是什么系列的,听说好像必须是12f的那个

3

主题

25

帖子

552

积分

高级会员

Rank: 4

积分
552
14#
发表于 2018-9-5 16:37:32 | 只看该作者
我也出现了这个问题
人生在于折腾

0

主题

3

帖子

30

积分

新手上路

Rank: 1

积分
30
15#
发表于 2018-9-7 07:23:10 | 只看该作者
汉枫LPB120模块
vicky 发表于 2017-4-18 10:16
上电后打印的日志发一下

我也出现过这样的问题,一直提示等待设备就绪,后来从新烧录的固件,选的32mbit-c就好了,刚开始使用的是8mbit的烧录的,就不好使

0

主题

4

帖子

24

积分

新手上路

Rank: 1

积分
24
16#
发表于 2019-5-30 13:40:21 | 只看该作者
楼主解决了吗 我也是这个问题

0

主题

4

帖子

24

积分

新手上路

Rank: 1

积分
24
17#
发表于 2019-5-30 13:41:53 | 只看该作者
楼主解决了吗 我也是这个问题 现在找不到办法 能帮帮吗
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

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

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