Deep dive: Internet of Military Things, LoRa/mesh networks and field applications

An in-depth look at the Internet of Military Things (IoMT/IoBT), LoRaWAN architecture, the LoRa SOS Beacon–Receiver system, disaster and security use cases, LoRa frequency regulations in Thailand, and field ISR architecture

Last updated:

A sensor network and signalling devices for a disaster relief team
Conceptual illustration generated with AI

This document expands on the topic of the Internet of Military Things, which is linked to Topic 3 (foundational content), going deeper into three main issues: basic IoT concepts in relation to rescue missions and military operations; the wireless communication technologies LoRa and mesh networks; and programming transmitter (Beacon) and receiver (Receiver) devices. It adds research and real-world case studies, with particular emphasis on applications in disasters and public emergencies alongside military security applications, so that readers can see how these technologies have been used to solve real problems in emergencies around the world.

The Internet of Military Things (IoMT/IoBT) concept in depth

The Internet of Military Things, sometimes called the Internet of Battlefield Things (IoBT), is the application of the Internet of Things concept to security and combat contexts. It views the whole system as a three-layer architecture whose layers work in concert, as shown in Figure 1.

Three-layer IoMT/IoBT architecture Figure 1: The three-layer Internet of Military Things architecture, showing the direction in which data and commands flow

The lowest layer is thesensor and field-device layer , which comprises surveillance sensors distributed across the area of operations, unmanned ground vehicles (UGVs) patrolling along the border, unmanned aerial vehicles (UAVs) performing reconnaissance, and wearable devices for soldiers that integrate biosignal sensors with position data. Above it is thecommunication network layer , which links data from the field to the command center using a variety of technologies, whether LoRa and mesh networks for areas without coverage, tactical radio, or satellite communications for remote areas. The top layer is theapplication and command layer , where the command and control center analyses all the data in real time to support decision-making and to issue orders back down to operational units.

In practice, systems of this kind have been put to concrete use in both surveillance and border protection. For example, military unmanned aircraft fitted with high-resolution cameras, infrared sensors and LiDAR provide real-time intelligence on the movements of opposing forces, helping commanders monitor wide areas at all times. Meanwhile, unmanned ground vehicles fitted with cameras, radar and artificial intelligence can patrol to detect intrusions along the border and alert the command center automatically. These devices rely on both line-of-sight and beyond-line-of-sight communication technologies to maintain stable and continuous data links, enabling commanders to make fast and accurate decisions from data gathered from many sources simultaneously (Elsight, IoBT: Transforming Modern Military Operations) Beyond combat missions, IoMT systems are also used to manage military bases for energy efficiency, to track logistics in order to predict maintenance needs in advance, and to connect individual soldiers to a central network through wearable devices (COM4, IoT Connectivity in Defence: Inside the Internet of Military Things)

LoRa technology and the LoRaWAN network architecture in depth

Readers have already learned the basics: LoRa is a low-power, long-range radio technology. Going one step deeper, when large numbers of LoRa devices are connected into a standard network for real industrial- or city-scale use, they are usually arranged in an architecture called LoRaWAN, which consists of five main components working together, as shown in Figure 2.

LoRaWAN network architecture Figure 2: Data flow in the LoRaWAN network architecture, from end devices to the destination application

The first component is the End Device , or end device, a sensor or actuator that sends LoRa messages to a gateway. These devices usually run on batteries and are designed to be as energy-efficient as possible. The second component is the Gateway , or gateway, which receives messages from all end devices within its reception radius and forwards them to the Network Server via another link such as cellular internet, Wi-Fi or Ethernet cable. Gateways come in both indoor and outdoor versions to support wider coverage. The third component is the Network Server , which is responsible for managing the gateways, end devices, applications and users across the whole network. It authenticates devices, removes duplicate data when several gateways receive the same signal, and selects the gateway with the best signal quality for replies. The fourth component is the Application Server , which processes the application-specific data received from the end devices, and the final component is the Join Server , which supports the secure first-time joining of devices, including storing root keys and generating session keys for data encryption (The Things Network, LoRaWAN Architecture)

This layered architecture enables LoRaWAN to support large numbers of devices simultaneously over wide areas without each device needing a direct internet connection; being within range of a gateway is sufficient. This differs from the point-to-point Beacon and Receiver devices discussed in the next example, which communicate directly without passing through a gateway or central server. The difference is a good illustration of how the same underlying LoRa technology can be applied both as a large city-scale network such as LoRaWAN and as small emergency communication devices that operate independently without relying on any infrastructure at all.

When point-to-point communication is extended to a mesh network, each device acts as both a sender and a repeater at the same time. A highly popular platform for building LoRa mesh networks for emergency communication is Meshtastic, an open-source system that operates at 433 and 868 MHz in bands that are licence-exempt in many countries. Meshtastic devices can exchange both encrypted and unencrypted messages directly, and track the location of every member of the network via GPS coordinates, without relying on internet infrastructure or any specific operating licence. These features have made Meshtastic an option attracting considerable interest for emergency and natural-disaster preparedness (Dergipark, Meshtastic Example in Emergency Communication)

Application example: the LoRa SOS Beacon–Receiver system

Before moving on to global case studies, it is worth returning to an example that learners can actually build, which is a small-scale model of the same principles explained above, as shown in Figure 3.

LoRa SOS Beacon–Receiver system architecture Figure 3: The LoRa SOS Beacon–Receiver system architecture that learners can actually program

This system uses a T-Beam V1.2 board fitted with an SX1262 LoRa chip, operating at 923 MHz in the band permitted by the NBTC in Thailand. The Beacon side reads the SOS push button and coordinates from an external GPS module, then transmits the data to the Receiver side, which passes the results over a serial port to a script running on a laptop that displays the position on a map in real time. Although it is a small system communicating only point-to-point between two devices, the underlying principle is exactly the same as that of large warning systems in real use around the world: using low-power, long-range LoRa radio to send position data and emergency status out of areas without mobile phone coverage. This is the core of the technology that is scaled up in the regional and global case studies in the next section.

Use cases in depth: applications in disasters, public emergencies and security

Having understood the technical principles of LoRa, LoRaWAN, mesh networks and IoMT, this section brings together real-world case studies in four areas covering natural disasters, public emergencies and military security, to give a diverse and concrete picture of their applications, as summarised in Figure 4.

Examples of LoRa/IoT applications in disasters and security Figure 4: Summary of LoRa/IoT applications in four main scenarios, with real-world case studies

Case one: emergency communication after an earthquake

When a major earthquake strikes, traditional communication infrastructure, both mobile phone towers and internet lines, is often damaged or unusable because of power outages and network congestion from large numbers of simultaneous users. A study of the Meshtastic network, a LoRa mesh system for emergency communication, tested three communication nodes operating at 433 and 868 MHz and found that the system could exchange both encrypted and unencrypted messages between portable devices without relying on existing infrastructure at all. The study was set in the context of the 2023 Kahramanmaraş earthquake in Türkiye, one of the most severe natural disasters in the region, and showed that this kind of technology is highly technically feasible for real use in disaster situations. However, the research still focused on testing technical feasibility rather than large-scale real deployment or integration with existing emergency management systems, which remain important directions for future research (Dergipark, Meshtastic Example in Emergency Communication)

Case two: flash-flood warning systems with IoT sensors

Flash floods are disasters that occur rapidly, often with very little time to prepare. A study that developed a flash-flood warning system for a recreational area designed a sensor system combining temperature and humidity measurement, water-flow detection and ultrasonic distance measurement, connected through a LoRa-capable ESP32 module that sends data to a cloud database in real time. The system was field-tested at Panching Waterfall in Kedah, Malaysia, developed following a system development life cycle methodology, and was able to collect water-level and flow-velocity data continuously, helping to predict when a flash flood would occur earlier than traditional warning methods (JCRINN, Rapid Flood Warning System in Recreational Areas Using LoRa-Based Sensor Network) Systems of this kind are directly relevant to Thailand, which frequently experiences flash floods in mountainous areas and natural tourist sites. The same concept can be extended by installing sensors along waterways or at other risk points to warn downstream communities in advance.

Case three: sensor networks for early wildfire detection

