ESP-Now support for ESP32 (and ESP8266)
Re: ESP-Now support for ESP32 (and ESP8266)
Hi napo7,
Thanks for the explanation. I am guessing that to achieve receive and transmit on the same WiFi channel (or frequency) on a WiFi device requires demodulation to baseband, re-modulation to RF and in different time slots. I'll hit Google as my signal processing experience is lacking.
As, I don't need simultaneous ESP-Now and WiFi I have built a test system that runs ESP-Now most of the time, ie 99.9% and then when I need the WiFi I shut ESP-Now down and fire-up WiFi.
Thanks for the explanation. I am guessing that to achieve receive and transmit on the same WiFi channel (or frequency) on a WiFi device requires demodulation to baseband, re-modulation to RF and in different time slots. I'll hit Google as my signal processing experience is lacking.
As, I don't need simultaneous ESP-Now and WiFi I have built a test system that runs ESP-Now most of the time, ie 99.9% and then when I need the WiFi I shut ESP-Now down and fire-up WiFi.
Re: ESP-Now support for ESP32 (and ESP8266)
Just a quick heads-up: I heard on the recent Hackaday podcast that there was a robotics effort that used a PC to do all the processing and ESP-NOW to communicate to the robot.
The interesting part is that I wasn't aware of the project to implement ESP-NOW on Linux. The repo is Linux-ESPNOW. Thought this may be useful to test comms to devices using ESP-NOW.
Apologies if this is old news!
The interesting part is that I wasn't aware of the project to implement ESP-NOW on Linux. The repo is Linux-ESPNOW. Thought this may be useful to test comms to devices using ESP-NOW.
Apologies if this is old news!
Re: ESP-Now support for ESP32 (and ESP8266)
Hi mattyt,
I downloaded Linux-ESPNOW months ago but hit a snag trying to get it to work. If you get it to work, would you let me know.
I wondered why they would use ESP-Now ...
I downloaded Linux-ESPNOW months ago but hit a snag trying to get it to work. If you get it to work, would you let me know.
I wondered why they would use ESP-Now ...
... ah. Thanks for the links.it was possible to get raw packets out to robot in about 1 ms
Re: ESP-Now support for ESP32 (and ESP8266)
Is there any requirements about hardware ? Wouldn't be surprised if this requires a raspberry or some specific wifi chip, so the raw frames can be sent ?
Re: ESP-Now support for ESP32 (and ESP8266)
When reading messages by iterating over the ESPNow singleton object can you use ESPNow.config(param=value, ...)
If I set timeout to 10000 (10 seconds) the program hangs (probably for the default 5 minutes) if there is no received msg. I verified that timeout was actually set.
Thanks.
If I set timeout to 10000 (10 seconds) the program hangs (probably for the default 5 minutes) if there is no received msg. I verified that timeout was actually set.
Thanks.
Re: ESP-Now support for ESP32 (and ESP8266)
Update to previous post:
- using ESPNow.irecv(), with the timeout set earlier in ESPNow.config(timeout=10000) works as expected.
Should the note in ESPNow.config()
Note: The rxbuffer is allocated by ESPNow.init(). Changing this value will have no effect until the next call of ESPNow.init().
- using ESPNow.irecv(), with the timeout set earlier in ESPNow.config(timeout=10000) works as expected.
Should the note in ESPNow.config()
read:Note: The recv buffer is allocated by ESPNow.init(). Changing these values will have no effect until the next call of ESPNow.init().
Note: The rxbuffer is allocated by ESPNow.init(). Changing this value will have no effect until the next call of ESPNow.init().
Re: ESP-Now support for ESP32 (and ESP8266)
I just ran a test:davef wrote: ↑Wed Oct 06, 2021 9:07 amWhen reading messages by iterating over the ESPNow singleton object can you use ESPNow.config(param=value, ...)
If I set timeout to 10000 (10 seconds) the program hangs (probably for the default 5 minutes) if there is no received msg. I verified that timeout was actually set.
Thanks.
Code: Select all
e.config(timeout=1000)
for r in e:
print(r)
Re: ESP-Now support for ESP32 (and ESP8266)
Your snippet works for me. I'll work out why mine doesn't.
Thanks
Thanks
Re: ESP-Now support for ESP32 (and ESP8266)
Accidentally stumbled upon the Expressif ESP-NOW source https://github.com/espressif/esp-now
Re: ESP-Now support for ESP32 (and ESP8266)
Oooh - that's interesting. Thanks for sharing. Apache licensed and it looks like Espressif are adding a lot of functionality (although I don't yet understand why touch screen support belongs in a connectionless network protocol . Some interesting reading.