Teaching pack · UAT 459

A 15-week teaching plan, 10 worksheets, a scoring rubric and a map from the course description to the lessons, for instructors to evaluate and adapt before teaching.

Last updated: · 3(1-4-4) · Per week: lecture 1 h, lab 4 h, self-study 4 h; 75 contact hours per term

Coverage of the course description

The lessons fully teach 10 of 10 description topics. Each topic lists the modules and lesson sections that teach it, and incomplete topics say what is missing.

Description topicModulesWhere it is taughtStatus
Integration of UAS, IoT and automation for smart warehousesM6M9Module 6: The four-layer IoT reference architecture · Module 9: Integration map of the distribution centre · Warehouse automation equipment and where drones and IoT connect (conveyors, AS/RS, mobile robots, VDA 5050, Example 5)Covered
Inventory storage and countingM1Module 1: Warehouses, the WMS and location codes · Annual stocktaking and cycle counting · Prioritising counts with ABC classification · Which warehouse processes suit drones?Covered
Barcode, RFID and sensor technologiesM2M6Module 2: GS1 codes on pallet labels · The check digit · Choosing a camera that reads from the aisle · Passive UHF RFID · Read rate and unread locations · Module 6: Temperature sensors and measurement uncertaintyCovered
Indoor positioningM3M8Module 3: Position error and anchoring on beam labels (Example 2) · Choosing a positioning technology: match the error to the slot (Example 4) · Module 8: Asset tracking (Example 3, distance error from RSSI)Covered
Data connectivityM6M7Module 7: What a gateway does · Reducing data at the edge · Choosing radios in a warehouse · Application protocols: MQTT 5, CoAP and HTTP · Module 6: Edge devices and energyCovered
Asset tracking systemsM8Module 8: Asset tracking (asset table, Example 3 zone from RSSI, Example 4 time pallets spend outside the cold room from RFID events)Covered
UAS inventory missionsM1M3M4Module 1: The drone counting mission at a glance · Module 3: Stock inspection (Example 3) · Module 4: Rack-face scan patterns · Ordering the re-flight to unread locations · Sharing sorties among several dronesCovered
Data management and visualizationM8M10Module 8: Two kinds of data in an IoT platform (Example 1) · Retention and summarising (Example 2) · Cloud services · Module 10: Showing the results: charts that lead to a decision (four rules, Example 4 a status board that cannot be fooled by a mean)Covered
Integration with warehouse management systemsM5M9Module 5: Data flow between the WMS and the drone system · Reconciling drone results with WMS records · Module 9: Integration map of the distribution centre (Example 1) · Pallet status and who decides (Example 2)Covered
Evaluation of system efficiency, reliability and safetyM5M6M10Module 5: Evaluating mission efficiency · Evaluating mission safety · Module 6: Requirements that shape the architecture (availability of a chain of devices) · Module 10: Maintenance before failure with an EWMA chart · Security with zones and conduitsCovered

Weekly teaching plan

WeekTopicPre-classLectureLabEvidence
1 M1Warehouses, the WMS and location codesRead module 1 'Why this matters' and 'Warehouses, the WMS and location codes'Warehouse processes, WMS functions, storage location codes, pallet-level versus unit-level counts, and the high-bay parts warehouse caseWorksheet 1 part A: draw the layout of a real or mock warehouse and define a location code formatWarehouse layout and location code format
2 M1Processes suited to drones and the mission chainRead 'Which warehouse processes suit drones?' and 'The drone counting mission at a glance'; run Example 3; take the module 1 quizWawrla et al.'s three use groups, adoption factors from Malang et al.'s review, weighted scores, and the mission chainWorksheet 1 part C: role-play a warehouse supervisor, score processes and try two other sets of weightsWorksheet 1 report and module 1 quiz result
3 M2Choosing a camera that reads from the aisleRead 'Choosing a camera that reads from the aisle'; run Example 2GSD, pixels per module, maximum reading distance, camera orientation, blur and lightingWorksheet 2 part B: mount the camera in portrait on a cart or rail, record at three distances and three speeds, decode and compare with the calculationRead rate by distance and speed
4 M3Coordinate frame and conversion to location codesRead module 3 'The aisle and rack coordinate frame' and 'From label position in the image to a location code'; run Example 1Per-aisle frames, the pinhole model, image direction of left and right cameras, and finding bay, level and slotWorksheet 3 part A: build a mock rack, measure label coordinates, photograph from a cart on both sides and convert to location codesComputed versus true location codes
5 M3Stock inspection; midtermRead 'Stock inspection'; run Example 3; review modules 1 to 3; take the module 3 quizMidterm examination (modules 1 to 3)Worksheet 3 part C: measure the range to the first surface of every slot on the mock rack and compute precision and recallWorksheet 3 report and midterm score
6 M4Ordering re-flights in a warehouseRead 'Ordering the re-flight to unread locations'; run Example 2The traveling salesman problem in a rectangular warehouse, distance through cross-aisles, nearest neighbour and 2-optWorksheet 4 part B: generate 12 random unread locations, route them with code and compare with a hand-planned orderRoutes and times compared
7 M5Data flow with the WMS and reconciliationRead module 5 'Data flow between the WMS and the drone system' and 'Reconciling drone results with WMS records'; run Example 1ISA-95 levels, the five principles, count-result messages, READ, EMPTY and UNREAD statuses, and the five reconciliation outcomesWorksheet 5 part A: design the JSON message and data flow, build 100 mock WMS locations and run the reconciliationData-flow diagram and recount task list
8 M5Mini-project presentationsPrepare a report to warehouse management of no more than five pages covering the mission plan, test results, value and safetyCourse wrap-up and project criteriaDemonstrate the end-to-end mock counting system from count task to recount list and present to warehouse management (role-play); revise from feedbackMini-project report and demonstration, scored with the rubric
9 M6Pharmaceutical store requirements, alert time budget and availabilityRead 'Requirements that shape the architecture'; run Examples 1 and 2WHO requirements and the 2025 Ministry of Public Health notification, event-to-alert time budget, series and parallel systemsWorksheet 1 part B: compute the time budget and availability of the group's design, then vary two uncertain valuesTime budget and availability tables
10 M7Gateway functions and store-and-forwardRead module 7 'What a gateway does'; run Example 1Y.2060 gateway capabilities, validation, time synchronisation, TLS and buffer sizingWorksheet 2 part A: install Mosquitto and write a Python mock gateway that sends QoS 1 with message IDsMock gateway delivering data to the broker
11 M7MQTT 5, CoAP and HTTPRead 'Application protocols'; run Example 4; take the module 7 quizPersistent sessions, QoS acknowledgement flows, Keep Alive, topic aliases and comparison with CoAP and HTTPWorksheet 2 part C: capture packets with Wireshark, count bytes per reading at QoS 0, 1 and 2 and compare with Example 4Worksheet 2 report and module 7 quiz result
12 M8Retention, summarising and the cloudRead 'Retention and summarising' and 'Cloud services'; run Example 2WHO record retention, storage tiers and WORM, IaaS, PaaS, SaaS and shared responsibilityWorksheet 3 part B: compute storage for the group's system, summarise hourly with pandas and find events the mean hidesStorage table and comparison chart
13 M9Integration map and cross-system requestsRead module 9 'Integration map of the distribution centre'; run Example 1ISA-95 levels, data ownership, MQTT, HTTP APIs and OPC UA, idempotent methods in RFC 9110Worksheet 4 part A: draw the group's integration map and build a mock WMS HTTP API that accepts hold requestsIntegration map and an API tested against resent requests
14 M9Managing alarm loadRead 'Managing alarm load'; run Example 4; take the module 9 quizLessons from Milford Haven, HSE alarm rate targets, finding the main culprits, and drone tasks from the platformWorksheet 4 part C: compute a week's alarm rate and main culprits, then propose three fixesWorksheet 4 report and module 9 quiz result
15 M10EWMA and IEC 62443 securityRead 'Maintenance before failure', 'Security with zones and conduits' and 'Procurement criteria'; run Examples 3 and 4; take the module 10 quizEWMA charts, zones and conduits, the seven FRs, security levels, ETSI EN 303 645, NIST IR 8259A, PDPA and the Cybersecurity ActWorksheet 5 part B: compare EWMA at three λ values and assess zones, SL-T and SL-C of the group's system, checking one device against ETSI EN 303 645Gap and countermeasure table and module 10 quiz result

Worksheets and instructor guide

One worksheet per module. Students open it on the web, print it or download the .docx. The instructor guide under each worksheet gives the class timing, expected results, discussion questions and notes for students with different backgrounds.

1Worksheet 1 Survey processes and plan the counts
Analysis activity · About 8 h of class time · CLO1

Objective: Design location codes for a real or mock warehouse, compute IRA and counting workload, and rank processes suited to drones with reasons

Equipment

  • Computer with Python and the example code at /downloads/uat-459/
  • Layout or photos of a real warehouse or a university store room
  • Tape measure and paper or drawing software

Safety

  • Survey and desk work, no flying
  • In a real warehouse stay on marked pedestrian routes, wear high-visibility vests and safety shoes, and keep away from forklift areas
  • Do not photograph staff or internal documents without permission

Steps

  1. Draw the rack layout with aisles, bays and levels, and define a storage location code format
  2. Record assumed or real counts for at least 30 locations in a CSV file with ABC classes
  3. Extend Example 1 to read the CSV and compute IRA per class and overall
  4. Use Example 2 to compare three counting-frequency policies and record workload per year and per night
  5. Role-play a warehouse supervisor, score processes as in Example 3, try two other sets of weights and report whether the ranking changes

Deliverables

  • Warehouse layout and location code format
  • IRA per class and overall
  • Workload table for three policies
  • Process score table with reasons

Checklist

  • Table 1 covers classes A, B, C and overall from at least 30 locations, and zero-record locations do not cause a division by zero (Accuracy of calculations)
  • Table 2 has at least three policies, each row giving counts per year, per night and staff-hours, with reproducible code attached (Accuracy of calculations)
  • Table 3 states all three weight sets (each adding up to 1) and gives reasons why processes suit drones or not (Counting and inspection mission design)
  • The layout shows aisles, bays, levels and the location code format with at least one example code, and contains no unapproved photos of staff or internal documents (Test evidence, safe practice and presentation)

Instructor guide

Class timing 480 min

  1. Objectives, warehouse safety and photo permission briefing20 min
  2. Survey the warehouse or store room, draw the layout and define location codes100 min
  3. Record counts in a CSV file and extend Example 1 to compute IRA100 min
  4. Compare counting-frequency policies with Example 280 min
  5. Role-play the supervisor, score processes and try other weights100 min
  6. Wrap-up, questions and hand-in checklist80 min

Expected results

  1. Record: Table 1 IRA per class and overallTable 1 (numbers depend on the group's data; with the 10 locations of the lesson's Example 1): class A 2/4 = 50.0%, B 2/3 = 66.7%, C 2/3 = 66.7%, overall 6/10 = 60%, with tolerances A exact, B ±2%, C ±5%. Location A06-09-6-2 (record 0, counted 24) must count as outside tolerance without computing a percentage. Accept rounding differences in the last digit.
  2. Record: Table 2 Counting workload of three or more frequency policiesTable 2 (with the 600, 960 and 1,800 locations of Example 2, 250 nights, 90 s per location, 2 staff): current policy 12/4/2 = 14,640 counts a year, 58.6 locations a night, 732 staff-hours; 12/4/1 = 12,840 counts, 51.4 a night, 642 staff-hours; 12/12/4 = 25,920 counts, 103.7 a night, 1,296 staff-hours; weekly drone scan 3,360 × 52 = 174,720 reads (698.9 a night, which by staff would be 8,736 staff-hours, not practical).
  3. Record: Table 3 Process scores under three sets of weightsTable 3 (scores of Example 3): weights 0.25/0.25/0.30/0.20 give 5.00, 4.55, 3.35, 2.60, 2.50 (picking), 2.20 (moving parts); equal weights of 0.25 give 5.00, 4.50, 3.25, 2.50, 2.50, 2.25; handling-heavy weights 0.20/0.20/0.40/0.20 give 5.00, 4.60, 3.40, 2.60, 2.20, 2.00. The top two (upper-level cycle count, high-level rack inspection) never change; the bottom places may swap.
  4. Question 1: Which class in Table 1 has the lowest IRA, which warehouse process (receiving, put-away, picking) is the likely cause, and how did your code handle a location the WMS records as zero but where stock was found?A strong answer names the lowest class from the group's own data and links it to a process, such as put-away into the wrong slot or picking without recording, and explains that zero-record locations are checked with a separate rule (the difference must be zero) because a percentage of zero cannot be computed, and stock that vanished from the system while still on the shelf leads to needless reordering.
  5. Question 2: Can your group's IRA be reported as the IRA of the whole warehouse? If not, how should locations be chosen and what else must be reported?No. Picking problem locations, as in Example 1 (60%), understates accuracy. The locations must be a representative random sample of the warehouse, and the result must be reported with a confidence interval, which module 5 uses.
  6. Question 3: From Table 2, if a drone scans every upper location every week, how many times more checks per year is that than the current policy, and how does the role of ABC classification change?174,720 / 14,640 = 11.9 times, and every location is checked every 7 days whatever its class. ABC therefore shifts from "what to count first" to "which locations a person should recheck first" when the drone's result disagrees with the record.
  7. Question 4: When you changed the weights in Table 3, did the top of the ranking stay the same? What does this tell you about which process should use drones first, and can the drone count units in an opened pallet?If the top two stay the same under different weights, the conclusion is robust: start with upper-level cycle counting and high-level rack inspection, while tasks that handle goods always score low. A strong answer also states that the drone counts at pallet level by reading SSCC labels, so opened, partly picked pallets still need a person for a case or unit count.

Discussion questions

  • If reading one location costs almost nothing, does the warehouse still need an annual stocktake, and who decides?
  • Who in the warehouse should take part in scoring processes, and what should happen if the supervisor and the counters disagree?
  • What should set the count tolerance: price, importance to the customer's line, or the counting method?

Adapting to student background

Upper secondary (M.6)
Have them work IRA and C = Σ n f by hand on 10 locations before coding, then take the role of drawing and measuring the real store alongside a field-confident peer.
Vocational certificate
Start with walking the store and labelling real rack positions, then use a fill-in spreadsheet before moving the same calculation to Python.
Diploma
Extension: add a fourth policy driven by assumed pick frequency per location and estimate the staff-hours saved against 12/4/2.

Common student mistakes: Common mistakes in the module 1 lesson

2Worksheet 2 Barcode and tag reading on a test bench
Lab · About 8 h of class time · CLO1

Objective: Test how lens, camera orientation, distance and speed affect barcode read rate, and measure RFID read range against calculation

Equipment

  • A camera with known sensor size and focal length, or interchangeable lenses
  • A cart or slide rail with measurable speed
  • At least 10 GS1-128 labels printed with assumed SSCCs at X = 0.5 mm, and cardboard boxes
  • A handheld 920 to 925 MHz RFID reader at no more than 0.5 W EIRP, ordinary and on-metal tags, and a steel plate
  • Computer with a barcode-decoding library and the example code

Safety

  • No flying; use the cart or rail on a level floor and keep it clear of people
  • Use the RFID reader within the legal power limit and do not modify it
  • Do not use real SSCCs or company prefixes on test labels

Steps

  1. Print labels and fix them 400 to 800 mm above the base, some creased or tilted, and verify check digits with Example 1
  2. Mount the camera in portrait on the cart and record at 1.1, 1.35 and 1.6 m
  3. Repeat at 0.3, 0.5 and 0.8 m/s, decode every image and record the read rate
  4. Compare with Example 2 and explain at which distance or speed reading fails and whether GSD or blur is the cause
  5. Measure tag read range on cardboard and on steel and compare with Example 3

Deliverables

  • Check-digit results for the test labels
  • Read rate by distance and speed
  • Measured versus calculated RFID read range
  • Camera and tag recommendations for the group's warehouse

Checklist

  • Table 1 lists every label and includes at least one deliberate single-digit misread that the system rejects (Accuracy of calculations)
  • Table 2 has all 9 runs (3 distances × 3 speeds) and names a failure cause for every run below 100% (Accuracy of calculations)
  • The camera recommendation states focal length, orientation and maximum speed, and keeps unread locations apart from empty ones (Counting and inspection mission design)
  • Table 3 states the EIRP used, no more than 0.5 W; labels use assumed SSCCs; and the cart ran in an area kept clear of people (Test evidence, safe practice and presentation)

Instructor guide

Class timing 480 min

  1. Safety briefing on the cart and RFID transmit power20 min
  2. Print labels, fix them to boxes and verify check digits60 min
  3. Mount the portrait camera on the cart and set the shutter60 min
  4. Record 3 distances × 3 speeds and decode140 min
  5. Measure tag read range on cardboard and steel100 min
  6. Analyse against Examples 2 and 3, answer questions and run the hand-in checklist100 min

