测试到和mdns有关,屏蔽mdns的相关代码就没出现重启
附打印日志
Code: Select all
Ps:出错地址打印在140行
System started ...
load ...
default configuration
MQTT_InitConnection
MQTT_InitClient
mode : null
CMD_switch_tx() *(<GET_INFO::"HW:0.0.1""FW:0.0.1""CP:0.0.1""AP:0.0.1")*
uart_Task_WRITE_OVER_EVENT
>CMD_SN:
cmd:0 str*(
)*
CMD_switch_tx() *(<CMD_SN:OK)*
uart_Task_WRITE_OVER_EVENT
>CMD_WIFI:local
cmd:1 str*(local
)*
MCD_WIFI_on=0 par_str:local
CMD_switch_tx() *(<CMD_WIFI:OK)*
wifi_change() now_mode=1 old_mode=0
user_tcpserver_init()
user_tcpserver_init() port:3000
mode : sta(5c:cf:7f:88:0d:96) + softAP(5e:cf:7f:88:0d:96)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
connect2wifi()/////////////////////
WIFI_INIT
wifi_set_opmode( STATION AP_MODE )
wifi_set_opmode(STATIONAP_MODE) return 0
bcn 0
del if1
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
wifi_softap_set_config() return 1
CONNECT WIFI
...ssid=xlab
...pass=
f r0, STATION_IDLE
httpc_start_connect...
STATION_IDLE
wifi_change() now_mode=1 old_mode=1
STATION_IDLE
STATION_IDLE
STATION_IDLE
STATION_IDLE
STATION_IDLE
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
connected with xlab, channel 10
dhcp client start...
cnt
STATION_IDLE
STATION_IDLE
ip:192.168.0.114,mask:255.255.254.0,gw:192.168.1.254
got_ip_and_espyouch_cb() old_event=1 event->event=3
EVENT_STAMODE_GOT_IP
user_mdns_config()
mdns ipAddr=192.168.0.114 host_name=XDM305116300041 server_name=scpi
host_name = 05116300041
server_name = _scpi._tcp.local
**********state4led() t=2
CMD_switch_tx() *(<GET_STACONN:TRUE)*
httpc_start_connect...
httpc_dns_found
TCP: Connect to domain
DNS: found ip
TCP: connecting...
MQTT: Connected to broker
MQTT: Sending, type: 1, id: 0000
TCP: Sent
TCP: data received 4 bytes
MQTT: Connected to
MQTT: Connected
-----------TCP: httpc_disconnect
MQTT: queue subscribe, topic"305116300041/app2dev", id: 1
**********state4led() t=3
MQTT: Sending, type: 8, id: 0001
MQTT_Task espconn_send result=0
TCP: Sent
TCP: data received 5 bytes
MQTT: Subscribe successful
uart_Task_WRITE_OVER_EVENT
>CMD_WIFI:OFF
cmd:1 str*(OFF
)*
MCD_WIFI_on=0 par_str:OFF
CMD_switch_tx() *(<CMD_WIFI:OK)*
wifi_change() now_mode=0 old_mode=1
espconn_tcp_delete 1, 3000
espconn_delete() 0
bcn 0
del if1
pm open,type:2 0
state: 5 -> 0 (0)
rm 0
pm close 7
del if0
usl
mode : null
mqtt_tcpclient_recon_cb TCP: errortype=-11 Reconnect to m2m.owon.com.cn:1883
**********state4led() t=2
got_ip_and_espyouch_cb() old_event=3 event->event=1
EVENT_STAMODE_GOT_IP
got_ip_and_espyouch_cb() MCD_WIFI_mode=0
**********state4led() t=1
CMD_switch_tx() *(<GET_STACONN:FALSE)*
Fatal exception 28(LoadProhibitedCause):
epc1=0x4000bf0e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
*r吥(当K韙ru-@轾.Ko8a ?(P9??┅腜?*爹*厑L(Al )閙~盩[!kt璽e,盄j|?爹*夵nzAl )槌*盤[僰t盧?*? ┠PK膣(
nz(?8x簐A,o?8r~盫?8…轾.?m?+?箒(7V晇??倒+k?(7V壯*?祽錘鑒嵣-Ae?*?-礫p崖盦醁瑓X?,笰m|?ph?*Ⅻ
****************************************************
user_main.c build:Oct 28 2016 11:42:27
SDK version:1.5.4(baaeaebb)
---user init finish--the heap is 0xa658
data : 0x3ffe8000 ~ 0x3ffe8a38, len: 2616
rodata: 0x3ffe8a40 ~ 0x3ffea094, len: 5716
bss : 0x3ffea098 ~ 0x3fff18b0, len: 30744
heap : 0x3fff18b0 ~ 0x3fffc000, len: 42832
****************************************************
pet feeder device enter...
application.c build:Oct 28 2016 11:42:27
Reset Reason: 2
Fatal exception (28):
epc1=0x4000bf0e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
****************************************************
>sys_param_init()
>hard_init()
>debug_test()
system sleep mode:MODEM_SLEEP_T
**********state4led() t=1
System started ...
load ...