UAT 459 UAS, Internet of Things and Smart Warehouse Systems

Worksheet 8 A temperature record database and a mock pallet tracking system

Lab 4 hAssesses CLO5

Objective

Design an ALCOA+ database, compute storage, summarise data with pandas, and build a mock pallet tracking system that computes time out of refrigeration

Equipment and materials

  • Computer with Python, sqlite3 and pandas
  • At least 24 hours of data from the Worksheet 7 mock gateway
  • Three BLE or RFID tags with a reader
  • Three mock boxes and tape marking a "cold-room door"

Safety

  • Desk and computer work, no flying
  • Use simulated or non-identifying data; never load other people's personal data into the database
  • Carry light mock boxes and walk in clear areas
  • Do not use tags or readers to read other people's cards or belongings

Steps

  1. Extend the Example 1 database with calibration and audit_log tables and load 24 hours of data
  2. Write at least three parameterised SQL queries and design corrections that never overwrite
  3. Compute storage as in Example 2, summarise hourly with pandas and identify events the mean hides
  4. Tag the mock boxes, move them through the designated door, log the events and decide zones as in Example 3
  5. Compute cumulative time out of refrigeration as in Example 4 and test one missed read and one duplicate read

Record of results

Table 1 Database schema, SQL queries and correction
Table or queryPurposeKey columns or parametersResult (rows or value)
Table 2 Storage and hourly summary
QuantityFormulaValueUnit
Table 3 Cold-room door events and cumulative time out of refrigeration
Box (SSCC)Event (OUT/IN)TimeCumulative minutes outDecision

Questions

  1. Which event in the group's 24 hours of data does the hourly mean hide, and why must a pharmaceutical store keep minimum, maximum and complete original records?

  2. How does the group's correction design follow ALCOA+ (attributable, original kept, contemporaneous)?

  3. With one missed portal read and with one duplicate OUT read, what time out of refrigeration did the group's program compute in each case, in which direction was it wrong, and which rule in the code catches the unusual event sequence and passes it to a person?

  4. Why can RSSI tell only which room or zone a pallet is in, not its rack slot? Explain with the distance ranges you computed, and say why tracking forklifts falls under personal data protection law.

Check before you hand in

What to hand in

  • Database schema and SQL queries
  • Correction example with audit trail
  • Storage table and hourly summary chart
  • Event log and time-out-of-refrigeration table

CLO5 Design data storage on databases and cloud services, asset tracking, and integration with warehouse systems including automation logic. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack