Random STAIP & changes STAMAC after module RESET

pranayjoshi
Posts: 8
Joined: Fri May 19, 2017 1:45 pm

Random STAIP & changes STAMAC after module RESET

Postby pranayjoshi » Mon Aug 21, 2017 5:38 pm

I am using ESP8266-12E with firmware updated to AT version:1.4.0.0(May 5 2017 16:10:59) & SDK version:2.1.0(116b762).

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.

Her Majesty
Posts: 155
Joined: Mon Oct 27, 2014 11:09 am

Re: Random STAIP & changes STAMAC after module RESET

Postby Her Majesty » Tue Aug 22, 2017 10:36 am

Maybe "AT+RESTORE" to restore it, and then try it again.

pranayjoshi
Posts: 8
Joined: Fri May 19, 2017 1:45 pm

Re: Random STAIP & changes STAMAC after module RESET

Postby pranayjoshi » Tue Aug 22, 2017 6:13 pm

Try AT+RESET but not worked.

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.

pranayjoshi
Posts: 8
Joined: Fri May 19, 2017 1:45 pm

Re: Random STAIP & changes STAMAC after module RESET

Postby pranayjoshi » Wed Aug 23, 2017 2:47 pm

Anyone have some solution for this. :?

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

Who is online

Users browsing this forum: No registered users and 1 guest