espnow again

32

Upload: nat-weerawan

Post on 22-Jan-2018

30 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: ESPNow Again
Page 2: ESPNow Again

ESP-Now

Page 3: ESPNow Again

ESP-NowESP-Now is another protocol developed by Espressif, which enables multiple devices to communicate without using Wi-Fi. The protocol is akin to the low power 2.4GHz wireless connectivity that is often deployed in wireless mice — the pairing between devices is needed prior to the communication. After the pairing is done, the connection is persistent, peer-to-peer, and no handshake is required.

Page 4: ESPNow Again

OverviewESP-NOW is a fast, connectionless communication technology featuring short packet transmission. ESP-NOW is ideal for smart lights, remote control devices, sensors and other applications.

ESP-NOW applies the IEEE802.11 Action Vendor frame technology, along with the IE function developed by Espressif, and CCMP encryption technology, realizing a secure, connectionless communication solution.

Page 5: ESPNow Again

Features • Encrypted and unencrypted unicast communication. • Mixed encrypted and unencrypted peer devices. • Up to 250-byte payload can be carried. • The sending callback function that can be set to inform the application layer of transmission success or failure.

Page 6: ESPNow Again

Limitations • Broadcast is not supported. • Limited encrypted peers. 10 encrypted peers at the most are supported in Station mode; 6 at the most in SoftAP or SoftAP + Station mode. Multiple unencrypted peers are supported, however, their total number should be less than 20, including encrypted peers. • Payload is limited to 250 bytes.

Page 7: ESPNow Again

* esp_now_get_peer_role * esp_now_set_peer_key* esp_now_get_peer_key* esp_now_set_peer_channel * esp_now_get_peer_channel * esp_now_is_peer_exist* esp_now_fetch_peer * esp_now_get_cnt_info* esp_now_set_kok

APIs* esp_now_init * esp_now_deinit * esp_now_register_recv_cb* esp_now_unregister_recv_cb * esp_now_register_send_cb * esp_now_unregister_send_cb * esp_now_send * esp_now_add_peer* esp_now_del_peer * esp_now_set_self_role* esp_now_get_self_role

Page 8: ESPNow Again
Page 9: ESPNow Again

code - http://github.com/cmmakerclub/espnow article - http://bit.ly/c-espnow

Slides

Page 11: ESPNow Again
Page 12: ESPNow Again
Page 13: ESPNow Again
Page 14: ESPNow Again
Page 15: ESPNow Again
Page 16: ESPNow Again
Page 17: ESPNow Again
Page 18: ESPNow Again
Page 19: ESPNow Again
Page 20: ESPNow Again
Page 21: ESPNow Again
Page 22: ESPNow Again
Page 23: ESPNow Again
Page 24: ESPNow Again
Page 25: ESPNow Again
Page 26: ESPNow Again
Page 27: ESPNow Again
Page 28: ESPNow Again
Page 29: ESPNow Again
Page 30: ESPNow Again
Page 31: ESPNow Again

Controller

{0x5C,0xCF,0x7F,0xD8,0x54,0x20};

Page 32: ESPNow Again

Get your hands dirty!

bit.ly/cmmc-espnow2