WZL x GCX x IOTA — Status Report 02

Data(-base) specification and data preparation

Daniel Trauth
Aug 6, 2018 · 7 min read
Image for post
Image for post
Background: Finetool Machine with Coils. Image: © WZL | Christian May & Semjon Becker

Previous Stories

Retrospective

Fineblanking at the WZL of RWTH Aachen University using an Feintool XFT 2500 speed. Video: © WZL | Herman Voigts

Focus of Status Report 02

Data package specification

Data set

Exemplary raw data set file

# Data set
[
{
"pubKey": "-----PUBLIC KEY-----",
"sign": "3fe...930"
},
{
"mamAddr": "9QJ...TMX",
"sidekey": "BTE...FEP",
"root": "ABC...9QW"
},
{
"id": "1c06b4ab6c7d3cdff34a2960",
"material": "X210CrW12",
"punch_force": 2492.5676,
"punch_stroke": 15.2656,
"die_roll": 2.5865,
"timestamp": 1407390451216
}
]

Data preparation

# Sign Data
def sign_data (self,
PrivPublKeys = "YourKeys.json",
DataToBeHashed = "YourData.json",
DataPackageHashed = "YourHashedData.json"
)

How to store our data packages

Image for post
Image for post
Importing into DynamoDB. Image: © WZL | Felix Mönckemeyer & Semjon Becker

Stages of PoW

Image for post
Image for post
Stages of PoW. Image: © WZL | Felix Mönckemeyer & Semjon Becker

Using AWS Lambda to do the PoW

Image for post
Image for post
Concurrent attachment of messages. Image: © WZL | Felix Mönckemeyer & Semjon Becker

Attaching workpiece data to the tangle

// Get the Data out of the SQS
event.Records.forEach((record) => {
data = JSON.parse(event.Records[0].messages[0].body)
})
// Get the index in which position of the MAM stream it should be
// placed
let index = parseInt(data.indx)

// Send the transaction via the MAM library and with local PoW
const root = await client.send(JSON.stringify(data), index - 1)

Coming up

Sneak peek of the #WZL x #GCX x #IOTA Web-Frontend.

Acknowledgement

Donations to the IILA

YAEIESUZBAQNKACLQOIHWZMWEGOCBGSYXSCMBUXXQOXNZUPU9QGEKZWMCMXKSTATAVS9EFHMLW9IRNYKDBXUAOK9DZ

Get in contact

Image for post
Image for post
Image: © WZL | Peter Winandy

Industrial IOTA Lab Aachen @ WZL of RWTH Aachen University

Stay informed about the use case of WZL of RWTH Aachen…

Daniel Trauth

Written by

Co-Fdr. of senseering GmbH. Working w/ @rwth_wzl of @RWTH Aachen Univ twds the #InternetOfProduction. http://www.danieltrauth.com/

Industrial IOTA Lab Aachen @ WZL of RWTH Aachen University

Stay informed about the use case of WZL of RWTH Aachen University and senseering GmbH

Daniel Trauth

Written by

Co-Fdr. of senseering GmbH. Working w/ @rwth_wzl of @RWTH Aachen Univ twds the #InternetOfProduction. http://www.danieltrauth.com/

Industrial IOTA Lab Aachen @ WZL of RWTH Aachen University

Stay informed about the use case of WZL of RWTH Aachen University and senseering GmbH

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade