TDS 2.x RFID 转换器
转换和分析 RFID EPC 代码,支持 8+ 种 GS1 方案。基于 GS1 EPC Tag Data Standard (TDS) 2.x,具有自动方案检测和物联网就绪的数字链接 URI。
自动检测
粘贴任意 EPC 十六进制值,我们将自动检测方案并解码所有字段
EPC 编码器
从 GTIN、序列号和其他标识符生成 EPC 十六进制代码
EPC 方案参考
| 方案 | 头部 | 位 | 描述 | GS1 密钥 |
|---|---|---|---|---|
| GDTI-96 | 0x2C | 96 | Global Document Type Identifier | GDTI |
| GSRN-96 | 0x2D | 96 | Global Service Relation Number | GSRN |
| SGTIN-96 | 0x30 | 96 | Serialized Global Trade Item Number | GTIN + Serial |
| SSCC-96 | 0x31 | 96 | Serial Shipping Container Code | SSCC |
| SGLN-96 | 0x32 | 96 | Global Location Number with Extension | GLN + Extension |
| GRAI-96 | 0x33 | 96 | Global Returnable Asset Identifier | GRAI |
| GIAI-96 | 0x34 | 96 | Global Individual Asset Identifier | GIAI |
| SGTIN-198 | 0x36 | 198 | SGTIN with alphanumeric serial | GTIN + Serial |
开发者代码片段
用于多方案 EPC 编码/解码的复制粘贴就绪实现
1// TDS 2.x Multi-Scheme EPC Decoder (TypeScript)
2import { decodeEpc, detectEpcScheme, encodeSgtin96 } from './tds-epc-utils';
3
4// Auto-detect and decode any EPC
5const hex = "303400C0E4424C80009FE8D8";
6const result = decodeEpc(hex);
7
8console.log(`Scheme: ${result.schemeName}`);
9console.log(`GTIN-14: ${'gtin14' in result ? result.gtin14 : 'N/A'}`);
10console.log(`Serial: ${'serial' in result ? result.serial : 'N/A'}`);
11console.log(`Digital Link: ${result.digitalLinkUri}`);
12
13// Encode SGTIN-96
14const encoded = encodeSgtin96("8935363958373", "12345", 3);
15console.log(`Encoded: ${encoded}`);