--------------------> air602 不能自动获取IP !!!!!!!

CODE:

wifi_send_cmd("AT+\r");

wifi_send_cmd("AT+QMAC\r");


wifi_send_cmd("AT+WPRT=!0\r");


wifi_send_cmd("AT+WSCAN\r");

delayms(3000);


wifi_send_cmd("AT+SSID=!\"youlejia\"\r");



wifi_send_cmd("AT+KEY=!1,0,\"Ab123456\"\r");

delayms(10);


//手动获取IP

//wifi_send_cmd("AT+NIP=!1,192.168.1.138,255.255.255.0,192.168.1.1,192.168.1.1\r");

//delayms(100);

//自动获取IP

wifi_send_cmd("AT+NIP=!0\r");

delayms(100);


//启动加网

wifi_send_cmd("AT+WJOIN\r");


delayms(5000);


{

int i = 0;


for (i = 0; i < 5; i++)

{

wifi_send_cmd("AT+LKSTT\r");

delayms(2000);

}

}


WIFI SSID: 正确

WIFI 密码: 正确

WIFI在电脑上可以连上


日志:

[16:22:33.329] wifi tx1: AT+

[16:22:33.343] WIFI Recv:

AT+


WIFI Recv:

+OK


AT+QMAC

+OK=286dcd01317a



[16:22:33.415] WIFI Recv:

AT+WPRT=!0

+OK



[16:22:35.193] WIFI Recv:

AT+WSCAN

+OK=74258A49D610,2,1,0,"konka-HD",44

74258A49D612,2,1,0,"konka-Guest",46

206BE7FCD951,2,1,1,"HK001",31

[16:22:35.202] 186024D7DCA7,2,1,1,"DIRECT-A6-HP DeskJet 4670 series",42

206BE7A3AB55,2,1,1,"youlejia",35

58B6331F7A38,2,4,1,"DR002",62

EC172FE6E4B8,2,6,1,"TP-LINK_JINJING",66

6EEFC637B524,2,6,1,"ChinaNet-pk4Z",54

286C07CAAA3F,2,6,1,"zncpb",42

683E341D39F8,2,6,1,"MEIZUPRO5",56

3EEFC637B524,2,6,0,"",46

7811DC3E9FED,2,9,1,"kjxybxt",58

6409800C7BF7,2,10,1,"Good_2.4G",58

74258A49D630,2,11,0,"konka-HD",35

74258A49D631,2,11,0,"konka-AP",37

CC81DA7C03A8,2,11,1,"Ernest_2.4G",38

C80E7758D7E6,2,11,0,"Ernest_FREE",50

143DF268DED8,2,13,1,"XXWLCGB",64

F03E90681188,2,13,0,"DR-Guest",64

F03E90281188,2,13,1,"DR-WIFI",66




[16:22:36.489] WIFI Recv:

AT+SSID=!"youlejia"


[16:22:36.693] WIFI Recv:

+OK


AT+KEY=!1,0,"Ab123456"


[16:22:36.769] WIFI Recv:

+OK


AT+NIP=!0

+OK



[16:22:39.689] WIFI Recv:

AT+WJOIN

+OK=206be7a3ab55,0,1,1,"youlejia",34


[16:22:41.553] WIFI Recv:

AT+LKSTT

+OK=1,"0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0"



[16:22:43.562] WIFI Recv:

AT+LKSTT

+OK=1,"0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0"



[16:22:45.588] WIFI Recv:

AT+LKSTT

+OK=1,"0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0"



[16:22:47.573] WIFI Recv:

AT+LKSTT

+OK=1,"0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0"



[16:22:49.581] WIFI Recv:

AT+LKSTT

+OK=1,"0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0","0.0.0.0"


air602 使用DHCP , 连上WIFI, 一直不能获取ip地址.

请先 登录 后评论

1 个回答

李炜镪

请进WIFI群679177589联系群主获取支持

请先 登录 后评论
  • 0 关注
  • 0 收藏,2478 浏览
  • lakeluat 提出于 2019-01-22 16:25

相似问题