叫我蓝天 发表于 2017-6-8 01:18:50

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

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
Get gagent config data from master eare.
Save gagent config data

Domain:api.gizwits.com:80.

tz in sec:28800,timezone:8.0

Wifi station connec
t failed!
NWK_WIFI_STA_UP
GAgent Start...

----------------------------------------- GAGENT INFO --------------------------------------

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

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

GAgentStatus change, las
tGAgentStatus:0x0000, newGAgentStatus:0x000A
@@@@ GAgentStatus:0a | :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
ip:172.21.142.2,mask:255.255.0.0,gw:172.21.142.1
NWK_WIFI_STA_CONNECTED
Has ip, Connect GServer.
Save gagent config data

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

http connect succeed !
!!

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

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

Receive mqtt packet is 1

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

Receive mqtt packet is 1
Go to MQTT_STATUS_RES_LOGINTOPIC2.

OTA http connect success !
!!

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

Receive mqtt packet is 1
Go to MQTT_STATUS_RES_LOG
INTOPIC3.

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

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

startupBroadCastTime:27

startupBroadCastTime:26

startupBroadCastTime:25

startupBroadCastTime:24

startupBroadCastTime:23

startupBroadCastTime:22

startupBroadCastTime:21

pm open,type:0 0

startupBroadCastTime:20

startupBroadCastTime:19

startupBroadCastTime:18

startupBroadCastTime:17

startupBroadCastTime:16

startupBroadCastTime:15

startupBroadCastTime:14

startupBroadCastTime:13

startupBroadCastTime:12

startupBroadCastTime:11

startupBroadCastTime:10

startupBroadCastTime:9

startupBroadCastTime:8

startupBroadCastTime:7

startupBroadCastTime:6

startupBroadCastTime:5

startupBroadCastTime:4

startupBroadCastTime:3

startupBroadCastTime:2

startupBroadCastTime:1

Receive mqtt packet is 1

Receive mqtt packet is 1

CLOUD_DATA_IN cmd : 0093

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

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

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

Receive mqtt packet is 1

CLOUD_DATA_IN cmd : 0093

Receive mqtt packet is 1

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

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

Save gagent config data


ets Jan8 2013,rst cause:4,
boot mode:(3,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

叫我蓝天 发表于 2017-6-8 01:20:51

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

叫我蓝天 发表于 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");

}

dyl6198 发表于 2017-6-10 15:49:03

也发现这个问题,8266在长期待机时,会死机,需要重启。有解决办法么?
页: [1]
查看完整版本: 8266 12f 莫名其妙的 死机 重启又好使了