[riot-notifications] [RIOT-OS/RIOT] esp8266: esp_wifi netdev driver (#10792)

Gunar Schorcht notifications at github.com
Wed Jan 16 20:07:01 CET 2019

### Contribution description

This PR adds a `netdev` driver for infrastructure mode WiFi for ESP8266 using the built-in WiFi module. Using this `netdev` driver, ESP8266 can use an existing WiFi network to get connectivity. The `netdev` driver supports WPA2 authentication only.

The Wifi network interface (module `esp_wifi`) and the ESP-NOW network interface (module `esp_now`)
can be used simultaneously, for example, to realize a border router for a mesh network which uses ESP-NOW.

### Testing procedure

- Compile and flash `example/gnrc_networking` to at least one ESP8266 node using your AP configuration, e.g.,
    CFLAGS='-DCONFIG_WIFI_STA_SSID=\"<your SSID>\" -DCONFIG_WIFI_STA_PASSWORD=\"your passphrase\"' USEMODULE="esp_wifi" make BOARD=esp8266-esp-12x -C examples/gnrc_networking flash
- Once the application is flashed connect the ESP32 node with any terminal programm with a default baudrate of 115.200 bps.
- Use `ifconfig` command to check the existence of the network interface. You should be able to observe an output as follows:
   Iface  7  HWaddr: 5C:CF:7F:80:3F:08  Link: up 
          MTU:1500  HL:64  RTR  
          Source address length: 6
          Link type: wireless
          inet6 addr: fe80::5ecf:7fff:fe80:3f08  scope: local  VAL
          inet6 group: ff02::2
          inet6 group: ff02::1
          inet6 group: ff02::1:ff80:3f08
          inet6 group: ff02::1a
          Statistics for Layer 2
            RX packets 12  bytes 2698
            TX packets 1 (Multicast: 1)  bytes 0
            TX succeeded 0 errors 0
          Statistics for IPv6
            RX packets 0  bytes 0
            TX packets 1 (Multicast: 1)  bytes 64
            TX succeeded 1 errors 0
- Ping any host in your LAN.
- If your router provides a global routing prefix, check with `ifconfig` that the prefix is set.

### Issues/PRs references

This PR depends on PRs #10656 and #10766.

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * cpu/esp8266: add built-in WiFi netdev driver
  * cpu/esp8266: stack sizes tuned for esp_wifi
  * cpu/esp8266: makefile support for esp_wifi

-- File Changes --

    M cpu/esp8266/Makefile (4)
    M cpu/esp8266/Makefile.dep (16)
    M cpu/esp8266/Makefile.include (16)
    A cpu/esp8266/esp-wifi/Makefile (3)
    A cpu/esp8266/esp-wifi/doc.txt (40)
    A cpu/esp8266/esp-wifi/esp_wifi_netdev.c (510)
    A cpu/esp8266/esp-wifi/esp_wifi_netdev.h (51)
    A cpu/esp8266/esp-wifi/esp_wifi_params.h (69)
    M cpu/esp8266/include/cpu_conf.h (58)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190116/4250138a/attachment.html>

More information about the notifications mailing list