Scope: defines parameters used by the AirSensEURHost process. This process is in charge of polling the specified serial line and issuing commands to the connected AirSensEUR Shield in order to start/stop sampling and sample retrieval. AirSensEURHost implements a RPC server used to exchange data/commands with external processes. Read samples are evaluated prior to be published through RPC. The evaluation rule, for each sensor channel, is defined in the configuration file.
File: /usr/local/etc/sensor.properties
Notes: This file can be changed/updated by the Web Configuration Panel.
Relevant keys:
Key Name | Default Value | Notes |
---|---|---|
port | ttyS1 | Defines the serial port where a Shield is connected |
debug | 5 | Used to increase verbosity logs |
jsonHostname | 0.0.0.0 | Binding IP for RPC server. 0.0.0.0 means: All interfaces |
jsonPort | 8000 | Port used by the RPC server |
pollPeriod | 6000 | Scheduler time used to poll the serial line (in milliseconds) |
numSensors | 7 | Number of sensors installed on the connected Shields |
sensorname_XX | S_XX | Label used for sensor at logical channel XX |
sensorexpression_XX | x | Expression used to evaluate samples read from the Shield. For the syntax, please refer to the "expr" Java library https://github.com/darius/expr |
useBusProtocol | false | If true, the sensor bus protocol is used, otherwise, a point to point connection is expected between the shield and the host (compatibility mode) |
sensorboarid_XX | 0 | Board ID where the logical sensor XX is located |
sensorchannel_XX | 0 | Physical sensor channel (i.e. relative to a shield) mapped to the logical sensor channel XX |
sensordisabled_XX | false | If yes, the logical sensor XX is skip by the engine |
sensorhires_XX | false | If yes, the host will poll the logical channel XX for a floating point evaluated sample. |
enableAutoDiscovery | false | If yes, the host will try to discover boards and sensors connected to the sensor bus. |
skipHostSensors | false | If yes, the host will include only sensors available through the sensor bus. If not, sensors connected to different interfaces will be include (i.e., battery charge status, battery voltage and coulomb counter) |