



技术领域technical field
本发明涉及通信技术领域,尤其涉及一种商品条码与电子标签的转换方法与系统。The invention relates to the field of communication technology, in particular to a method and system for converting commodity barcodes and electronic labels.
背景技术Background technique
条码技术出现于20世纪40年代,因其成本低、采集信息准确率高等特点在各个行业得到了广泛的应用,其中包括物流、仓储,图书馆,银行,pos收银系统,医疗卫生、零售商品、服装、食品服务以及高科技电子产品等等,商品条码为其最具代表性的应用典范,商品条码是实现商业现代化的基础,是商品进入超级市场、POS扫描商店的入场券,它已成为商品进入超市的必备条件。Barcode technology appeared in the 1940s and has been widely used in various industries due to its low cost and high accuracy of information collection, including logistics, warehousing, libraries, banks, POS cash register systems, medical and health care, retail goods, Clothing, food service and high-tech electronic products, etc., commodity barcode is the most representative application model. Commodity barcode is the basis for realizing commercial modernization, and it is the entry ticket for commodities entering supermarkets and POS scanning stores. It has become A necessary condition for goods to enter the supermarket.
EAN商品条形码亦称通用商品条形码,由国际物品编码协会制定,通用于世界各地,是目前国际上使用最广泛的一种商品条形码。而EAN-13商品条码则为其最主要的结构,主要应用于超级市场和其它零售业,因此这种是我们比较常见的,随便拿起身边的一个从超市买来的商品都可以从包装上看得到,是我国在国内推行使用最广泛的商品条形码。条码技术虽然是当今最流行的标识技术,但因其固有的缺陷,不能满足快速、实时、准确的信息采集和处理。现代物流的标准化和高效化已成为了衡量物流的重要指标,这就要求物流企业必须实时和精确地了解、掌握整个物流环节上包括采购、存储、包装、运输、流通加工、配送、销售到服务等等环节中实时的变化和发展。RFID电子标签技术具有可读写能力、快速大批量的数据扫描、抗污染能力和耐久性强、使用寿命长、穿透性无屏障阅读能力强、数据记忆容量大以及安全性高等特点,能够广泛应用在现代物流供应链上的生产管理、运输管理、仓库管理、物料跟踪、运载工具和货架识别、商店等场合。而且其能实现其在现代物流中具有相当重要的的应用价值,也是未来物流行业发展的一个趋势。EAN commodity barcode, also known as universal commodity barcode, is formulated by the International Article Numbering Association and is commonly used all over the world. It is currently the most widely used commodity barcode in the world. The EAN-13 commodity barcode is its most important structure, mainly used in supermarkets and other retail industries, so this is more common for us, and you can pick up a commodity bought from a supermarket around you and you can check it from the package. It can be seen that it is the most widely used commodity bar code in my country. Although barcode technology is the most popular identification technology today, it cannot meet the requirements of fast, real-time and accurate information collection and processing due to its inherent defects. The standardization and efficiency of modern logistics have become an important indicator of logistics, which requires logistics companies to understand and master the entire logistics link in real time and accurately, including procurement, storage, packaging, transportation, circulation processing, distribution, sales and service. Real-time changes and developments in other links. RFID electronic tag technology has the characteristics of readable and writable ability, fast and large-scale data scanning, strong anti-pollution ability and durability, long service life, penetrating barrier-free reading ability, large data memory capacity and high security. Applied in production management, transportation management, warehouse management, material tracking, carrier and shelf identification, stores and other occasions in the modern logistics supply chain. Moreover, it can realize its very important application value in modern logistics, and it is also a trend in the development of the logistics industry in the future.
EPC中文称为产品电子代码。EPC的载体是RFID电子标签,并借助互联网来实现信息的传递。2003年10月国际上成立EPC GLOBLE全球组织推广EPC和物联网的应用。欧、美、日等发达国家在全力推动符合EPC技术电子标签应用,全球最大的零售商美国沃尔玛宣布:从2005年1月份开始,前100名供应商必须在托盘中使用EPC电子标签,2006年必须在产品包装中使用EPC电子标签,我国近几年来的EPC电子标签的发展也日益迅猛,其必然会成为一个发展趋势。EPC is called Product Electronic Code in Chinese. The carrier of EPC is RFID electronic tag, and realizes the transmission of information by means of the Internet. In October 2003, the EPC GLOBLE global organization was established internationally to promote the application of EPC and the Internet of Things. Developed countries such as Europe, the United States, and Japan are making every effort to promote the application of electronic tags that comply with EPC technology. The world's largest retailer, Wal-Mart, announced that starting from January 2005, the top 100 suppliers must use EPC electronic tags in pallets. EPC electronic tags must be used in product packaging. In recent years, the development of EPC electronic tags in my country has become increasingly rapid, and it will inevitably become a development trend.
在零售商品行业中,EPC电子标签应用逐渐普及,其主要采用序列化的全球贸易项目代码(SGTIN)编码结构的EPC电子标签。然而受生产工艺和价格成本所限,还不能广泛应用于标示单个个体。而条码标签具有价格便宜的优势,将两者结合起来应用于商品供应链全过程管理,具有重要的现实意义。在条形码和电子标签共存的环境下,商品流通过程中,采用RFID技术与条码技术结合,来解决电子标签成本和自动数据采集效率之间的矛盾是一条非常合适的途径。在大宗物品上,例如托盘采用电子标签标识,方便出入库管理,在商品单品上,通过后台系统,将电子标签信息转换为条形码,做到单品标识,方便消费者追溯查询。这就需要在电子标签信息和条码信息之间做转换,以保证商品链信息的畅通和追溯与召回的实现。采用电子标签和条码技术应用于商品的标识,对于加强对商品供应链实时监管具有重要意义。In the retail commodity industry, the application of EPC electronic tags is gradually becoming popular, which mainly adopts the EPC electronic tags with serialized global trade item number (SGTIN) coding structure. However, limited by the production process and price cost, it cannot be widely used to mark a single individual. The bar code label has the advantage of being cheap, and it is of great practical significance to combine the two to apply to the whole process management of the commodity supply chain. In the environment where barcodes and electronic tags coexist, in the process of commodity circulation, it is a very suitable way to use the combination of RFID technology and barcode technology to solve the contradiction between the cost of electronic tags and the efficiency of automatic data collection. For bulk items, such as pallets, electronic tags are used to facilitate storage management. On single items, the electronic tag information is converted into barcodes through the background system to achieve single item identification, which is convenient for consumers to trace and query. This requires conversion between electronic label information and barcode information to ensure the smooth flow of commodity chain information and the realization of traceability and recall. The application of electronic label and barcode technology to the identification of commodities is of great significance for strengthening the real-time supervision of commodity supply chains.
综上可知,现有的商品条码,在实际使用上显然存在不便与缺陷,所以有必要加以改进。In summary, the existing commodity bar codes obviously have inconvenience and defects in actual use, so it is necessary to improve them.
发明内容Contents of the invention
针对上述的缺陷,本发明的目的在于提供一种商品条码与电子标签的转换方法与系统,可以方便的实现电子标签与商品条码的信息转换,使用户能更好的获取商品信息。In view of the above defects, the object of the present invention is to provide a method and system for converting commodity barcodes and electronic labels, which can conveniently realize the information conversion between electronic labels and commodity barcodes, so that users can better obtain commodity information.
为了实现上述目的,本发明提供一种商品条码与电子标签的转换方法,所述方法包括:In order to achieve the above object, the present invention provides a method for converting commodity barcodes and electronic tags, the method comprising:
读取所述商品条码包含的数据信息;Read the data information contained in the barcode of the commodity;
对所述商品条码的数据信息进行译码并分别提取条码各段的数据;Decoding the data information of the commodity barcode and extracting the data of each segment of the barcode respectively;
识别所述电子标签,并读取电子标签数据和/或写电子标签数据以及打印电子标签;Identify the electronic tag, read the electronic tag data and/or write the electronic tag data and print the electronic tag;
对所述电子标签进行译码并分别提取所述电子标签各段的数据;Decoding the electronic tag and extracting the data of each segment of the electronic tag;
处理所述商品条码及电子标签的数据,并使所述商品条码及电子标签的数据转换。Processing the data of the commodity barcode and the electronic label, and converting the data of the commodity barcode and the electronic label.
根据本发明的商品条码与电子标签的转换方法,所述电子标签是工作频率为840MHz~960MHz的超高频无源电子标签。According to the method for converting commodity barcodes and electronic labels of the present invention, the electronic labels are ultra-high frequency passive electronic labels with an operating frequency of 840 MHz to 960 MHz.
根据本发明的商品条码与电子标签的转换方法,所述处理所述商品条码及电子标签的数据,并使所述商品条码及电子标签的数据转换的步骤包括:According to the method for converting commodity barcodes and electronic tags of the present invention, the steps of processing the data of the commodity barcodes and electronic tags, and converting the data of the commodity barcodes and electronic tags include:
确定所述电子标签分段数据的属性类别;Determining the attribute category of the segmented data of the electronic tag;
将对应的所述属性类别的数据作为无符号数据,并转换为十进制表示的数据;Taking the data of the corresponding attribute category as unsigned data, and converting it into decimal representation data;
从所述十进制数据中提取所述商品条码的属性类别数据;Extracting the attribute category data of the commodity barcode from the decimal data;
构造对应位数的所述商品条码数据,并计算检验码。Construct the commodity barcode data corresponding to the number of digits, and calculate the check code.
根据本发明的商品条码与电子标签的转换方法,所述处理所述商品条码及电子标签的数据,并使所述商品条码及电子标签的数据转换的步骤包括:According to the method for converting commodity barcodes and electronic tags of the present invention, the steps of processing the data of the commodity barcodes and electronic tags, and converting the data of the commodity barcodes and electronic tags include:
确定所述商品条码的分段数据的属性类别;Determine the attribute category of the segmented data of the commodity barcode;
将对应的所述属性类别的数据转换为二进制表示的数据形式;converting the data of the corresponding attribute category into a data form of binary representation;
从所述二进制数据中提取所述电子标签的属性类别数据;extracting the attribute category data of the electronic tag from the binary data;
生成所述电子标签。Generate the electronic label.
根据本发明的商品条码与电子标签的转换方法,所述商品条码为13位数据格式的EAN-13,所述电子标签为EPC SGTIN-96。According to the method for converting commodity barcodes and electronic labels of the present invention, the commodity barcodes are EAN-13 in a 13-digit data format, and the electronic labels are EPC SGTIN-96.
根据本发明的商品条码与电子标签的转换方法,所述商品条码为13位数据格式的EAN-13,所述电子标签为EPC SGTIN-198。According to the method for converting commodity barcodes and electronic labels of the present invention, the commodity barcodes are EAN-13 in a 13-digit data format, and the electronic labels are EPC SGTIN-198.
本发明还提供一种商品条码与电子标签的转换系统,其包括:The present invention also provides a conversion system between commodity barcode and electronic label, which includes:
条码阅读模块,用于读取所述商品条码包含的数据信息;A barcode reading module, used to read the data information contained in the commodity barcode;
第一数据解析模块,用于对所述商品条码的数据信息进行译码并分别提取条码各段的数据;The first data analysis module is used to decode the data information of the commodity barcode and extract the data of each segment of the barcode respectively;
电子标签读写模块,用于识别所述电子标签,并读取电子标签数据和/或写电子标签数据以及打印电子标签;An electronic tag reading and writing module, used to identify the electronic tag, and read the electronic tag data and/or write the electronic tag data and print the electronic tag;
第二数据解析模块,用于对所述电子标签进行译码并分别提取所述电子标签各段的数据;The second data analysis module is used to decode the electronic tag and extract the data of each segment of the electronic tag;
数据处理转换模块,用于处理所述商品条码及电子标签的数据,并使所述商品条码及电子标签的数据转换。The data processing conversion module is used for processing the data of the commodity barcode and the electronic label, and converting the data of the commodity barcode and the electronic label.
本发明通过商品条码与电子标签的转换系统读取所述商品条码包含的数据信息,并对所述商品条码的数据信息进行译码并分别提取条码各段的数据;识别所述电子标签,并读取电子标签数据和/或写电子标签数据以及打印电子标签;对所述电子标签进行译码并分别提取所述电子标签各段的数据;处理所述商品条码及电子标签的数据,并使所述商品条码及电子标签的数据转换。借此可以方便的实现电子标签与商品条码的信息转换,使用户能更好的获取商品信息。The present invention reads the data information contained in the commodity barcode through the conversion system of the commodity barcode and the electronic label, decodes the data information of the commodity barcode and extracts the data of each segment of the barcode respectively; identifies the electronic label, and Read electronic label data and/or write electronic label data and print electronic label; decode the electronic label and extract the data of each segment of the electronic label respectively; process the data of the commodity barcode and electronic label, and use Data conversion of the commodity barcode and electronic label. In this way, the information conversion between electronic tags and product barcodes can be realized conveniently, so that users can better obtain product information.
附图说明Description of drawings
图1是本发明商品条码与电子标签的转换方法流程图;Fig. 1 is the conversion method flowchart of commodity barcode and electronic label of the present invention;
图2是本发明一实施例的电子标签转换为商品条码的关系图;Fig. 2 is the relation diagram that the electronic label of an embodiment of the present invention is converted into commodity barcode;
图3是本发明一实施例的商品条码转换为电子标签的关系图;Fig. 3 is the relation diagram that the commodity barcode of an embodiment of the present invention is converted into electronic label;
图4是本发明的商品条码与电子标签的转换系统结构示意图。Fig. 4 is a schematic diagram of the structure of the conversion system between commodity barcode and electronic label according to the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
参见图1,本发明提供了一种商品条码与电子标签的转换方法,该方法包括:Referring to Fig. 1, the present invention provides a kind of conversion method of commodity bar code and electronic label, and this method comprises:
步骤S101,读取所述商品条码包含的数据信息。需要说明的,本发明中所提商品条码均为13位数据格式的EAN13商品条码。Step S101, reading the data information contained in the commodity barcode. It should be noted that the commodity barcodes mentioned in the present invention are all EAN13 commodity barcodes in 13-digit data format.
步骤S102,对所述商品条码的数据信息进行译码并分别提取条码各段的数据。不同的商品条码包含有不同的商品数据信息,通过对商品条码的识别、译码可以获取其商品数据信息。Step S102, decoding the data information of the commodity barcode and extracting the data of each segment of the barcode. Different commodity barcodes contain different commodity data information, and the commodity data information can be obtained by identifying and decoding the commodity barcodes.
步骤S103,识别所述电子标签,并读取电子标签数据和/或写电子标签数据以及打印电子标签。具体应用中,可能通过射频识别电子标签,并读取/写入电子标签数据信息。优选的是,本发明的电子标签可以为多种类别,其可以根据不同的需求具体为EPC SGTIN-96电子标签或EPC SGTIN-198电子标签。Step S103, identifying the electronic label, reading and/or writing electronic label data and printing the electronic label. In a specific application, it is possible to identify the electronic tag by radio frequency, and read/write the data information of the electronic tag. Preferably, the electronic tags of the present invention can be of various types, which can be specifically EPC SGTIN-96 electronic tags or EPC SGTIN-198 electronic tags according to different requirements.
步骤S104,对所述电子标签进行译码并分别提取所述电子标签各段的数据。电子标签的数据的有个数据段,每个数据段具有不同的商品信息,通过提取各段数据及对应的含义,可方便的实现后续步骤S105。Step S104, decoding the electronic label and extracting the data of each segment of the electronic label. The data of the electronic tag has a data segment, and each data segment has different commodity information. By extracting the data of each segment and the corresponding meaning, the subsequent step S105 can be realized conveniently.
步骤S105,处理所述商品条码及电子标签的数据,并使所述商品条码及电子标签的数据转换。Step S105, processing the data of the commodity barcode and the electronic label, and converting the data of the commodity barcode and the electronic label.
本发明不仅可以实现商品条码转换为电子标签,也可以实现电子标签转换为商品条码,借此方便用户对商品信息的获取。The invention not only realizes the conversion of commodity barcodes into electronic labels, but also realizes the conversion of electronic labels into commodity barcodes, thereby facilitating users to acquire commodity information.
再参见图2,本发明的一具体实施例中,该实施例具体是将电子标签转换为商品条码。其具体可以通过如下流程实现转换:确定所述电子标签分段数据的属性类别;将对应的所述属性类别的数据作为无符号数据,并转换为十进制表示的数据;从所述十进制数据中提取所述商品条码的属性类别数据;构造对应位数的所述商品条码数据,并计算检验码。Referring to Fig. 2 again, in a specific embodiment of the present invention, this embodiment specifically converts the electronic label into a commodity barcode. Specifically, the conversion can be realized through the following process: determining the attribute category of the segmented data of the electronic tag; using the corresponding data of the attribute category as unsigned data, and converting it into decimal representation data; extracting from the decimal data The attribute category data of the commodity barcode; construct the commodity barcode data corresponding to the number of digits, and calculate the check code.
对于具体应用中,商品条码和电子标签(EPC SGTIN-96)的数据组成结构如下:For specific applications, the data structure of commodity barcodes and electronic tags (EPC SGTIN-96) is as follows:
(一)零售商品条码的13位代码结构:(1) The 13-digit code structure of the retail commodity barcode:
组成composition
由厂商识别代码、商品项目代码、校验码三部分组成的13位数字代码,分为四种结构,其结构见表1。The 13-digit code is composed of three parts: manufacturer identification code, commodity item code, and check code, and is divided into four structures, whose structures are shown in Table 1.
表1 13位代码结构Table 1 13-bit code structure
厂商识别代码Manufacturer Identification Code
厂商识别代码由7~10位数字组成,中国物品编码中心负责分配和管理。The manufacturer's identification code consists of 7 to 10 digits, and the China Article Numbering Center is responsible for distribution and management.
厂商识别代码的前3位代码为前缀码,国际物品编码协会已分配给中国物品编码中心的前缀码为690~695。The first 3 digits of the manufacturer's identification code are prefix codes, and the prefix codes assigned to the China Article Numbering Center by the International Article Numbering Association are 690~695.
商品项目代码commodity item code
商品项目代码由5~2位数字组成,一般由厂商编制,也可由中国物品编码中心负责编制。Commodity item codes consist of 5 to 2 digits, generally compiled by the manufacturer, and may also be compiled by the China Article Numbering Center.
校验码check code
校验码为1位数字,用于检验整个编码的正误。The check code is a 1-digit number, which is used to check the correctness of the entire code.
(二)EPC电子标签的SGTIN-96编码结构(2) SGTIN-96 encoding structure of EPC electronic tags
组成composition
SGTIN由6个字段组成:标头、滤值、分区、厂商识别代码、贸易项代码和序列代码,如表2所示。SGTIN consists of 6 fields: header, filter value, partition, vendor identification code, trade item code and serial code, as shown in Table 2.
表2 SGTIN-96的结构、标头和各字段的十进制容量Table 2 SGTIN-96 structure, header and decimal capacity of each field
标头Header
标头8位,二进制值为00110000。The header is 8 bits, and the binary value is 00110000.
滤值filter value
滤值的标准规范详见表3。See Table 3 for the standard specification of the filter value.
表3 SGTIN滤值表Table 3 SGTIN filter value table
分区Partition
分区的可用值以及厂商识别代码和贸易项代码字段的相关大小在表4中定义。The available values for the partition and the associated sizes for the Vendor Identification Code and Trade Item Code fields are defined in Table 4.
表4 SGTIN-96分区值Table 4 SGTIN-96 partition value
本文件所描述的能被转换的EPC电子标签指示码为0。The indication code of the converted EPC electronic label described in this document is 0.
1)厂商识别代码1) Manufacturer identification code
厂商识别代码包含EAN·UCC厂商识别代码的一个逐位编码。由EAN或UCC分配给管理者实体。The Vendor Identification Code contains a bit-by-digit encoding of the EAN·UCC Vendor Identification Code. Assigned to the governing entity by EAN or UCC.
2)贸易项代码2) Trade item code
贸易项代码由管理实体分配给一个特定对象分类。指示码同项目参考代码字段以以下方式结合:把指示码放在域中最左位置,结果看作一个整数,编码成二进制作为贸易项代码字段。A trade item code is assigned by the governing entity to a specific object classification. The indicator code is combined with the item reference code field in the following way: put the indicator code in the leftmost position in the field, and the result is treated as an integer, encoded in binary as the trade item code field.
5序列号5 serial number
由管理实体分配给一个单个对象。SGTIN-96编码只能表示有限范围内的整数值序列代码。Assigned to a single object by the managing entity. SGTIN-96 encoding can only represent a limited range of integer-valued sequence codes.
6EPC SGTIN-96编码表6EPC SGTIN-96 code list
编码表应用在转换过程中的EPC电子标签编码过程和解码过程。The code table is applied to the EPC electronic label encoding process and decoding process during the conversion process.
SGTIN-96编码表如表5所示。编码表中“二进制位位置”一行说明了每个用二进制编码表示的段的相对位置。在“二进制位位置”行,最高的下标表示最高有效位,下标0表示最低有效位。The SGTIN-96 coding table is shown in Table 5. The row "Binary Bit Position" in the code table specifies the relative position of each segment in binary code. In the "Bit Position" row, the highest subscript indicates the most significant bit, and the
表5 SGTIN-96编码表Table 5 SGTIN-96 code table
本发明的一实例中,按照上述商品条码和电子标签的数据组成结构,具体的实现转换过程如下:In an example of the present invention, according to the data composition structure of above-mentioned commodity bar code and electronic label, concrete realization conversion process is as follows:
a)读取电子标签分区值P=b84b83b82,若0≤P≤6,继续译码;否则转换停止。a) Read the electronic label partition value P=b84 b83 b82 , if 0≤P≤6, continue decoding; otherwise, the conversion stops.
b)根据表4,获取厂商识别代码的位数M,分离出厂商识别代码部分b81b80...b(82-M)和贸易项代码部分b(81-M)b(80-M)...b38。b) According to Table 4, obtain the number of digits M of the manufacturer identification code, separate the manufacturer identification code part b81 b80 ... b(82-M) and the trade item code part b(81-M) b(80-M ) ...b38 .
c)将厂商识别代码b81b80...b(82-M)当作无符号整数,转换为十进制数表示的L位数字p1p2...pL,提取厂商识别代码。如果L大于12,输入位串是非法的SGTIN-96编码,转换停止;如L等于12、11或者6,则输入位串为不能转换为零售商品条码编码的SGTIN-96编码,转换停止。c) Treat the manufacturer identification code b81 b80 ... b(82-M) as an unsigned integer, convert it into an L-digit number p1 p2 ...pL represented by a decimal number, and extract the manufacturer identification code. If L is greater than 12, the input bit string is an illegal SGTIN-96 encoding, and the conversion stops; as L equals 12, 11 or 6, then the input bit string is an SGTIN-96 encoding that cannot be converted into a retail product barcode, and the conversion stops.
d)将贸易项代码b(81-M)b(80-M)...b38当作无符号整数,转换为十进制数表示的(13-L)位数字i1i2...i(13-L),提取项目参考代码和指示码。如果(13-L)大于7,则输入位串是非法的SGTIN-96编码,转换停止;如果指示码i1不等于零,则输入位串为不能转换为零售商品条码编码的SGTIN-96编码,转换停止。d) Treat the trade item code b(81-M) b(80-M) ... b38 as an unsigned integer, and convert it to a (13-L) digit i1 i2 ... i represented by a decimal number(13-L) , to extract item reference codes and indicator codes. If (13-L) is greater than 7, then the input bit string is an illegal SGTIN-96 encoding, and the conversion stops; if the indicator code i1 is not equal to zero, then the input bit string is the SGTIN-96 encoding that cannot be converted to retail commodity barcode encoding, Conversion stopped.
e)构造13位数字X13X12...X1,这里X13X12...X(14-L)对应为步骤a)中的p1p2...pL,X(13-L)X(12-L)...X2为步骤b)中的i2i3...i(13-L)。e)
f)计算校验码X1,方法见附录A。f) Calculate the check code X1 , see Appendix A for the method.
g)生成零售商品代码:X13X12X11X10X9X8X7X6X5X4X3X2X1。g) Generate retail item code: X13 X12 X11 X10 X9 X8 X7 X6 X5 X4 X3 X2 X1 .
示例1:EPC电子标签SGTIN-96二进制代码00110000 001 101011010011010001111101010 00000011000000111001 000...01101010000101转换为EAN-13零售商品代码方法见表6。Example 1: EPC electronic label SGTIN-96 binary code 00110000 001 101011010011010001111101010 00000011000000111001 000...01101010000101 is converted to EAN-13 retail commodity code method as shown in Table 6.
表6 EPC SGTIN-96代码转换为EAN-13零售商品代码方法示例Table 6 Example of EPC SGTIN-96 code conversion method to EAN-13 retail product code
再参见图3,本发明提供了一种商品条码转换为电子标签的方法,该实施例同样采用前述的数据结构组成,其流程为:确定所述商品条码的分段数据的属性类别;将对应的所述属性类别的数据转换为二进制表示的数据形式;从所述二进制数据中提取所述电子标签的属性类别数据;生成所述电子标签。Referring to Fig. 3 again, the present invention provides a kind of method that commodity bar code is converted into electronic label, and this embodiment adopts aforementioned data structure composition likewise, and its flow process is: determine the attribute category of the segmentation data of described commodity bar code; The data of the attribute category is converted into a binary data form; the attribute category data of the electronic label is extracted from the binary data; and the electronic label is generated.
具体的转换过程描述如下:The specific conversion process is described as follows:
a)扫描零售商品条码读取条码数据。如果条码数据位数不等于13,则转换停止;否则,将读到的条码数据X13X12...X1进行解码,获取厂商识别代码长度L,并提取出厂商识别代码X13...X(14-L)和商品项目代码X(13-L)...X2。a) Scan the barcode of the retail product to read the barcode data. If the number of digits of the barcode data is not equal to 13, the conversion stops; otherwise, decode the read barcode data X13 X12 ... X1 to obtain the manufacturer identification code length L, and extract the manufacturer identification code X13 .. .X(14-L) and Commodity Item Code X(13-L) ...X2 .
b)根据表4确定EPC电子标签的分区值P、厂商识别代码字段的位数目M和项目参考与指示码字段的位数目N。对于所有的分区值,应确保满足:M+N=44。b) According to Table 4, determine the partition value P of the EPC electronic label, the number of bits M of the manufacturer identification code field, and the number N of bits of the item reference and indication code field. For all partition values, it should be ensured that: M+N=44.
c)将厂商识别代X13X12...X(14-L)当作十进制整数,构造EPC厂商识别代码p1p2...pL,并转换为二进制表示形式b81b80...b(82-M)。c) Treat the vendor identification code X13 X12 ... X(14-L) as a decimal integer, construct the EPC vendor identification code p1 p2 ... pL , and convert it into a binary representation b81 b80 . ..b(82-M) .
d)在商品项目代码X(13-L)...X2前增加0指示符,转换为十进制数表示的(13-L)位数字,构造项目参考0i2...i(13-L),并转换为二进制表示形式b(81-M)b(80-M)...b38。d) Add a 0 indicator before the commodity item code X(13-L )...X2 , convert it to a (13-L) digit represented by a decimal number, and construct the item reference 0i2 ...i(13-L ) , and converted to the binary representation b(81-M) b(80-M) ...b38 .
e)构造整数序列号S,这里0≤S<238。转换为二进制表示形式b37b36...b0。e) Construct an integer serial number S, where 0≤S<238. Convert to binary representation b37 b36 ...b0 .
f)根据表5从最高有效位到最低有效位串联以下位字段构造最终二进制编码:标头00110000(8位)、滤值F(3位)、分区值P(3位)、厂商识别代码C(M位)、贸易项代码(N位)、序列号S(38位)。生成EPC SGTIN-96二进制代码:b95b94...b0。f) According to Table 5, the following bit fields are concatenated from the most significant bit to the least significant bit to construct the final binary code: header 00110000 (8 bits), filter value F (3 bits), partition value P (3 bits), manufacturer identification code C (M digits), trade item code (N digits), serial number S (38 digits). Generates EPC SGTIN-96 binary code: b95 b94 ... b0 .
g)生成EPC电子标签数据。g) Generate EPC electronic label data.
表7 EAN-13零售商品代码转换为EPC SGTIN-96代码方法示例Table 7 Example of EAN-13 retail commodity code conversion method to EPC SGTIN-96 code
再参见图4,本发明还提供一种商品条码与电子标签的转换系统,其可以实现以上实施例的转换方法,该系统100包括:Referring to Fig. 4 again, the present invention also provides a conversion system for commodity barcodes and electronic tags, which can realize the conversion method of the above embodiment, the
条码阅读模块10,用于读取所述商品条码包含的数据信息。需要说明的,本发明中所提商品条码均为13位数据格式的EAN13商品条码。The
第一数据解析模块20,用于对所述商品条码的数据信息进行译码并分别提取条码各段的数据。不同的商品条码包含有不同的商品数据信息,通过对商品条码的识别、译码可以获取其商品数据信息。The first
电子标签读写模块30,用于识别所述电子标签,并读取电子标签数据和/或写电子标签数据以及打印电子标签。具体应用中,可能通过射频识别电子标签,并读取/写入电子标签数据信息。优选的是,本发明的电子标签可以为多种类别,其可以根据不同的需求具体为EPC SGTIN-96电子标签或EPC SGTIN-198电子标签。The electronic tag reading and writing
第二数据解析模块40,用于对所述电子标签进行译码并分别提取所述电子标签各段的数据。电子标签的数据的有个数据段,每个数据段具有不同的商品信息,通过提取各段数据及对应的含义,可方便的实现后续步骤S105。The second
数据处理转换模块50,用于处理所述商品条码及电子标签的数据,并使所述商品条码及电子标签的数据转换。本发明不仅可以实现商品条码转换为电子标签,也可以实现电子标签转换为商品条码,借此方便用户对商品信息的获取。The data processing and
本系统还可以设置条码打印模块60,以方便打印商品条码。The system can also be provided with a
综上所述,本发明通过商品条码与电子标签的转换系统读取所述商品条码包含的数据信息,并对所述商品条码的数据信息进行译码并分别提取条码各段的数据;识别所述电子标签,并读取电子标签数据和/或写电子标签数据以及打印电子标签;对所述电子标签进行译码并分别提取所述电子标签各段的数据;处理所述商品条码及电子标签的数据,并使所述商品条码及电子标签的数据转换。借此可以方便的实现电子标签与商品条码的信息转换,使用户能更好的获取商品信息。In summary, the present invention reads the data information contained in the commodity barcode through the conversion system of the commodity barcode and the electronic label, decodes the data information of the commodity barcode and extracts the data of each segment of the barcode respectively; the electronic label, and read the electronic label data and/or write the electronic label data and print the electronic label; decode the electronic label and extract the data of each segment of the electronic label; process the commodity barcode and electronic label data, and convert the data of the commodity barcode and electronic label. In this way, the information conversion between electronic tags and product barcodes can be realized conveniently, so that users can better obtain product information.
当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。Certainly, the present invention also can have other multiple embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these corresponding Changes and deformations should belong to the scope of protection of the appended claims of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013102049982ACN103258182A (en) | 2013-05-24 | 2013-05-24 | Conversion method and system for article bar code and electronic tag |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2013102049982ACN103258182A (en) | 2013-05-24 | 2013-05-24 | Conversion method and system for article bar code and electronic tag |
| Publication Number | Publication Date |
|---|---|
| CN103258182Atrue CN103258182A (en) | 2013-08-21 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2013102049982APendingCN103258182A (en) | 2013-05-24 | 2013-05-24 | Conversion method and system for article bar code and electronic tag |
| Country | Link |
|---|---|
| CN (1) | CN103258182A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103902951A (en)* | 2014-04-13 | 2014-07-02 | 深圳市检验检疫科学研究院 | Transition system and method for electronic tag and logistic unit bar code |
| TWI628615B (en)* | 2015-08-27 | 2018-07-01 | 友賢科技有限公司 | Single identification decoding identification method for medical supplies |
| CN108898199A (en)* | 2018-06-29 | 2018-11-27 | 连云港伍江数码科技有限公司 | product identification code converting method, device and product management system |
| CN109325380A (en)* | 2018-09-20 | 2019-02-12 | 摩尔元数(厦门)科技有限公司 | By configuring the method and system for realizing that label bar code automatically parses |
| CN109447230A (en)* | 2018-09-30 | 2019-03-08 | 厦门物之联智能科技有限公司 | A kind of optical electron bimodulus anti-counterfeiting system |
| CN109886711A (en)* | 2019-02-22 | 2019-06-14 | 王佑宁 | A kind of bar code coding method and device |
| CN111325294A (en)* | 2018-12-14 | 2020-06-23 | 北京京东尚科信息技术有限公司 | Label generation method and system, computer system and computer readable storage medium |
| US10755238B2 (en) | 2017-01-24 | 2020-08-25 | Siemens Aktiengesellschaft | Transmission method, apparatus and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7048191B2 (en)* | 2001-01-19 | 2006-05-23 | Electronics And Telecommunications Research Institute | 4-state bar code printing and reading system and method for controlling the same |
| CN101201928A (en)* | 2007-09-06 | 2008-06-18 | 北京农业信息技术研究中心 | Beef product quality and safety tracking and tracing method and system |
| CN101281588A (en)* | 2007-04-03 | 2008-10-08 | 报联新动力(北京)科技有限公司 | Two-dimension bar code system being suitable for mobile application as well as encoding-decoding method thereof |
| CN101504716A (en)* | 2009-03-13 | 2009-08-12 | 重庆大学 | QR two-dimension bar code recognition method and system based on field programmable gate array |
| CN102509130A (en)* | 2011-10-17 | 2012-06-20 | 广州市远望谷信息技术有限公司 | Method and device for quickly checking clothes |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7048191B2 (en)* | 2001-01-19 | 2006-05-23 | Electronics And Telecommunications Research Institute | 4-state bar code printing and reading system and method for controlling the same |
| CN101281588A (en)* | 2007-04-03 | 2008-10-08 | 报联新动力(北京)科技有限公司 | Two-dimension bar code system being suitable for mobile application as well as encoding-decoding method thereof |
| CN101201928A (en)* | 2007-09-06 | 2008-06-18 | 北京农业信息技术研究中心 | Beef product quality and safety tracking and tracing method and system |
| CN101504716A (en)* | 2009-03-13 | 2009-08-12 | 重庆大学 | QR two-dimension bar code recognition method and system based on field programmable gate array |
| CN102509130A (en)* | 2011-10-17 | 2012-06-20 | 广州市远望谷信息技术有限公司 | Method and device for quickly checking clothes |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103902951A (en)* | 2014-04-13 | 2014-07-02 | 深圳市检验检疫科学研究院 | Transition system and method for electronic tag and logistic unit bar code |
| CN103902951B (en)* | 2014-04-13 | 2017-07-21 | 深圳市检验检疫科学研究院 | Electronic tag and the converting system and method for Logistic Unit bar code |
| TWI628615B (en)* | 2015-08-27 | 2018-07-01 | 友賢科技有限公司 | Single identification decoding identification method for medical supplies |
| US10755238B2 (en) | 2017-01-24 | 2020-08-25 | Siemens Aktiengesellschaft | Transmission method, apparatus and system |
| CN108898199A (en)* | 2018-06-29 | 2018-11-27 | 连云港伍江数码科技有限公司 | product identification code converting method, device and product management system |
| CN108898199B (en)* | 2018-06-29 | 2021-09-07 | 连云港伍江数码科技有限公司 | Product identification code conversion method and device and product management system |
| CN109325380A (en)* | 2018-09-20 | 2019-02-12 | 摩尔元数(厦门)科技有限公司 | By configuring the method and system for realizing that label bar code automatically parses |
| CN109325380B (en)* | 2018-09-20 | 2021-10-26 | 摩尔元数(福建)科技有限公司 | Method and system for realizing automatic analysis of label bar code through configuration |
| CN109447230A (en)* | 2018-09-30 | 2019-03-08 | 厦门物之联智能科技有限公司 | A kind of optical electron bimodulus anti-counterfeiting system |
| CN111325294A (en)* | 2018-12-14 | 2020-06-23 | 北京京东尚科信息技术有限公司 | Label generation method and system, computer system and computer readable storage medium |
| CN111325294B (en)* | 2018-12-14 | 2024-08-16 | 北京京东尚科信息技术有限公司 | Label generating method and system, computer system and computer readable storage medium |
| CN109886711A (en)* | 2019-02-22 | 2019-06-14 | 王佑宁 | A kind of bar code coding method and device |
| Publication | Publication Date | Title |
|---|---|---|
| CN103258182A (en) | Conversion method and system for article bar code and electronic tag | |
| Soon | QR code | |
| US20100065636A1 (en) | Ontology-Based EPC Automatic Conversion Method and System | |
| CN103458014B (en) | Internet of things uniform identification code analysis method and system | |
| CN101984456A (en) | Preparation method of multiple-expression tag of master-slave plain-secret code | |
| CN104933539A (en) | Express delivery single generation method based on RFID technology | |
| CN103902951B (en) | Electronic tag and the converting system and method for Logistic Unit bar code | |
| CN102842052B (en) | A kind of identity code generating method | |
| CN208538405U (en) | A kind of primary and secondary code antifalsification label | |
| CN205050157U (en) | Scanner bracket | |
| CN104766114A (en) | Commodity identification code and producing technology for commodity identification code | |
| CN204463144U (en) | An RFID system and built-in RFID anti-stealing low-voltage CT | |
| CN101692268A (en) | A kind of RFID clothing tag coding method | |
| CN107239809B (en) | A quick inventory method based on handheld radio frequency identification reader | |
| Finch et al. | Auto-ID application in construction | |
| CN115062741A (en) | A kind of encoding and decoding method of RFID electronic label | |
| CN202976191U (en) | Logistics management and anti-counterfeiting antitheft system | |
| Harmon | The necessity for a uniform organisation of user memory in RFID | |
| CN202814528U (en) | Bar code scanning radio frequency identification pricing system | |
| CN207440814U (en) | A shopping settlement group scanning system | |
| CN105868659A (en) | RFID system and built-in RFID anti-tamper low-voltage CT | |
| CN208014008U (en) | A kind of tag system of tracing to the source of Wines packing case | |
| CN219039772U (en) | RFID-based electronic logistics anti-counterfeit label | |
| CN103208017A (en) | Implementation method capable of tracing radio frequency identification (RFID) | |
| KR100557800B1 (en) | RF Tag Code System for Logistics Search on the Internet and RF Tag System Applying the RF Tag Code |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20130821 |