[riot-notifications] [RIOT-OS/RIOT] cpu/esp8266: Fixes and improvements of esp_wifi netdev driver (#10862)

Gunar Schorcht notifications at github.com
Tue Jan 29 23:38:53 CET 2019


> I can trigger this with even with only a single instance pinging the ESP
i.e. a full run of `sudo ping -6 -I br0 <espLLADDR> -s1452 -i 0 -c 100000` never completes successfully on my setup.

Strange, I have tried with `hostapd` too. Mine is even faster, with `sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Iap0 -s1452 -c100000` but it doesn't fail:
```
--- fe80::5ecf:7fff:fe80:3f08 ping statistics ---
100000 packets transmitted, 100000 received, 0% packet loss, time 284680ms
rtt min/avg/max/mdev = 2.479/2.732/18.899/0.262 ms, pipe 2, ipg/ewma 2.846/2.718 ms
```
Even more, I can run it for two pings in parallel:
```
term1> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Iap0 -s1452 -i0 -c100000
--- fe80::5ecf:7fff:fe80:3f08 ping statistics ---
100000 packets transmitted, 97837 received, 2% packet loss, time 416489ms
rtt min/avg/max/mdev = 2.329/3.815/17.467/0.478 ms, pipe 2, ipg/ewma 4.164/3.957 ms

term2> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Iap0 -s1452 -i0 -c100000
--- fe80::5ecf:7fff:fe80:3f08 ping statistics ---
100000 packets transmitted, 97872 received, 2% packet loss, time 415960ms
rtt min/avg/max/mdev = 2.345/3.815/15.834/0.481 ms, pipe 2, ipg/ewma 4.159/2.671 ms
```
I have added an additional heap check before it tries to allocate `lwIP` packet buffer even though the memory is already exhausted. This might solve your problem. In any case, it solves the problem with `E:M xxx` messages.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10862#issuecomment-458736014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190129/bdde04fe/attachment-0001.html>


More information about the notifications mailing list