Scientific architecture · IoT billing, emissions and integrity
Scientific concept map: IoT smart meter — Power × duration; Consumption — kWh per interval; Tariff and emissions — Cost / CO₂ factor; Canonical record — Timestamp and readings; Ledger commitment — Digest integrity.
Scientific foundations and analytical reasoning
Energy equals power multiplied by time; telemetry billing depends on record count and emissions depend on a declared grid factor. Integrity protects the recorded data, not metering accuracy.
Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.
BC-M01 · Academic orientation
Scope and objectives
Scope of the experiment
Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.
The focus of this experiment is to distinguish physical IoT observations from ledger representations. Students then trace device records into an integrity-preserving workflow, and evaluate storage, energy and evidence constraints without treating ledger entries as physical truth. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.
Learning objectives
Distinguish physical IoT observations from ledger representations.
Trace device records into an integrity-preserving workflow.
Evaluate storage, energy and evidence constraints without treating ledger entries as physical truth.
Identify the configured inputs (Metering devices; Monitoring hours; Readings per device/hour; Mean device power (W); Charge per 1000 records) and record the corresponding observed outputs with units where applicable.
Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.
Expected learning outcomes
On completion, students can distinguish physical IoT observations from ledger representations, trace device records into an integrity-preserving workflow, and evaluate storage, energy and evidence constraints without treating ledger entries as physical truth.
Required deliverables
Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing evaluate storage, energy and evidence constraints without treating ledger entries as physical truth. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to Hashing, authentication and avalanche.
Environment and experimental methodology
The listed browser model and experiment-specific local Python, Solidity or EVM workflow, where provided. Do not treat a model as a deployed ledger.
Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.
Scientific theory · Energy and accountable telemetry
Energy is power integrated over time; constant power P for hours t produces P×t watt-hours, divided by 1000 for kWh. Billing multiplies energy by tariff, and estimated emissions multiply kWh by a declared grid factor. An integrity commitment protects recorded bytes, not calibration or metering truth.
Worked example and engineering interpretation
A 100 W device operating for 10 hours consumes 1 kWh under the constant-power assumption. At 0.15 currency units/kWh and 0.4 kg CO2e/kWh, estimated cost is 0.15 and emissions 0.4 kg CO2e. Treat these as conditional predictions and record the actual units and factors.
Engineering principles · additional worked teaching example
Sampling rate determines record count; energy is the integral of power. At 4 nodes, 30 samples/hour, 10 h, 3 W/node: 1200 records and 0.12 kWh. At 0.4 kg/kWh emissions are 0.048 kg; a signed digest verifies recorded bytes, not meter calibration.
From theory to experiment
Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.
Worked engineering reasoning and boundary conditions
Engineering reference configuration: Metering devices = 8; Monitoring hours = 24; Readings per device/hour = 60; Mean device power (W) = 2; Charge per 1000 records = 0.2; Grid emission factor (kg CO₂/kWh) = 0.4; Retrieved energy correction (kWh) = 0. In the classroom model, Records = 11520; Energy = 0.384 kWh; Emissions = 0.1536 kg CO₂; Service charge = 2.304 billing units; Evidence matches = Yes. The commitment detects changed retrieved bytes; it cannot independently establish metering truth. Declared workload and power assumptions; no actual metering, emissions certification or blockchain deployment.
Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.
Mathematical representation and interpretation
Sampling, energy and emissions
n is device count, r readings per hour, t hours, P watts per device, E kilowatt-hours and gamma kilograms CO₂ per kilowatt-hour. This model requires constant power or a time average.
Concept animation · topology and link dependencies
Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.
Step 1 of 4 · Connection 1
Connection 1
Link 1
meter → edge · acquire
Connection 2
Link 1
meter → edge · acquire
Link 2
edge → bill · charge
Connection 3
Link 1
meter → edge · acquire
Link 2
edge → bill · charge
Link 3
edge → carbon · estimate
Connection 4
Link 1
meter → edge · acquire
Link 2
edge → bill · charge
Link 3
edge → carbon · estimate
Link 4
carbon → audit · anchor
Teaching example only; inspect live calculations or real practical evidence separately.
How to investigate IoT and blockchain foundations
Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.
Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.
Experiment-specific guided practice
Objective: Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.
Run the 8-device, 24-hour baseline with 60 samples/hour, 2 W and grid factor 0.4. Calculate 11,520 records, 0.384 kWh and 0.1536 kg CO₂ independently.
Verify cost = records × price/1000 and inspect 64-byte-per-record storage demand. Double the device count; confirm both energy and workload double.
Restore the baseline and change the emission factor to 0.1. Energy stays constant while CO₂ falls.
Alter retrieved energy by 0.01 kWh without changing the trusted commitment. Inspect the SHA-256 mismatch.
Reference check: Unchanged bytes reproduce the trusted digest; changed bytes fail verification. More sensors increase the raw byte budget linearly.
Model boundary: SHA-256 commitment, not a signature or proof of measurement truth. Fixed 64-byte records for the workload estimate.
Independent task and submission evidence
2. Verify cost = records × price/1000 and inspect 64-byte-per-record storage demand. Double the device count; confirm both energy and workload double. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.
Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.
Learning goals
Explain the mechanism using the actual intermediate states in this experiment.
Predict and verify the reference and modified conditions described below.
Interpret the acceptance criteria and identify the limits of the model.
Module flashcards · 12 questions
Browse all 12 questions and explanationsWhat does the retained digest establish?
Equality of the supplied bytes with the previously committed bytes.
Does the ledger prove a sensor was calibrated?
No. Calibration and trustworthy acquisition are separate evidence.
Why use a gateway?
It can mediate connectivity, batching and resource constraints.
What changes when the number of sensors doubles?
Under fixed sampling and record size the raw payload budget doubles.
Why keep an independent trusted digest?
A digest supplied alongside modified data can be replaced with it; the reference needs independent trust.
What is the independent variable in the tampering trial?
The auditor candidate value, with the reference reading held fixed.
Why may blockchain increase storage pressure?
Replicated history and frequent transactions consume storage and bandwidth.
What does successful verification not imply?
That the original sensor reading is accurate, authenticated or authorized.
If six sensors each produce a 64-byte record, what is the sampling-round size?
384 bytes.
What changes when the auditor enters 421 instead of the committed 420 ppm?
The candidate digest differs; verification fails.
If 24 sensors report once, how many raw bytes are produced?
1536 bytes.
Can an incorrect sensor reading pass digest verification?
Yes, if its exact bytes were committed; integrity is not sensor accuracy.
Loading experiment-specific apparatus…Previous model / additional reference tools
Loading computational workbench…
Independent theoretical exercises
Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.
01 · Predict and derive using the given inputs
For 8 devices, 24 h, 60 readings/hour/device, 2 W/device, calculate records, kWh, charge at 0.2 per 1000 records and emissions at 0.4 kg/kWh.
Engineering method — Sampling rate determines record count; energy is the integral of power. At 4 nodes, 30 samples/hour, 10 h, 3 W/node: 1200 records and 0.12 kWh. At 0.4 kg/kWh emissions are 0.048 kg; a signed digest verifies recorded bytes, not meter calibration. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Calculate revised results for 12 devices. Explain how a digest can detect edited data but not an inaccurate meter.
Engineering method — Sampling rate determines record count; energy is the integral of power. At 4 nodes, 30 samples/hour, 10 h, 3 W/node: 1200 records and 0.12 kWh. At 0.4 kg/kWh emissions are 0.048 kg; a signed digest verifies recorded bytes, not meter calibration. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Numerical design
Numerical design · Independent work
For 6 nodes sampling 20 times/hour over 5 h at 4 W each, calculate records, kWh and emissions at 0.35 kg/kWh. Explain how doubling the sample rate affects each.
Numerical design — Sampling rate determines record count; energy is the integral of power. At 4 nodes, 30 samples/hour, 10 h, 3 W/node: 1200 records and 0.12 kWh. At 0.4 kg/kWh emissions are 0.048 kg; a signed digest verifies recorded bytes, not meter calibration. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.
Expanded independent theoretical exercise bank
Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.
Intermediate · Explain a changed-input result
Independent theoretical exercise · BC-M01-01
Use the reference configuration (Metering devices = 8; Monitoring hours = 24; Readings per device/hour = 60; Mean device power (W) = 2; Charge per 1000 records = 0.2; Grid emission factor (kg CO₂/kWh) = 0.4; Retrieved energy correction (kWh) = 0), but change Metering devices = 10. The model reports Records = 14400. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Quantitative comparison
Independent theoretical exercise · BC-M01-02
Two model observations of Records are 11520 (reference) and 14400 (changed condition). Compute signed change and, when the reference is nonzero, percentage change. Explain why units matter.
Intermediate · Interpret a technical trace
Independent theoretical exercise · BC-M01-03
For Monitoring hours = 26, the model supplies this excerpt from Inventory arithmetic:
Quantity · Calculation · Value
Readings · 8 × 26 × 60 · 12480
Raw bytes · 12480 × 64 · 798720
Energy kWh · 8 × 26 × 2 / 1000 · 0.416
CO₂ kg · 0.416 × 0.4 · 0.1664
Charge · 12480 × 0.2 / 1000 · 2.496
Count rows whose Calculation value is exactly “8 × 26 × 60”, and identify the displayed row numbers. Explain what the count describes.
Advanced · Reverse reasoning
Independent theoretical exercise · BC-M01-04
An observation is Records = 12480. Candidate A uses Metering devices = 8; Monitoring hours = 24; Readings per device/hour = 60; Mean device power (W) = 2; Charge per 1000 records = 0.2; Grid emission factor (kg CO₂/kWh) = 0.4; Retrieved energy correction (kWh) = 0. Candidate B changes the listed settings (Monitoring hours = 26) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.
Advanced · Diagnose a reported mismatch
Independent theoretical exercise · BC-M01-05
A student configures Readings per device/hour = 62 while preserving all other reference settings, but copies the reference report of Records = 11520. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · BC-M01-06
Design a controlled comparison for IoT and blockchain foundations using reference Metering devices = 8; Monitoring hours = 24; Readings per device/hour = 60; Mean device power (W) = 2; Charge per 1000 records = 0.2; Grid emission factor (kg CO₂/kWh) = 0.4; Retrieved energy correction (kWh) = 0 and test Metering devices = 10. Specify the changed setting(s), measured metric Records, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Step-by-step experimental procedure
Quantify IoT service billing and an emissions inventory; distinguish committed data integrity from physical truth.
1 · Reference workbench configuration
Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.
Metering devices8
Monitoring hours24
Readings per device/hour60
Mean device power (W)2
Charge per 1000 records0.2
Grid emission factor (kg CO₂/kWh)0.4
Retrieved energy correction (kWh)0
2 · Perform the investigation in order
Run the 8-device, 24-hour baseline with 60 samples/hour, 2 W and grid factor 0.4. Calculate 11,520 records, 0.384 kWh and 0.1536 kg CO₂ independently.
Verify cost = records × price/1000 and inspect 64-byte-per-record storage demand. Double the device count; confirm both energy and workload double.
Restore the baseline and change the emission factor to 0.1. Energy stays constant while CO₂ falls.
Alter retrieved energy by 0.01 kWh without changing the trusted commitment. Inspect the SHA-256 mismatch.
Propose a sensor calibration or third-party audit that would address false input data before anchoring.
Explain which parts of this system need a shared ledger and which can use edge computation or off-chain storage.
Required evidence: Billing/energy calculations, digest comparison and architecture recommendation.
Model boundary: Declared workload and power assumptions; no actual metering, emissions certification or blockchain deployment.
Controlled investigation · reproducible evidence
Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.
Trial
Independent change
Dependent observation
Reference inventory
Use reference inputs above
Record actual outcome and units
Double deployment
Metering devices = 16
Record actual outcome and units
Cleaner grid
Grid emission factor (kg CO₂/kWh) = 0.1
Record actual outcome and units
Alter retrieved data
Retrieved energy correction (kWh) = 0.01
Record actual outcome and units
Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: SHA-256 commitment, not a signature or proof of measurement truth. Fixed 64-byte records for the workload estimate. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# BC-M01 · IoT and blockchain foundations
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Quantify IoT service billing and an emissions inventory; distinguish committed data integrity from physical truth.
Complete the analytical worksheet in the portal first. Record your predictions before running this notebook. This notebook is a bounded local computational investigation; use the portal’s separate WSL, hardware or Remix procedure for real interfaces.
02Instructions · Markdown
## Experiment-specific preparation
Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. Run the 8-device, 24-hour baseline with 60 samples/hour, 2 W and grid factor 0.4. Calculate 11,520 records, 0.384 kWh and 0.1536 kg CO₂ independently.
2. Verify cost = records × price/1000 and inspect 64-byte-per-record storage demand. Double the device count; confirm both energy and workload double.
3. Restore the baseline and change the emission factor to 0.1. Energy stays constant while CO₂ falls.
4. Alter retrieved energy by 0.01 kWh without changing the trusted commitment. Inspect the SHA-256 mismatch.
5. Propose a sensor calibration or third-party audit that would address false input data before anchoring.
**Evidence:** Unchanged bytes reproduce the trusted digest; changed bytes fail verification. More sensors increase the raw byte budget linearly.
**Boundary:** SHA-256 commitment, not a signature or proof of measurement truth. Fixed 64-byte records for the workload estimate.
03Instructions · Markdown
## 2. Reference configuration and investigation
1. Run the 8-device, 24-hour baseline with 60 samples/hour, 2 W and grid factor 0.4. Calculate 11,520 records, 0.384 kWh and 0.1536 kg CO₂ independently.
2. Verify cost = records × price/1000 and inspect 64-byte-per-record storage demand. Double the device count; confirm both energy and workload double.
3. Restore the baseline and change the emission factor to 0.1. Energy stays constant while CO₂ falls.
4. Alter retrieved energy by 0.01 kWh without changing the trusted commitment. Inspect the SHA-256 mismatch.
5. Propose a sensor calibration or third-party audit that would address false input data before anchoring.
Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Calculate assigned IoT workload and energy.
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# BC-M01 | Code cell 01 | IoT and blockchain foundations
# Purpose: 3. Calculate assigned IoT workload and energy.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Set devices for the next computation or reference condition.
devices=8; hours=24; rate=60; watts=2; factor=.4
# Set records for the next computation or reference condition.
records=devices*hours*rate; kwh=devices*watts*hours/1000
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert records==11520 and abs(kwh-.384)<1e-12
print(records,kwh,kwh*factor,records*64)
## 4. Double devices; calculate billing using an editable price per thousand records.
07Python · executable cell
PYTHON · Code cell
# =====================================================================
# BC-M01 | Code cell 02 | IoT and blockchain foundations
# Purpose: 4. Double devices; calculate billing using an editable price per thousand records.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Set price for the next computation or reference condition.
price=0.15 # classroom price, not actual tariff
print("baseline bill",records*price/1000,"double",2*records*price/1000)
## Experimental analysis and submission
1. Record the reference input, predicted output and actual result.
2. Modify one independent variable and run the relevant cells again.
3. Explain the result using the theory and identify model limitations.
4. Save the notebook with outputs and retain the separate theoretical worksheet.
**Your derivation and conclusion:**
(Complete independently.)
09Instructions · Markdown
## Guided reasoning and evidence
A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above.
**Independent task:** 2. Verify cost = records × price/1000 and inspect 64-byte-per-record storage demand. Double the device count; confirm both energy and workload double. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
| Trial | Input/configuration | Prediction | Observation | Evidence / limitation |
|---|---|---|---|---|
| A | Reference | | | |
| B | Changed input | | | |
| A repeat | Reference | | | |
A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.
Formative assessment
Explain the following without looking at the simulation output, then reveal the reference response.
What does the retained digest establish?
Equality of the supplied bytes with the previously committed bytes.
Does the ledger prove a sensor was calibrated?
No. Calibration and trustworthy acquisition are separate evidence.
Why use a gateway?
It can mediate connectivity, batching and resource constraints.
What changes when the number of sensors doubles?
Under fixed sampling and record size the raw payload budget doubles.
Applied task
Change only the auditor candidate to 421; replay the verification.
Submit your reference and modified observations with a justification.
The original tutor and adaptive examination retain their existing 102-lab catalogue. Use the module-specific study questions above and copy this contextual prompt into your chosen AI assistant if needed.
Explain the engineering mechanism in BC-M01 · IoT and blockchain foundations. My task: Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.. Acceptance: Unchanged bytes reproduce the trusted digest; changed bytes fail verification. More sensors increase the raw byte budget linearly.. Model boundary: SHA-256 commitment, not a signature or proof of measurement truth. Fixed 64-byte records for the workload estimate.. Ask me for my actual observations and distinguish model predictions from real measurements.
Shared research workbenches · network designer & advanced studiesConcurrent-device simulation & Monte Carlo research