W3NDO

W3NDO

Is there a simulator for running nerves without the actual hardware?

After watching the talk by @gus at elixirconf I got interested in trying out Nerves. But as I have no hardware yet, I was wondering if there are any online simulators of typical nerves hardware that would allow one to test nerves without having the hardware.

Or is there a hack like having a VM idk yet?

Most Liked

LostKobrakai

LostKobrakai

There’s a qemu nerves system, which runs within qemu on your host system to have an actual nerves VM, but that doesn’t really virtualize any hardware you’d find on a board. I’ve mocked out a bunch of hardware in the past though and it can be done at various levels of the abstractions or communication layers used. Depending on where you land and what hardware it is it might require quite some intimate knowledge of the hardware though.

https://github.com/nerves-project/nerves_system_qemu_aarch64

lawik

lawik

Nerves Core Team

Your first simulator is your computer. Running in host is a great thing and the name_badge repo used for the Nerves Starter Kit and in Gus’ talks can run on the host and that’s when the display simulator comes in for that. Usually there are only a few pieces of hardware worth mocking.

There are also the circuits sim tools for simulating various bits of hardware: GitHub - elixir-circuits/circuits_sim: Elixir Circuits device simulator · GitHub

Benjamin mentioned the qemu system which is great if you want to have the full experience of a Nerves device without any pesky physical reality involved. That runs on a VM.

So it depends on what you want to do. Qemu sounds about right for your question.

Where Next?

Popular in Questions Top

beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> somethi...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
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
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New

Other popular topics Top

WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
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
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
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
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
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
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement