TDS 2.x Trosiwr RFID

Trosi a dadansoddi codau EPC RFID gyda chefnogaeth ar gyfer 8+ cynllun GS1. Yn seiliedig ar Safon Data Tag EPC GS1 (TDS) 2.x gyda chanfod cynllun awtomatig a URIau Dolen Ddigidol sy'n barod ar gyfer IoT.

Dadgodio Awtomatig

Gludwch unrhyw werth hecs EPC a byddwn yn canfod y cynllun yn awtomatig ac yn dadgodio'r holl feysydd

Codwr EPC

Cynhyrchu codau hecs EPC o GTIN, rhifau cyfresol, ac adnabodwyr eraill

Cyfeirnod Cynllun EPC

CynllunPenawdBitiauDisgrifiadAllwedd GS1
GDTI-960x2C96Global Document Type IdentifierGDTI
GSRN-960x2D96Global Service Relation NumberGSRN
SGTIN-960x3096Serialized Global Trade Item NumberGTIN + Serial
SSCC-960x3196Serial Shipping Container CodeSSCC
SGLN-960x3296Global Location Number with ExtensionGLN + Extension
GRAI-960x3396Global Returnable Asset IdentifierGRAI
GIAI-960x3496Global Individual Asset IdentifierGIAI
SGTIN-1980x36198SGTIN with alphanumeric serialGTIN + Serial

Darnau Cod Datblygwr

Gweithrediadau parod i'w gludo ar gyfer codio/dadgodio EPC aml-gynllun

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}`);

Cwestiynau Cyffredin