Expected results

  1. Record: Table 1 Check-digit results for the test labelsTable 1: the example SSCC 088501234567890121 has check digit 1 and is accepted; the seventh-digit misread (088501834567890121) and the swapped neighbours (088501234657890121) are rejected. All labels the group printed itself must be accepted. With data digits 08850123000000017 the check digit must be 1.
  2. Record: Table 2 Read rate by distance and speedTable 2 (with 1.6 µm pixels, a 16 mm lens, 1/4000 s shutter and X = 0.5 mm as in Example 2): GSD 0.110, 0.135 and 0.160 mm per pixel at 1.1, 1.35 and 1.6 m, giving 4.55, 3.70 and 3.12 pixels per module, all above the 2.5 rule (reading reaches 2.00 m). Blur at 1.35 m is 0.56, 0.93 and 1.48 pixels at 0.3, 0.5 and 0.8 m/s, and at 1.1 m 0.68, 1.14 and 1.82 pixels, so expect high read rates at 0.3 and 0.5 m/s, a clear drop at 0.8 m/s, falling first at the near distance. Creased or tilted labels fail in every condition. If the lab camera differs, recompute with its real values.
  3. Record: Table 3 Measured versus calculated RFID read rangeTable 3 (calculated as in Example 3 at 0.5 W EIRP): dipole tag on cardboard 4.7 m, ordinary tag on steel (gain −3 dBi) 2.6 m. Measured ranges are usually shorter, because the equation gives a free-space range. An ordinary tag on steel may read only at short range or not at all; the on-metal tag should read clearly farther than the ordinary tag on steel.
  4. Question 1: From Table 2, at which distance or speed did reading start to fail? Use the pixels per module and blur in pixels you calculated to explain whether the cause is GSD or blur.A strong answer: if reading fails at 0.8 m/s at every distance, the cause is blur above one pixel (1.25 to 1.82 pixels), not GSD, because even at 1.6 m there are 3.12 pixels per module. If reading fails at the far distance even when slow, the cause is GSD. The answer must quote the group's own numbers.
  5. Question 2: If the group had mounted the camera in landscape instead of portrait, would the image at 1.1 m cover the 400 to 800 mm label band? Explain with numbers, and say why flying closer to the racks is not the fix.No. A landscape image at 1.1 m is only 4.8 × 1100 / 16 = 330 mm tall, less than the 432 mm needed (400 to 800 mm plus the 31.75 mm bar height); portrait gives 440 mm, which fits. Flying closer to the racks adds collision risk for nothing; change the lens and camera orientation instead.
  6. Question 3: Was the measured RFID range shorter or longer than the Friis calculation, and why? Why is a read range longer than the 3.0 m aisle a problem?Usually shorter, because the Friis equation gives a free-space range while a real room has reflections, metal and polarisation mismatch. A range longer than 3.0 m (4.7 m at 0.5 W) means tags on the opposite rack face and in neighbouring bays are also read, so the reading cannot tell which slot the tag is in; module 3 deals with this.
  7. Question 4: Would a re-flight read the labels that failed in your test? Why does a re-flight recover less than the first pass, and what must the system record for those locations?Mostly not, because failures are not independent: a creased or wrongly facing label fails every time. In Example 4 the first pass reads 96%, leaving 134 locations, and a re-flight recovering 70% still leaves 40 (1.2%) for staff. Those locations must be recorded as "unread", never as "empty".
  8. Question 5: Which errors does the check digit catch, which does it miss, and what else must the system check?It catches a single misread digit and most swaps of adjacent digits, but not a swap of adjacent digits that differ by 5 (such as 0 and 5), because the weighted sum modulo 10 is unchanged. The system must also check that the SSCC read exists in the WMS.

Discussion questions

  • If the drone carries its own lighting, how does that change the choice of shutter and flight speed?
  • The case warehouse relies on barcodes and uses RFID only for steel containers. For your group's warehouse, what would you choose?
  • If a vendor offers a high-power RFID reader for longer range, what must you ask before deciding?

Adapting to student background

Upper secondary (M.6)
Have them compute GSD and blur for every condition before testing and predict which runs will fail, then let them run the cart and frame the images for hands-on practice.
Vocational certificate
Let them measure and record first, then use a prepared spreadsheet with GSD = pD/f already entered, filling in only distance and focal length; explain blur by comparing real images side by side.
Diploma
Extension: test a 2D label (GS1 DataMatrix) at the same distances and speeds and compare its read rate with GS1-128.

Common student mistakes: Common mistakes in the module 2 lesson

3Worksheet 3 Localization and slot inspection on a mock rack
Lab · About 8 h of class time · CLO2

Objective: Convert label images to location codes correctly on both sides, reduce wrong slots with beam labels, and evaluate slot inspection with precision and recall

Equipment

  • A mock rack of at least three bays and two levels, with beam location labels and box labels
  • A camera on a cart at known positions, and a tape measure
  • A range sensor such as a single-point LiDAR or ToF sensor
  • Computer with the module 3 example code

Safety

  • No flying; fix the mock rack firmly and keep heavy items off the top level
  • Never point laser range sensors at anyone's eyes

Steps

  1. Measure the true x and z of every label and record the correct location codes
  2. Photograph from the cart facing left and right, convert with the locate function and check the sign for each side
  3. Add random errors of 0.05, 0.10 and 0.20 m and compare wrong-slot rates with Example 2
  4. Change the code to measure relative to the beam label in the same image and test again
  5. Arrange empty slots, overhanging boxes and low boxes, measure every slot and compute precision and recall as in Example 3

Deliverables

  • Computed versus true location codes
  • Wrong-slot rate before and after beam-label anchoring
  • Confusion table with precision and recall
  • Recommended threshold for overhanging pallets

Checklist

  • Table 1 has images from both left- and right-facing cameras, and every row has a tape-measured true x with units (Accuracy of calculations)
  • Table 2 covers all three σ values (0.05, 0.10, 0.20 m) both before and after beam-label anchoring (Accuracy of calculations)
  • Table 3 gives precision and recall for empty and overhanging slots, with a proposed overhang threshold justified by the cost of each error (Counting and inspection mission design)
  • The mock rack was fixed firmly, no heavy items were on the top level, and no laser sensor was pointed at anyone (pre-start check recorded) (Test evidence, safe practice and presentation)

Instructor guide

Class timing 480 min

  1. Safety briefing and check that the mock rack is fixed40 min
  2. Measure the true position of every label60 min
  3. Photograph from the cart on both sides and convert with locate100 min
  4. Add position errors and change the code to anchor on beam labels100 min
  5. Arrange test slots, measure ranges and compute precision and recall100 min
  6. Wrap-up, questions and hand-in checklist80 min

Expected results

  1. Record: Table 1 Computed versus true location codesTable 1: with the correct signs every computed code must match the true one. Check the code with Example 1: A03-27-5-2 (x 38.197 m, 0.40 m from a boundary), A03-10-3-1 (x 12.289 m, right-facing camera), A03-17-3-1 (x 22.447 m, only 0.05 m from a boundary). With the wrong sign on the right-facing camera, the second label comes out at x 12.511 m, 0.222 m off, and every label on that side shifts the same way.
  2. Record: Table 2 Wrong-slot rate before and after beam-label anchoringTable 2 (1.4 m slots with labels spread evenly, as in Example 4): before anchoring about 2.8%, 5.7% and 11.4% at σ of 0.05, 0.10 and 0.20 m. Narrower mock-rack slots give higher rates, for example 6.6%, 13.3% and 26.6% for 0.6 m slots. A label 0.05 m from a boundary is wrong 15.9%, 30.9% and 40.1% of the time. After beam-label anchoring σ is about 0.4 mm and the wrong-slot rate should be 0 or close to it. Classroom counts will vary with the number of labels tested.
  3. Record: Table 3 Confusion table of slot inspectionTable 3 (the 200 simulated slots of Example 3, for checking the code): empty TP 28, FP 3, FN 2, precision 0.903, recall 0.933; overhang TP 7, FP 0, FN 1, precision 1.000, recall 0.875; occupied TP 159, FP 3, FN 3. Lowering the overhang threshold from D − 0.10 to D − 0.05 m catches the 6 cm overhang and raises overhang recall to 1.000. The mock-rack result should include at least one hard case (a low box, a small carton at the front of an empty slot).
  4. Question 1: When you used the same sign for cameras on both sides, which side went wrong and how? Why is this error systematic rather than random?A right-facing camera sees the right of its image as −x. With the same sign as the left camera, every right-side label shifts the opposite way by 2 × Δx, so it lands in the wrong slot systematically. A strong answer points to the wrong rows in Table 1.
  5. Question 2: Which label in Table 1 was closest to a slot boundary? From Table 2, how did beam-label anchoring change the wrong-slot rate, and why does it work better than buying a more expensive positioning system?The label nearest a boundary is the riskiest (in the example 0.05 m, wrong 15.9% even at σ = 0.05 m). Measuring relative to the beam label in the same image does not use the drone position at all, leaving millimetre-level error, while radio such as UWB in steel racking is still wrong 5.7% of the time and 1% wrong slots needs σ of about 1.8 cm.
  6. Question 3: From Table 3, what in your rack caused slots wrongly called empty and empty slots that were missed? To catch overhanging pallets, should the threshold favour precision or recall, and why?Slots wrongly called empty are usually low boxes the beam passes over; missed empty slots usually have a small carton at the front. Overhanging pallets are a safety issue, so a miss (FN) costs more than a false alarm (FP): set the threshold for high recall first and let a person confirm from the image.
  7. Question 4: Why must an "empty" result from the range sensor never adjust the WMS directly? Answer from the errors in your own test.Because "empty" can be wrong, as the low boxes in the test showed. Adjusting at once would make the WMS reduce stock or reorder wrongly. It must go to a person as a recheck task, ideally after measuring at several heights or confirming with images.

Discussion questions

  • If the warehouse had no beam location labels, would adding ArUco markers pay off better than a more accurate positioning system?
  • Drone images can support weekly visual rack checks; why can they not replace the expert inspection?
  • For an RFID tag read beyond the aisle width, at what level should its location be recorded: slot, bay or aisle?

Adapting to student background

Upper secondary (M.6)
Have them work Δx = (u − cx) d / f_px by hand for one label before running the code and sketch the image direction for left and right cameras, then let them do the tape-measure work.
Vocational certificate
Start by walking past the mock rack facing left and then right to feel how the direction flips, then fill in a TP/FP/FN tally sheet before computing precision and recall.
Diploma
Extension: measure two heights per slot, change the classifier to catch low boxes and report the new precision and recall.

Common student mistakes: Common mistakes in the module 3 lesson

4Worksheet 4 Plan one night's routes and schedule
Lab · About 8 h of class time · CLO2

