Konwerter RFID TDS 2.x
Konwertuj i analizuj kody RFID EPC z obsługą ponad 8 schematów GS1. Oparte na GS1 EPC Tag Data Standard (TDS) 2.x z automatycznym wykrywaniem schematów i gotowymi do IoT adresami Digital Link URIs.
Dekoder automatycznego wykrywania
Wklej dowolną wartość szesnastkową EPC, a my automatycznie wykryjemy schemat i zdekodujemy wszystkie pola
Koder EPC
Generuj kody szesnastkowe EPC z GTIN, numerów seryjnych i innych identyfikatorów
Odniesienie do schematu EPC
| Schemat | Nagłówek | Bity | Opis | Klucz 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 |
Fragmenty kodu dla programistów
Gotowe do wklejenia implementacje dla wieloschematowego kodowania/dekodowania 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 = "3076215F0C5D974000000001";
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}`);