You Are Here: Home » AVR ATmega Projects » Sensor - Transducer - Detector Projects » IFF System for Infantry Using Atmega1284

IFF System for Infantry Using Atmega1284




Introduction

“An encrypted laser-based friend-foe identification system to prevent friendly fire in battle”

This project implements an Identification Friend-or-Foe (IFF) system for use by soldiers to prevent friendly-fire. The inspiration for the project is derived from Identification Friend-or-Foe (IFF) transponder systems currently used on fighter aircraft and military vehicles. Fighter aircraft fitted with an IFF system transmit a coded radio (RF) message to other aircraft detected within a pre-set range. Friendly aircraft can decrypt the RF message and provide a correctly encrypted response to prevent fratricide.

IFF System for Infantry Using Atmega644

Each soldier’s rifle is fitted with a laser that sends out an IFF query. If a friendly soldier is in the line of sight of such rifles, the IFF system produces a feedback signal. This signal can be used to generate an audible/visual warning, or to momentarily jam the rifle.

High Level Design

Top

Rationale

Incidents of friendly fire have been responsible for numerous casualties amongst soldiers. Such incidents, caused by a variety of reasons including miscommunication and aggressive battle tactics, represent an opportunity to minimize the human cost of war. NATO forces in Afghanistan have encountered a more sinister form of friendly fire in the form of disgruntled Afghan soldiers or disguised Taliban militants. Afghanistan’s Soldiers Step Up Killings of Allied Forces, an article published in the New York Times on January 20, 2012 provides a more detailed description of the problem. Our IFF system applies a tested method of preventing friendly fire in a new scenario, and has the potential to save lives.

System Architecture

The grayed boxes in Figure 1 are parts of the system implemented in software on a microcontroller unit (MCU). The white boxes are implemented in hardware. A soldier equipped with the IFF system has a responder unit on their body armor, and an initiator unit mounted on their rifle. The rifle module uses a laser to transmit an encoded message – the IFF query. If the rifle points toward a friendly soldier, phototransistors mounted on the target soldier’s body armor will detect an incident laser beam. An MCU in the responder unit will decrypt the laser message using a pre-set private key. If decryption is successful, the MCU identifies which friendly soldier is currently aiming at the target soldier, and broadcasts this information in RF. RF receivers in the initiator units of all friendly soldiers within firing range parse this information to determine if the rifle they are mounted on is pointing toward a friendly soldier. If potential fratricide is detected, a buzzer mounted on the rifle goes off, signaling that the current rifle position might result in friendly fire. This feedback signal used to trigger the buzzer may also be used to prevent the next round from being loaded in the weapon’s firing chamber.
The IFF system has two major fault cases:

  1. Hostile forces may try to masquerade as friendly forces by detecting the laser IFF query and responding with an RF broadcast. A pre-set private key encryption system is used to prevent hostile forces from decrypting the IFF key. A similar encryption system can be used to safeguard RF communications. This problem must be handled by generation of secure keys, and at the operations level by regular key changes like IFF systems currently in operation in fighter aircraft. Our prototype uses a trivial encryption scheme for the laser IFF query and no encryption for the RF messages in order because it is designed to be a proof of concept only.
  2. Hostile forces may recover the responder modules of the IFF system from dead soldiers and use it to masquerade as friendly soldiers. A plethysmograph monitors the soldier’s pulse. If the heart rate falls to zero, the MCU in the responder unit can wipe its program memory to deny use of the unit to hostile forces. A similar scheme can be implemented to prevent hostile forces from using the initiator unit on rifles. Our prototype implements the plethysmograph system on the responder unit only, and turns on a red LED instead of wiping program memory.

 

Hardware/Software Trade-offs

Laser vs Directed RF

Our initial design concept used a directed RF signal on the rifle instead of a laser to transmit the IFF query. Using an RF signal would have made encryption easier. If the RF signal transmitted from the rifle was sufficiently directional, the IFF query would have been sent only to RF receivers in the line of the rifle’s fire. This scheme would allow IFF queries to be sent to soldiers who were in the rifle’s line of fire, but not line of sight because they were blocked by an opaque object like a door.

We explored a ‘cantenna’ and custom axial mode helical antennas to produce a sufficiently directed RF signal. Helical antennas were too expensive to be viable for mass deployment, and the cantenna failed to attenuate the RF signal sufficiently in directions other than the line of fire. We decided that the inherent coherence and collimation of a laser compared to a directed RF signal outweighed the disadvantage in encryption schemes.

 

