Search code examples
c#xamarinbarcode-scannermotorola-emdk

Problem when scanning DHL labels Identcode C# XAMARIN EMDK


I'm trying to scan a DHL label on a TC20 with the EMDK in a Xamarin application. Unfortunately, I am not getting any feedback. The barcode is called the Identcode. I can scan the barcode in the Zebra Demo App.

I've tried many different settings but unfortunately it doesn't work. An image of the barcode to be scanned is attached.

config.DecoderParams.I2of5.Enabled = true;
//config.DecoderParams.I2of5.Length1 = 55;
//config.DecoderParams.I2of5.Length2 = 55;
//config.DecoderParams.I2of5.Redundancy = false;
//config.DecoderParams.I2of5.ConvertToEan13 = false;
//config.DecoderParams.I2of5.ReportCheckDigit = false;
config.DecoderParams.I2of5.SecurityLevel = ScannerConfig.SecurityLevel.Level3;

Sample


Solution

  • I found my mistake. I have a loop in which I check the status of the scanner and reset it to read. This means that there is no interruption to set the configuration.

    Here is my working configuration for DHL Identcode.

    config.DecoderParams.I2of5.Enabled = true;
    config.DecoderParams.I2of5.Febraban = false;
    config.DecoderParams.I2of5.VerifyCheckDigit = ScannerConfig.CheckDigitType.No;
    config.DecoderParams.I2of5.Length1 = 6;
    config.DecoderParams.I2of5.Length2 = 55;
    config.DecoderParams.I2of5.Redundancy = true;
    config.DecoderParams.I2of5.ReportCheckDigit = false;
    config.DecoderParams.I2of5.SecurityLevel = ScannerConfig.SecurityLevel.Level1;
    config.DecoderParams.I2of5.ConvertToEan13 = false;
    config.DecoderParams.I2of5.ReducedQuietZone = false;