[riot-notifications] [RIOT-OS/RIOT] cpu/esp8266: Improvements to the esp_wifi netdev driver (#10862)

Gunar Schorcht notifications at github.com
Sat Jan 26 18:19:19 CET 2019


@smIng @MichelRottleuthner After further intensive investigation and a lot of things I have tried to solve the issues described in #10861, I have finally a version of `esp_wifi` which is much faster than the `master` version and seems to solve the problem of blockage. With this version, I could:

- Ping from the esp8266 node any node in the LAN with
   ```
   esp8266> ping6 10000 fe80::345b:6598:1369:5bf4 1392 0
   ```
   with a loss rate of 1 %.

- Ping the esp8266 node from 2 terminals
   ```
   term1> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Ieth0 -s1392 -i 0
   term2> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Ieth0 -s1392 -i 0
   ```
   with a loss rate of 0 %.

- Ping the esp8266 node from 5 terminals and vise versa
   ```
   term1> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Ieth0 -s1392 -i 0
   term2> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Ieth0 -s1392 -i 0
   term3> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Ieth0 -s1392 -i 0
   term4> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Ieth0 -s1392 -i 0
   term5> sudo ping6 fe80::5ecf:7fff:fe80:3f08 -Ieth0 -s1392 -i 0
   esp8266> ping6 10000 fe80::345b:6598:1369:5bf4 1392 0
   ```
   was working stable for several hours.

PR #10869 solved the promlems of sporadic crashes. The only problem that can't be solved from the today's perspective is the connecting/reconnecting problem while excessive traffic is sent to the esp8266. sp8266 has too low a performance to handle such a large amount of messages while connecting, see peterhinch/micropython-mqtt#3 (comment).

>From my point of view, this PR provides a version that is much more stable and much faster than the `master` version. Therefore, I urgently recommend to merge it as a fix and to backport it to the `2019.01` branch. I think it is better to backport it to `2019.01` than to have a released version which is not satisfying the the users.

One little problem, you will see an repetitive error message like `E:M 1576`. This comes from the firmware of the WiFi interface when the packet buffer is exhausted. There is unfortunately now way to suppress this message :worried: But this shouldn't hinder us to use this stable version of `esp_wifi`

-- 
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-457848465
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190126/b1d8393d/attachment-0001.html>


More information about the notifications mailing list