How havanlabsrfid/serializadorrfid works
Project type and purpose
• This is a C# class-library project (“CriptografiaRFID”) that implements GS1 EPC (Electronic Product Code) RFID serialization and deserialization algorithms, plus a simple console application (“Exemplo”) that consumes the library.
• Purpose: Given GS1 parameters (e.g. barcode, serial, partition) produce an EPC code in hex or parse an EPC back to GS1 fields.
File structure
• Top-level solution (.sln) contains two projects:
• CriptografiaRFID (class-library)
– Constantes: GS1 partition headers and default partition settings.
– DTO: simple DTO for EPC results.
– Helper: utility classes (barcode formatting, converters).
– EpcHelper.cs: entry point for serialization/deserialization methods.
– Interfaces: IGS1 defines generic GS1 serialization API.
– Modelos: concrete GS1 model classes (SGTIN_96, GRAI_96, GIAI_96) plus GS1 defaults.
– Properties, project/VS config files.
• Exemplo (console app)
– References CriptografiaRFID, shows usage of SerializarSgtin, SerializarGenerico, GetGS1.
README for additional insights
• README calls out the two main operations: SerializarSgtin(barcode, serial, partition) and SerializarGenerico(Parametro : GS1).
• Deserialization via GetGS1(epcHexadecimal).
• Links to external GS1 EPC standard documentation.
Detailed component breakdown
• Exemplo (Console App)
• EpcHelper
• SerializarSgtin(barcode, serial, partition)
• SerializarGenerico(Parametro)
• GetGS1(epcHex)
• HelperBarcode: barcode format/validate
• HelperConverter: numeric/bit conversions
• IGS1 Interface: Serialize(), Deserialize()
• SGTIN_96, GRAI_96, GIAI_96: algorithm implementations
• Constants: EpcHeaders, Partition definitions
• EPCSimplesDTO: fields for resulting EPC metadata
Final advice
• Data flow from input parameters through each layer to the final hex string or DTO.
• Use consistent iconography: folders/packages, classes, interfaces.
• Keep the Facade prominent to show how a consumer interacts with the library.
• Extensibility: show where new GS1 schemes could plug in (via IGS1).