I2of5 ReportCheckDigit seems not work

L Luca Fongaro 3 years 7 months ago
4 1 0

Hi, I create a Xamarin app with the nuget package Symbol.XamarinEMDK on a TC-20 device with Nougatpp

My app can read the barcode of type I2of5, but I do not want to get also the checkDigit of a barcode. I try to set config.DecoderParams.I2of5.ReportCheckDigit to false, but the scanner still report the check number.

My code for configuration

//code
config.SkipOnUnsupported = ScannerConfig.SkipOnUnSupported.None;
config.ScanParams.DecodeLEDFeedback = true;
          
config.ReaderParams.ReaderSpecific.ImagerSpecific.PicklistEx = ScannerConfig.PicklistEx.Hardware;

config.DecoderParams.I2of5.Enabled = true;
config.DecoderParams.I2of5.Length1 = 7;
config.DecoderParams.I2of5.ReportCheckDigit = false;
scanner.SetConfig(config);
//code

I am missing something?

Regards,

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

I saw a similar problem in the past.  Take a look at this,  this was my issue.

Barcode Scanning API Programmer's Guide - Zebra Technologies Techdocs

Setting scanner configurations is not allowed while a read is pending. If a read is pending, the developer must call the Scanner.cancelRead() and must wait for the idle status through the register status listener before setting the configuration.
...
Calling SetConfig() should be done in the Status callback/Event. This way you can check that the scanner is indeed IDLE and that a scanner read is not pending.
Below is an example of how that should be done:
...

CONTACT
Can’t find what you’re looking for?