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

[求助] 8266 12f 莫名其妙的 死机 重启又好使了

1

主题

4

帖子

106

积分

注册会员

Rank: 2

积分
106
跳转到指定楼层
楼主
发表于 2017-6-8 01:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
注册成为机智云开发者,手机加虚拟设备快速开发
rd
?c岓og焞'o茔?#x ?{ls$p鹓? ?l   b '銃?? b岓og?l剰l`?'o $`gs彃搊 挀$`p??
s能溿? co?烨弴#岓og? $`?g' l`or菦?  ?l8鹢? ;劀溿囔l # g銃剣?c匊gn?l`?ng$`'{嚀沷?l r涆' ?l`{l剬o渼鹓n焺熴膡'og?d腸?d
?'鞗n?屇$d鄝# 鋵dlp#?#x€?嘽 {cx€??c$l挍o?寭鉭d焲cd l`{l
---------------SDK version:2.0.0
(5a875ba)--------------
system_get_free_heap_size=36648
reset reason: 6
---UPGRADE_FW_BIN1---
switchGpioInit finished
gpio_name 0
gpio_name 14
[Dev]  Get GAgent config data from master eare.
[Dev]  Save gagent config data

[Dev] Domain:api.gizwits.com:80.

[Dev] tz in sec:28800,timezone:8.0

[WiFiEvent]  Wifi station connec
t failed!
[NWK] NWK_WIFI_STA_UP
[GAgent] GAgent Start...
[Local]
----------------------------------------- GAGENT INFO --------------------------------------

[Local] GAgent Product Soft Version: 04020021. Hard Version: 00ESP826
[Local] GAgent Compiled Time: Mar  1 2017, 14:15:23.
[Local] GAgent cache first ss
id 360WiFi,  key 123456789.
[Local] GAgent backup ssid 360WiFi, key 123456789.
[Local] GAgent mac :A020A62F25B6
[Local] GAgent passcode :OYKYVYJLOI len=10
[Local] GAgent did :BFAdXoKMw8LsutDYEgonj4 len:22
[Local] GAgent old passcode:
[Local] GAgent old did : len:0
[Local] GAgent old pk :19829c6108a94504a02439673bb79288 len:32
[Local] GAgent A
P name:XPG-GAgent-25B6
[Local] GAgent 3rd cloud :
[Local] GAgent M2M Host :sandbox.gizwits.com , IP :203.195.142.207
[Local] GAgent GService Host :api.gizwits.com , Port :0 , IP :119.29.47.111
[Local] GAgent BizLogLev:00,SysLogLev:00
[Local] --------------------------------------------------------------------------------------

[Local] GAgent
get local info ok.
[Local] MCU Protocol Vertion:00000004.
[Local] MCU P0 Vertion:00000002.
[Local] MCU Hard Vertion:03000001.
[Local] MCU Soft Vertion:03000003.
[Local] MCU old product_key:19829c6108a94504a02439673bb79288.
[Local] MCU product_key:19829c6108a94504a02439673bb79288.
[Local] MCU passcodeEnableTime:0 s.
[Local] GAgent Soft Version: 04020420. Hard Version: 00ESP8
26.
gizwitsInit OK
--- system_free_size = 26944 ---
mode : sta(a0:20:a6:2f:25:b6)
add if0
[NWK]  haiNwkStatus: 0x000A, gagentStatus: 0x000A

[Local] GAgentStatus change, las
tGAgentStatus:0x0000, newGAgentStatus:0x000A
@@@@ GAgentStatus[hex]:0a | [Bin]:0,0,1,0,1,0
OnBoarding: Station mode
WiFi status: in binding mode
RSSI 0

scandone
state: 0 -> 2 (b0)

state: 2 -> 3 (0)

state: 3 -> 5 (10)
add 0
aid 1
cnt

connected with 360WiFi, channel 11
dhcp client start...
[WiF
iEvent] connect to ssid 360WiFi, channel 11

ip:172.21.142.2,mask:255.255.0.0
,gw:172.21.142.1
[WiFiEvent] ip:172.21.142.2,mask:255.255.0.0,gw:172.21.142.1
[NWK] NWK_WIFI_STA_CONNECTED
[GServer]  Has ip, Connect GServer.
[Dev]  Save gagent config data

[FR]  Cancle router connect moni
tor.
[NWK]  haiNwkStatus: 0x001A, gagentStatus: 0x001A
[Timer]  gagentTimerDel <null> has not linked.
[GServer] Had did,did = BFAdXoKMw8LsutDYEgonj4!!!!go to provision.

[GServer] http connect succeed !
!!

[GServer] Provision OK!
[GServe
r] M2M host:sandbox.gizwits.com port:1883
[GServer] GAgent go to login M2M!
[M2M] Delete all m2m nodes!
[M2M]  Has ip, Will use it to login M2M.
[GServer] GAgent Provision BizLogLev:00,SysLogLev:00
[GServer] Do not need
to disable did,start check ota!
[GServer] Start check ota!!
[M2M] Req to connect m2m !
[M2M] username: BFAdXoKMw8LsutDYEgonj4 password: OYKYVYJLOI
[M2M] M2M ip:203.195.142.207 port:1883
[LogServer]  ip: w0?9.48.145, port: 1884
[LogServer]  Socket: logServer connect ret = 0

[Timer]  gagentTimerDel <null> h
as not linked.
[OTA] OTA http connect success !!!
[LogServer]  Socket: logServer connect succeed !!!
[LogServer]  login logServer. ret:0
[LogServer]  Login res ...

[M2M] Receive mqtt packet is 1

[LogServer]  Login logServer success.
[M2M] GAgent do req connect m2m OK !
[M2M] Go to MQTT_STATUS_REQ_LOGINTOPIC1.
[OTA] GAgent WIFI OTA failed.
[OTA] go to check MCU OTA!
[OTA] ota finish free buf
[Timer]  gagentTimerDel ReConn_Tick has not linked.
[Timer]  gagentTimerDel waitRes_Tick has not linked.
[Timer]  gagentTimerDel <null> has not linked.
[OTA] responsCode fail , responsCode 400
[OTA] OTA http disconnect success !!!

[M2M] Receive mqtt packet is 1
[M2M] Go to MQTT_STATUS_RES_LOGINTOPIC2.

[OTA] OTA http connect success !
!!

[Lan] startupBroadCastTime:29
[Local] GAgentStatus change, lastGAgentStatus:0x000A, newGAgentStatus:0x051A
@@@@ GAgentStatus[hex]:51a | [Bin]:0,1,1,0,1,0
OnBoarding: Station mode
WiFi status: connected router
RSSI 5

[M2M] Receive mqtt packet is 1
[M2M]  Go to MQTT_STATUS_RES_LOG
INTOPIC3.

[OTA] GAgent MCU OTA failed.
[O
TA] ota finish free buf
[Timer]  gagentTimerDel ReConn_Tick has not linked.
[Timer]  gagentTimerDel waitRes_Tick has not linked.
[Timer]  gagentTimerDel <null> has not linked.
[OTA] responsCode fail , responsCode 400
[M2M] Receive mqtt packet is 1
[OTA] OTA http disconnect success !!!
[M2M] GAgent Cloud Working...
[NWK] NWK_CLOUD_CONNECTED
[Dev]  Turn off device restart count down, flag: 0
[NWK]  haiNwkStatus: 0x003A, gagentStatus: 0x053A

[Local] GAgentStatus change, las
tGAgentStatus:0x051A, newGAgentStatus:0x053A
@@@@ GAgentStatus[hex]:53a | [Bin]:1,1,1,0,1,0
OnBoarding: Station mode
WiFi status: connected m2m
RSSI 5
[Lan] startupBroadCastTime:28

[Lan] startupBroadCastTime:27

[Lan] startupBroadCastTime:26

[Lan] startupBroadCastTime:25

[Lan] startupBroadCastTime:24

[Lan] startupBroadCastTime:23

[Lan] startupBroadCastTime:22

[Lan] startupBroadCastTime:21

pm open,type:0 0

[Lan] startupBroadCastTime:20

[Lan] startupBroadCastTime:19

[Lan] startupBroadCastTime:18

[Lan] startupBroadCastTime:17

[Lan] startupBroadCastTime:16

[Lan] startupBroadCastTime:15

[Lan] startupBroadCastTime:14

[Lan] startupBroadCastTime:13

[Lan] startupBroadCastTime:12

[Lan] startupBroadCastTime:11

[Lan] startupBroadCastTime:10

[Lan] startupBroadCastTime:9

[Lan] startupBroadCastTime:8

[Lan] startupBroadCastTime:7

[Lan] startupBroadCastTime:6

[Lan] startupBroadCastTime:5

[Lan] startupBroadCastTime:4

[Lan] startupBroadCastTime:3

[Lan] startupBroadCastTime:2

[Lan] startupBroadCastTime:1

[M2M] Receive mqtt packet is 1

[M2M] Receive mqtt packet is 1

[GAgent] CLOUD_DATA_IN cmd : 0093

[M2M] Receive mqtt packet is 1
[GAgent] CLOUD_DATA_IN cmd : 0093
[GAgent] Add data to send buffer list,waiting to be sent.destPd:1
[GAgent] Need to send bufCount = 2

[GAgent] There are data in m2m s
end buf list. count = 1

[Lan] startupBroadCastTime:0
[Local] GAgentStatus change, lastG
AgentStatus:0x053A, newGAgentStatus:0x0D3A
@@@@ GAgentStatus[hex]:d3a | [Bin]:1,1,1,0,1,0
OnBoarding: Station mode
WiFi status: app connect
RSSI 5

[M2M] Receive mqtt packet is 1

[GAgent] CLOUD_DATA_IN cmd : 0093

[M2M] Receive mqtt packet is 1

[GAgent] CLOUD_DATA_IN cmd : 0093
Evt: EVENT_SWITCH2 1
valueswitch2 Changed
[GAgent] Add data to send buffer list,waiting to be sent.destPd:1
[GAgent] Need to send bufCount = 2

[GAgent] There are data in m2m s
end buf list. count = 1

[Dev]  Save gagent config data


ets Jan  8 2013,rst cause:4,
boot mode3,4)

wdt reset
************************************************************
再上线         2017.6.08 01:14:06         {"duration": 25, "heartbeat": {"count": 1, "max": 0, "avg": 0, "last": 24, "min": 0}, "reason": "offline_force"}
再上线         2017.6.08 01:13:41         {"duration": 122, "heartbeat": {"count": 3, "max": 50, "avg": 34, "last": 20, "min": 50}, "reason": "offline_force"}
再上线         2017.6.08 01:11:39         {"duration": 124, "heartbeat": {"count": 3, "max": 50, "avg": 34, "last": 22, "min": 50}, "reason": "offline_force"}
上线         2017.6.08 01:09:35         {"keep_alive": 130}
离线         2017.6.08 01:09:35         {"duration": 121, "heartbeat": {"count": 3, "max": 50, "avg": 34, "last": 19, "min": 50}, "reason": "tcp_closed"}
再上线         2017.6.08 01:07:34         {"duration": 84, "heartbeat": {"count": 1, "max": 0, "avg": 0, "last": 42, "min": 0}, "reason": "offline_force"}
再上线         2017.6.08 01:06:10         {"duration": 37, "heartbeat": {"count": 1, "max": 0, "avg": 0, "last": 36, "min": 0}, "reason": "offline_force"}
再上线         2017.6.08 01:05:33         {"duration": 75, "heartbeat": {"count": 1, "max": 0, "avg": 0, "last": 34, "min": 0}, "reason": "offline_force"}
再上线         2017.6.08 01:04:18         {"duration": 168, "heartbeat": {"count": 3, "max": 50, "avg": 33, "last": 68, "min": 50}, "reason": "offline_force"}
再上线         2017.6.08 01:01:30         {"duration": 121, "heartbeat": {"count": 3, "max": 51, "avg": 34, "last": 20, "min": 50}, "rea

1

主题

4

帖子

106

积分

注册会员

Rank: 2

积分
106
沙发
 楼主| 发表于 2017-6-8 01:20:51 | 只看该作者
8266 12f 莫名其妙的 死机 重启又好使了

1

主题

4

帖子

106

积分

注册会员

Rank: 2

积分
106
板凳
 楼主| 发表于 2017-6-8 01:47:56 | 只看该作者
void ICACHE_FLASH_ATTR switchGpioInit(void){
        /*初始化gpio*/
    PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDI_U, FUNC_GPIO12);
    PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, FUNC_GPIO13);
    PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTMS_U, FUNC_GPIO14);

    gpio_output_set(0,0,GPIO_ID_PIN(GPIO_SWITCH1)|GPIO_ID_PIN(GPIO_SWITCH2)|GPIO_ID_PIN(GPIO_SWITCH3),0);

    os_printf("switchGpioInit finished \r\n");

}

5

主题

16

帖子

224

积分

中级会员

Rank: 3Rank: 3

积分
224
地板
发表于 2017-6-10 15:49:03 | 只看该作者
也发现这个问题,8266在长期待机时,会死机,需要重启。有解决办法么?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

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

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