Objective: Plan routes and a schedule for the mock warehouse within safety and energy limits, and test-fly one aisle safely

Equipment

  • Computer with the module 4 example code
  • The mock warehouse layout from worksheet 1
  • A small training drone with propeller guards, and a netted enclosure or training field
  • Spare batteries and fire-resistant bags or boxes for lithium batteries

Safety

  • Fly only in a netted enclosure or training field under instructor supervision, in visual line of sight, with people kept clear
  • Any flight outside an enclosure must meet the CAAT notification's conditions
  • Check batteries and propellers before every flight and store lithium batteries in fire-resistant bags or boxes

Steps

  1. Set route constraints, including side clearance, ceiling limit, geofence and no-entry aisles, and show the clearance calculation
  2. Compute scan times and check energy for every aisle with Example 1, keeping at least 60 s of margin
  3. Generate 12 unread locations, route them with Example 2 and compare with a hand-planned order
  4. Schedule two drones with Example 3, with aisle A02 unlocking only after minute 30
  5. Test-fly one aisle in the enclosure and compare actual time with the calculation

Deliverables

  • Constraint table and clearance calculation
  • Time and energy per sortie
  • Re-flight route and two-drone schedule
  • Test-flight log compared with the plan

Checklist

  • Table 1 shows the side-clearance calculation step by step (aisle width, drone width, position error, overhang) with units (Accuracy of calculations)
  • Every sortie in Table 2 keeps at least 60 s of margin, and split sorties are marked (Counting and inspection mission design)
  • In Table 3 no A02 sortie starts before minute 30 and the re-flight comes after the full scan (Counting and inspection mission design)
  • The test-flight log includes pre-flight battery and propeller checks, flight inside the enclosure under the instructor, and battery storage in a fire-resistant bag (Test evidence, safe practice and presentation)

Instructor guide

Class timing 480 min

  1. Safety briefing on enclosure flying and lithium batteries30 min
  2. Set constraints and compute clearance, scan times and energy for every aisle140 min
  3. Generate unread locations and plan the re-flight100 min
  4. Schedule two drones with LPT and the A02 condition60 min
  5. Pre-flight checks and test flight of one aisle110 min
  6. Wrap-up, questions and hand-in checklist40 min

Expected results

  1. Record: Table 1 Route constraints and clearance calculationTable 1 (with the case-warehouse values): side clearance (3.0 − 0.7)/2 = 1.15 m, minus 0.15 m lateral position error and 0.10 m pallet overhang, leaves 0.90 m; ceiling geofence 11.0 m (sprinklers at 12.0 m); scan speed at most 0.5 m/s and transit at most 1.0 m/s; no flying over racks, crossing only at cross-aisles; entry only to aisles the WMS has locked and a sensor confirms clear. The group's mock warehouse must be calculated with its real sizes.
  2. Record: Table 2 Time and energy per sortieTable 2 (Example 1 values: 5 levels, 78.4 m, 900 s usable): whole aisles need 866, 877, 888, 898, 909 and 920 s, margins 34, 23, 12, 2, −9 and −20 s, so no aisle meets the 60 s rule. All must be split into levels 2 to 4 and 5 to 6, 12 sorties: A01 532/366, A02 543/376, A03 554/387, A04 565/398, A05 576/409, A06 586/420 s (smallest margin 314 s). The actual test-flight time is usually longer than calculated because the formula leaves out acceleration and braking.
  3. Record: Table 3 Re-flight route and two-drone scheduleTable 3 (the 12 sorties of Table 2, a 567 s re-flight from Example 2, 240 s battery swaps, LPT, no A02 start before minute 30): D1 = A06 lv2-4, A03 lv2-4, A01 lv2-4, A05 lv5-6, A04 lv5-6, A02 lv5-6, re-flight, ending at 85.0 min; D2 = A05 lv2-4, A04 lv2-4, A06 lv5-6, A02 lv2-4 (starting at minute 38.0), A03 lv5-6, A01 lv5-6, ending at 71.6 min; lower bound 78.3 min. The re-flight of the group's 12 random locations will differ; use its real time instead of 567 s.
  4. Question 1: With at least 60 s of energy margin, which sorties must be split further, compared with Example 1 which had no margin rule, and why is a margin of a few seconds not usable in practice?Every aisle must be split, unlike Example 1 where A01 to A04 fit one sortie. Margins of 2 to 34 s disappear with worn batteries or hot air, and running out mid-aisle forces an emergency landing on a floor with goods.
  5. Question 2: How much shorter is the nearest neighbour plus 2-opt route than the order the group planned by hand? If straight-line distances were used instead of detours through the cross-aisles, how would the time be wrong?In Example 2 nearest neighbour gives 581 s and 2-opt 567 s; the group must compare its own numbers. Straight-line distances underestimate time because the drone may cross aisles only at the cross-aisles; for example, from aisle 2 at x = 10 m to aisle 5 at x = 70 m it must fly 95.0 m.
  6. Question 3: How did the condition that A02 unlocks only after minute 30 change the schedule and finishing time? Compared with the lower bound and the 22:00 to 05:00 window, how often can the warehouse be scanned?A02 waits until minute 30, the night finishes at 85.0 min, slightly above the 78.3 min lower bound, and still uses only a small part of the 420 min window. The upper levels can be scanned every night, provided there are enough charged batteries for 13 sorties.
  7. Question 4: How far was the actual test-flight time from the calculation? What does that say about the energy margin to use, and why must collision prevention never replace routes planned with clearance?A strong answer expresses the difference between actual and calculated time as a percentage and says the margin must grow by at least that difference if flights run longer than planned. Collision prevention is only an extra layer that slows or stops the drone when its sensor sees an obstacle; it does not make a route close to the racks safe.

Discussion questions

  • If two drones need the same cross-aisle at the same time, what rule would the group set?
  • For an aisle with unfinished replenishment, who should unlock it for the drone, and on what evidence?
  • If the warehouse can be scanned every night, what use is ABC classification still?

Adapting to student background

Upper secondary (M.6)
Have them compute T_aisle for one aisle by hand and check the energy condition before using code, then let them do pre-flight checks and observe in the enclosure to see a real flight.
Vocational certificate
Let them fly the test first, then use a fill-in table for scan time and margin; have them plan the re-flight by hand on a paper layout before seeing the code's result.
Diploma
Extension: test how sorties must be split if worn batteries give only 16 minutes of flight, and how the finishing time changes.

Common student mistakes: Common mistakes in the module 4 lesson

5Worksheet 5 End-to-end mock counting system and evaluation report
Analysis activity · About 8 h of class time · CLO3

Objective: Connect count results safely to a mock WMS and evaluate mission efficiency, value and safety with quantitative evidence

Equipment

  • Computer with the module 5 example code
  • Mock WMS data for at least 100 locations and count results from the worksheet 3 mock rack
  • Cost sources the group has found, such as equipment prices and labour rates

Safety

  • Desk work, no flying
  • Use simulated data, not a company's real stock or personal data

Steps

  1. Design the JSON count-result message and data flow, stating which steps need approval and how the audit trail is kept
  2. Run the reconciliation of Example 1 and check every recount task by hand
  3. Compute accuracy with a Wilson confidence interval as in Example 2
  4. Compute cost and NPV as in Example 3 with sourced figures and run a sensitivity analysis on at least two variables
  5. Build the risk matrix as in Example 4 and summarise everything in a report to warehouse management of no more than five pages

Deliverables

  • Data-flow diagram and sample JSON message
  • Reconciliation results and recount task list
  • Acceptance test, NPV and sensitivity analysis
  • Risk matrix and management report

Checklist

  • Table 1 shows all five outcomes (match, unread, missing, misplaced, unknown) at least once, and every recount task was checked by hand (WMS integration and mission evaluation)
  • Table 2 reports accuracy with a 95% Wilson interval and an NPV with sourced figures, plus sensitivity on at least two variables (Accuracy of calculations)
  • The JSON message has a unique message ID, a time with time zone, and separate READ, EMPTY and UNREAD states (WMS integration and mission evaluation)
  • Table 3 uses the group's own risk bands and states how controls will be verified, and the report is at most five pages using simulated data only (Test evidence, safe practice and presentation)

Instructor guide

Class timing 480 min

  1. Briefing on the task, simulated data and report format20 min
  2. Design the data flow and JSON message80 min
  3. Build mock WMS data and run the reconciliation100 min
  4. Acceptance test, cost, NPV and sensitivity100 min
  5. Hazard identification and risk scoring workshop80 min
  6. Write the management report, present briefly and run the hand-in checklist100 min

Expected results

  1. Record: Table 1 Reconciliation results and recount tasksTable 1 (check the code with the ten locations of Example 1): 4 matches out of 9 read = 44.4%; A03-29-5-1 pallet 0145 missing but seen at A03-35-5-2; A03-31-5-1 and A03-31-5-2 pallets 0169 and 0152 swapped; A03-33-5-1 unread, re-scan; A03-35-5-1 pallet 0207 unknown to the WMS, check receiving. The group's 100 locations will give different proportions.
  2. Record: Table 2 Acceptance test, NPV and sensitivity analysisTable 2 (Examples 2 and 3 values if the group has no figures of its own yet): 1,181/1,200 = 98.42%, Wilson 95% interval 97.54 to 98.98%, above the 97% target; 197/200 gives a lower bound of 95.68%, not accepted; 1,935 locations per flight hour; saving 739,400 baht a year, payback 3.2 years, 5-year NPV at 6% = 714,622 baht. Sensitivity: emergency costs falling only to 450,000 give NPV 82,767 baht, to 600,000 give −549,087 baht; a discount rate of 8% gives 552,210 baht, 10% gives 402,908 baht; 20% higher investment gives 234,622 baht.
  3. Record: Table 3 Risk matrix before and after controlsTable 3 (scores of Example 4): drone hits a person 15 high to 5 low; drone falls onto stock or a person 12 to 6; battery fire 10 to 5; contact with sprinklers or lights 9 to 3; drone strikes a rack upright 9 to 6; rotor wash blows film or cartons 8 to 4; images capture staff 6 to 2 (bands: 15 or more high, 8 to 14 medium, 7 or less low). The group's hazards may differ, but every control must be verifiable.
  4. Question 1: Why is pallet-level IRA computed only from locations that were read? If unread locations were counted as errors or as matches, what would the group's result become?An unread location is not evidence of an error. In Example 1, counting unread as an error gives 4/10 = 40%, too low; counting it as a match gives 5/10 = 50%, too high; the correct value is 4/9 = 44.4%.
  5. Question 2: Was the group's acceptance-test sample large enough? Explain with the lower bound of the Wilson interval, and say how many locations would be needed at the same accuracy.Decide on the lower bound, not the measured value. At about 98.4% accuracy, at least about 530 locations are needed for the lower bound to pass 97% (522/530 gives 97.05%). A 200-location trial at 98.5% proves nothing yet.
  6. Question 3: From the sensitivity analysis, which variable decides whether NPV is positive or negative, and what data must the group collect during a trial to test that assumption?Emergency orders and line-stop claims. If they fall only to 600,000 baht instead of 300,000, NPV turns negative (−549,087 baht), while changes in discount rate or investment still leave NPV positive. Emergency-order costs must be recorded before and after the trial.
  7. Question 4: Which hazard still has high severity after controls, and how will the group check that the controls really work rather than lowering scores on paper?In the example, the drone hitting a person and the battery fire, which keep severity 5 because controls reduce likelihood, not severity. A strong answer proposes real checks, such as testing the aisle presence sensor every night, auditing aisle-lock records and counting near misses per 100 flight hours.
  8. Question 5: In the data flow the group designed, which steps need human approval, and why must the drone never adjust WMS stock itself?Adjustment needs a staff recount, supervisor approval and a reason code, because drone results can be wrong through misreads, wrong slots or unread locations, and stock figures are accounting data that drive purchasing. The WMS alone owns stock figures; the drone sends blind-count observations only, and an audit trail must be kept.

Discussion questions

  • If management asks "does it pay?", which number would the group give first, and how would it state the uncertainty?
  • How does blind counting reduce bias, and what is its drawback?
  • How should drone images that capture staff be handled under the personal data principles the lesson describes?

Adapting to student background

Upper secondary (M.6)
Have them work one Wilson interval and one NPV by hand before running the code, and let them lead the hazard workshop to practise talking with operations staff.
Vocational certificate
Start reconciliation with paper cards carrying SSCCs placed on a rack plan to see the five outcomes, then use a spreadsheet with the NPV formula prepared.
Diploma
Extension: add a break-even analysis, find the annual emergency-order cost at which NPV is zero, and present it as the decision rule after the trial.

Common student mistakes: Common mistakes in the module 5 lesson

6Worksheet 6 Draft the architecture and check the requirements of a mock cold room
Lab · About 4 h of class time · CLO4

Objective: Draw the four-layer IoT architecture of a real space, compute the alert time budget and availability, set pre-alarm limits from an uncertainty budget and compute battery life

Equipment

  • Computer with Python and the example code at /downloads/uat-459/
  • Two wireless temperature sensors
  • Reference thermometer with a calibration certificate
  • Refrigerator or mock cold room prepared by the instructor
  • Multimeter or low-current meter (if available)

Safety

  • Desk and computer work, no flying
  • In the cold room wear warm clothing, stay no more than 15 minutes at a time, check the door opens from inside and keep a partner outside
  • Do not open lithium battery packs or short battery terminals while measuring current
  • Do not change settings of refrigerators or rooms that hold real samples or chemicals

Steps

  1. Choose a real space and draw the four-layer architecture of Figure 1, answering the three questions (function, data lost or delayed, owner) for every box
  2. Use Examples 1 and 2 to compute the alert time budget and availability, then vary the two most uncertain values
  3. Install two wireless sensors next to the reference thermometer, record together for at least 30 minutes and compute the mean difference
  4. Build an uncertainty budget as in Example 3 and set pre-alarm limits
  5. Measure currents or take them from datasheets, then compute battery life as in Example 4 for the group's chosen interval

Deliverables

  • Architecture diagram with the three-question table
  • Time budget and availability tables with sensitivity analysis
  • Uncertainty budget and pre-alarm limits
  • Battery life table and radio recommendation

Checklist

  • Every box in Table 1 answers all three questions, keeping "data lost" apart from "alert delayed" (WMS integration and mission evaluation)
  • Table 2 varies at least the two most uncertain values and shows both alert time and downtime hours a year (Accuracy of calculations)
  • Table 3 converts every source to a standard uncertainty before combining (divide by √3 or by k), and pre-alarm limits lie inside the limits (Accuracy of calculations)
  • Each cold-room entry was logged at no more than 15 minutes with a partner outside, and no setting of a fridge or room holding real items was changed (Test evidence, safe practice and presentation)

Instructor guide

Class timing 240 min

  1. Safety briefing on the cold room and batteries15 min
  2. Choose a space and draw the four-layer architecture with the three questions45 min
  3. Compute the time budget and availability with sensitivity40 min
  4. Install sensors next to the reference thermometer and record for at least 30 minutes60 min
  5. Build the uncertainty budget, set pre-alarm limits and compute battery life60 min
  6. Wrap-up, questions and hand-in checklist20 min

Expected results

  1. Record: Table 1 Architecture boxes and the three questionsTable 1: at least sensors and gateways in the device layer, LAN, Wi-Fi and the MQTT broker in the network layer, alarm rules and databases in the service support layer, and dashboards and alerting in the application layer. A strong answer says that when a gateway fails, sensors with memory keep recording, so data are not lost but alerts are delayed, while a failed sensor loses data.
  2. Record: Table 2 Alert time budget and availability with sensitivity analysisTable 2 (Examples 1 and 2 values; the room holds for 55 min and staff need 20 min): intervals of 60, 300 and 600 s alert after 3.3, 11.3 and 21.3 min with margins of 31.7, 23.7 and 13.7 min; availability with one gateway 0.98904 (96.0 h a year down), two gateways 0.99399 (52.7 h). Sample sensitivity: SMS taking 300 s instead of 60 s at a 60 s interval gives a 7.3 min alert and 27.7 min margin; staff needing 35 min leaves 16.7 min; a platform at 0.999 instead of 0.998 gives 87.3 h a year down.
  3. Record: Table 3 Sensor comparison, uncertainty budget, pre-alarm limits and battery lifeTable 3 (Examples 3 and 4 values): u = 0.173, 0.050, 0.029 and 0.087 °C, combined u_c = 0.202 °C, U (k = 2) = 0.40 °C, pre-alarm limits 2.4 to 7.6 °C; battery life of BLE every 60 s at an average 10.8 µA is about 19.2 years, LoRaWAN SF9 every 60 s at 129.6 µA about 1.6 years. The mean difference from the reference depends on the real sensors; a good sensor should differ by no more than ±0.5 °C.
  4. Question 1: Which part of the group's alert time budget takes the longest? Would a faster network help much, and why?The recording interval takes the longest, because the system waits for a first and a confirming reading (2 × 600 s = 20 min at a 600 s interval), while network and broker take only 2 s. A faster network barely helps; shorten the interval instead.
  5. Question 2: Why is the availability of the whole alarm path lower than its weakest part, and besides a second gateway, what else would the group propose?In a series system every part must work, so availability is a product: seven parts each better than 99.5% still leave 96 h a year down. Good proposals: a local light-and-horn alarm at the cold room that does not depend on the network, and a second alert channel besides SMS.
  6. Question 3: How does the mean difference between the group's sensors and the reference thermometer compare with the expanded uncertainty U and the ±0.5 °C requirement? Is the sensor acceptable?If the mean difference is smaller than U and within ±0.5 °C, the sensor passes. If it is larger than U, there is a systematic error the budget did not include, so the sensor must be calibrated or corrected before use. The answer must quote the group's real numbers.
  7. Question 4: Why does a BLE sensor's battery life hardly change when the interval is lengthened, while a LoRaWAN sensor's changes a lot? Which radio did the group choose for its space?Sleep current and self-discharge, 5.5 µA together, make up most of the BLE average current (6.6 to 6.0 µA from 300 to 600 s), while LoRaWAN transmits for 0.185 s at 40 mA, so transmission dominates. A cold room recording every minute should use BLE with a nearby gateway; LoRaWAN suits distant points that report less often.

Discussion questions

  • WHO minimums are a starting point, not a design target. Which kinds of room should record far more often than the minimum?
  • Putting the probe in a bottle of liquid reduces false alarms at door openings, but what does it add to the time budget?
  • What should you ask a vendor before choosing an edge device, and why?

Adapting to student background

Upper secondary (M.6)
Have them work u_c and A_s by hand before using code, and let them install the sensors and read the reference thermometer to practise real measurement.
Vocational certificate
Start with installing sensors and reading values, then use a fill-in table with the √3 division and root-sum-square prepared; explain availability with bulbs wired in series.
Diploma
Extension: measure real sleep and transmit currents with a low-current meter and compare the battery life from measurements with the datasheet figure.

Common student mistakes: Common mistakes in the module 6 lesson

7Worksheet 7 A mock gateway and a signal survey
Lab · About 4 h of class time · CLO4

Objective: Build a mock gateway with deadband, heartbeat and buffering that sends over MQTT QoS 1, test a link outage, survey radio signals and measure real packet sizes

Equipment

  • Computer with Python, paho-mqtt, Mosquitto and Wireshark
  • BLE sensor or simulated data file
  • Phone or BLE receiver showing RSSI
  • Plan of a mock cold room or a room with metal walls

Safety

  • Desk and computer work, no flying
  • Test only on the laboratory's own broker and network; never scan or capture traffic on other people's networks
  • While surveying among racks, watch for falling objects and never climb racks
  • Use only frequencies and transmit power permitted by NBTC

Steps

  1. Install Mosquitto and write a mock gateway that sends QoS 1 with message IDs and measurement times
  2. Add the deadband and heartbeat rules of Example 2 and check that at least six records per hour remain
  3. Disconnect from the broker for 15 minutes, check the buffer, stored times and repeated alarms, then compare catch-up time with Example 1
  4. Survey RSSI at 15 or more points, compare with the ITU-R P.1238 model of Example 3 and propose gateway positions
  5. Capture packets with Wireshark, count bytes per reading at QoS 0, 1 and 2 and explain differences from Example 4

Deliverables

  • Reproducible mock gateway code
  • Outage test log
  • RSSI map and proposed gateway positions
  • Table of measured versus calculated packet sizes

Checklist

  • Table 1 shows at least six records per hour, a longest gap of no more than 10 minutes, and backfilled values stamped with measurement time (Accuracy of calculations)
  • Table 2 has at least 15 points, each with a prediction and difference, and a gateway proposal keeping at least 9.4 dB of margin (WMS integration and mission evaluation)
  • Table 3 covers QoS 0, 1 and 2, separating MQTT-layer bytes from bytes including network headers, with reproducible gateway code (Accuracy of calculations)
  • Testing used only the laboratory broker and network, no other network was captured, and no one climbed racks during the survey (Test evidence, safe practice and presentation)

Instructor guide

Class timing 240 min

  1. Briefing on permitted networks and safety during the survey10 min
  2. Install Mosquitto and write the QoS 1 mock gateway60 min
  3. Add deadband and heartbeat and run the outage test50 min
  4. Walk the RSSI survey and compare with the model50 min
  5. Capture packets with Wireshark and count bytes40 min
  6. Wrap-up, questions and hand-in checklist30 min

Expected results

  1. Record: Table 1 Deadband, heartbeat and outage test resultsTable 1 (check with Examples 1 and 2): a 0.3 °C deadband with a 10-minute heartbeat sends 169 of 1,440 values (12%), longest gap 10 min, dashboard error at most 0.29 °C. Gateway G2 with 40 devices and a 15-minute outage holds 600 values and catches up in about 3.0 s at 200 values per second (a 12-hour outage holds 28,800 values, 1.38 MB, caught up in 144 s; 8 MB lasts 69.4 h). A mock gateway with 2 sensors recording every minute holds 30 values and catches up almost at once.
  2. Record: Table 2 RSSI survey (at least 15 points; record points beyond 12 below the table)Table 2 (predicted with ITU-R P.1238 industrial NLoS at 2.44 GHz, 0 dBm transmit and 2 dBi total gain as in Example 3): 3, 5, 10, 18, 30 and 45 m give −43.3, −49.5, −57.9, −65.1, −71.3 and −76.2 dBm; a 20 dB cold-room wall lowers each by 20 dB, so 45 m gives −96.2 dBm, below the −94 dBm sensitivity. Real values scatter around the prediction with σ of about 5.7 dB. If the lab devices differ, use their datasheet values.
  3. Record: Table 3 Measured versus calculated packet sizesTable 3 (as in Example 4, topic bp1/z2/temp/T2-07, JSON payload): QoS 0 = 65 bytes, QoS 1 = 71 bytes (PUBLISH 67 + PUBACK 4), QoS 2 = 79 bytes (67 + 3 × 4), QoS 1 with topic alias = 57 bytes, 10-byte binary payload with alias = 24 bytes. Measured MQTT-layer bytes should match or come close with the same topic and payload; bytes including TCP/IP/TLS are clearly larger.
  4. Question 1: In the 15-minute outage test, did backfilled values carry measurement times or sending times? Did the platform raise alarms again from old values, and did catch-up time match t = B/(R − Nr)?Backfilled values must carry measurement time, not sending time, or the whole backlog appears to happen in one second. The platform must not raise alarms again from old values and flood staff with SMS. Measured catch-up should be close to the formula; if much longer, check broker limits or one-message-at-a-time sending.
  5. Question 2: At which point did real RSSI differ most from the ITU-R P.1238 model, why, and where does the group propose to place gateways?Usually behind metal walls or steel racks and where reflections occur, because the model is an average over many buildings, not this room. A good proposal places the gateway inside the metal-walled room (such as inside the cold room) instead of sending through the wall, and confirms with a survey after installation.
  6. Question 3: Why did the team choose QoS 1 rather than QoS 2, and why are the bytes measured in Wireshark including TCP/IP/TLS so much larger than calculated?QoS 1 adds only about 9% over QoS 0 but guarantees delivery at least once; QoS 2 adds two more acknowledgements needlessly when the receiver drops duplicates by message ID. The calculation leaves out TCP, IP and TLS headers, which often exceed the message itself, so backlogs should be sent several values per message.
  7. Question 4: Why must alarms be decided at the gateway from every value, not only from values already sent? Use the group's deadband in your explanation.A deadband sends only values that change by more than the band, so an unsent value could cross the pre-alarm limit unseen by the platform; with a 0.3 °C band the dashboard can be up to 0.29 °C off. The band must be much smaller than the gap from normal values to 7.6 °C, and the gateway must decide alarms from every value and keep all original values.

Discussion questions

  • If the gateway must sit inside the cold room, what else must be considered (operating temperature, PoE power, maintenance)?
  • A binary payload saves many bytes; why does the team still choose JSON between gateway and platform?
  • A shorter Keep Alive reveals a silent gateway sooner, but what does it cost?

Adapting to student background

Upper secondary (M.6)
Have them compute L_b and margin by hand for two points before the survey, and let them carry the receiver and record real distances for field practice.
Vocational certificate
Start with walking the RSSI survey and drawing the map on a plan, then use a prepared gateway skeleton where they fill in only the deadband and heartbeat rules.
Diploma
Extension: batch several values per message when sending the backlog and measure bytes per value including network headers against one value per message.

Common student mistakes: Common mistakes in the module 7 lesson

8Worksheet 8 A temperature record database and a mock pallet tracking system
Lab · About 4 h of class time · 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

  • 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

Deliverables

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

Checklist

  • Table 1 includes calibration and audit_log tables and at least three SQL queries using ? parameters, no string concatenation (WMS integration and mission evaluation)
  • The correction adds a new row with reason and person, the original remains visible, and all times are stored in UTC (WMS integration and mission evaluation)
  • Table 2 shows the storage formula with units and retention years, and the hourly summary has minimum, mean and maximum (Accuracy of calculations)
  • Table 3 sums time out cumulatively, includes one missed-read case and one duplicate-read case, and uses non-identifying data (Test evidence, safe practice and presentation)

Instructor guide

Class timing 240 min

  1. Briefing on ALCOA+ and non-identifying data10 min
  2. Extend the database and load 24 hours of data50 min
  3. Write parameterised SQL and design corrections40 min
  4. Compute storage and summarise hourly with pandas40 min
  5. Tag boxes and log events at the mock door50 min
  6. Compute time out of refrigeration, test a missed read and run the hand-in checklist50 min

Expected results

  1. Record: Table 1 Database schema, SQL queries and correctionTable 1 (check with Example 1): for 17:00 to 18:00 UTC, Z1 T1-22 min 24.8, max 26.4 °C, excursion; Z2 T2-07 5.1 to 8.3 °C, excursion; Z2 T2-11 3.1 to 3.2 °C, ok; the sensor due for calibration before 2026-11-01 is T2-11. The primary key (sensor_id, ts_utc) blocks duplicates when a gateway backfills. A correction must be a new row in audit_log or a correction table, never an UPDATE over the original.
  2. Record: Table 2 Storage and hourly summaryTable 2: 92 sensors every minute at 40 bytes per row = 48,355,200 rows a year, 1.93 GB a year, 9.7 GB over 5 years; 50 sensors every 2 minutes for 5 years = 2.63 GB; a mock system of 2 sensors every minute gives 2,880 rows in 24 hours and about 210 MB over 5 years. The hourly summary cuts 1,440 rows per sensor per day to 24, but the originals must be kept complete.
  3. Record: Table 3 Cold-room door events and cumulative time out of refrigerationTable 3 (as in Example 4, now 15:46, limit 30 min): 0412 out twice, 15 and 18 min, 33 min in total, hold for QA; 0429 26 min, ok; 0433 40 min in total (36 min on the current trip and still outside), hold for QA. The example code keeps the first OUT of each trip and never lets a repeated OUT overwrite it. If the 09:17 IN read of 0412 is missed, it gives 296 min (out from 09:02 to 13:58), hold for QA, tagged CHECK EVENTS. If the 09:02 OUT is read again at 09:03, it still gives 33 min and tags the pallet for checking. If the 09:02 OUT is missed, it gives 18 min and says CHECK EVENTS, not ok. A version that overwrites the OUT gives 18 min in the first case (a false pass), 32 min in the second and stops with a KeyError in the third. The group's mock boxes will give different values depending on the trial times.
  4. Question 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?For example a door opening or defrost that raises temperature for a few minutes: the hourly mean barely moves while the maximum shows it clearly. ALCOA+ and WHO require complete original records for the whole retention period; means are acceptable only in analysis copies.
  5. Question 2: How does the group's correction design follow ALCOA+ (attributable, original kept, contemporaneous)?The correction row names the person and reason (attributable), the original value remains readable (original), the time of the correction is recorded when it happens (contemporaneous), and audit_log keeps who did what and when. A strong answer adds that the right to switch off the audit trail must be restricted.
  6. Question 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?The answer depends on the group's data, but must identify two OUT events in a row, or an IN with no OUT, as an unusual sequence, and state the rule used: keep the first OUT of a trip and never let a repeated OUT overwrite it. A duplicate read does not change the time but must be tagged for checking. A missed IN overcounts (example 296 instead of 33 min), which is the safer error; a missed OUT undercounts (example 18 min), so it must never be shown as ok. Every case goes to a person rather than letting the system decide.
  7. Question 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.With α = 2.27 and σ = 2.62 dB, a tag truly 10 m away is estimated at 7.7 to 13.0 m (68%) and 5.9 to 16.8 m (95%), and at 20 m 15.3 to 26.1 m. The error is a proportion of distance, so RSSI gives only room or zone; 6 dB hysteresis stops the zone flipping. A forklift's position shows where its driver is throughout the shift, so it is personal data: state the purpose, collect only what is needed and set a retention period.

Discussion questions

  • For this pharmaceutical store, how is the hybrid design (alarms on site, long-term archives in the cloud) better than using SaaS for everything?
  • If the cloud provider runs the infrastructure, what does the distribution centre still remain responsible for?
  • For ordinary pallets the team chose RFID portals rather than continuous tracking. What is gained and what is lost?

Adapting to student background

Upper secondary (M.6)
Have them compute storage and time out by hand before coding, and let them carry the boxes through the door and log real times to see where the data come from.
Vocational certificate
Start by carrying boxes through the door and logging events on paper, then use prepared SQL where they fill in only the WHERE condition and parameter values.
Diploma
Extension: add a debounce window (for example 2 minutes) so a repeated OUT inside it is not tagged, while a repeated OUT further apart is still tagged, and test it with three kinds of odd read.

Common student mistakes: Common mistakes in the module 8 lesson

9Worksheet 9 Connect a mock platform to a mock WMS and design alarm logic
Analysis activity · About 4 h of class time · CLO5, CLO6

Objective: Draw an integration map, build a mock WMS that accepts hold requests and enforces the state machine, design alarm logic that meets the time budget, and analyse alarm load

Equipment

  • Computer with Python and Flask or FastAPI
  • Mock gateway and database from Worksheets 7 and 8
  • One week of alarm log (real or simulated)

Safety

  • Desk and computer work, no flying
  • Run APIs only on your own computer or the laboratory network, never exposed to the internet
  • Do not send test SMS or calls to anyone who has not agreed

Steps

  1. Draw an integration map like Figure 1 naming data owners, protocols and human approval steps
  2. Build a mock WMS that accepts hold requests as in Example 1 and test resending
  3. Enforce the state machine of Example 2 and test unauthorised requests and the audit trail
  4. Test the alarm logic of Example 3 against at least five door openings and one real event, and show the module 6 time budget still holds
  5. Compute the alarm rate and main culprits as in Example 4 and propose three fixes

Deliverables

  • Integration map
  • Mock WMS code with resend and permission test results
  • Chosen delay and deadband with reasons from the time budget
  • Alarm load table and proposed fixes

Checklist

  • Every link in Table 1 names a protocol and data owner, with the WMS owning pallet status and QA owning product decisions (WMS integration and mission evaluation)
  • Table 2 tests a resent request, an unauthorised request and a QA release, and every status change is in the audit trail (WMS integration and mission evaluation)
  • Table 3 covers at least five door openings and one real event, and computes the time-budget margin after the delay (Accuracy of calculations)
  • APIs ran only on the group's computer or lab network, and no test SMS or call went to anyone who had not agreed (Test evidence, safe practice and presentation)

Instructor guide

Class timing 240 min

  1. Briefing on the task and where APIs may run10 min
  2. Draw the integration map by ISA-95 level40 min
  3. Build the mock WMS that accepts hold requests60 min
  4. Enforce the state machine and test permissions and resends40 min
  5. Test and tune the alarm logic50 min
  6. Analyse alarm load, answer questions and run the hand-in checklist40 min

Expected results

  1. Record: Table 1 Links in the integration mapTable 1: gateways to platform over MQTT; platform to WMS and QA system over HTTP API (REST); WMS to ERP over REST; platform to cold-room PLC over OPC UA; gateways to sensors over BLE or LoRa; drone fleet manager to drones over MAVLink. The WMS owns pallet locations and status, the IoT platform owns measurements and events, and QA owns the decision on whether product is usable. Releasing or rejecting a pallet needs human approval.
  2. Record: Table 2 Mock WMS test resultsTable 2 (as in Examples 1 and 2): event EXC-20261001-003 creates hold requests for 3 pallets (0501, 0502, 0517); location R04-L5 is empty so no request; 0530 at R05-L5 is not held because it lies outside the sensor's coverage. The duplicate for 0517 is ignored, staff releasing 0502 is refused, QA quarantines then rejects 0501, QA releases 0502; final status 0501 REJECTED, 0502 AVAILABLE, 0517 HOLD.
  3. Record: Table 3 Alarm logic and alarm loadTable 3 (as in Examples 3 and 4): with no delay, 5 alarms (08:00, 10:15, 12:30, 15:05, 18:36), four of them door openings; a 15-reading delay with a 0.5 °C deadband leaves only 18:50; a 10-reading delay still raises the 12-minute door opening (10:24) as well as 18:45; the 7.6 °C pre-alarm shows the real event from 18:31; margin 31.7 − 14 = 17.7 min. One week: 675 alarms = 0.67 per ten minutes, door D3 61%, top three sources 86%; fixing those three leaves 95 alarms (0.094 per ten minutes, about 7 times fewer).
  4. Question 1: Why must the hold request ID be derived from the source data (event ID and SSCC), and how did the group's mock WMS respond to a resend?If the request is resent after a network glitch, the WMS sees the same ID and does not create a duplicate task (it acts on the first and reports "already done" for the rest). An ID derived from the source data is always the same for the same input, unlike a random ID that changes on every resend. The request also cites the event ID as evidence linking back to the measurements.
  5. Question 2: With the delay and deadband the group chose, how many door-opening alarms were removed, how many minutes later was the real event reported, and how much margin is left in the module 6 time budget?In the lesson's example a 15-minute delay removes all four door openings and reports the real event 14 minutes later (18:36 to 18:50), leaving 17.7 min of margin. A delay longer than the longest door opening (12 min) but with a positive margin is acceptable; delays must be set from the time budget, not from annoyance.
  6. Question 3: Does the group's average alarm rate meet the target of no more than one per ten minutes? Why can the average alone mislead, and which source should be fixed first?In the example 0.67 per ten minutes meets the target, but 61% comes from door D3 alone, so the average hides the main culprit. Fix door D3 first (a procedure propping the door or a badly mounted sensor), and turn G3 going offline into a maintenance task rather than a duty alarm.
  7. Question 4: Why may automation hold a pallet but not release or reject it, and why must an IoT or drone result never command a machine directly?Holding increases safety, so the system may do it; releasing or rejecting needs assessment against the product's stability data, which is QA's job. Machines take orders from the WMS or fleet control, which check permissions and task order, so IoT or drone results go only as requests through the WMS.

Discussion questions

  • If a real event happens at two in the morning, who should be alerted first, and what may the system do by itself before a person arrives?
  • If the platform asks a drone to fly a temperature profile when upper sensors rise, which steps must happen before it flies?
  • If staff ask for the door D3 alarm to be switched off because it is annoying, how should the person responsible answer?

Adapting to student background

Upper secondary (M.6)
Have them write the transition table by hand and trace the requests line by line before coding the API, and let them play the tester sending unauthorised requests.
Vocational certificate
Start with a role-play using status cards (AVAILABLE, HOLD, QUARANTINE, REJECTED), then use a prepared API skeleton where they fill in only the ALLOWED table.
Diploma
Extension: add a two-person approval rule for releasing quarantined pallets and test that the audit trail records both names.

Common student mistakes: Common mistakes in the module 9 lesson

10Worksheet 10 A data analysis and security assessment report on the mock system
Lab · About 4 h of class time · CLO6

Objective: Compute MKT, analyse vertical temperature profiles, detect drift with EWMA, and assess zones, SL-T and SL-C under IEC 62443, checking a device against ETSI EN 303 645

Equipment

  • Computer with Python, numpy and pandas
  • At least one week of mock system data
  • Indoor drone with a boom-mounted probe, or a pole that raises the probe
  • Vendor documents of the devices the group uses

Safety

  • Fly only in an authorised indoor area under instructor supervision, within visual line of sight, with the area cordoned so no one is under the flight path
  • Check batteries before flight; store and charge lithium batteries in fire-resistant containers
  • If a pole replaces the drone, have a helper steady it and watch for overhead cables
  • Do security assessment only from documents and the mock system; never test real systems without written permission

Steps

  1. Compute MKT as in Example 1 for a normal and an event period, and write a paragraph for QA giving MKT, peak and duration
  2. Measure two vertical profiles by drone or pole, wait 5τ at each level and analyse as in Example 2
  3. Simulate 30 days of drifting duty cycle and compare EWMA at λ of 0.1, 0.2 and 0.3 as in Example 3
  4. Divide the mock system into zones and conduits, set SL-T per FR, rate SL-C, find gaps as in Example 5 and propose compensating countermeasures
  5. Check one device against the thirteen sections of ETSI EN 303 645 and the six capabilities of NIST IR 8259A

Deliverables

  • QA summary paragraph
  • Profile charts and storage recommendation
  • EWMA charts at three λ values
  • Zone and conduit diagram, gap table and device check results

Checklist

  • Table 1 shows both the normal and event periods, MKT uses kelvin, and the QA paragraph states MKT, peak and duration (Accuracy of calculations)
  • Table 2 covers all three λ (0.1, 0.2, 0.3), with limits from the normal period, and EWMA charts are attached (Accuracy of calculations)
  • Table 3 gives reasons for every zone's SL-T, SL-C comes from real device documents, and every gap has a compensating countermeasure (WMS integration and mission evaluation)
  • The flight or pole measurement has a cordon and battery check record, and the security assessment was done only on the mock system (Test evidence, safe practice and presentation)

Instructor guide

Class timing 240 min

  1. Briefing on indoor flight safety and the scope of the security assessment15 min
  2. Compute MKT and write the QA paragraph40 min
  3. Measure vertical profiles by drone or pole60 min
  4. Simulate duty cycle and compare EWMA40 min
  5. Define zones and conduits, set SL-T and find gaps45 min
  6. Check a device against ETSI EN 303 645 and NIST IR 8259A, then run the hand-in checklist40 min

Expected results

  1. Record: Table 1 MKT summary for QATable 1 (as in Example 1, ΔH/R = 10,000 K): the event week has mean 5.22 °C, MKT 5.34 °C, peak 13.5 °C and 6 hours above 8 °C; the normal week has mean 5.00 °C and MKT 5.00 °C. The group's mock data will differ, but MKT must always be at least the mean. Check the code with four periods of 5, 5, 5 and 15 °C: mean 7.5 °C, MKT 8.79 °C.
  2. Record: Table 2 EWMA at three λ valuesTable 2 (the 30 days of Example 3, target 42%, standard deviation 1.5%, k = 3): λ 0.1 upper limit 43.03%, signals on day 25; λ 0.2 upper limit 43.50%, day 24; λ 0.3 upper limit 43.89%, day 24; the single-value chart (46.50%) signals on day 26. No point leaves the limits in the 18 normal days for any λ. The group's simulated data will give different days.
  3. Record: Table 3 SL-T versus SL-C gaps per zone and compensating countermeasuresTable 3 (as in Example 5): wireless sensors FR1, FR2, FR5, FR7; refrigeration PLCs FR1, FR2, FR3, FR5, FR7; IoT platform no gaps (SL-A must still be proven after installation); drones and docks FR2, FR7. Countermeasures such as gateways accepting only registered sensors with individual keys, plausibility checks and comparison with neighbouring sensors, and an industrial firewall allowing only defined OPC UA commands.
  4. Question 1: From Table 1, why is an MKT within 2 to 8 °C not enough to conclude that the product is usable, and which numbers must the QA paragraph contain?MKT summarises total thermal load but hides the peak and the time out of range. In the example MKT is 5.34 °C, inside the range, although the product reached 13.5 °C for 6 hours, and some vaccines are harmed more by peaks or freezing than by total load. The QA paragraph must state MKT, peak and duration and leave the decision to QA with the product's stability data.
  5. Question 2: From the vertical profiles you measured (or Example 2 values if you did not fly), what are the top-to-bottom difference and gradient, where is the hot spot, what do you recommend, and why must you wait 5τ at each level?Example 2: C05 near the dock 5.7 °C difference (0.68 °C/m), above 25 °C at 8.7 m; C18 3.4 °C (0.40 °C/m); C31 2.5 °C (0.30 °C/m). Recommend no product on the top level of the columns near the dock until air distribution is adjusted, then re-map to confirm. A probe with τ = 8 s must wait 40 s at each level to reach 99.3% of a step change (τ = 12 s needs 60 s); two columns of six levels take about 10 min of flight. One profile does not replace temperature mapping.
  6. Question 3: Which λ signalled first in the group's data, at what cost, and from which period must the target and standard deviation come?In the example data λ 0.2 and 0.3 signal on day 24 and λ 0.1 on day 25. A small λ remembers old values longer, giving narrow, steady limits but following change more slowly; a large λ follows faster with wider limits and more noise. The target and standard deviation must come from a truly normal period and be reset with the seasons.
  7. Question 4: Which zone has the most gaps, what compensating countermeasures do you propose, and what weaknesses did the device check against ETSI EN 303 645 and NIST IR 8259A find that should become procurement criteria next time?In the example the refrigeration PLCs have the most gaps: propose an industrial firewall allowing only defined OPC UA commands, no path from the office network to the PLCs, a recorded residual risk and a replacement plan. Common device weaknesses such as a universal default password, no way to report vulnerabilities or no software updates should become procurement criteria. Where data identify staff, personal data protection law applies.

Discussion questions

  • A board of mean tiles shows a healthy room while a sensor has gone silent. How should a status board be designed so people can decide?
  • Why did the team give the refrigeration PLCs SL-T 3 but the other zones SL-T 2?
  • If a customer is a hospital that may be a critical information infrastructure organisation, what must the distribution centre check?

Adapting to student background

Upper secondary (M.6)
Have them compute MKT for four periods and an EWMA limit by hand before using code, and let them steady the pole or observe the flight for safe field practice.
Vocational certificate
Start with measuring the profile by pole and reading real values, then use a fill-in SL-T/SL-C grid per FR and mark gaps instead of coding.
Diploma
Extension: build the Example 4 status board for the mock system's data, ranking NO DATA above WARN and never relying on colour alone.

Common student mistakes: Common mistakes in the module 10 lesson

Scoring rubric

For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.

CriterionWeightExcellent (4)Good (3)Fair (2)Needs work (1)
Accuracy of calculations30%IRA, workload, reading distance, RFID range, location codes, wrong-slot chance, scan time, routes, schedule, confidence interval and NPV all correct, with reproducible codeNearly all correct, method shownSome errors or missing stepsMany errors or no method
Counting and inspection mission design25%Camera and reading method fit the warehouse, localization is correct on both sides and anchored on beam labels, routes respect safety and energy limits, and unread is always kept apart from emptyGood design, some details missingSeveral parts missing or constraints overlookedNo usable design
WMS integration and mission evaluation25%Data flow has approvals and an audit trail, reconciliation covers every outcome, evaluation uses confidence intervals, NPV with sensitivity analysis, and a risk matrix with verifiable controlsNearly complete, some analysis missingOnly some aspects evaluated or averages onlyNo integration or evaluation
Test evidence, safe practice and presentation20%Real data from bench tests and enclosed flights, full compliance with safety rules, and a clear report that supports a decisionEvidence complete, report partly unclearIncomplete evidence or some safety rules neglectedNo evidence or unsafe practice

Assessment map: CLOs and how they are assessed Draft

The CLOs are a web-team draft; the course owner sets the final ones (curriculum book, part 4). This table is built from the worksheet and module-quiz data, so it follows any change to the CLOs.

CLOWorksheetsModule quizzes
CLO1 Analyse inventory-counting processes suited to drones and select barcode or RFID tag reading methods for indoor warehousesW 1W 2M1M2
CLO2 Design drone inventory-counting and stock-inspection missions, including rack localization and indoor route planningW 3W 4M3M4
CLO3 Integrate counting results with the warehouse management system and evaluate mission safety and efficiencyW 5M5
CLO4 Explain the IoT architecture of smart warehouses and select sensors, edge devices, gateways and communication protocols that meet the requirements of the operationW 6W 7M6M7
CLO5 Design data storage on databases and cloud services, asset tracking, and integration with warehouse systems including automation logicW 8W 9M8M9
CLO6 Analyse IoT data to support decisions and assess the security of smart warehouse systems against relevant standards and lawW 9W 10M9M10