At first power ON WIFI module is in SoftAP mode so I get default APIP - "192.168.4.1" & APMAC - "1a:fe:34:9b:a0:99".
Now to join other network use below command sequence:
1. AT
2. AT+CIPMODE=0
3. AT+CIPMUX=1
4. AT+CIPSERVER=1,80
5. AT+CWQAP (Get ERROR in response because there is no configuration setting for Station mode)
6. AT+CWDHCP=1,1 (Get ERROR in response)
7. AT+CWMODE=1
8. AT+CIPSTO=5000
9. AT+CWJAP="WIFI Network","1234567890"
When module is set for Station mode and join to other network successfully then random IP and MAC address allocated (+CIFSR:STAIP,"252.231.255.255" & +CIFSR:STAMAC,"00:00:00:00:fc:e7"). After this I have to reset module(using AT+RST) and get message "ready\r\n WIFI CONNECTED\r\n WIFI GOT IP\r\n". Now again follow same command sequence(in the above 1-9) then only I get correct IP & MAC address. Also get OK response of AT commands "AT+CWQAP" & "AT+CWDHCP=1,1 " in this time.
In my router MAC filter is enable and in this situation MAC address is not match and not able to communicate. So in each module reset I have to follow above sequence two time to get connection with router.
Please let me know if you have some other solution.
Thanks in advance.Statistics: Posted by pranayjoshi — Mon Aug 21, 2017 5:38 pm
]]>