Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

README File Reference


Detailed Description

Author:
Lars Wetzel <larswetzel@users.sourceforge.net>
Version:
0.1
Date:
23.04.2010

Introduction

With the simulation plugins it is possible to run the openhpi daemon locally without having hardware for it in the background.
Since the new simulation plugin gets its simulation data from a file instead of having it inside the code, the data can be changed without compiling the plugin afterwards.
In combination with the hpigensimdata client you can generate your own simulation data based on a running system e.g. for demonstration purposes

Simulation data

The NewSimulator plugin reads at start a simulation file which includes the data to be simulated. The filename can be defined inside the plugin section of openhpid.conf. The default filename is simulation.data. The file can be found in the directory of the openhpid.conf file.
The file itself is read only one time during the discovery phase. This means that the daemon has to be restarted if changes were made and should take effect.
Small changes can be done easily in the file but if a whole system hardware should be simulated it is recommended to use the hpigensimdata client which is described in Generating own simulation data.

Generating own simulation data

To generate a simulation file including the data of an own system, it is recommended to use the client hpigensimdata -f <filename>.
The content of <filename> is in ascii and can be modified using a text editor of chose. But at changing the file you should be aware to set the parenthesis correctly and take the correct names of variables.
With the exception of the config section and the token marks, all variable names are equivalent to the variables defined inside SafHpi.h. The values of the unions \/ defines are put as integer or hex values inside the file to spare a decoding a startup of the daemon.
Therefore you can use this client also for dump a running system. But keep in mind that reading e.g. the capability fields is much easier if transfers also the values properly which is not done by this client.

Generated on Fri Apr 23 21:58:34 2010 for New Simulator by  doxygen 1.4.4