Configuring Scale Devices
This page provides an overview of possible configuration settings of the scale framework used in the scale devices.
Affected Files
| Configuration files |
|
The main file is scale.properties. It has a small dependency to hal.properties, therefore both files are mentioned (see next section).
Dependency Between the Files
In hal.properties, all devices that the POS should know and be able to activate are configured. Each device has an identifier e.g.:
DeviceEntryTypes.JposBizerbaOemScale.id=jpos_scale_bizerba_oem
This identifier value is used in scale.properties as part of the configuration keys. For example, for the protocol definition:
scale.jpos_scale_bizerba_oem.protocol=javapos
The pattern is always "scale".hal-id-value.xyz=abc
In scale.properties, at least 1 entry must exist with such a pattern. Otherwise, the scale framework will not continue to initialize the scale device due to missing configuration. In general, a complete configuration with more than 1 entry per device must be included — as the default fallback for non-existing configurations will lead to unwanted behavior.