Wildfires are disasters that can spread out of control if detection is delayed by just a few hours. Dryad Networks has developed a sensor called Silvanet Wildfire, which operates on the LoRaWAN standard to detect wildfires at an early stage. Each sensor measures temperature, humidity and air pressure and detects various gases produced by combustion, combined with artificial intelligence to screen out and avoid false alarms. The system uses Mesh Gateways placed in the forest about 1.2 to 3.7 miles apart to extend signal coverage across large forest areas without relying on ordinary wireless network infrastructure. Dryad launched its first network in a forest near Berlin, Germany, and has since expanded real deployments to the United States, Europe, Australia, Indonesia and Africa. The system can detect newly ignited fires within just 30 to 60 minutes, far faster than traditional detection methods that rely on watchtowers or reports from the public (Dryad Networks, Fighting Wildfires with LoRaWAN) This example clearly shows that combining LoRa technology with artificial intelligence, the two main technologies discussed in this document series, can create systems with a high impact on disaster prevention at the national level.

Case four: military border surveillance and protection

In the combined context of public emergencies and security, IoBT systems are also used for systematic border protection. Unmanned ground vehicles fitted with cameras, radar and artificial intelligence patrol along the border to detect intrusions and alert the command center automatically, alongside unmanned aircraft that provide high-resolution, real-time intelligence on movements in the area. These systems rely on robust data-link technologies to keep operating continuously even in challenging environments, enabling commanders to integrate data from multiple sources and make fast, accurate decisions (Elsight, IoBT: Transforming Modern Military Operations) The same concept can also be adapted to civilian rescue missions, such as using drones and ground sensors to search for victims in large disaster areas that are difficult for people to reach. This reflects how technology developed for military purposes often has broad potential for humanitarian applications as well.

When primary communications fail in a disaster: case studies from Thailand

The content above has explained the architecture and technical principles of LoRa and LoRaWAN in detail, but the question that is the starting point of the practical lessons in this document is the most straightforward one: “How can we help disaster victims when there is no mobile phone signal, internet or electricity?” This question is not a hypothetical scenario; it is something that has happened in Thailand again and again during each year's rainy and monsoon seasons, as shown in Figure 5.

Communication signal loss in a flooded area Figure 5: The “The Signal is Down” scenario. When the primary communication network fails in a flood-affected area, independent communication that does not depend on existing infrastructure becomes a lifeline

When major flooding hit southern Thailand in late November B.E. 2568 (2025), mobile phone signals in many areas were lost at the same time because cell towers were damaged by floodwater and there were widespread power outages. The NBTC Office had to call an urgent meeting with all mobile network operators to supply sandbags to protect cell towers and to refuel backup generators, and confirmed that signals would gradually improve as water levels receded (Thai PBS News, Southern floods cut phone signals; NBTC rushes fixes, insists signals must improve today) A similar event occurred again in the north, when heavy rain caused landslides and flash floods in Mae Sariang District, Mae Hong Son Province, in August B.E. 2569 (2026). Main roads were cut off, power poles fell, and Pa Pae Subdistrict was left without electricity or communication signals at the same time for several days. People trapped in the area could not report emergencies or request help through normal channels at all until the relevant agencies entered the area and gradually restored part of the power system. (News images from the slides accompanying the practical content, referring to the same event that northern local media reported as “Mae Sariang cut off, no power, no communication signal” during that period.)

Figure 6 shows examples of real news images from both events, reflecting a pattern of damage that recurs across the country: when a disaster destroys centralised telecommunications infrastructure (cell towers that depend on electricity and data transmission lines), the entire area is immediately cut off from the outside world, even if people are holding mobile phones with fully charged batteries.

Real news images of communication signal loss caused by disasters in Thailand Figure 6: Real news examples of two events in which phone signals and electricity were lost at the same time in disaster-affected areas of Thailand, which inspired the practical exercise in this module

Programming LoRa devices yourself therefore has real meaning in this context, because communication technology that does not depend on cell towers or conventional internet networks is the only answer that still works when the primary infrastructure collapses across the whole system at once.

LoRa network technology: strengths compared with the internet and cellular networks

Although the earlier content explained the LoRaWAN architecture in terms of its components, understanding “why LoRa is better suited to disaster situations than the internet or Wi-Fi” requires considering three mutually reinforcing properties, as summarised in Figure 7: the ability to send data over many kilometres without relying on a mobile network; power consumption so low that a device can run for months to years on a single battery; and the ability to penetrate terrain and obstacles significantly better than ordinary Wi-Fi.

Overview of LoRa network technology and comparison with Wi-Fi Figure 7: The basic LoRa network architecture linking Field Sensors, Field Units and Environmental Sensors to a LoRa Gateway, with a comparison of operating range and power consumption against Wi-Fi

When these properties are compared systematically with the internet or Wi-Fi across every dimension, as in the table in Figure 8, the differences become even clearer. The internet offers far higher bandwidth and supports image transfer or video streaming, but depends entirely on pre-installed networks; if even a single tower is destroyed, the whole system in that area fails immediately. By contrast, although LoRa can mainly send only small data such as GPS positions or telemetry, it keeps working continuously even in crisis conditions, because end devices can communicate directly or through mobile gateways without relying on fixed infrastructure.

Comparison table of LoRa networks and the internet Figure 8: Table comparing the properties of LoRa networks with the internet/Wi-Fi across six dimensions, from signal range to stability during a crisis

The most important conclusion from this table is the last row, which states that if internet towers are destroyed, the whole system collapses immediately, whereas LoRa continues to work even in a crisis. This is why LoRa is not designed to “replace” the internet but to “complement” it where the internet cannot work, especially for sending small position and emergency-status data that does not require high bandwidth.

International research: LoRa drones for search-and-rescue missions

The idea of using unmanned aircraft as mobile gateways for LoRa networks is not merely a classroom concept but an in-depth research topic in the international academic community. The study “Catch Me If You Can: Deep Meta-RL for Search-and-Rescue using LoRa UAV Networks”, by a research team from Shahid Chamran University of Ahvaz, Iran, together with Virginia Tech in the United States, proposed a framework that uses LoRa networks with drones to search for missing persons in remote areas. It addresses the key problem that ground-based LoRa networks are often limited by signal attenuation from terrain obstacles in remote areas. The study therefore proposed using drones as mobile “Flying LoRa Gateways”, and designed a drone flight-path control policy using Deep Meta-Reinforcement Learning so that the system can adapt quickly to new, previously unseen search environments (Naderi Soorki et al., Catch Me If You Can: Deep Meta-RL for Search-and-Rescue using LoRa UAV Networks, arXiv:2306.02911v2)

Real field experiments in two target areas in Iran, a wide plain and a narrow valley in the Mongasht mountains, showed that with a Deep Meta-RL control policy pre-trained with a basic RL policy, the number of time slots needed for the search fell from 141 to just 50, and the average distance the drone had to fly under the Deep RL and Deep Meta-RL policies was about 619 and 1,930 m respectively during the search-and-rescue operation. This study is therefore an example showing that the same basic concept as the Beacon–Receiver system example discussed above, namely using a drone as a mobile gateway to receive and relay LoRa signals from ground devices, can be extended with advanced artificial intelligence into a highly effective search-and-rescue system at the level of frontier research.

Legal requirements: use of LoRa frequencies in Thailand

Before programming LoRa devices, learners need to understand the legal framework governing spectrum use in Thailand, because the use of radio waves in every frequency band is regulated by the Office of the National Broadcasting and Telecommunications Commission (NBTC), established under the Act on Organization to Assign Radio Frequency B.E. 2553 (2010). The key rules are summarised in Figure 9.

Requirements for LoRa frequency use under NBTC regulations Figure 9: Five key rules for LoRa frequency use in Thailand under NBTC regulation

The bands permitted specifically for IoT devices are 920-925 MHz and 433 MHz, both of which have clear transmit-power limits: the 920-925 MHz band must transmit at no more than 4 W, while the 433 MHz band must transmit at no more than 10 mW to be exempt from licensing. Devices in use must first be certified to NBTC standards, known as NBTC Type Approved. This is consistent with the regulatory guidance for IoT and RFID devices in the same frequency band published by Thai telecommunications bodies (Thai Embedded Systems Association, NBTC announcements related to IoT and RFID use in the 920-925 MHz band) One requirement of particular importance to anyone who wants to experiment in practice is the exemption for educational and research use, which is exempt from licensing requirements provided that the device meets the specified standards and uses no more than the specified transmit power. This is why programming and experimenting with the LoRa SOS Beacon yourself can be done lawfully.

Intelligence, surveillance and reconnaissance (ISR) system architecture in field missions

Having understood both the technical principles and the legal framework, the next step is to look at the big picture of how individual LoRa devices are assembled into a complete operational system in real missions. An Intelligence, Surveillance and Reconnaissance (ISR) system that combines LoRa technology with drones can be divided into four main stages that operate in sequence, as shown in Figure 10.

ISR system architecture combining LoRa and drones Figure 10: A four-stage ISR system architecture, from field Sensor Nodes to the Operation Center

The first stage is the Sensor Node , a field team on foot or pre-installed sensors that detect signals or abnormal movement in the target area. The second stage is LoRa Transmission , which sends initial position data over the long-range LoRa network without relying on any cellular infrastructure. The third stage is UAV Scout Gateway , where drones play their most important role: the drone flies into the area to inspect it, measures the received signal strength, and helps confirm the position more precisely before relaying the data. The final stage is the Operation Center , or command center, which receives all the data for analysis and displays the results on a map to support decision-making. This four-stage architecture reflects the same principle as the three-layer IoMT/IoBT architecture explained at the beginning of this document, but focuses specifically on target-search missions that use LoRa and drones together.

From theory to practice: programming the LoRa SOS Beacon and connecting the hardware

The heart of the practical work in this module is programming an ESP32 LoRa Development Board to act as an SOS transmitter that reads an emergency push button and GPS coordinates, then packages the data into a packet sent out over LoRa, as summarised in Figure 11.

Programming the LoRa SOS Beacon transmitter Figure 11: Steps for programming the LoRa SOS Beacon, from the libraries used to the data packet structure and example code

The main hardware is an ESP32 LoRa Development Board programmed in C/C++ via an Arduino Sketch at 923 MHz in line with NBTC standards, using three libraries together: RadioLib to control the LoRa chip directly, XPowersLib to manage the board power consumption as efficiently as possible, and TinyGPSPlus to decode position coordinates from the GPS module. The technical operation is divided into four consecutive steps: reading the SOS button state together with the GPS latitude and longitude; building a text data packet containing the SOS code, the Beacon device number, the message sequence number and the coordinates, separated by pipe characters; then calling radio.transmit(payload) to send the whole payload over LoRa to the Receiver side at the Operation Center.

Assembling the actual hardware requires a kit called the LoRa Set Box, shown in Figure 12, which consists of an ESP32 LoRa Development Board, a LoRa antenna, a GY-NEO-6M Ublox GPS module, a lithium battery, a push-button switch, Male-to-Male and Male-to-Female jumper wires, and hook-and-loop straps to hold the components together so they are ready to carry in the field.

LoRa Set Box kit Figure 12: The complete hardware list of the LoRa Set Box that learners can assemble and program themselves

The circuit connections between the main board and the two peripherals must follow the specified wiring diagram exactly, as shown in Figure 13. The SOS switch connects to GPIO 14 and GND on the board, while all four wires of the GPS module must be connected correctly: VCC to GPIO 3.3V, the GPS RX pin to GPIO 13, the GPS TX pin to GPIO 15, and GND to GPIO GND on the board. Connecting even a single wire to the wrong place, especially swapping RX and TX, is the most common mistake when assembling this kind of LoRa circuit, and often prevents the GPS module from returning coordinates even though the main board works normally.

Wiring diagram of the ESP32 LoRa Development Board with the SOS switch and GPS module Figure 13: GPIO pin connections between the ESP32 LoRa Development Board, the SOS switch and the GY-NEO-6M GPS module

Field activity: a simulated mission to search for and confirm target coordinates

Once programming and circuit assembly are complete, learners can simulate a real-world mission to search for and confirm a target location, either on their own or with a small study group, dividing into two parallel roles: the field team , which takes the assembled and programmed LoRa SOS Beacon out on a mission to find a predetermined location, and the Operation Center team , stationed at the command center to receive and confirm the coordinates sent back.

The whole process is divided into four consecutive steps. First, the field team goes out on the mission to find the assigned location with the LoRa SOS Beacon. Next, the field team presses the SOS button to send the coordinates read from the GPS back to the Operation Center over the LoRa network. The Operation Center team receives the coordinates and confirms that they are correct. Finally, the Operation Center team directs a supporting drone unit to fly to the confirmed location to inspect it and verify the result again from the air. This activity simulates a real search-and-rescue operation end to end, from detection in the field to confirmation by drone, and trains real-time coordination between the field team and the command center, a key skill applicable to both military missions and civilian rescue missions, consistent with the four case studies discussed in the previous sections.

Conclusion

The Internet of Military Things is one of the topics in the whole set of foundational content that most concretely connects technical knowledge with real-world use. It begins with the three-layer IoMT/IoBT architecture, which divides the work among the sensor layer, the network layer and the command layer; continues with an in-depth understanding of the LoRaWAN architecture and mesh networks that underpin communication in areas without coverage; and goes on to hands-on programming of a real Beacon-Receiver system, a small-scale model of the same principles used in the four global case studies collected in this document: emergency communication after the earthquake in Türkiye, a flash-flood warning system in Malaysia, wildfire detection networks in real use on several continents, and military border surveillance systems. All of this reinforces that LoRa and IoT technologies, which may seem like specialised technical matters, in fact play a vital role in protecting people's lives and property in emergencies, a goal shared by public-emergency missions and national security missions.

The extended content added from the practical lessons makes the picture even clearer. It starts from real floods and landslides in Thailand that cut phone signals and electricity at the same time, which directly inspired the practical exercise; moves through a systematic comparison of the strengths of LoRa and the internet; international research combining drones with LoRa networks using advanced artificial intelligence for search-and-rescue missions; the NBTC legal framework and requirements governing spectrum use in Thailand; and the four-stage ISR system architecture combining LoRa with drones; through to the details of programming and assembling the LoRa SOS Beacon hardware and a field activity simulating a real target-search mission. Together these give readers a complete path from humanitarian motivation, technical principles and the legal framework to hands-on practice with their own hands, which is the most powerful form of learning for technologies with such a high impact on people's lives.


Bibliography

  1. Elsight. (n.d.). IoBT: Transforming Modern Military Operations. Retrieved from https://www.elsight.com/blog/the-internet-of-battlefield-things-transforming-modern-military-operations/

  2. COM4. (n.d.). IoT Connectivity in Defence: Inside the Internet of Military Things. Retrieved from https://www.com4.no/en/blog/iot-connectivity-in-defence-inside-the-internet-of-military-things

  3. The Things Network. (n.d.). LoRaWAN Architecture. Retrieved from https://www.thethingsnetwork.org/docs/lorawan/architecture/

  4. Dergipark (International Scientific and Vocational Studies Journal). (n.d.). Meshtastic Example in Emergency Communication. Retrieved from https://dergipark.org.tr/en/pub/bilmes/article/1867445

  5. Journal of Computing Research and Innovation (JCRINN). (2024). Rapid Flood Warning System in Recreational Areas Using LoRa-Based Sensor Network. Vol. 9, No. 2. Retrieved from https://jcrinn.com/index.php/jcrinn/article/view/470

  6. Dryad Networks. (n.d.). Fighting Wildfires with LoRaWAN. Retrieved from https://www.dryad.net/post/fighting-wildfires-with-lorawan

  7. NodakMesh. (n.d.). What Is a LoRa Mesh Network? The Beginner’s Guide. Retrieved from https://nodakmesh.org/blog/what-is-lora-mesh-network

  8. Thai PBS News. (2568). Southern floods cut phone signals; NBTC rushes fixes, insists signals must improve today. Retrieved from https://www.thaipbs.or.th/news/content/358843

  9. Naderi Soorki, M., Aghajari, H., Ahmadinabi, S., Bakhtiari Babadegani, H., Chaccour, C., & Saad, W. (2023). Catch Me If You Can: Deep Meta-RL for Search-and-Rescue using LoRa UAV Networks. arXiv:2306.02911v2. Retrieved from https://arxiv.org/abs/2306.02911

  10. Thai Embedded Systems Association (TCT). (n.d.). NBTC announcements related to IoT and RFID use in the 920-925 MHz band. Retrieved from https://www.tct.or.th/news-th/46-new2/339-iot-rfid-2

Note: The content on the Beacon–Receiver system architecture (Figure 3) is based on the source code LoRa_SOS_Beacon_SX1262.ino and LoRa_SOS_Receiver_SX1262.ino , which are internal teaching materials of the project, not external sources. This document is an in-depth extension of the document “Course content, Day 3” (Markdown file), adding research and real-world case studies, particularly on disasters and public emergencies as requested by the user. It has also been further extended from the practical teaching slides “IoT - Lab”, which cover the practical exercise, programming the LoRa SOS Beacon, hardware assembly and the simulated field activity. The news images on communication signal loss in Pa Pae Subdistrict, Mae Sariang District (Figure 6) are screenshots from the practical teaching slides; the exact original link cannot be confirmed, so they are treated as internal teaching materials of the project, like the source code above.

F26: LoRa symbols and SX1276 packet time

A packet consists of a preamble of 12.25 symbols and a payload of 43 symbols; at SF7 BW125kHz the total is 56.576 ms

Variable Meaning and units, input → output Range/source of values
SF, BW spreading factor and bandwidth Hz (input) This SX1276 LoRa subset: SF integer 7–12; BW 125000/250000/500000
PL, CR payload bytes and coding rate code (input) PL integer 1–255; CR 1–4 means 4/5 to 4/8
IH, CRC implicit header flag and payload CRC flag (input) IH=0 explicit, 1 implicit; CRC=0 off, 1 on
DE LowDataRateOptimize flag (input) 0 or 1; must be enabled when T_sym >16 ms; match the actual value in the radio
n_pre programmed preamble symbols (input) integer 6–65535 within the scope of this lesson; example 8
T_sym, R_sym time s/symbol and rate symbol/s (output) > 0; not the payload bit rate
n_payload, T_air number of payload symbols and packet time s (output) calculated according to the model/flags only

Applied level · Question: how many seconds does a single packet occupy the channel before accounting for replies or retries? Fixed to Semtech SX1276 LoRa mode, datasheet Rev.7 May 2020 §4.1.1.7, and compared with the LoRaMac-node v4.7.0 driver sx1276.c for SF7–12 only

T_sym = 2^SF/BW; R_sym = BW/2^SF

n_payload = 8 + max(ceil[(8PL − 4SF + 28 + 16CRC − 20IH)/(4(SF − 2DE))] × (CR + 4), 0)

T_air = (n_pre + 4.25 + n_payload) T_sym

ceil rounds up before multiplying by CR+4. PL is the whole byte block passed to the radio, so it includes LoRaWAN-layer overhead if any, not just the application bytes. The formula returns s, while the driver rounds up to an integer number of ms, so the golden examples must keep the two values separate and not compare numbers of different units or precision.

Do not use this formula for SF6, SX126x, FSK or unknown flags. Record the preamble/header/CRC/DE/coding rate in full. The packet time excludes channel waiting, retransmission loops, ACK turnaround or legal duty-cycle limits, and does not certify range or transmission rights in Thailand.

Worked substitution example

SF7, BW 125000 Hz gives T_sym=128/125000=0.001024 s=1.024 ms and R_sym=976.5625 symbol/s. Set PL20, CR1, IH0, CRC1, DE0, n_pre8: numerator=160−28+28+16=176, denominator=28; ceil(176/28)=7, so n_payload=8+7×5=43 and T_air=(8+4.25+43)×1.024=56.576 ms, compared with the driver, which rounds up to 57 ms

Another golden case keeps the same PL/CR/header/CRC/preamble, but SF12 requires DE1 because T_sym=32.768 ms>16 ms: numerator 156, denominator 40, ceil=4, n_payload=28 and T_air=40.25×32.768=1318.912 ms; the driver rounds up to 1319 ms. This is an independent numerical check against the driver, not an RF measurement.

Practice with changed values

Change only SF7 to SF8 at BW 125000 Hz and calculate the symbol time and symbol rate first. For the SF12 golden packet, also check the reason DE must be changed.

Show the F26 answer

SF8 gives T_sym=256/125000=0.002048 s=2.048 ms, R_sym=488.28125 symbol/s, accepting ±0.000001 ms and ±0.000001 symbol/s. For the SF12 golden case, keeping DE0 does not meet the datasheet condition; the time value 1318.912 ms applies with DE1 only.

Reference: Semtech SX1276/77/78/79 datasheet Rev.7 May2020 §4.1.1.7 Time on air (manufacturer document on SparkFun) (P3E09) · Semtech LoRaMac-node v4.7.0, sx1276.c, SX1276GetLoRaTimeOnAirNumerator / SX1276GetTimeOnAir (P3E11); checked 26 September 2569 (2026)

Download the engineering formulas and sensors practice kit (CSV/JSON with answers) · synthetic data for calculation practice and checking assumptions

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). Deep dive: Internet of Military Things, LoRa/mesh networks and field applications. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/deep-dive/module06-iomt/

Original from Drone-Hub: https://drone.pk-research.work/deep-dive/module06-iomt/ · © PK-Research