ESP8266 Developer Zone The Official ESP8266 Forum 2016-01-11T09:07:15+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=333 2016-01-11T09:07:15+08:00 2016-01-11T09:07:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=5324#p5324 <![CDATA[Re: Multiple issues with wireless connectivity]]> After a couple of tries (ARP requests MAC to given IP), some number of requests, from 0 to 20, finally ESP answers with its MAC address.

Some seconds after ESP connects to the local network it answers to all ARP requests correctly.
Some minutes after it will start failing.

I am compiling my code in SDK 1.5.0.
Is there any possibility that Espressif will open the sources of ARP related code or release a patch to fix that?

Thanks and regards.

Statistics: Posted by LTeixeira — Mon Jan 11, 2016 9:07 am


]]>
2015-06-11T02:12:53+08:00 2015-06-11T02:12:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=2173#p2173 <![CDATA[Re: Multiple issues with wireless connectivity]]>
- Station A is asking for MAC address of destination IP but no answer is coming from ESP8266 module.
- Station B joins, then ESP8266 answers ARP requests satisfactory.
- Station A now gets its ARP request as well.

Hope this helps solve the issue soon.

Greetings,


Horacio

Statistics: Posted by hdrut — Thu Jun 11, 2015 2:12 am


]]>
2015-06-08T15:40:54+08:00 2015-06-08T15:40:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=2096#p2096 <![CDATA[Re: Multiple issues with wireless connectivity]]>
Some time ago I ran into similar problems with multicast, the ESP would sometimes not respond to IGMP Membership Queries. I've worked around that by just repeating IGMP Join messages every couple of seconds (as well as repeating ARP broadcast every few seconds).

That was on sdk 0.9.5, I haven't tested the later releases, but if the ARP problem still exist it may be worth testing multicast as well. Sorry for not being more specific but I guess it's related because the IGMP query is a broadcast packet as well.

Statistics: Posted by joostn — Mon Jun 08, 2015 3:40 pm


]]>
2015-06-08T11:08:00+08:00 2015-06-08T11:08:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=2088#p2088 <![CDATA[Re: Multiple issues with wireless connectivity]]>
Sorry for the inconvenience.

Your problem is a known issue, we are working on it .

Thanks for your kindly reporting, we will let you know if there is any updates.

Statistics: Posted by ESP_Faye — Mon Jun 08, 2015 11:08 am


]]>
2015-06-08T10:12:39+08:00 2015-06-08T10:12:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=2083#p2083 <![CDATA[Re: Multiple issues with wireless connectivity]]>
I am having ARP problems too. ESP seems to stop responding to ARP requests sometimes. No trouble connecting to WIFI, just problems when sending ARP broadcast requests.


Any solutions already? Thanks !!

Statistics: Posted by hdrut — Mon Jun 08, 2015 10:12 am


]]>
2015-04-15T09:39:56+08:00 2015-04-15T09:39:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1327#p1327 <![CDATA[Re: Multiple issues with wireless connectivity]]>
So sorry for the inconvenience.

We want to know the problem of failed connection(auth/assoc resp failed), rather than something about ARP reference.
The failed connection may cause arp problem, but I'm not sure yet.
Sometimes, failure of some frames exchange may change the program flow, and may consequently cause arp problem.
Let's make sure that the failed connection is the root cause of all the problem. If it is not, than look for other reasons.
So,
1. Please offer the 802.11 caps(I need wireless pkts, not ethernet pkts), we need to determine if the auth/assoc req package send out successfully or not.
2. What's the sdk version of your ES8266 module ?

Statistics: Posted by ESP_Faye — Wed Apr 15, 2015 9:39 am


]]>
2015-04-13T06:23:37+08:00 2015-04-13T06:23:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1299#p1299 <![CDATA[Re: Multiple issues with wireless connectivity]]> The issue is still present.

Statistics: Posted by DarkSide — Mon Apr 13, 2015 6:23 am


]]>
2015-04-09T21:03:05+08:00 2015-04-09T21:03:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1271#p1271 <![CDATA[Re: Multiple issues with wireless connectivity]]>
Espressif_Faye wrote:
Hi,

