Random STAIP & changes STAMAC after module RESET
-
- Posts: 9
- 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.
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.
-
- Posts: 9
- 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.
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.
-
- Posts: 9
- 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.

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.

-
- Posts: 9
- Joined: Fri May 19, 2017 1:45 pm
Re: Random STAIP & changes STAMAC after module RESET
Postby pranayjoshi » Fri Oct 06, 2017 3:11 pm
This is resolved by adding "AT+RESTORE" command in starting of AT command sequence each time network configuration.
Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.