Set Barcode Checksum Verification

Overview

In many 1D and postal symbologies, data integrity verification and decoding are based on checksum control mechanisms. Class BarcodeSettings provides the ChecksumValidation property that is used to manage checksum settings for data validation and decoding. In general, barcode standards can be divided into two groups: those with obligatory checksum and those with optional one. Depending on this, the ChecksumValidation field can take different values; hence, the barcode recognition process will change according to particular checksum settings.

Checksum Validation for Barcodes with Obligatory Checksum

Symbologies with obligatory checksum always require performing checksum control when the ChecksumValidation property is set to ChecksumValidation.Default or ChecksumValidation.On. Otherwise, this parameter can take the value ChecksumValidation.Off that disables checksum controls for barcode type with obligatory checksum and thus allows reading data from incorrectly generated barcodes. However, in this case, the probability of inaccurate recognition increases considerably.

Checksum Validation for Barcodes with Optional Checksum

For symbologies with optional checksum control, ChecksumValidation can be set in such a way to enable checksum checking, namely, it needs to take the value ChecksumValidation.On. Otherwise, when the values ChecksumValidation.Default and ChecksumValidation.Off are used, checksum validation is omitted.