Hello,
I am working on a project that uses several ESP32, which communicate with each other over ESP_NOW.
They are logically split in 2 groups, master and simple nodes. Initially nodes use broadcast to discover masters, and as masters respond, the node can save their mac addresses, and continue communication using unicast.
In some cases, I need to have a node multi-cast a message that only masters should receive.
I am not very sure if and how esp_now supports multicast, so I will explain briefly my approach, and wait for comments.
All master nodes at startup have their factory assigned mac changed to a locally assigned mac, and they all get the same second octet set to 0x2F. I also set second LSB of first octet to make the mac address LLA.
The simple nodes always use their factory assigned mac.
When a node wants to multicast, it uses this hard-coded mac as destination mac: ff::2f::ff::ff::ff::ff.
My assumption is that all devices that receive this need to have a second octet matching 0x2F to accept it.
At the moment it seems like all devices receive it regardless of second octet value.
My guess is that since the broadcast bit is set in this mac, the rest is ignored, and no filtering happens, the message is accepted by all. Correct? and if so, is there a way to created a multicast mask / group on esp_now?
Thank you
Alex
ESP_NOW Multi-casting
-
- Posts: 12
- Joined: Sat Mar 03, 2018 12:33 pm
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 83 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.