Energy

The Anyline Energy module is capable of scanning Analog Electric-, Gas- and Water Meter readings. It is also possible to scan Bar- and QR-codes, which is useful for identifying meters, as well as the Serial Number. Common 7-segment Digital Meters and Heat Meters can also be scanned.

Simultaneous Barcode Scanning

Starting from SDK 3.8 Anyline supports simultaneous barcode scanning for any module. Additional Information can be found under Simultaneous Barcode Scanning

Examples

A couple of different examples can be found at Anyline Demos and Samples: Energy.

Parameters

scanMode

The scanMode determines which of the Energy use cases you want to scan.

Any of the different use cases can be started from the Energy Module by setting this scanMode, which means that easy switching of the different modes is available.

Auto Analog/Digital Meter

New in version 3.11: This mode combines analog and digital mode with auto detection of the meter type

Automatically detects if the meter is an analog or digital meter.

Scans all types of analog meters (e.g. gas, electric, water meter) and automatically detects the number of digits before and after the decimal point, as well as 7-segment digital meters with at least 3 digits.

Android/Cordova/React Native iOS
AUTO_ANALOG_DIGITAL_METER ALAutoAnalogDigitalMeter

Analog Meter

New in version 3.8: This mode replaces all deprecated analog scan modes.

Scans all types of analog meters (e.g. gas, electric, water meter) and automatically detects the number of digits before and after the decimal point.

Android/Cordova/React Native iOS
ANALOG_METER ALAnalogMeter

Digital Meter

Scan 7-segment digital meters with at least 3 digits. It will try to find the highest number of connected digits and return the result without decimal marker.

Android/Cordova/React Native iOS
DIGITAL_METER ALDigitalMeter

Heat Meter with 4 pre-decimal (up to 3 decimal) places

Scan digital heat meters with 4 pre-decimal and up to 3 decimal places. If detected, the decimal digits are included in the result, otherwise they are omitted.

Android/Cordova/React Native iOS
HEAT_METER_4 ALHeatMeter4

Note

This mode may be replaced in the future with a mode that automatically detects the amount of digits

Heat Meter with 5 pre-decimal (up to 3 decimal) places

Scan digital heat meters with 5 pre-decimal and up to 3 decimal places. If detected, the decimal digits are included in the result, otherwise they are omitted.

Android/Cordova/React Native iOS
HEAT_METER_5 ALHeatMeter5

Note

This mode may be replaced in the future with a mode that automatically detects the amount of digits

Heat Meter with 6 pre-decimal (up to 3 decimal) places

Scan digital heat meters with 6 pre-decimal and up to 3 decimal places. If detected, the decimal digits are included in the result, otherwise they are omitted.

Android/Cordova/React Native iOS
HEAT_METER_6 ALHeatMeter6

Note

This mode may be replaced in the future with a mode that automatically detects the amount of digits

Dial Meter ALPHA

New in version 3.14: As of version 3.14, this mode is in an alpha stage and will be under constant development

Scans different types of dial meters.

Android iOS
DIAL_METER ALDialMeter

Android & iOS

As of version 3.14 this mode is only available on Android and iOS platforms

Android & iOS

As of version 3.14, the Dial Meter Energy Result will not contain Confidence and Outline.

Bar- and QR-Codes

Scan bar and QR codes. This mode can be used to identify a meter. See the Barcode module for supported types.

Android/Cordova/React Native iOS
BARCODE ALBarcode

Serial Numbers

Scan Serial Numbers that are engraved or printed onto a meter (consisting of numbers 0-9).

Android/Cordova/React Native iOS
SERIAL_NUMBER ALSerialNumber

Previous Scan Modes

The following modes were deprecated with 3.8, and removed in 3.13 and 3.14 respectively. They should not be used anymore. Selecting those modes will not have any effect, as Analog Meter scanMode will be used instead (which detects automatic all digits before and after the point).

The are replaced by scan mode Analog Meter.

Electric Meter

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan analog electric meters with 5 or 6 pre-decimal places. The digit count is detected automatically. No decimal places are included in the result. The auto-detection requires the decimal area to be highlighted in red.

Android/Cordova/React Native iOS
ELECTRIC_METER ALElectricMeter
Electric Meter 5 pre-decimal places

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan analog electric meters with 5 pre-decimal places. If it can be detected, up to one decimal place is included in the result, otherwise the decimal places will be omitted. The decimal is represented by a dot in the result, not a comma.

Tip

This mode is useful if there is no red marking for the decimal place or if the first decimal place is relevant

Android/Cordova/React Native iOS
ELECTRIC_METER_5_1 ALElectricMeter5_1
Electric Meter 6 pre-decimal places

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan analog electric meters with 6 pre-decimal places. If it can be detected, up to one decimal place is included in the result, otherwise the decimal places will be omitted. The decimal is represented by a dot in the result, not a comma.

Tip

This mode is useful if there is no red marking for the decimal place or if the first decimal place is relevant

Android/Cordova/React Native iOS
ELECTRIC_METER_6_1 ALElectricMeter6_1
Gas Meter

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan analog gas meters with 5 digits before the point. The decimal places are ignored.

Android/Cordova/React Native iOS
GAS_METER ALGasMeter

5 Digits

This mode scans Gas Meters with 5 digits. In order ot scan 6 digit Gas Meters, please use the Gas Meter 6 pre-decimal places mode

Gas Meter 6 pre-decimal places

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan analog gas meters with 6 digits before the point. The decimal places are ignored.

Android/Cordova/React Native iOS
GAS_METER_6 ALGasMeter6
Water Meter White

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan analog water meters with white background (black digits) with 5 digits before the point. The decimal places are ignored.

Android/Cordova/React Native iOS
WATER_METER_WHITE ALWaterMeterWhite
Water Meter Black

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan analog water meters with black background (white digits) with 5 digits before the point. The decimal places are ignored.

Android/Cordova/React Native iOS
WATER_METER_BLACK ALWaterMeterBlack
Analog Meter White

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan any Analog Meter (no matter if Electric, Gas, etc.) with white background (black digits) with 5 or 6 digits before the point. The decimal places are ignored.

Android/Cordova/React Native iOS
ANALOG_METER_WHITE ALAnalogMeterWhite
Analog Meter with 4 pre-decimal places

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan any Analog Meter (no matter if Electric, Gas, etc.) with 4 digits before the point. The decimal places are ignored.

Android/Cordova/React Native iOS
ANALOG_METER_4 ALAnalogMeter4
Analog Meter with 7 pre-decimal places

Changed in version 3.13: This mode was removed in 3.13 (iOS) and 3.14 (Android/Cordova/React Native)

Deprecated since version 3.8: Use Analog Meter instead

Scan any Analog Meter (no matter if Electric, Gas, etc.) with 7 digits before the point. The decimal places are ignored.

Android/Cordova/React Native iOS
ANALOG_METER_7 ALAnalogMeter7