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

Tee
can someone please explain to me how Enum.reduce works with maps
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
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
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
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
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
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
yawaramin
In the Dialyzer docs ( dialyzer — OTP 29.0.2 (dialyzer 6.0.1) ), there is a way to turn off a specific warning for a function: -dialyzer...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29603 241
New
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
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
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
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
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
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 52673 488
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54120 245
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement