Teaching pack · UAT 207
A 15-week teaching plan, 5 worksheets, a scoring rubric and a map from the course description to the lessons, for instructors to evaluate and adapt before teaching.
Coverage of the course description
The lessons fully teach 11 of 11 description topics. Each topic lists the modules and lesson sections that teach it, and incomplete topics say what is missing.
| Description topic | Modules | Where it is taught | Status |
|---|---|---|---|
| Signals and communications | M1M2 | Module 1: Fresnel zones and antenna radiation patterns · Module 2: Shannon capacity | Covered |
| Wireless channels | M1M2 | Module 1: Fresnel zones, mast height and polarization · Module 2: capacity of a 2.4 GHz video link against distance | Covered |
| Telemetry | M2M3 | Module 2: telemetry bandwidth budget · Module 3: wrapping sequence numbers and splitting frames from a byte stream | Covered |
| Data links | M2M4 | Module 2: C2 links, telemetry and video · Module 4: different kinds of failsafe and a link state machine | Covered |
| IP networking | M3 | Module 3: IP addresses, subnets and routing (Example 3: a field station subnet plan and longest-match routing per RFC 791, 1918 and 4632) and Analysis in simulation (SITL sending UDP through MAVProxy endpoints and ports) | Covered |
| Communication protocols | M3M5 | Module 3: MAVLink sequence numbers, framing and CRC · Module 5: LoRa parameters and mesh networks | Covered |
| Short- and long-range communications | M1M2M5 | Module 1: Fresnel zones (a 5 km link) · Module 2: Shannon capacity and video links · Module 5: Short-range and long-range communications (Wi-Fi, 433 MHz telemetry, LoRa, cellular and LEO/GEO satellite compared; Example 3, loss and latency by distance; box on frequencies allowed in Thailand) | Covered |
| Quality of service | M2 | Module 2: latency, quality of service and reliability | Covered |
| Latency | M2M4 | Module 2: Example 3, a latency budget and failsafe timing · Module 4: choosing a timeout with numbers | Covered |
| Reliability | M2M4M5 | Module 2: link reliability · Module 4: chance of a false failsafe per flight · Module 5: delivery ratio in a mesh | Covered |
| Data security | M4M5 | Module 4: Data security and MAVLink 2 message signing (confidentiality, integrity and authentication, availability; AES encryption; limits of Meshtastic encryption; Example 3, signing a command and catching altered, replayed and wrong-key frames) · Module 5: the mistake of sending personal data unencrypted | Covered |
Weekly teaching plan
| Week | Topic | Pre-class | Lecture | Lab | Evidence |
|---|---|---|---|---|---|
| 1 M1 | Fresnel zones and mast height | Read module 1 to the Fresnel zone section; run Example 1 | Line of sight is not enough: Fresnel clearance and earth curvature | Worksheet 1 part A: draw a path profile from elevation data; find the required mast height | Path profile and mast-height calculation |
| 2 M1 | Antenna radiation patterns | Read the radiation pattern section; run Example 2 | The null above the station, gain and antenna choice | Worksheet 1 part B: fly over the station at constant height and log RSSI from telemetry | RSSI plot against Example 2 |
| 3 M1 | Polarization and spectrum rules | Read the polarization section; take the module 1 quiz | Polarization mismatch loss and transmit power under Thai rules | Worksheet 1 part C: rotate the ground antenna 0°, 45°, 90° and log signal strength | Worksheet 1 short report and quiz result |
| 4 M2 | Telemetry bandwidth budget | Read module 2 to the bandwidth budget section; run Example 1 | MAVLink message sizes, rates and SiK AIR_SPEED and ECC settings | Worksheet 2 part A: read message rates from the GCS or SITL; compute the share of radio capacity used | Bandwidth budget table |
| 5 M2 | Shannon capacity and video links | Read the Shannon capacity section; run Example 2 | SNR with distance and where video bit rate starts to fall short | Worksheet 2 part B: raise the ATTITUDE rate in SITL; apply Example 2 to the lab's video link | Notes on the rate change and the predicted problem range |
| 6 M2 | Latency, quality of service and reliability | Read the latency section; run Example 3; take the module 2 quiz | Latency budget from sensor to operator and failsafe timing | Worksheet 2 part C: log RSSI and video bit rate flying out in a straight line; compare with calculations | Worksheet 2 short report and quiz result |
| 7 M3 | Wrapping sequence numbers and packet loss | Read module 3 to the sequence-number section; run Example 1 | Sequence numbers wrapping 0 to 255 and separating senders by system ID | Worksheet 3 part A: start SITL and MAVProxy; record endpoints, ports and system IDs | Connection diagram |
| 8 M3 | Splitting frames from a byte stream | Read the framing section; run Example 2 | Start byte, length and CRC for catching bad frames | Worksheet 3 part B: pymavlink script reading ATTITUDE, logging sequence and time to CSV; loss per sender | CSV file and packet-loss table |
| 9 M3 | Analysis in simulation; midterm | Review modules 1–3; take the module 3 quiz | Midterm examination (modules 1–3) | Worksheet 3 part C: capture loopback packets with Wireshark and compare with the script | Worksheet 3 report and midterm score |
| 10 M4 | Different kinds of failsafe | Read module 4 to the failsafe types section | Telemetry loss, GCS failsafe and RC loss, and the available actions | Worksheet 4 part A: record all failsafe parameters in SITL before starting | Failsafe parameter table |
| 11 M4 | A link state machine | Read the state machine section; run Example 1 | Link state from heartbeat times and recovery | Worksheet 4 part B: enable GCS failsafe, stop MAVProxy forwarding; log stop time and mode change | Timed event sequence |
| 12 M4 | Choosing a timeout with numbers | Read the timeout section; run Example 2; take the module 4 quiz | Trading false failsafes against slow response | Worksheet 4 part C: restore the link, record behaviour and compare with Example 1 | Worksheet 4 short report and quiz result |
| 13 M5 | LoRa parameters | Read module 5 to the LoRa parameters section; run Example 1 | SF, bandwidth, time on air and duty cycle | Worksheet 5 part A: choose SF and position rate for a 20-person team; check NBTC rules for 920–925 MHz | Settings table with reasons |
| 14 M5 | Mesh networks | Read the mesh section; run Example 2; take the module 5 quiz | Delivery probability by hop count and retransmission | Worksheet 5 part B: set up three LoRa nodes, measure delivery with one and two hops, try a drone-borne relay | Measured results against Example 2 |
| 15 M5 | Mini-project presentations | Prepare the group's field network design | Course wrap-up and project criteria | Present a UAS mission data network covering C2, video and the field network | Mini-project report and presentation, scored with the rubric |
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 Path survey and antenna tests
Lab · About 6 h of class time · CLO1
Objective: Analyse the path profile and Fresnel zone of a real link and measure the effects of antenna pattern and polarization
Equipment
- Terrain elevation map or field survey data
- Computer with Python and the module 1 example code
- Drone with telemetry radio and ground station
- Rotatable ground antenna
Safety
- Fly within CAAT conditions in visual line of sight; keep people clear
- Use frequencies and transmit power allowed in Thailand for every test
- Do not touch or stand in front of an antenna while it transmits at high power
Steps
- Draw the path profile from the station to the farthest flight point
- Use Example 1 to find the required mast height; compare with the existing mast
- Fly over the station at constant height and log RSSI from telemetry
- Compare RSSI with the Example 2 result
- Rotate the ground antenna 0°, 45° and 90° and log the signal
- Summarise and explain differences from the calculations
Deliverables
- Path profile and mast-height calculation
- RSSI plot during the overflight
- Signal table by polarization angle
- Conclusions and reasons for differences
Checklist
- Table 1 uses GHz and km in the F1 formula and shows results for both 1.0 F1 and 0.6 F1
- Table 2 has all 6 ranges with both calculated values and measured RSSI, with units
- Table 3 has all 3 angles measured, with the drop from 0° computed
- The RSSI plot has labelled axes with units and the calculated curve overlaid for comparison
- Frequency, transmit power and flight height used are recorded and confirmed within CAAT and NBTC rules
Instructor guide
Class timing
- Objectives, flight safety and frequency rules briefing30 min
- Draw the path profile and compute mast height with Example 190 min
- Overflight and RSSI logging90 min
- Rotate the ground antenna and measure the signal60 min
- Compare measurements with calculations and plot60 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (numbers depend on the real path; with Example 1 values, 915 MHz, 5 km, 15 m mangroves at 3 km): F1 at 0.5, 1.25, 2.5 and 3 km is 12.13, 17.51, 20.22 and 19.81 m; Earth bulge 0.13, 0.28, 0.37 and 0.35 m; masts at least 36 m for 1.0 F1 (28 m for 0.6 F1). Accept ±0.05 m from rounding. An F1 of hundreds of metres means MHz was entered instead of GHz.
- Table 2 (if the lab flies at 60 m to stay under the CAAT 90 m limit, using the Example 2 formula with vertical dipoles at both ends at 915 MHz): at ground ranges 500, 200, 100, 50 and 10 m the elevation is 6.8, 16.7, 31.0, 50.2 and 80.5 degrees and the total loss 85.9, 79.2, 76.8, 79.7 and 102.8 dB, so RSSI relative to 500 m should be about 0, +6.7, +9.1, +6.2 and -16.9 dB. The expected shape: RSSI rises on approach, peaks around 100 m, then drops sharply almost overhead. Absolute dBm depends on the radio; accept about ±6 dB from the calculation because of ground reflections and drone tilt.
- Table 3: theory gives no loss at 0°, 3.0 dB (half the power) at 45° and, in theory, no signal at 90°. The measured drop at 45° should be about 2-5 dB; at 90° it drops a lot but remains measurable, not the infinite theoretical value.
- Depends on the real mast, compared with 36 m (or 28 m at 0.6 F1). If the mast is shorter, the mangroves intrude into the Fresnel zone and the signal weakens even with line of sight; when the drone descends behind the tree line, line of sight itself is blocked and the link may drop. A strong answer proposes a fix, such as raising the mast, moving the station or setting a minimum flight height in that area.
- RSSI is strongest at mid range (about 100-200 m at 60 m height) and weakest almost directly over the mast, because the elevation approaches 90°, the null direction of both vertical dipoles. Far away the elevation is low and pattern loss is near zero, but FSPL is larger. A strong answer points out that the signal near the station can be worse than far away.
- At 45° the drop should be close to 3 dB; at 90° it is large but not total, because real antennas are not perfectly polarized, reflections from the ground and nearby objects partly change the polarization, and the drone tilts in flight. A strong answer links this to why video links often use circularly polarized antennas.
- F1 is inversely proportional to the square root of frequency, so it grows by √(0.915/0.433) ≈ 1.45 times: at 3 km F1 rises from 19.81 to 28.80 m and the masts must be at least 45 m for 1.0 F1 (33 m for 0.6 F1), in exchange for lower FSPL. The formula and units must be shown.
Discussion questions
- If the trees do not block the line of sight at all, why can reception still get worse, and would the rainy season make this better or worse?
- If the drone often has to pass over the station, how would you site the station or mount the antennas so the link does not drop there?
- If you calculated at 915 MHz but the real radio is 433 MHz, what must be recalculated?
Adapting to student background
- Upper secondary (M.6)
- Have them predict the RSSI curve from the pattern formula before the flight and compare with the real data; give extra time rotating and fixing the real antenna, paired with a hands-on peer.
- Vocational certificate
- Let them change only three values in the Example 1 code (distance, tree height, frequency) instead of writing the formula, with a fill-in table converting MHz to GHz and m to km before running it.
- Diploma
- Extension: repeat the overflight with the ground antenna tilted towards the flight area, or with antennas at different angles on the drone, and measure how many dB the null over the station improves.
2Worksheet 2 Bandwidth budget and link quality
Lab · About 6 h of class time · CLO1, CLO2
Objective: Compute the telemetry bandwidth budget, estimate video link capacity with distance, and measure real link quality against calculations
Equipment
- ArduPilot SITL and a GCS
- Lab SiK radios
- Drone with a video link
- Python and the module 2 example code
Safety
- The SITL part is simulation only
- Fly within CAAT conditions in visual line of sight; return as soon as the signal drops below the set threshold
Steps
- Read message rates from the GCS or SITL into Example 1
- Read the SiK AIR_SPEED and ECC settings; compute the share used
- Raise the ATTITUDE rate in SITL and see whether other messages slow down
- Apply Example 2 to the lab video link spec; find the range where problems should start
- Log RSSI and video bit rate while flying out in a straight line; compare with calculations
Deliverables
- Bandwidth budget table
- Notes on the message-rate change
- RSSI and bit rate against distance versus calculation
Checklist
- Every row of Table 1 adds the 12-byte header and CRC before multiplying by 8 and the rate, and the total is in kbit/s
- The share is computed against both the lab's real AIR_SPEED and the ECC-on case (half)
- Table 3 has measured values at 5 or more distances next to the calculated values in the same row
- The RSSI and bit-rate plot has labelled axes, units and the calculated limit line
- The signal threshold for returning is stated and its use during the flight is recorded
Instructor guide
Class timing
- Objectives and safety; set the return-signal threshold30 min
- Read message rates and SiK settings; build the bandwidth budget90 min
- Raise the ATTITUDE rate in SITL60 min
- Compute video link capacity from the lab spec45 min
- Fly out in a straight line, logging RSSI and bit rate105 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (if the rates match the lesson's Example 1; real values depend on the GCS or SITL): HEARTBEAT 168, SYS_STATUS 880, ATTITUDE 3,200, GLOBAL_POSITION_INT 1,600, VFR_HUD 1,024, GPS_RAW_INT 1,024, RC_CHANNELS 864 bit/s; total 8.76 kbit/s, 14% of AIR_SPEED 64 and 27% with ECC on (32 kbit/s). With different real rates, check the method (payload + 12) × 8 × rate.
- Table 2 (from the Example 1 code): ATTITUDE 50 Hz alone gives 21.56 kbit/s = 34% of 64 (67% of 32); ATTITUDE 50 Hz with position 25 Hz gives 27.96 kbit/s = 44% of 64 (87% of 32). In SITL with no real radio, other messages usually do not slow down because no air rate limits them; recording no slowdown is correct, provided the student explains how a real radio would differ.
- Table 3 (if the lab uses the Example 2 spec: 20 dBm, 2 dBi antennas at both ends, 20 MHz bandwidth, 6 dB NF at 2.44 GHz): noise floor -95.0 dBm; at 200 m and 500 m SNR is 32.8 and 24.8 dB with limits of 217.7 and 164.9 Mbit/s; at 1 km SNR 18.8 dB, 125.2 Mbit/s. The measured bit rate should be far below the limit (about half or less), and RSSI should fall about 6 dB each time the distance doubles. Accept ±6 dB.
- With the example rates, 14% of 64 kbit/s, so normal settings leave plenty of room. Raising rates for tuning with ECC on uses about 87% of 32 kbit/s, leaving very little for uplink data from the GCS, so important messages are delayed or lost. Turn ECC off (the guide no longer recommends it) or raise rates only while tuning and then lower them.
- In SITL other messages usually do not slow down, because the simulated link has no radio air-rate limit. On a real radio, once demand approaches the air rate, messages queue and others arrive late or are dropped. A strong answer separates the simulator result from real radio behaviour.
- Depends on the measurements; usually several times below the limit, because Shannon is a theoretical upper bound, real modulation and error correction are imperfect, protocols add overhead, and the video encoder is set to the bit rate it needs rather than the full capacity. A strong answer does not treat the Shannon limit as the achievable rate.
- Queuing behind telemetry (50 ms) is the largest part, against 5.0 ms serialisation and 10 ms processing: 65 ms one way, 130 ms round trip. Cut the queue first, for example by lowering unneeded telemetry rates or giving control commands their own priority queue (QoS).
Discussion questions
- How do C2, telemetry and video differ in what they need, and how would you set priorities if they share one link?
- If the video starts stuttering much closer than calculated, what could the causes be?
- Knowing a real system reaches about half the limit, where should the return-signal threshold be set?
Adapting to student background
- Upper secondary (M.6)
- Have them compute one budget row by hand and explain the Shannon formula and log2 before running the code; pair them with a peer confident at radio setup for the flight part.
- Vocational certificate
- Let them fill Table 1 in a spreadsheet with formulas prepared, and focus on reading AIR_SPEED and ECC from the real radio and logging during the flight, skipping the formula derivation.
- Diploma
- Extension: enable adaptive video bit rate (if the lab video system supports it), repeat the flight and compare whether freezes are reduced.
3Worksheet 3 Capturing and analysing MAVLink
Lab · About 6 h of class time · CLO2
Objective: Read MAVLink messages with a script, compute packet loss from sequence numbers and detect bad frames in a byte stream
Equipment
- ArduPilot SITL and MAVProxy
- Python with pymavlink
- Wireshark
- Telemetry radio on a serial port (if available)
Safety
- Simulation and bench work only; no flying
Steps
- Start SITL and MAVProxy; record endpoints, ports and system IDs
- Write a pymavlink script that reads ATTITUDE and logs sequence and time to CSV
- Use Example 1 to compute packet loss per sender
- Capture loopback packets with Wireshark; compare the rate with the script
- If a radio is available, record raw serial bytes and count bad frames with Example 2
Deliverables
- Connection diagram
- Script and CSV file
- Packet-loss table against Wireshark
- Bad-frame count with explanation
Checklist
- Table 1 lists the endpoint, port and system ID of every component in the connection diagram
- The script counts loss modulo 256, separately per sender, and the CSV file is attached
- Table 2 has both the Wireshark rate and the script rate over the same time window
- Box 3 gives good and bad frame counts, or states that no radio was available and the Example 2 stream was used
Instructor guide
Class timing
- Objectives; review the MAVLink 2 frame structure30 min
- Start SITL and MAVProxy; draw the connection diagram60 min
- Write the pymavlink script, log sequences to CSV and compute loss120 min
- Capture with Wireshark and compare rates60 min
- Count bad frames in the byte stream60 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1: at least SITL, MAVProxy, the GCS and the Python script, with UDP endpoints on 127.0.0.1 and the ports actually used (the GCS usually uses 14550). The SITL autopilot is normally system 1 component 1 and the GCS often system 255; accept other values if they match the real setup.
- Table 2: on loopback within one machine loss should be close to 0%. The script's ATTITUDE rate should equal the rate set in SITL, while Wireshark counts every UDP packet, so it is higher when several message types flow. Tested on the Example 1 sequence, the script must give 16 received, 4 lost, 20.0% loss (a direct subtraction gives 259).
- Box 3: with the Example 2 stream, 3 good frames (HEARTBEAT 2, ATTITUDE 1) and 1 bad frame, seq 12. With a real radio on the bench, bad frames should be very few or zero. The explanation must say the receiver steps one byte at a time to find a new 0xFD.
- SITL on one machine should give about 0%. If it is unusually high, the usual causes are merging several senders into one sequence, or subtracting directly so that the wrap from 255 to 0 counts as 255 lost. The correct formula is (s_k - s_(k-1) - 1) mod 256, per system ID and component ID.
- Wireshark counts every packet on the network while the script counts only the chosen messages, so the numbers can differ. Packets arriving often with an unchanged value means the link works but the data is stale, for example a sensor or estimator stopped updating: packet rate is not data freshness.
- The receiver discards the frame and steps one byte at a time to find a new 0xFD start byte, so junk bytes do not spoil the next frame. Discarding is better because the values in a bad frame may be wrong, such as a wrong attitude or position, which could lead to wrong decisions. A strong answer adds that CRC_EXTRA also catches mismatched message definitions.
- With /26, .10 is in 192.168.10.0/26 and .70 is in 192.168.10.64/26, different subnets, so a route through the radio bridge is needed. Check the address, subnet mask and routing table of every device first; without the route, packets go to the default route and vanish.
Discussion questions
- Which is more dangerous: a link with 5% loss whose data is always fresh, or a link with no loss whose data is stale?
- Why is exposing MAVLink control ports to the internet during experiments risky?
- A CRC catches errors from noise, but does it protect against someone who deliberately alters a message?
Adapting to student background
- Upper secondary (M.6)
- Have them work the sequence wrap by hand from Figure 1 before scripting and explain the frame structure byte by byte; let them follow a tool-confident peer for the MAVProxy setup.
- Vocational certificate
- Give them a starter pymavlink script where they only add the CSV writing, use the Example 1 code for the calculation, and focus on connecting the radio to the serial port and capturing with Wireshark.
- Diploma
- Extension: use a smaller antenna or increase the bench radio distance until bad frames appear, then compare the bad-frame rate with the sequence-based loss rate.
4Worksheet 4 Cutting and restoring the link in SITL
Lab · About 6 h of class time · CLO2, CLO3
Objective: Test failsafe behaviour when the link drops and returns, set the timeout from calculation and separate each failsafe type
Equipment
- ArduPilot SITL, MAVProxy and a GCS
- Python and the module 4 example code
Safety
- Simulation only; never cut the link on a real drone without a plan and a backup pilot
Steps
- Start SITL and the GCS; record all failsafe parameters first
- Enable GCS failsafe with the team's chosen action; set the timeout from Example 2
- Stop MAVProxy forwarding; record the stop time and the mode-change time
- Restore the link, record the behaviour and compare with Example 1
- Separate telemetry loss, GCS failsafe and RC loss in the report
Deliverables
- Parameter table before and after
- Timed event sequence
- Justification of the timeout
- Report separating failsafe types
Checklist
- Table 1 records the starting values of FS_GCS_ENABLE, FS_GCS_TIMEOUT, FS_THR_ENABLE and FS_THR_VALUE from the real firmware
- Table 2 has the last heartbeat time, stop time, mode-change time and restore time, all in seconds
- Box 3 shows the false failsafe chance from Example 2 for at least two timeouts, and the distance flown on
- The report separates telemetry loss, GCS failsafe and RC loss into their own sections
Instructor guide
Class timing
- Objectives and the difference between failsafe types30 min
- Start SITL and the GCS; record all parameters45 min
- Compute the timeout with Example 2 and enable GCS failsafe75 min
- Cut and restore the link, timing events; repeat at least 3 times120 min
- Compare with the Example 1 state machine and write the report by type60 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (values from the documentation version the lesson checked; verify against the real firmware): FS_GCS_ENABLE off by default, FS_GCS_TIMEOUT 5 s, FS_THR_ENABLE set to RTL, FS_THR_VALUE 975 PWM. After setup FS_GCS_ENABLE must be on with the team's chosen action, such as RTL or land. If a student records GCS failsafe as already on from the start, ask whether it was read from the real firmware or assumed.
- Table 2 (with a 5 s timeout and 1 Hz heartbeats): the mode changes about 5 s after the last heartbeat, which is 4-5 s after forwarding stops, because the last heartbeat can arrive up to 1 s before the stop. Accept 4-6 s including the software check cycle. On restore, the GCS should show connected within about 1 s, but the mode stays in the failsafe mode until the pilot changes it (depending on settings). All 3 runs should be close.
- Box 3 (from the Example 2 code, 30-minute flight, 1 Hz heartbeats): at p = 0.1, timeouts of 3, 5 and 10 s give a false failsafe chance of 8.03e-01, 1.60e-02 and 1.61e-07 per flight; at 20 m/s the drone flies on 60, 100 and 200 m before the failsafe starts. A strong answer picks a balanced value and notes that the model assumes independent losses, while real losses often come in bursts.
- It should differ from the timeout by no more than about 1 s. The difference comes from the last heartbeat arriving before the stop (sent every 1 s), the software check cycle and timing by hand. If it differs by several seconds, check the parameters and that the GCS heartbeat really goes through the path that was stopped.
- At 10%, a 3 s timeout gives about an 80% false failsafe chance per flight, far too high; 5 s about 2%, with 100 m flown on; 10 s almost no false failsafes but 200 m flown on. Most strong answers choose 5 s or close to it, and say the flight area must allow 100-200 m of uncontrolled flight safely.
- Depends on the settings; usually the drone stays in the failsafe mode, such as RTL, and does not resume the old mission by itself. A strong answer says to check the mode changes in the log and to set a team procedure, such as the pilot confirming drone and link status before resuming the mission or letting it continue home.
- Telemetry loss means the GCS stops receiving data from the drone; GCS failsafe means the drone has not received a GCS heartbeat for longer than FS_GCS_TIMEOUT; RC loss means the transmitter signal is lost and uses FS_THR_ENABLE and FS_THR_VALUE. Stopping MAVProxy tests telemetry loss and GCS failsafe, but not RC loss, which must be simulated separately.
Discussion questions
- Should the timeout be the same over open land and near a community? Why?
- Why should you not cut the link on a real drone before testing in simulation?
- If someone sends a fake RTL or replays an old command, how does MAVLink 2 signing help, and what does it still not protect?
Adapting to student background
- Upper secondary (M.6)
- Have them explain why the per-flight chance exceeds p^N by computing 0.1^3 = 0.001 by hand before reading the code output, and draw the state machine on paper before the test.
- Vocational certificate
- Let them use the printed Example 2 table to pick the timeout, and focus on setting parameters in the GCS, timing events and reading mode changes in the log.
- Diploma
- Extension: simulate RC loss in SITL separately and compare its event sequence with the GCS failsafe in the same table.
5Worksheet 5 Designing a field network
Lab · About 6 h of class time · CLO3
Objective: Choose LoRa settings within the duty-cycle limit, measure mesh delivery and configure lawfully
Equipment
- Three LoRa nodes, e.g. Meshtastic set to region TH
- Drone able to carry a relay node
- Python and the module 5 example code
- The actual NBTC notice for 920–925 MHz
Safety
- Fly within CAAT conditions in visual line of sight; fix the node firmly so it cannot fall
- Set power and frequency according to NBTC rules
- Do not send personal data over an open network without encryption
- Mount the LoRa node on the drone only after the instructor has confirmed that the NBTC notice in force allows that band for drones; until then, put the relay node on a ground mast instead
Steps
- Use Example 1 to choose SF and position rate for a 20-person team within half the duty cycle
- Configure three LoRa nodes in region TH
- Measure delivery with one and two hops
- Compare with Example 2 and explain differences
- Hover a drone carrying a relay node and observe message rerouting
- Check the NBTC rules and record the power and settings used
Deliverables
- Settings and duty-cycle calculation
- Measured delivery against calculation
- Relay experiment notes
- Regulatory compliance checklist
Checklist
- Table 1 uses a 20-byte payload, 125 kHz BW and CR 4/5 as in Example 1, compared with half the configured duty cycle (180 s per hour at 10%)
- Table 2 sends at least 50 messages per case and has both measured and calculated values
- Table 3 records region, frequency, power and duty cycle, naming the source checked (the actual NBTC notice, not a secondary source)
- The relay notes include a route diagram before and after the relay node is added
Instructor guide
Class timing
- Objectives, flight safety and the frequency rules to check30 min
- Compute time on air and choose SF and rate60 min
- Configure three LoRa nodes and measure one- and two-hop delivery120 min
- Relay node experiment60 min
- Check the NBTC rules and compare results with Example 260 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (per Example 1, Meshtastic's 10% duty cycle for TH, half being 180 s per hour, 20 people): SF7 56.6 ms every 1 min, 1,200 messages, 68 s (1.9%), within; SF9 185.3 ms every 1 min uses 222 s (6.2%), over, every 2 min 600 messages 111 s (3.1%), within; SF10 370.7 ms every 3 min 148 s (4.1%), within; SF11 741.4 ms needs every 5 min, 178 s (4.9%); SF12 1,318.9 ms still uses 317 s (8.8%) every 5 min, over. Several answers are correct as long as channel use stays at or below 5% and range is considered.
- Table 2 (per Example 2, each hop succeeds 90%, no retries): one hop 90.0%, two hops 81.0%; with 2 retries 99.9% and 99.8%. Real results depend on distance and obstacles; at close range on a bench delivery may be near 100%, which is acceptable if the student explains how it differs from the 90% per hop assumption.
- Table 3: region TH, 920-925 MHz (AS923-1 channels), power within what the actual NBTC notice sets (the lesson cites a secondary source saying IoT devices may use up to 500 mW e.i.r.p. without a licence, to be checked against the Royal Gazette); the 10% duty cycle is Meshtastic's setting, not a checked requirement. The student must also record that a node carried on the drone counts as a drone radio, and that permission under the notice in force still has to be confirmed.
- Depends on the choice. A good example: SF9 every 2 min, using 3.1% of the hour. If everyone used SF12 every minute, time on air would be 1,583 s per hour (44%), several times the 10% duty cycle (360 s); messages would collide and be dropped. Fixes: lower the rate, lower SF where the signal is good, or split channels.
- Measured delivery can be higher or lower than calculated. The calculation assumes each hop succeeds 90% independently and leaves out collisions; close nodes on a bench give higher values, a busy network or obstacles give lower ones. A strong answer says delivery falls exponentially with hops and retries help a lot.
- A relay node opens a new route over obstacles, so messages from far nodes get through, but every hop adds loss and delay and reuses the same channel, so total chain throughput falls (ideally about 1/4 of a single link per Li et al.). A strong answer mentions Meshtastic's hop limit (default 3).
- A suitable backup does not depend on the team's own radio, for example a LEO satellite link, since there is no mobile coverage in the mangroves (check real coverage). GEO is unsuitable because the signal travels about 4 × 35,786 km for a command and its acknowledgement, about 477 ms before any queuing, roughly 3.7 times the 130 ms budget.
Discussion questions
- If the team grows from 20 to 40 people, which settings must change?
- Is team members' position data personal data, and does Meshtastic channel encryption with the default key really protect it?
- While waiting for confirmation on the drone node's frequency, how could the team design a backup network without using the drone as a relay?
Adapting to student background
- Upper secondary (M.6)
- Have them explain from 2^SF/BW why one SF step doubles the symbol time and compute SF10 by hand (8.19 ms) before using the code; pair them with a hands-on peer for node setup.
- Vocational certificate
- Let them pick SF from the Example 1 table and only multiply messages per hour by time on air with a calculator; focus on Meshtastic node setup, fixing the node firmly and logging results.
- Diploma
- Extension: measure three-hop delivery with retries on (if the firmware supports it), compare with the Example 2 table and measure end-to-end message time.
Scoring rubric
For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.
| Criterion | Weight | Excellent (4) | Good (3) | Fair (2) | Needs work (1) |
|---|---|---|---|---|---|
| Accuracy of link calculations | 30% | Link, bandwidth and latency budgets all correct; reproducible code | Nearly all correct, method shown | Some errors or missing steps | Many errors or no method |
| Measurement and analysis of real data | 25% | Complete measurements compared with calculations; differences explained correctly | Complete measurements, partly explained | Incomplete data or no comparison | No usable measurements |
| Network and failsafe design | 25% | Settings and timeouts chosen with numbers, link loss covered, spectrum rules met | Good design with some unjustified choices | Link-loss cases or rules missing | No justification for the design |
| Communication and reporting | 20% | Clear, concise, with readable diagrams and plots | Clear with minor flaws | Hard to follow or missing parts | Does not communicate results |
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.