Diverging vs parallel Laser Beam

The responder unit detects laser beams incident on a soldier’s body armor using phototransistors. In order to protect the entire back and torso of the soldier, the IFF system requires either a large laser beam or a lot of phototransistors on the armor. We chose to use a large laser beam to minimize the circuitry needed for the body armor. A large parallel laser beam could be generated by placing a concave lens followed by a convex lens after the laser. This approach preserves the collimation of the laser beam and increases the distance over which the IFF system can prevent friendly fire. The convex lens would have to be quite large, and therefore expensive to get a sufficiently wide laser beam. We use only the concave lens and sacrifice range in the prototype to decrease monetary cost.

 

Real Time Operating System vs Manual Scheduling

We use a real time operating system to schedule tasks in the MCU software. Manual scheduling would allow quicker competition of software tasks. The relatively simple laser and RF communication, and slow time constants of human reaction and the human heart rate all make the speed of execution of the code less important. Hence we use the operating system to facilitate easy creation of tasks.

 

Consolidating Received Signal

Each vest can have up to 50 phototransistors, depending on the sensor density desired. Although it might be possible to do a software-based polling loop, we decided to keep a minimal pin count by using diodes to build a simple OR-gate. This provides the advantage of allowing the gate output to drive an interrupt, which is more efficient than a polling-based method.

Standards

UART

The Universal Asynchronous Receiver/Transmitter (UART) protocol forms an important part of our project, since we use UART to send signals to our wireless transceivers, which in turn enables cross-device communication. We also use it heavily while debugging the project by using the UART for serial communication over USB with a console on a PC. This enabled us to look at the internal state of the microcontroller throughout execution.

 

FSK/CSMA: FCC Regulations for RF

The IFF system uses a wireless module that transmits data on the 915 MHz frequency spectrum. Although it is used as a black-box component, we understand that it uses the Carrier Sense Multiple Access (CSMA) protocol to control wireless transmissions, and the wireless signal is encoded in a frequency-shift keying (FSK) modulation scheme. The wireless modules are compliant with international regulations, including FCC and ETSI.

 

ANSI Z136

The IFF system uses a 2.5mW Class 3A laser. According to the ANSI Z136 standard, lasers of this class can damage the retina if looked at directly for over two minutes. The beam diameter is less than 1 sq. cm, hence it doesn’t need protective eyewear for normal operation.

IFF Federal Standard

IFF is defined by the Federal Standard 1037C as:

Identification, friend or foe (IFF): A system using electromagnetic transmissions to which equipment carried by friendly forces automatically responds, for example, by emitting pulses, thereby distinguishing themselves from enemy forces. [JP1] Note: The secondary surveillance radar (SSR) system used in modern air traffic control systems is an outgrowth of the military IFF system used during World War II. The IFF equipment carried by modern military aircraft is compatible with the transponder system used for civilian air traffic control.

Software

Top

Friendly Fire Detection | User Validation | Collision Avoidance | Real-Time Operating System

Friendly Fire Detection

When a laser beam is detected on any one of the vest’s phototransistors, the hardware circuitry generates an interrupt on the INT0 pin. We use a software timer to keep track of the intervals between consecutive interrupts; every transmission module will have a unique interrupt interval to ensure that each module is identifiable based on the received signal. Since the interval detection is accurate up to 50 microseconds, we can assign each transmission module a unique millisecond interval. This makes false identification very unlikely. If the laser period falls within any of the valid ranges, the software recognizes that the user is in danger of friendly fire, and will transmit a wireless signal to the offending initiator module. The initiator module buzzes the user upon receipt of the signal; when the laser leaves the sensor and the calculated laser period changes again, the responder unit will send a “cease” signal to the initator unit to stop the buzzing.

 

User Validation – Plethysmograph

We use a plethysmograph to ensure that the IFF system will be deactivated immediately upon separation from the user. Each pulse from the user generates an interrupt, which resets a software-based watchdog timer. If the timer count exceeds a predetermined amount, it indicates that the system has been detached and it will wipe the program memory to prevent fraudulent use by imposters. In our demo, we substitute the wiped-out state with an LED that turns and remains on (even after power cycling) to show that the system can perform as described, without us having to reprogram the target board every time this occurs.
The program memory can either be wiped with the chip erase command by setting the command byte to 1000 0000, or by overwriting program memory.

IFF System for Infantry Using Atmega644 Schemetic

Collision Avoidance

One limitation of the system is that friendly fire detection is done on a narrow electromagnetic spectrum. This means that multiple laser signals arriving at the same receiver will cause the signals to overlap and potentially generate an invalid registration, rendering the system not working. Although one option is to use a different part of the electromagnetic spectrum for each transmitting laser module, we quickly determined that it was too costly and unfeasible. One solution is to create a sparse signal, such that the laser is only activated once every few milliseconds. This ensures that when many lasers can be pointed at the receiver at once, each individual signal pattern will still be detected. Because the period between signal firings will differ across various transmit modules, we are confident that each signal will eventually have a period of time where it can register against the receiver. We can further improve collision management by having an exponential back-off period upon collision, similar to that in the CSMA protocol.

 

Real-Time Operating System

System Overview

We use the TinyRealTime (TRT) kernel system to schedule our various software processes and ensure that deadlines are kept. This helps us abstract away the complexities in managing multiple tasks that need to execute while UART communication is ongoing. The TRT system also provides semaphores to ensure mutual exclusion when accessing shared resources such as the UART channel across different processes.

Task Configuration

Initiator Module

The inititator module only has one task, laser_recv, which sets up the laser signal and checks periodically for a friendly-fire signal from the responder unit.

Responder Module

The responder unit has the following three tasks:

  • setup_send: Checks the frequency of interrupts from the input sensors, and sends a “friendly-fire” signal to the initiator unit. Once the frequency falls outside the valid range, it sends another “cease” siganl to the initiator unit to indicate that it can resume normal operation
  • plethys: Sets up the analog interrupts for the plethysmograph, and checks if there is a pulse rate within the last 4 seconds. If not, light up an LED to indicate system will be unresponsive (in the field, the system will erase its memory)
  • check_plethys: A task to debounce the analog interrupts from the plethysmograph

 

Hardware

Top

Overview

Our system is divided into two components – the responder unit and the initiator unit. Although each individual will be equipped with both the responder and initiator unit, they are functionally separate and do not interact with each other during normal operation.

Initiator Unit

The initiator unit generates a laser signal along the weapon’s line of firing. The microcontroller generates a PWM signal that operates a MOSFET switch, which in turn regulates the laser output. This creates a laser beam that appears to be steady to the observer, but is actually a very rapid series of pulses with an interval unique to each soldier.

Parts List:

ItemPart NumberVendor PriceQuantityTotal Price
ATMega1284Lab Stock$5.002$10.00
PCB for ATMega1284Lab Stock$4.002$8.00
White BoardLab Stock$6.001$6.00
Solder Board (6 inch)Lab Stock$2.503$7.50
40-pin DIP SocketLab Stock$0.502$1.00
8-pin DIP SocketLab Stock$0.504$2.00
SIP SocketsLab Stock$0.0524$1.20
Header SocketLab Stock$0.0572$3.60
LEDsLab Stock$0.002$0.00
ResistorsLab Stock$0.00$0.00
CapacitorsLab Stock$0.00$0.00
WiresLab Stock$0.00$0.00
Wi.232DTS-EVM-R Radio ModuleLab Stock (donated by Dr. Bruce Land)$0.002$0.00
Dual-Convex LensL5315Surplus Shed$4.001$4.00
650NM Laser Module (Class IIIA)VLM-650-03-LPA-NDDigi-Key$13.181$13.18
940NM IR Emitter (Clear, Side Look)160-1063-NDDigi-Key$0.491$0.49
NPN IR Phototransistor (Clear, Side Look)160-1065-NDDigi-Key$0.469$4.14
9V Battery HolderBH9VW-NDDigi-Key$1.512$3.02
DC/DC Converter (+/-5V Out, 2W)102-1521-NDDigi-Key$13.661$13.66
Piezo Buzzer (4kHz, 12.2mm)445-5229-1-NDDigi-Key$0.791$0.79
Battery Alkaline 9 VoltP647-NDDigi-Key$1.982$3.96
Op-Amp IC, 700KHZLM358PDigi-Key$0.494$1.96
Op-Amp IC, JFET 3MHZLF353PDigi-Key$0.632$1.26
Cable Assembly, Barrel PowerCA-2185Digi-Key$1.902$3.80
Brown Vest (Old)Aadeetya$0.001$0.00
Grand Total:$89.56

For more detail: IFF System for Infantry Using Atmega644

Leave a Comment

You must be logged in to post a comment.

Read previous post:
New survey on Americans’ foreign policy priorities

Americans favor diplomatic and economic strategies over military involvement in foreign policy, according to a new national survey conducted by...

Close
Scroll to top