中级会员
- 积分
- 319
- 金钱
- 319
- 注册时间
- 2017-1-20
- 在线时间
- 51 小时
|
1金钱
本帖最后由 tt朝花夕拾 于 2017-3-9 17:03 编辑
最近在调试wifi esp8266的芯片;发现在开启softap + sta 兼容模式时;
softap 开启后,AT+CIPSERVER 的指令返回ERROR;
之后再重新初始化一遍,AT+CIPSERVER 又可以返回OK,请问可能是什么原因呢?
如上指令流程;
AT
AT+GMR
AT+CWMODE=3
AT+CIPMUX=1
AT+CIPDINFO=1
8 cprlrl
32 Ai-Thinker Technology Co. Ltd.
7 ready
AT+CIPSTAMAC_CUR?
20 AT+CIPSTAMAC_CUR?
36 +CIPSTAMAC_CUR:"5c:cf:7f:d0:b9:7c"
4 OK
AT+CIPAPMAC_CUR?
19 AT+CIPAPMAC_CUR?
35 +CIPAPMAC_CUR:"5e:cf:7f:d0:b9:7c"
4 OK
AT+CIPSTA_CUR?
17 AT+CIPSTA_CUR?
26 +CIPSTA_CUR:ip:"0.0.0.0"
31 +CIPSTA_CUR:gateway:"0.0.0.0"
31 +CIPSTA_CUR:netmask:"0.0.0.0"
4 OK
AT+CIPAP_CUR?
16 AT+CIPAP_CUR?
29 +CIPAP_CUR:ip:"192.168.4.1"
34 +CIPAP_CUR:gateway:"192.168.4.1"
36 +CIPAP_CUR:netmask:"255.255.255.0"
4 OK
AT+CWSAP_CUR?
16 AT+CWSAP_CUR?
43 +CWSAP_CUR:"AI-THINKER_D0B97C","",1,0,4,0
4 OK
ESP module init successfully!
AT+CIPAPMAC_CUR?
19 AT+CIPAPMAC_CUR?
35 +CIPAPMAC_CUR:"5e:cf:7f:d0:b9:7c"
4 OK
AT+CWSAP_CUR="GxxMxx-5ECF7FD0B97C","12345678",1,3,3,0
56 AT+CWSAP_CUR="GxxMxx-5ECF7FD0B97C","12345678",1,3,3,0
4 OK
AT+CWSAP_CUR?
16 AT+CWSAP_CUR?
53 +CWSAP_CUR:"GxxMxx-5ECF7FD0B97C","12345678",1,3,3,0
4 OK
Access point settings are set. You may connect to AP now
AT+CIPSERVER=1,8888
22 AT+CIPSERVER=1,8888
7 ERROR
wifi server enable fail!
这个时候,设备启动第一次开启会返回ERROR;
请大神帮忙解答
|
|