What kinds of hardware module board are you using ? such as AITHINK ESP-01

Could you offer the captured packets of 80211 wireless (NOT wire) ?

Thanks for the help.


I'm using Aithinker ESP-01.
In previously attached archive "pcap.zip" you will find file "gateway_ap.pcap" - this is a packet capture directly from access point. Is that what you need? Otherwise it's not clear to me what exactly you want me to capture? Or you want me to capture packets with airodump-ng?

Statistics: Posted by DarkSide — Thu Apr 09, 2015 9:03 pm


]]>
2015-04-09T20:20:14+08:00 2015-04-09T20:20:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1269#p1269 <![CDATA[Re: Multiple issues with wireless connectivity]]>
What kinds of hardware module board are you using ? such as AITHINK ESP-01

Could you offer the captured packets of 80211 wireless (NOT wire) ?

Thanks for the help.

Statistics: Posted by ESP_Faye — Thu Apr 09, 2015 8:20 pm


]]>
2015-04-09T05:07:00+08:00 2015-04-09T05:07:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1267#p1267 <![CDATA[Re: Multiple issues with wireless connectivity]]>
tve wrote:
The fact that you only capture ARP packets makes it difficult to tell what's going on. Would be better to also capture any packets to/from the esp's mac address. As-is, one can't tell when pings succeed (nor why), 'cause there is no ARP response for .3 visible anywhere.

Here is all packets. In attached zip file you will find 2 files: one if from client PC on the network from which I'm pinging ESP, and the second one is a tcpdump from gateway server (Access point).
The 192.168.0.10 is PC from which I pinging ESP and the 192.168.0.3 is an ESP itself. 192.168.0.1 is an AP.
pcap.zip

Statistics: Posted by DarkSide — Thu Apr 09, 2015 5:07 am


]]>
2015-04-09T04:30:32+08:00 2015-04-09T04:30:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1266#p1266 <![CDATA[Re: Multiple issues with wireless connectivity]]>
DarkSide wrote:
It's very strange I can't reproduce problem with "esp not connecting to wifi" anymore (the problem with ARP still persist). I will investigate further and will let you know.

At last I was able to reproduce this. In attached hostapd.original.log file (hostapd version 2.4 compiled from sources without my patch to skip invalid associations requests) you will find two MACs: 18:fe:34:9f:1f:57 and 18:fe:34:9d:e7:97.
Those two MACs are two ESP8266 that I have. Both of them have identical firmware (based on SDK 1.0.0) and work in 802.11n STA-only mode. The first one (18:fe:34:9f:1f:57) is connecting to AP, while the other one (18:fe:34:9d:e7:97) does not.
The reason because first ESP is connecting to AP while second is not is unknown to me. The only thing in my mind is that I was able to connect it to AP while using patched hostapd (maybe something was cached on the system level, this is mystique for me). But actually we have a situation when newly flashed ESP8266 is not connecting to AP (I was not experimenting with 18:fe:34:9d:e7:97 before, it was "virgin").
hostapd.original.log.zip

Statistics: Posted by DarkSide — Thu Apr 09, 2015 4:30 am


]]>
2015-04-09T03:16:18+08:00 2015-04-09T03:16:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1265#p1265 <![CDATA[Re: Multiple issues with wireless connectivity]]> Statistics: Posted by tve — Thu Apr 09, 2015 3:16 am


]]>
2015-04-08T22:05:47+08:00 2015-04-08T22:05:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1261#p1261 <![CDATA[Re: Multiple issues with wireless connectivity]]> Some details about my actions and captured packets:
1) packets 1 - 4: ESP powered on and connected to wifi
2) wait for about a minute
3) packets 10 - 62: I start pinging ESP host (ESP was replied after 47 seconds)
4) stop ping and wait again for some time (2 mins)
5) packets 79 - 114: start pinging ESP host again (ESP was replied after 32 seconds)
esp8266_arp.zip

