UAT 363 Unmanned Aircraft Systems Technology for Transportation and Smart Warehousing

Worksheet 4 Sending scan results into a system

Analysis activity 12 hAssesses CLO2

Objective

Send scans over MQTT into a WMS stand-in table, remove duplicates, validate check digits and reconcile with records before staff confirmation

Equipment and materials

  • Mosquitto broker on the lab network
  • Python with paho-mqtt
  • Scan results from worksheet 3
  • Module 4 example code

Safety

  • Desk work only; no flying
  • Use the isolated lab network; do not connect to any real hospital system

Steps

  1. Install Mosquitto; publish scans with paho-mqtt in the Example 1 format
  2. Write a subscriber that stores to a table and removes duplicates by msg_id
  3. Send with QoS 0 and 1 while cutting the network briefly; count lost and duplicate messages
  4. Reconcile scans with records and compute record accuracy
  5. Validate every code's check digit with Example 2; count rejections
  6. Write the staff confirmation procedure before records are adjusted

Record of results

Table 1 QoS 0 versus 1 results with a brief network cut
QoSMessages sentMessages receivedLostDuplicatesLeft after removing duplicates by msg_id
Table 2 Reconciliation with records
OutcomeNumber of locationsLocation codesPossible causesConfirmed by and result
Table 3 Check-digit results
Code readComputed check digitLast digit of the codeAccepted or rejectedAction

Questions

  1. From Table 1, why should scan results be sent with QoS 1 and a msg_id, while frequent drone position updates may use QoS 0?

  2. If duplicates were not removed, how would Table 2 go wrong? Give an example from your group's data.

  3. What are the possible causes of a "not found" location, and what should staff check before adjusting the records?

  4. Why does the check digit catch a code with one misread digit, and what should the system do with a rejected code?

  5. Write your group's staff confirmation procedure as ordered steps, and explain why the system should not adjust records automatically.

Check before you hand in

What to hand in

  • Publisher and subscriber code
  • QoS 0 versus 1 results
  • Record accuracy
  • Rejected-code count
  • Confirmation procedure

CLO2 Apply drones and IoT in smart warehouses. (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