ImNotAVirus

ImNotAVirus

ESP-NOW with Nerves

Is there currently a way to send and receive data between a Nerves device (Raspberry Pi) and few ESP devices using ESP-NOW ?

My goal is to create a network of sensor nodes (using ESP32/ ESP8266) controlled by a Raspberry on which I can retrieve stats and trigger actions.
I want my sensors to consume as little energy as possible, hence the fact that I want to use ESP-NOW for communication rather than Wi-Fi, for example.

I’d like to know if anyone else has tried a similar project.

Thanks in advance.

Most Liked

fhunleth

fhunleth

Co-author of Nerves

I’m not familiar with ESP-NOW, but if there’s a Linux driver for it, there should be a way to use with Nerves with some work.

If there’s not a Linux ESP-NOW driver (I couldn’t find one on quick search), I’d make a wired connection between the RPi and one ESP32/ESP8266 and use that local ESP for communication with the sensor node ESPs. Bridging over the UART pins might not be bad if you don’t mind coming up with a communications protocol for your app.

natewallis

natewallis

One other solution which I am playing with is to use a CANBUS enabled carrier board with a RPI4 compute module that can talk to your ESP module. You can output CAN frames from your ESP (at least ESP32 Classic+) to communicate with your carrier board (which exposes CAN as network interface in linux). Might save you reinventing the wheel with a communication protocol and lean on something that is industry ready instead.

If you could get Linux running on ESP32 though, wouldn’t that mean you could potentially get Elixir/Nerves running on the ESP32 (with some effort?)… that would be cool and drop the cost of hardware for nerves implementations right down…

Where Next?

Popular in Questions Top

mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52341 488
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New

We're in Beta

About us Mission Statement