使用
手机APP通过smart config来配置RTOS版本的ESP8266,发现双方握手不能成功,
手机是iphone6 ios8.3。ESP touch v0.3.3。用xCode7做设备调试的时候,可以输出“send gc code”,前端日志如下:
2015-11-20 11:08:35.071 EspTouchDemo[5787:2927996] ESPTouchTask __listenAsyn() expectOneByte: 34
2015-11-20 11:08:41.094 EspTouchDemo[5787:2929212] ESPTouchTask __execute() send gc code
2015-11-20 11:08:47.108 EspTouchDemo[5787:2929212] ESPTouchTask __execute() send gc code
2015-11-20 11:08:53.139 EspTouchDemo[5787:2929212] ESPTouchTask __execute() send gc code
2015-11-20 11:08:59.157 EspTouchDemo[5787:2929212] ESPTouchTask __execute() send gc code
2015-11-20 11:09:05.158 EspTouchDemo[5787:2929212] ESPTouchTask __execute() send gc code
2015-11-20 11:09:11.174 EspTouchDemo[5787:2929212] ESPTouchTask __execute() send gc code
2015-11-20 11:09:17.204 EspTouchDemo[5787:2929212] ESPTouchTask __execute() send gc code
2015-11-20 11:09:23.104 EspTouchDemo[5787:2929212] ESPTouchTask __sleep() start
server: receiveOneByte fail
: Resource temporarily unavailable
2015-11-20 11:09:33.071 EspTouchDemo[5787:2927996] ESPTouchTask __listenAsyn() receive rubbish message, just ignore
2015-11-20 11:09:33.110 EspTouchDemo[5787:2929212] ESPTouchTask __sleep() end, receive signal is NO
2015-11-20 11:09:33.110 EspTouchDemo[5787:2929212] ###################server close() fd=10
server: receiveOneByte fail
: Bad file descriptor
2015-11-20 11:09:33.111 EspTouchDemo[5787:2927996] ESPTouchTask __listenAsyn() receive rubbish message, just ignore
2015-11-20 11:09:33.111 EspTouchDemo[5787:2929212] ESPTouchTask __no
tify()
2015-11-20 11:09:33.111 EspTouchDemo[5787:2927996] ESPTouchTask __notify()
2015-11-20 11:09:33.112 EspTouchDemo[5787:2927996] ESPTouchTask __listenAsyn() finish
2015-11-20 11:09:33.112 EspTouchDemo[5787:2929212] ESPViewController executeForResult() result is: (
"[isSuc: NO,isCancelled: NO,bssid: (null),inetAddress: 0.0.0.0]"
)
串口调试输出的后端日志如下:
ets Jan 8 2013,rst cause:1, boot mode:(3,2)
load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0
2nd boot version : 1.4(b1)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
pp_task_hdl : 3fff2750, prio:13, stack:512
pm_task_hdl : 3fff3030, prio:1, stack:176
ApiMsgMutex created
tcpip_task_hdl : 3fff3448, prio:10,stack:512
wdt_task : 3fff3d08, prio:14, stack:176
idle_task_hdl : 3fff4878
tim_task_hdl : 3fff4c70
xPortStartScheduler
frc2_timer_task_hdl:3fff5580, prio:12, stack:512
OS SDK ver: 1.2.0(b900bd2) compiled @ Aug 28 2015 17:18:41
phy ver: 356, pp ver: 9.0
SDK version:1.2.0(b900bd2)
mode : sta(18:fe:34:a4:8c:34) + softAP(1a:fe:34:a4:8c:34)
add if0
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
add if1
bcn 100
IOT VERSION:v1.0.5t23701(a)
user_plug_init start!
wifi_station_get_ap num 0
apnetif->dhcps_
PCB = 1073706632
bcn 0
del if1
mode : sta(18:fe:34:a4:8c:34)
configing...
C > multi_conn_init ok!
smartconfig_task start
SC version: V2.4.7configing...
scandone
configing...
scandone
SC_STATUS_FIND_CHANNEL
configing...
configing...
configing...
configing...
configing...
可见,后端的平台任务线程一直等待configing完成,而smart config 任务线程不能接收到手机APP发出的SSID和PASSWD指令,无法进入到SC_STATUS_GETTING_SSID_PSWD状态
同时,
开发板上的smart config LED蓝色灯一会慢闪一阵,一会快闪一阵子,不断这样变化,请问问题在什么地方?