ESP8266 Developer Zone The Official ESP8266 Forum 2017-10-06T15:11:43+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=6034 2017-10-06T15:11:43+08:00 2017-10-06T15:11:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6034&p=16205#p16205 <![CDATA[Re: Random STAIP & changes STAMAC after module RESET]]> Statistics: Posted by pranayjoshi — Fri Oct 06, 2017 3:11 pm


]]>
2017-08-23T14:47:56+08:00 2017-08-23T14:47:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6034&p=15287#p15287 <![CDATA[Re: Random STAIP & changes STAMAC after module RESET]]>

Not able to get actual Station Mode MAC Address(STAMAC) after RESET WIFI Module(ESP8266-12E).
After RESET module and configure for station mode got +CIPSTAMAC:"00:00:00:00:6c:6f" this MAC address. :o

Statistics: Posted by pranayjoshi — Wed Aug 23, 2017 2:47 pm


]]>
2017-08-22T18:13:13+08:00 2017-08-22T18:13:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6034&p=15273#p15273 <![CDATA[Re: Random STAIP & changes STAMAC after module RESET]]>
Still not get actual MAC address in first AT command sequence(1-9 show in the above post) only got after second attempt of all AT command sequence.

Statistics: Posted by pranayjoshi — Tue Aug 22, 2017 6:13 pm


]]>
2017-08-22T10:36:33+08:00 2017-08-22T10:36:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6034&p=15267#p15267 <![CDATA[Re: Random STAIP & changes STAMAC after module RESET]]> Statistics: Posted by Her Mary — Tue Aug 22, 2017 10:36 am


]]>
2017-08-21T17:38:55+08:00 2017-08-21T17:38:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6034&p=15255#p15255 <![CDATA[Random STAIP & changes STAMAC after module RESET]]>
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


]]>