Public: Sensor Library : Sensor configuration design
This page last changed on Feb 20, 2008 by scytacki.
For each expermient they will specify the setup of sensors they will need to use. It will look something like this:
This configuration will be passed to the sensor library and then to the current sensor driver. The sensor driver will decide whether this is possible. And it will return a structure with information about the exact configuration that it will use. Right now this only contains the rate.
There might be extra configuration params embedded in the description that are specific to each device. However, with more examples some of these should be configurable automatically. If the device is known then the ports can be automatically selected. If the port if configured automatically then it needs to be available to the "technical hint" so it can say "plug in the sensor to port X"
There needs to be some extra configuration data sent to each vendors driver. This can be embedded in the data_setup.
For the native code this will be sent in a set of structures:
The api for the native code will be:
The vendor specific code will receive this configuration in a configure method. The method will return sucess or failure. And there will be a method for getting a description of this failure.
The java code that sits on top of this will handle the transforms.
|Document generated by Confluence on Jan 27, 2014 16:55|