Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
Final version of articles
  • Loading branch information
kubascikmichal committed Dec 6, 2024
1 parent 46a7bc5 commit 6a4ab12
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion content/blog/esp-now-for-outdoor-applications/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Exploring wireless communication protocols on ESP32 platform for outdoor applications"
date: 2024-11-28T15:51:42+01:00
date: 2024-12-06
showAuthor: false # Hide default Espressif author
authors:
- "gancarcik-samuel"
Expand Down
Binary file not shown.
32 changes: 19 additions & 13 deletions content/blog/reliability-esp-now/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Data transmission reliability over ESP-NOW protocol in indoor enviroment"
date: 2024-11-05T20:56:03+01:00
title: "Data transmission reliability over ESP-NOW protocol in indoor environment"
date: 2024-12-06
showAuthor: false # Hide default Espressif author
authors:
- "kubascik-michal" # List your name(s)
Expand All @@ -14,26 +14,32 @@ tags:

## Introduction

Department of Technical Cybernetics of Faculty of Management Science and Informatics mainly focuses embedded systems and IoT networks, with implementing innovative approaches in such systems. Most of applications are powered by batteries, and require low power consumption and reliable traffic. Therefore, new wireless protocol ESP-NOW has become interesting field for implementation in IoT systems. Our testing mainly focuses on reliability of data transmission in indoor smart applications.
Department of technical cybernetics at the Faculty of Management Science and Informatics mainly focuses embedded systems and IoT networks, implementing innovative approaches in such systems. Most applications are powered by batteries, and require low power consumption and reliable data transmission. Therefore, the new wireless protocol ESP-NOW has become interesting for implementation in IoT systems. Our testing mainly focuses on reliability of data transmission in indoor smart applications.

## Smart applications

Generally smart application brings up interconnection of multiple sensors via wired or wireless connection. In basic concept, system consist of:
- measurement unit (microcontroller, microprocessor with sensors, etc.),
- processing unit (high performance microcontroller, single-board computer, cloud system, etc.)
- actuator unit (heating, cooling, watering, etc.).
Generally, smart application involves the interconnection of multiple sensors via wired or wireless connection. In basic concept, system consist of:
- __measurement unit__ - microcontroler, microprocessor with sensors, etc.,
- __processing unit__ - high performance microcontroler, single-board computer, cloud system, etc.,
- __actuator unit__ - for example heating, cooling, watering, etc.

By the most common smart appliances could be mentioned smart lightning, smart plugs, siol moisture monitoring, machine status monitoring or search and rescue systems.
By the most common smart appliances include smart lightning, smart plugs, siol moisture monitoring, machine status monitoring or search and rescue systems.

### Communication protocols

Communication protocols could be divided to two classes:
- __Wired Protocols:__ Mostly used between microcontrolers, microprocessors and sensors. Most common are UART, IIC, SPI, and in industrial appliances CAN.
- __Wireless Protocols:__ Commonly used between sensor nodes, or nodes and processing unit, cloud. Mostly used are Wi-Fi, Zigbee, Bluetooth or Bluetooth Low Energty, Matter, Thread or ESP-NOW. For data transmission over longer distances are implemented LoRa or GSM technologies.
- __Wireless Protocols:__ Commonly used between sensor nodes, or nodes and processing unit, cloud. Mostly used are Wi-Fi, Zigbee, Bluetooth or Bluetooth Low Energy, Matter, Thread or ESP-NOW. For data transmission over longer distances are implemented LoRa or GSM technologies.

## ESP-NOW vs. Wi-Fi

Both ESP-NOW and Wi-Fi are radio-frequency communication protocols.
Both ESP-NOW and Wi-Fi are radio-frequency communication protocols. There are several points to mention, in case of wireless protocol chose.

With Wi-Fi connection, ESP32-based device is able to communicate with various types of devices and systems in network. In case of speed, Wi-Fi can work up to 70Mbps, and Wi-Fi range is up to 30 meters. On the other hand, power consumption of Wi-Fi based device is relatively high.

Using ESP-NOW, we can achieve much lower power consumption (aprox. 100mA while device is transmiting). ESP-NOW range is much higher - up to 200 meters with low packet loss. Data transmit speed is lower - up to 250kbps. Also, by implementing ESP-NOW, communication is limited to modules by Espressif Systems.

ESP-NOW is therefore designed mainly for low power devices, IoT, and not for huge data transfer.

## Concept of data transmission and evaluation

Expand All @@ -50,14 +56,14 @@ Architecture of network is shown on following figure.
default=true
src="img/sensorNodes.webp"
>}}
Sensor nodes 1-8 are sending packets to central node over ESP-NOW. This device is recieving packets, and through UART sending to transmitter, connected to network over Wi-Fi. Data are consenquently sent to Thingspeak.
Sensor nodes 1-8 are sending packets to central node over ESP-NOW. This device is recieving packets, and through UART sending to transmitter, connected to network over Wi-Fi. Data are consequently sent to Thingspeak.


### Methods

Evaluation of packets received for period of time, with stable frequency of sending. Relative reliability is calculated as ratio of received packets to expected number packets. Relative packet loss is calculated as ratio of non-received packets to expected number packets.

Data has been sent to CU with period 250ms = 4 packets per second. Number of received packets is calculated for 30 seconds = 120 packets are expected with 0% packet loss.
Data were sent to CU with period 250ms = 4 packets per second. Number of received packets is calculated for 30 seconds = 120 packets are expected with 0% packet loss.

### Placement

Expand Down Expand Up @@ -89,7 +95,7 @@ Best success rate is defined as the lowest packet loss. It has been achieved bet

## Conclusion and recommendations

By our meaurements we assume taht 50% of nodes are reliable, and packet loss highly depends on structure of the building – number and structure of the walls between devices, percentage of open space. Future research will include analysis of signal over multiple floors. Furthermore, we need find place with lowest packet loss and changing power of signal on nodes to reduce power consumption of nodes.
By our measurements we assume that 50% of nodes are reliable, and packet loss highly depends on structure of the building – number and structure of the walls between devices, percentage of open space. Future research will include analysis of signal over multiple floors. Furthermore, we need find place with lowest packet loss and changing power of signal on nodes to reduce power consumption of nodes.

As a recommendation for new large smart indoor application based on ESP-NOW protocol, we suggest to divide building to segments with highest percentage of open space, and usage of multiple central units. Also, developers should implement sophisticated software control of packet delivery and solve the issue of non-delivery status.

Expand Down

0 comments on commit 6a4ab12

Please sign in to comment.