-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ESP32-NOW #3999
Comments
Question: Would this be a library or must it be implemented in the ESP32-S2 port? |
@askpatrickw it will need to be implemented on the port level, it doesn't make use of existing wifi calls, if that's what you mean. But we might want a library on top of it. |
How about a new |
There's also ESP-MESH which is a more typical wi-fi mesh protocol. Naming may get confusing. |
I got confused between |
FWIW, i'm using their esp-mdf C stack right now doing some PoC for my healthech startup - utilising their meshkit-sense, meshkit-light and soon meshkit-button. Their reference code for the button actually uses both esp-mesh and esp-now modes. Don't know if that is useful to you guys at all. |
Interesting... |
For anyone who is interested in this module - what kinds of projects would you use it for? And what do you feel the biggest draws of it are, compared to other similar options? |
I would LOVE this - the biggest use cases would be in-vehicle networks - specifically boats and RV's where I don't run a router - also in the shop for things like dust collection automation. Basically anything that doesn't need WiFi connectivity to the internet or to a server resource. |
I would use it for accessories connecting to a central unit. The biggest drawback for me is the requirement that the central and the accessory knows each other’s MAC address. When selling accessories I cannot know this in advance. The MAC must be shared on another channel first such as Bluetooth. Another drawback is that the protocol isn’t open; only ESPs can talk to ESPs by ESP-NOW. |
ESP-NOW is a great remote control protocol. It can achieve much longer range (with much lower bandwidth) than WiFi and needs no network access, making it resistant to many issues that affect portable control systems, such as security. |
For community theater, props that can trigger their own sound queues. Think "How do we trigger a gun shot sound when the actor pulls the trigger, instead of having the sound guy inevitably triggering it 1.5 seconds late in at least one performance?" {Trust me, this happens all the time!} |
@SultanOfSolder How far away is the prop from receiver? You could use BLE instead of Wifi. |
BLE on the ESP32 is inconsistent and not compatible with the Nordic BLE -
…On Wed, Sep 15, 2021 at 11:14 AM Scott Shawcroft ***@***.***> wrote:
@SultanOfSolder <https://github.com/SultanOfSolder> How far away is the
prop from receiver? You could use BLE instead of Wifi.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3999 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIC4IHXGQKXQI26DAQ5B7TUCCZ6VANCNFSM4WCYDWQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@tannewt It varies, but can easily be 50 to 75 feet, line of sight. One of the theaters I work with is 110 seats, another is 1700. You could place the receiver above/below the stage and run a cable back to the sound board, but that's less than ideal. Not every show will need it, so I'm looking for a PnP solution. |
I would also love to have the ability to use ESP-Now for my robots. Bluetooth is not an option, since this is an ESP32-S2. I will use regular WiFi for now. |
Remember that other high speed protocol devices exist, such as LoRA or the HC-12 module. Cheap and effective, not secure but you can always add that on top in software. |
@BetterAutomations All of which require an antenna of some length that you may not be able to bury in the prop. The arduino libs work, but it's a lot easier to figure out what you wrote in python when you have to make changes a year later. |
Given the fact that esp now connects in milliseconds and wifi takes 6-7 seconds battery life for deep sleep etc. will be greatly extended. My application is for wands for my grandchildren that control leds. |
ESP NOW for offline communications in areas without internet? |
Not really, the bit rate is extremely small. An example of the use for this tech is to transfer temperature/humidity readings to another esp microcontroller with distances less than 200m. > ESP NOW for offline communications in areas without internet? |
Thanks |
Wishing to utilise the WIFI on Raspberry Pi or ESP32 for education delivery in rural communities |
hoping to maybe have a crack at this over christmas |
heres a minimal implementation for anyone who wants to take a crack at adding to circuitpy https://github.com/chrmlinux/tinyESPNow |
@hierophect did you ever get ESP32-NOW working on CP? I have a number of ESP32-S2-based dev boards and I'd be interested in experimenting with this protocol for the same type of use cases where'd I'd use LORA or other lightweight radio system. The advantages of this protocol seem to be:
If this is still ongoing perhaps I can help with the code. I'm a systems level programmer with lots of experience implementing libraries to access low level systems. I'd work on this as part of my hobby work with microcontrollers (primarily purchased from Adafruit) |
@richsad I don't think anybody is working on it at the moment, so if you feel like this, just go ahead and try it. There shouldn't be any problems merging it, as far as I know, and the devs were always happy to review such patches. |
Has anybody been working on this? Something like this would be very useful for a project I'm working on currently. I have 2 boards. One in a stationary box on my boat and another in a hand controller. I'd like to try to keep communication between the 2 boards as simple as possible |
@muttstang I've not heard anyone talk about it. |
Have you made any progress on this? If not, if you could give me some guidance on how to start, I would be willing to try to work on this. I desperately want this feature and considering that there are builds of micropython out there with ESP-NOW support, maybe it won't be super difficult to complete this. |
@americoperez49 I think the first place to track is the MicroPython (MP) pull request. micropython#6515 That will need to be merged and released and then CircuitPython (CP) will need to pickup that new MP release before someone in the CP community can work on this. You could start by building CP off of that PR, but I think that would be very unstable especially in the API since that MP PR has not been code reviewed yet. |
Also related issue ... |
ESP32-NOW is a custom connectionless protocol developed by Espressif, which allows ESP32 and ESP32S2 boards to communicate directly with each other without using WiFi. It's supposedly similar to the 2.4GHz connectivity used in wireless mouses. This would enable ESP32S2 projects to connect multiple devices without the need for a router or any kind of internet connection, such as gathering data from a network of remote sensors, talking between a remote control and a receiver, sending instructions to a swarm of receiver units, etc. In terms of the projects it enables, it'd be similar to a lower range, built in LORA radio.
This link seems to have some good examples (all written for Arduino). Espressif documentation is here.
Some of the traits of ESP32-NOW include:
The text was updated successfully, but these errors were encountered: