1.检查斑马扫描仪的硬件是否正常工作,如是否被正确连接,灯是否亮起,是否需要更换电池等; 2.检查扫描仪是否正确配置为 Interleaved 2 of 5 编码格式,可通过以下代码进行配置:
//设置编码格式为 Interleaved 2 of 5 ZebraScannerConfig config = new ZebraScannerConfig(); config.decoderParams.decoderType = DecoderType.INTERLEAVED_2_OF_5;
//应用配置 scanner.setConfig(config); scanner.applyConfig();
3.检查扫描对象的条形码是否符合 Interleaved 2 of 5 编码格式,如果不是,可能需要使用不同的编码格式或扫描仪。