ESP NOW Broadcast Data Rate

Sondos
Posts: 2
Joined: Fri Oct 11, 2024 8:06 am

ESP NOW Broadcast Data Rate

Postby Sondos » Fri Oct 11, 2024 8:20 am

Hello everyone,

I am using ESP NOW to broadcast a message of 30 bytes to multiple devices. The data Rate needed is 2Mbps and the frequency of the messages is 5kHz ( a message is transmitted and received every 200Mircosecond). The transmitter is functioning well and capable of transmitting the data every 200 Microseconds. My problem is the receiver can't go along with the transmitter so the maximum capability I reached is that it can receive a message every 880Microsecond. The problem is my project's success depends on receiving the message every 200 Microsecond. Are there any ideas how can I achieve this high rate? also I need my project to be wireless so that's why Im not using wired option though it is faster and more secure. Thanks in advance.

MicroController
Posts: 1748
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP NOW Broadcast Data Rate

Postby MicroController » Sat Oct 12, 2024 2:16 pm

Sondos wrote:
Fri Oct 11, 2024 8:20 am
The transmitter is functioning well and capable of transmitting the data every 200 Microseconds.
Are you sure about that? Seems like a timing constraint quite a tight to meet. May the transmitter aready be dropping packets?

Sondos
Posts: 2
Joined: Fri Oct 11, 2024 8:06 am

Re: ESP NOW Broadcast Data Rate

Postby Sondos » Mon Oct 21, 2024 8:11 am

Yes I am sure. I even tested using oscilloscope.

MicroController
Posts: 1748
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP NOW Broadcast Data Rate

Postby MicroController » Thu Oct 24, 2024 8:51 am

To be sure, you get an esp_now_send_cb callback with ESP_NOW_SEND_SUCCESS every 200us?

aliarifat794
Posts: 200
Joined: Sun Jun 23, 2024 6:18 pm

Re: ESP NOW Broadcast Data Rate

Postby aliarifat794 » Tue Oct 29, 2024 4:14 pm

ESP-NOW allows rapid transmissions, without built-in acknowledgments. Some messages may be missed. Instead of broadcasting every 200 µs, consider slowing the broadcast to around 300-400 µs. It will be better to add an acknowledgement system. If you need more detailed info about ESP-NOW, please see here: https://www.theengineeringprojects.com/ ... p8266.html

Who is online

Users browsing this forum: No registered users and 60 guests