0% found this document useful (0 votes)
59 views23 pages

Enhancing Digital Calibration Certificate (DCC) Workflow Python-Based DCC Tools Development and Implementation

The document presents Python-based tools for generating and handling digital calibration certificates (DCCs) to improve accessibility, convenience, and interoperability. The tools include dccGenerator to generate XML from JSON data, dccAddPdf to add a human-readable PDF, and dccGetPdf to extract the PDF. The tools utilize Amazon Web Services Lambda for a serverless architecture and operate within free tier limits for typical calibration workflows. The overall goal is to support true digitalization of calibration processes through machine-readable DCCs.

Uploaded by

Gean
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
59 views23 pages

Enhancing Digital Calibration Certificate (DCC) Workflow Python-Based DCC Tools Development and Implementation

The document presents Python-based tools for generating and handling digital calibration certificates (DCCs) to improve accessibility, convenience, and interoperability. The tools include dccGenerator to generate XML from JSON data, dccAddPdf to add a human-readable PDF, and dccGetPdf to extract the PDF. The tools utilize Amazon Web Services Lambda for a serverless architecture and operate within free tier limits for typical calibration workflows. The overall goal is to support true digitalization of calibration processes through machine-readable DCCs.

Uploaded by

Gean
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 23

Enhancing Digital Calibration Certificate (DCC) Workflow

Python-based DCC Tools Development and Implementation

Gean Marcos Geronymo

Inmetro

November 28th, 2023

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 1 / 23
Calibration Certificates: A Digital Challenge

Calibration Certificates are essential for ensuring measurement instrument reliability.


Digitalization in the Industry 4.0 era demands true digitalization of calibration
processes.
Current practices often involve non-machine-readable formats, slowing down
integration with digital processes.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 2 / 23
Calibration Certificates: A Digital Challenge

Closed, non-machine-readable formats like PDF slows down true digitalization.


Manual conversion of analog data is time-consuming and error-prone.
This paper addresses the need for efficient handling of Digital Calibration
Certificates (DCCs).

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 3 / 23
Calibration Certificates: A Digital Challenge

We present open-source Python-based DCC Tools to generate and handle DCCs.


These tools improve accessibility, convenience, and interoperability.
The paper’s structure includes an introduction to DCCs, related work,
Python-based DCC Tools, and future directions.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 4 / 23
Transition to DCCs: True Digitalization

Shift from analog to digital calibration certificates involves more than content
transfer (digitization).
Paper to PDF conversion enhances human readability, while DCCs are
machine-readable and interpretable (true digitalization).
Achieved through a clearly defined data storage format, enabling precise and
efficient data storage.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 5 / 23
Digital Calibration Certificate Structure - PTB proposal

Figure: DCC Structure. Source: https://www.ptb.de/dcc/v2.4.0/en/#structure

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 6 / 23
Digital System of Units (D-SI)

D-SI is an XML format designed for seamless integration of measurement data into
DCCs.
It includes crucial information like numerical values, associated units, and
measurement uncertainties (value and distribution).
Ongoing efforts by the “CIPM Task Group on the Digital SI” enhance
standardization and development of D-SI.
Visual representation of the D-SI data model (Slide 8) and an application example
for a resistance value in ohms (Slide 9).

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 7 / 23
D-SI Structure

Figure: DCC Structure. Source: https://gitlab1.ptb.de/d-ptb/d-si/xsd-d-si/-/


blob/master/wiki/doc/RealQuantity.md
Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 8 / 23
D-SI XML Example

Figure: D-SI XML example - resistance.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 9 / 23
D-SI XML Example

Figure: Example of a fully compliant D-SI quantity statement. The electrical resistance unit
(ohm) is stated in term of the SI base units (m2 kg s-3 A2 ) for a “platinum” quality class in
terms of machine-readability. Alternatively, the unit can be represented as \ohm for a “gold”
quality class.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 10 / 23
Streamlining the Calibration Workflow

Metrology Cloud (MC) is the most desirable path for the digitalization of
calibration processes.
DCCs offer digitalization benefits, even if shared via simpler methods like email.
Real-time action on instrumentation is a key advantage of DCCs, especially in
smart factories.
DCC Tools in this paper support both initial DCC adoption and future integration
with MC.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 11 / 23
Existing solutions

PTB offers GEMIMEG and Excel Tools for DCC.


GEMIMEG: Web-based, open-source, manual data creation.
Excel Tool: Macro-enabled, generates DCC XML from blocks.
METAS: Embed machine-readable metadata in PDF/A-3.
SIEMENS: PyDCC
Python library under development for DCC access and processing.
Enables seamless extraction and manipulation of DCC data.
Simplifies integration into digital manufacturing workflows.
Now available on Github https://github.com/siemens/pydcc

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 12 / 23
Our proposal: DCC Tools

Available on GitHub https://github.com/gmgeronymo/dcc_tools


Implemented in Python, designed for cloud-based technologies (AWS Lambda).
Three main tools:
dccGenerator: Generates PTB DCC compliant XML from JSON array.
dccAddPdf: Adds human-readable PDF to XML.
dccGetPdf: Extracts human-readable PDF from XML.
Future plan: Implement dccReader using PyDCC to extract measurement data.
GitHub repository includes scripts for testing and examples of DCCs.
Diagram representation of DCC Tools in Slide 14.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 13 / 23
DCC Tools Diagram

Measurement Data Measurement Data

DCC DCC
dccGenerator dccReader
(to be implemented)
Measurement Data
(to be implemented)

DCC

DCC DCC Human Readable


dccAddPdf dccGetPdf
Certificate

Human Readable Certificate

Figure: DCC Tools diagram.


Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 14 / 23
System Architecture

Serverless design with AWS Lambda as the core compute service.


Advantages: Automatic scaling, pay-as-you-go pricing, reduced operational
overhead.
Suitable for limited trusted clients or internal systems.
Lambda function URLs enable efficient data submission and retrieval.
Operating within AWS Lambda free tier limits for typical calibration lab usage (1M
requests / month).
Cost-efficient solution for digital calibration certificate generation.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 15 / 23
Example

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 16 / 23
Example

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 17 / 23
Example

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 18 / 23
Example - embedded PDF

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 19 / 23
Cryptographic Signatures

DCC XML can be digitally signed for trust between institute and customer.
Adding digital signatures to XML files is a common practice in software industry
with various free tools available.
In Brazil, Assinador Serpro is a free tool by a federal state-owned company
https://www.serpro.gov.br/links-fixos-superiores/
assinador-digital/assinador-serpro
Requires a valid digital certificate from a certification authority for signing.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 20 / 23
Privacy and Confidentiality Concerns

DCC Tools architecture: No data storage on cloud servers.


AWS Lambda functions process data and return to the user.
Access to Lambda functions via encrypted HTTPS requests ensures data
confidentiality.
DCC Tools can be easily adapted to run on a local server for confidentiality
concerns.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 21 / 23
Conclusion

Pragmatic solution introduced for efficient DCC handling via cloud-based serverless
application.
Software tools offer potential for enhancement and customization.
Seamless integration into calibration workflows supports genuine digitalization of
processes.
Adoption of DCCs improves productivity by eliminating manual transcription tasks.

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 22 / 23
Thank you for your attention!
Questions?
gmgeronymo@inmetro.gov.br

Gean Marcos Geronymo (Inmetro) Enhancing Digital Calibration Certificate (DCC) Workflow November 28th, 2023 23 / 23

You might also like