ESP-NOW is a connection-less wireless communication protocol by Espressif, a company that developed the popular Wi-Fi development boards ESP8266 and ESP32. This low-power 2.4 GHz wireless communication protocol allows two paired ESP boards to communicate without a router or Wi-Fi. ESP-NOW communicates in small packets of data within a few hundred meters. This connection remains safe and peer-to-peer, so if the boards are reset, they simply reconnect.
ESP boards communicate in unidirectional or bidirectional ways by using ESP-NOW. The protocol allows a payload with a maximum capacity of 250 bytes, supporting function verification of the success or failure of packet delivery. The data packets can be encrypted for enhanced security.
Interestingly, the protocol also allows communication of data packets among a network consisting of encrypted and unencrypted devices. The data packets are communicated on a one-to-one basis, so directly between two devices.
The typical range of ESP-NOW with minimal interference and standard antennas is 220 meters. But, in most real-world situations, the range is limited to 50~100 meters because of walls or other obstacles. The protocol features a long-range mode in which, at the expense of the data rate, the range can be extended up to 1 km.
Practically, up to 20 unencrypted peer devices can communicate with one another using ESP-NOW. If encryption is used, up to 10 devices can communicate in station mode, and up to six devices can communicate in SoftAP mode. This protocol is supported by the ESP8266, ESP32, ESP32-C, and ESP32-S series of Espressifs microcontrollers.
Advantages
ESP-NOW is a versatile protocol that allows ESP boards to communicate without a router or Wi-Fi gateway. The devices are configured to send and receive data, enabling them to communicate bi-directionally.
The protocol’s ultra-low power consumption is a significant advantage, allowing an ESP board to operate for years on a coin cell when communicating with other devices using ESP-NOW — provided it spends most of its time in sleep mode. In addition to WIFI boards, the protocol is supported by several automation products from Espressif, including smart lights, switches, and various smart appliances.
Devices that communicate through ESP-NOW can simultaneously communicate via Wi-Fi or Bluetooth using a mobile app. As the protocol is designed to transmit small packets of data at a high speed, it takes a few milliseconds for devices to exchange critical messages effectively. Multiple network topologies are supported, including one-to-one, one-to-many, and many-to-many. With support to multiple topologies, it becomes straightforward to fabricate an IoT network using ESP-NOW, which is helpful in automation and mesh networking applications.
Limitations
Similar to other protocols, ESP-NOW does have limitations. For example, only a few devices can be paired using the protocol and they must be within a few meters — the typical range is 220 meters, which is limited to 50~100 meters due to obstacles). Granted, this range can be extended by using long-range mode but only at the expense of the data rate.
The protocol can also only communicate short messages that may be used to remotely control devices or transmit sensor data to an ESP web server.
An IoT network
ESP-NOW supports multiple network topologies — one-to-one, one-to-many, and many-to-many. A device can send and receive messages with another paired device, communicating bidirectionally. The simplest ESP-NOW network is one where a transmitter is paired with a receiver.
AN ESP-NOW network configuration is useful for remote controlling devices, such as in a home automation application. It’s also possible that one device receives data and multiple devices send data to it. This is useful in designing a wireless sensor network where multiple sensors communicate data to an ESP web server. Two devices can also have peer-to-peer bidirectional communication.
Another possibility is to design a mesh network of devices using ESP-NOW, where multiple devices are paired.
Overall, ESP-NOW is a powerful tool for creating efficient, low-power IoT networks without the need for traditional Wi-Fi infrastructure, making it ideal for home automation and sensor networks. Despite its range and message size limitations, its versatility, energy efficiency, and ability to work alongside Wi-Fi and Bluetooth make it a valuable option for various applications.
You may also like:
Filed Under: Tech Articles
Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.
Tell Us What You Think!!
You must be logged in to post a comment.