Why ESPNow is awesome - hint: ACKs & Retries!

  Переглядів 17,570

MrDIY

MrDIY

2 роки тому

Let's dig a bit deeper into ESPNow and explore unicast, broadcast and how they affect acknowledgements and retransmissions.
Get 10 PCBs for $5 USD at www.pcbway.com
Explore my sensors series - • My Ultra Low Power Wir...
GET THE WEMOS D1 MINI
==================================
╚═ Wemos d1 mini (4M version)
■ AliExpress - s.click.aliexpress.com/e/_AMoNNi
■ Amazon.com - amzn.to/35ii3tw
■ Amazon.ca - amzn.to/2ViSXcC
■ MrDIY store - store.mrdiy.ca/product/wemos-...
Music: www.bensound.com
DISCLAIMER: Some of the links found here may be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you to use my links/codes, it's just one more way to support me and my work. Much of the information contained is based on personal knowledge and experience. It is the responsibility of the viewer to independently verify all information.

КОМЕНТАРІ: 34
@Andrew-rc3vh
@Andrew-rc3vh 2 роки тому
This is a brilliant video. First of all it was entirely logical and straight forward and secondly it gave me all the information I needed to know, which is, as you say, not clear with many other discussions of the protocol. One other point worth mentioning is the protocol works in conjunction with standard WiFi, so it apparently does not cause frames to clash according to Espressif's Ivan Grokhotkov, (the person who wrote most of the code). In fact broadcast mode only transmitting the once is exactly what I need it to do. You can then be flexible and add your own network control. I need to synchronise clocks, so I need to know the precise time it takes.
@ingni123456
@ingni123456 2 роки тому
Great video, thank you for clearing up a few questions I had about ESPNow!
@ismzaxxon
@ismzaxxon 16 днів тому
The ACK packages are from other esp8266 devices. Home automation etc. I was using broadcast, however, so many people use that format, that i hade to include encoded security, to make sure my messages were only from my devices.
@SachinBhangale
@SachinBhangale 2 роки тому
Nicely explained, thanks for making video.
@Jim_One-wl4ke
@Jim_One-wl4ke 2 місяці тому
Thank you for sharing ❤
@innomkr
@innomkr Рік тому
Great video! You deserve way more subscribers!
@FrankGraffagnino
@FrankGraffagnino 2 роки тому
great video. really appreciate you setting up wireshark and showing the packets. thanks!
@MrDIYca
@MrDIYca 2 роки тому
Glad it was useful!
@Hennie588
@Hennie588 11 місяців тому
Thank you well explained
@gazzacroy
@gazzacroy 2 місяці тому
cool. very helpful :)
@YigalBZ
@YigalBZ Рік тому
Last question (for today): what batteries do you use? Sometimes a small size one is needed, sometimes lots of power is needed (like with motors). Do you charge while connected to the ESP? while in work? or only separated?
@5mxg
@5mxg 2 роки тому
Just a guess it can be to signal other wifi stations, that the channel is free to use now?
@YigalBZ
@YigalBZ Рік тому
Few more questions: on 4:35 you show a PCB with ESP32 on your own PCB design. So far I used the DEV-kits only, which are big and ugly, yet include the USB connection. Can you share the PCB design? How do you program it when needed? Do you solder the ESP32 yourself or do you order it with the PCB? (So far I use TH only with PCBs I made, perhaps it's time to move to SMT).
@kumarvivek5649
@kumarvivek5649 2 роки тому
For unicast packets, retransmissions are at 6mbps, 2 mpbs and 1 mbps -different data rates. All packets have the same sequence number and all but the first packet have retransmission flag set. Can't explain the mystery of ghost ACK packets. ? Broadcast packets being self ACK?
@MrDIYca
@MrDIYca 2 роки тому
That is very possible.
@mayankraichura
@mayankraichura 2 роки тому
@@MrDIYca I had the same idea. Because the broadcast is sent to all addresses (it does not exclude the address of the sender), the node sending the broadcast will receive one on itself and since this node is actually powered on, it will send an acknowledgement (not that the sender cares about it). Just an idea though.
@YigalBZ
@YigalBZ Рік тому
Great video! I have few questions, if I may. the 1st: Do you think I can start with a broadcast (send the xFF*), and then each slave alive will respond back with a pre-set package? So the master could collect all MAC IDs of the slaves. Then to change mode tp unicast? This way the system I try to design will not need to hard code the MAC IDs of the slaves, as they may change over system life time.
@Mr._Tony
@Mr._Tony Рік тому
Yes this setup would work
@dirkeisner4551
@dirkeisner4551 Рік тому
Hi, MrDIY excellent video I love your work very well explained. Would you be so kind explaining the following? In the broadcast mode, it is effectively firing, and forget, do the sender pair with the receiver? The reason I ask I would like to have many senders and this would mean I don't get to the maximum of 20 pairs. Thank You
@MrDIYca
@MrDIYca Рік тому
correct
@dirkeisner4551
@dirkeisner4551 Рік тому
Thank you for your quick response, do you know if there is some collision avoidance system in the ESPNow protocol, eg CDMA or listen before talking?
@dirkeisner4551
@dirkeisner4551 Рік тому
Hi MrDIY, thank you for your quick response, do you know if there is some collision avoidance system in the ESPNow protocol, eg CDMA or listen before talking?
@veitklub
@veitklub 10 місяців тому
did you find an answer for that?
@italorosse
@italorosse 2 роки тому
Hi, I've tried to replicate the Wireshark capture but nothing was captured! Any leads? Thanks for the great video!
@MrDIYca
@MrDIYca 2 роки тому
Try putting your card into 'monitoring mode'. Google it for your wifi card and OS.
@tagalogelectronics6615
@tagalogelectronics6615 2 роки тому
nice....😄
@5mxg
@5mxg 2 роки тому
Did you manage to get secure transmission setup, but to discard (or even differentiate) unsecured packets received? as far as I tested the encryption works (wireshark shows data as encrypted mambojambo), but still it is possible to send unencrypted packets and receiver also shows them with no difference, and I found no way to eliminate this issue
@MrDIYca
@MrDIYca 2 роки тому
No, I haven't tried encryption but I will keep this in mind. Thanks.
@hansroemerszoonvanderbrikk7626
@hansroemerszoonvanderbrikk7626 Рік тому
Can you exclude there's no other esp-now device within range? As far as it seems the protocol is embedded in many devices. Self ack it's kinda dumb behavior ...but still possible
@tvm73836
@tvm73836 3 місяці тому
“Self ack” 😂. I had the exact same thought but was too embarrassed to put it in a comment, and then I saw yours!!
@hansroemerszoonvanderbrikk7626
@hansroemerszoonvanderbrikk7626 3 місяці тому
@@tvm73836I admit I was just asking since I've no experience into ESP-NOW protocol, but it still remains something strange to investigate
@murraymadness4674
@murraymadness4674 Місяць тому
Thanks. Do you know how I can change the channels? I have yet to see an example where anyone does this, every video just uses the example code. I need to make sure I have different channels. thanks
@mrj2848
@mrj2848 Рік тому
espnow is short range....not longer that the esp in AP mode. Don't get fooled into all these videos claiming long range.
@MrDIYca
@MrDIYca Рік тому
True. I see videos calming KMs of range. I am lucky if I get coverage in the basement.
#223 ESP-NOW simple demo - easy IOT data transfer on ESP32 or ESP8266
21:32
CAN Gateway: Monitoring Cars Wirelessly!
8:02
MrDIY
Переглядів 117 тис.
How to get a FREE HYPERCHARGE SKIN!
02:07
Brawl Stars
Переглядів 13 млн
Level 1 to 100 Mystery Buttons
00:46
A4
Переглядів 3,3 млн
Best power saving mode - Much Deeper Deep Sleep ESP8266
10:30
DIY TECH BROS
Переглядів 94 тис.
Which ESP32 is Best for Your Project?
11:12
Predictable Designs
Переглядів 15 тис.
ESP8266 ESP-NOW
12:35
Alex Morozov
Переглядів 9 тис.
#291 External antennas and ESP32 Long-Range mode
13:57
Andreas Spiess
Переглядів 212 тис.
ESP32 C6 Review - RISC-V SoC with Thread & Zigbee Support!
19:12
Learn Embedded Systems
Переглядів 101 тис.
Master ESP-NOW: Easy ESP32 Broadcast & P2P Communication Explained
10:34
What Is ESP Wi-Fi MESH? (2021) | Learn Technology in 5 Minutes
5:19
Такого вы точно не видели #SonyEricsson #MPF10 #K700
0:19
BenJi Mobile Channel
Переглядів 1,1 млн
Компьютер подписчику
0:40
Miracle
Переглядів 183 тис.
GitHub Copilot just got promoted to Captain
4:01
Fireship
Переглядів 110 тис.