GS1-128条码解析 [英] GS1-128 barcode parsing

查看:1069
本文介绍了GS1-128条码解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

扫描仪型号:-摩托罗拉-DS4208-HC

Scanner Model :- Motorola- DS4208-HC

我们需要解析GS1-128条码.我们知道他们将使用GTIN(01),批号(10),到期日期(17),序列号(21). 输入字符串:-(01)07612345678900(17)100503(10)AC3453G3(21)455777

We need to parse the GS1-128 barcode. We know they are going to use GTIN(01), lot number(10), Expiration date(17), serial number (21). Input String:- (01)07612345678900(17)100503(10)AC3453G3(21)455777

问题是条形码阅读器输出一个字符串,格式如下:

The problem is that barcode reader outputs a string, the format is like this:

01076123456789001710050310AC3453G321455777

01076123456789001710050310AC3453G321455777

由于没有分隔符,并且根据GS1标准,序列号和批号都是可变长度,因此我们很难识别分段.

Since there is not a separator and both serial number and lot number are a variable length according to GS1 standard, we have trouble to identify the segments.

在可变长度字段的末尾应有一个FNC1字符,该字符未填充到最大.这样FNC1就会出现在G3和21之间.我读到的是NC1对人类是不可见的,但是可以被扫描仪检测到,并将在扫描仪报告的字符串中再现.只需将字符串直接发送到文本文件,然后使用十六进制阅读器检查文本即可. FNC1应该很明显.但是我们仍然无法在阅读器中阅读FNC1.

There should be a FNC1 character at the end of a variable-length field that is not filled to maximum; so that FNC1 will appear between the G3 and the 21. what I have read is NC1 is invisible to humans but can be detected by scanners and will be reproduced in the string reported by the scanner. Simply send the string directly to a text file and examine the text with a hex reader. The FNC1 should be obvious. But we are still not able to read FNC1 in the reader.

推荐答案

摩托罗拉解决方案企业业务已被Zebra Technologies收购,因此您可以在

Motorola Solutions Enterprise Business has been acquired by Zebra Technologies, so you can find support and developer forums on Zebra website Launchpad.

DS4208-HC support is available here. However seems that most of the documentation/software are only available under the model DS4208 support page

要配置扫描仪,您可以使用 123Scan2实用程序扫描仪用户指南您可以在其中找到用于启用/禁用GS1解码的配置条形码(第9-27页).

To configure the scanner you can use the 123Scan2 utility or the Scanner User Guide where you can find the configuration barcodes to enable/disable GS1 decoding (page 9-27).

Discalimer :我在Zebra Technologies工作.

Discalimer: I work for Zebra Technologies.

这篇关于GS1-128条码解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