|
背景:1. esp8266-12f soc方案
2.模块已经配置网络连接,并能正常连接云
现象:
通电之后,模块会进入 Test Mode, 一段时间之后,会自动转入正常工作模式;
复位之后,模块会直接进入正常工作模式;
问题:
如何使模块通电之后 跳过 Test Mode, 直接进入 正常工作模式?
以下是打印信息:
connected with TP-LINK_4A2EBA, channel 11
dhcp client start...
[WiFiEvent] connect to ssid TP-LINK_4A2EBA, channel 11
ip:192.168.2.104,mask:255.255.255.0,gw:192.168.2.1
[WiFiEvent] ip:192.168.2.104,mask:255.255.255.0,gw:192.168.2.1
[NWK] NWK_WIFI_STA_CONNECTED
[FR] Cancle router connect monitor.
[NWK] haiNwkStatus: 0x001A, GAgentStatus: 0x101A
[Lan] startupBroadCastTime:29
[Local] GAgentStatus change, lastGAgentStatus:0x100A, newGAgentStatus:0x131A
@@@@ GAgentStatus[hex]:131a | [Bin]:0,1,1,0,1,0
OnBoarding: Station mode
WiFi status: connected router
RSSI 3
[WiFiEvent] IN Test Mode. cnt: 2
[Lan] startupBroadCastTime:28
[Lan] startupBroadCastTime:27
[Lan] startupBroadCastTime:26
scandone
[Lan] startupBroadCastTime:25
[Lan] startupBroadCastTime:24
pm open,type:0 0
[Lan] startupBroadCastTime:23
[Lan] startupBroadCastTime:22
[Lan] startupBroadCastTime:21
[Lan] startupBroadCastTime:20
[Lan] startupBroadCastTime:19
[WiFiEvent] IN Test Mode. cnt: 3
sl
[Lan] startupBroadCastTime:18
[Lan] startupBroadCastTime:17
[Lan] startupBroadCastTime:16
scandone
usl
[Lan] startupBroadCastTime:15
[Lan] startupBroadCastTime:14
[Lan] startupBroadCastTime:13
[Lan] startupBroadCastTime:12
[Lan] startupBroadCastTime:11
[Lan] startupBroadCastTime:10
[Lan] startupBroadCastTime:9
[WiFiEvent] IN Test Mode. cnt: 4
sl
[Lan] startupBroadCastTime:8
[Lan] startupBroadCastTime:7
[Lan] startupBroadCastTime:6
scandone
usl
[Lan] startupBroadCastTime:5
[Lan] startupBroadCastTime:4
[Lan] startupBroadCastTime:3
[Lan] startupBroadCastTime:2
[Lan] startupBroadCastTime:1
[Lan] startupBroadCastTime:0
[Dev] Save gagent config data
[WiFiEvent] IN Test Mode. cnt: 5
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 6
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 7
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 8
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 9
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 10
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 11
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 12
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 13
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 14
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 15
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 16
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 17
sl
scandone
usl
[WiFiEvent] IN Test Mode. cnt: 18
sl
scandone
usl
[WiFiEvent] Exit Test Mode...
[Timer] gagentTimerDel System has been locked.
[WiFiEvent] restore to connect cache router
state: 5 -> 0 (0)
rm 0
pm close 7
[WiFiEvent] disconnect from ssid TP-LINK_4A2EBA, reason 8
[NWK] NWK_WIFI_STA_DISCONNECTED
[Timer] gagentTimerDel startupUdpBroadcastTick has not linked.
[Timer] gagentTimerDel <null> has not linked.
[NWK] haiNwkStatus: 0x000A, gagentStatus: 0x030A
[Timer] gagentTimerDel <null> has not linked.
[Local] GAgentStatus change, lastGAgentStatus:0x131A, newGAgentStatus:0x030A
@@@@ GAgentStatus[hex]:30a | [Bin]:0,0,1,0,1,0
OnBoarding: Station mode
WiFi status: disconnected router
WiFi status: out test mode
RSSI 3
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with TP-LINK_4A2EBA, channel 11
dhcp client start...
[WiFiEvent] connect to ssid TP-LINK_4A2EBA, channel 11
ip:192.168.2.104,mask:255.255.255.0,gw:192.168.2.1
[WiFiEvent] ip:192.168.2.104,mask:255.255.255.0,gw:192.168.2.1
[NWK] NWK_WIFI_STA_CONNECTED
[NWK] GAgent_CreateUDPServer creat success
[GServer] Not ip, Go to GServer DNS.
[FR] dns: api.gizwits.com found null obj. idex: 0
[Dev] Save gagent config data
[FR] Cancle router connect monitor.
[NWK] haiNwkStatus: 0x001A, gagentStatus: 0x031A
[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
[GServer] DNS result GServer_ip : 119.29.47.111
[Timer] gagentTimerDel <null> has not linked.
[GServer] Had did,did = gG9nSDMGpHvABpsaMybBHV!!!!go to provision.
[GServer] http connect succeed !!!
[Local] GAgentStatus change, lastGAgentStatus:0x030A, newGAgentStatus:0x031A
@@@@ GAgentStatus[hex]:31a | [Bin]:0,1,1,0,1,0
OnBoarding: Station mode
WiFi status: connected router
RSSI 3
[GServer] Provision OK!
[GServer] M2M host:sandbox.gizwits.com port:1883
[GServer] GAgent go to login M2M!
[M2M] flash m2m domain: sandbox.gizwits.com, now domain: sandbox.gizwits.com
[M2M] Not ip, Go to M2M DNS.
[FR] dns: sandbox.gizwits.com found null obj. idex: 0
[GServer] GAgent Provision BizLogLev:00,SysLogLev:00
[GServer] Do not need to disable did,start check ota!
[GServer] Start check ota!!
[LogServer] ip: w0?9.48.145, port: 1884
[LogServer] Socket: logServer connect ret = 0
[FR] frDnsIpFound dns ip found: 203.195.142.207
[FR] frFaultProgress FR_DNS_RESULT.
[M2M] DNS M2M ip is change. old m2m_ip : 0.0.0.0
[Dev] Save gagent config data
[M2M] DNS result m2m_ip : 203.195.142.207
[M2M] Delete all m2m nodes!
[LogServer] Socket: logServer connect succeed !!!
[LogServer] login logServer. ret:0
[LogServer] Login res ...
[M2M] Req to connect m2m !
[M2M] username: gG9nSDMGpHvABpsaMybBHV password: EBUGPWSHCN
[M2M] M2M ip:203.195.142.207 port:1883
[LogServer] Login logServer success.
[OTA] OTA http connect success !!!
[Timer] gagentTimerDel <null> has not linked.
[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
[M2M] Receive mqtt packet is 1
[OTA] OTA http disconnect success !!!
[M2M] GAgent do req connect m2m OK !
[M2M] Go to MQTT_STATUS_REQ_LOGINTOPIC1.
[OTA] OTA http connect success !!!
[M2M] Receive mqtt packet is 1
[M2M] Go to MQTT_STATUS_RES_LOGINTOPIC2.
[M2M] Receive mqtt packet is 1
[M2M] Go to MQTT_STATUS_RES_LOGINTOPIC3.
[OTA] GAgent MCU OTA failed.
[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] GAgent Cloud Working...
|
|