Statistics: Posted by DarkSide — Wed Apr 08, 2015 10:05 pm


]]>
2015-04-08T21:45:23+08:00 2015-04-08T21:45:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1260#p1260 <![CDATA[Re: Multiple issues with wireless connectivity]]> Statistics: Posted by DarkSide — Wed Apr 08, 2015 9:45 pm


]]>
2015-04-08T18:28:45+08:00 2015-04-08T18:28:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1259#p1259 <![CDATA[Re: Multiple issues with wireless connectivity]]>
Espressif_Faye wrote:
Hi,

Could you capture packets with omnipeek or wireshark,and offer us the captured logs for debugging?

And could you offer the configuration file of hostapd.conf and the hostapd log ?

Thanks for your interest in ESP8266 !

You can find hostapd configuration in attachment to previous reply - "hostapd_config_files.zip".
What do you exacly need to be captured by pcap? ARP requests by ESP8266 or all packets or....?

I will run hostapd with "-dd" key a bit later and will provide you full log.

Statistics: Posted by DarkSide — Wed Apr 08, 2015 6:28 pm


]]>
2015-04-08T11:53:09+08:00 2015-04-08T11:53:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1256#p1256 <![CDATA[Re: Multiple issues with wireless connectivity]]>
Could you capture packets with omnipeek or wireshark,and offer us the captured logs for debugging?

And could you offer the configuration file of hostapd.conf and the hostapd log ?

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Wed Apr 08, 2015 11:53 am


]]>
2015-04-07T19:28:47+08:00 2015-04-07T19:28:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1248#p1248 <![CDATA[Re: Multiple issues with wireless connectivity]]> hostapd v2.4 (latest stable) is build from source with .config file (in attachment) and run with next hostapd.conf (in attachment)

Wireless card is (from lshw output):

Code:

description: Wireless interface
product: AR922X Wireless Network Adapter
vendor: Qualcomm Atheros


Similar topics on other forums:
http://www.esp8266.com/viewtopic.php?f=6&t=1633 (related to ARP issues)
http://www.esp8266.com/viewtopic.php?f=6&t=511 (related to ARP issues)
http://www.esp8266.com/viewtopic.php?f=6&t=1766 (related to "IEEE 802.11: did not acknowledge association response")

ESP is running SDK v1.0.0 (also have tried actual version of RTOS SDK v0.9.9).
hostapd_config_files.zip

Statistics: Posted by DarkSide — Tue Apr 07, 2015 7:28 pm


]]>
2015-04-07T22:35:04+08:00 2015-04-07T19:15:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=333&p=1247#p1247 <![CDATA[Multiple issues with wireless connectivity]]>
I have next network infrastructure:
- Gateway server (ubuntu 12.04.5 x86 + hostapd ath9k based AP 300mbit)
- 1 wired client
- 5 wireless clients
All connected wireless clients are in 802.11n mode and work stable (connectivity is robust and stable).

Now i'm trying to connect ESP8266 to my AP.
The first problem I have faced is that I just can't connect ESP to my AP because of failed association and then authentication (log from hostapd):

Code:

IEEE 802.11: did not acknowledge association response
IEEE 802.11: did not acknowledge authentication response

The problem here is that STA unable to ack several frames, but the hostapd needs them to be acked. As a workaround I have patched hostapd to ignore those frames. ESP now able to connect to my network.

Next problem that I have faced is that ESP8266 became unaccessible from other machines in my network after about of 10 seconds. My investigation resulted in that the ESP get removed from the ARP cache of machine from which you try to access it. This leads to next situation: after ESP connect to AP and got IP it can be accessible from any machine on the network for about of 10 seconds. If you not access ESP in that period it became inaccessible. I have found 2 workarounds for this:
1) assign static IP to ESP and infinitelly ping it
2) assign static IP to ESP and add static ARP record

The question: is there any straight solution to solve those two issues?
It's impossible to use ESP in any wireless projects with those "baby diseases".

Statistics: Posted by DarkSide — Tue Apr 07, 2015 7:15 pm


]]>