Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #30046

Re: Simulator for embedded systems

From pozz <pozzugno@gmail.com>
Newsgroups comp.arch.embedded
Subject Re: Simulator for embedded systems
Date 2020-11-05 07:17 +0100
Organization A noiseless patient Spider
Message-ID <ro05e4$8r4$1@dont-email.me> (permalink)
References <rntpri$hhd$1@dont-email.me> <87sg9pbg19.fsf@nightsong.com>

Show all headers | View raw


Il 04/11/2020 10:57, Paul Rubin ha scritto:
> pozz <pozzugno@gmail.com> writes:
>> GUI (that I can write in a high-level language, such as Python or
>> Java)...  I'm thinking to exchange a JSON string between the processes
>> running on Windows. What do you suggest to do this? Should I use
>> sockets?
> 
> This is fine.  You can also embed a web server in the simulator, and use
> a browser as your gui.
> 

Good hint. I already embedded libmicrohttpd, created an index.html (with 
some Javascript) and processed the body of a POST request that is a JSON 
file. The POST request is sent on clicking a button on the web page.

It works well and now I have a web GUI to simulate "hw inputs" for my 
simulator, without writing another application.

Next step is to recover the "hw output state" of the target board (LEDs, 
DACs, PWMs and so on) and show it on the web page.

I could add a picture of the board and link graphical elements to 
variables in the JSON.
For example, I could change the icon of a LED on the picture depending 
on a variabile in the JSON data.

Unfortunatley I'm not able to create a nice GUI, but this isn't 
important at the moment... it's only a simulator for me.

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Simulator for embedded systems pozz <pozzugno@gmail.com> - 2020-11-04 09:47 +0100
  Re: Simulator for embedded systems Paul Rubin <no.email@nospam.invalid> - 2020-11-04 01:57 -0800
    Re: Simulator for embedded systems pozz <pozzugno@gmail.com> - 2020-11-05 07:17 +0100
      Re: Simulator for embedded systems Dave Nadler <drn@nadler.com> - 2020-11-05 15:15 -0800
  Re: Simulator for embedded systems Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2020-11-04 20:52 +0100
  Re: Simulator for embedded systems StateMachineCOM <statemachineguru@gmail.com> - 2020-11-11 06:02 -0800

csiph-web