Data protocol

Our infrared data protocol is based on MilesTag II, so our game sets work alongside equipment from other makers that use MilesTag 2. This page documents the 4th-generation protocol, last updated 10.10.2012: the shot packet, player ID and team colour codes, the damage table and every weapon control command.

Overview

This is the IR signal protocol of our 4th-generation equipment (last updated 10.10.2012). It is based on the MilesTag II data protocol: the 4th generation was designed to be fully compatible with equipment that uses the international MILES2 protocol. Our extended protocol adds commands of its own.

Because the protocol is shared, our game sets work alongside equipment from other manufacturers that use MilesTag 2.

Shot packet

text
Shot = Header + 14 data bits

Header   : one pulse of 2400 µs
Data     : 0 ppppppp tt dddd
           |    |     |   |
           |    |     |   +-- dddd    (4 bits)  damage, see the damage table
           |    |     +------ tt      (2 bits)  team colour
           |    +------------ ppppppp (7 bits)  player ID
           +----------------- first bit of a shot is always 0

Player ID and team colour

text
ppppppp  player ID, 7 bits (Lite, Nano and HSL ID versions: ID = 50)

tt  team colour, 2 bits
00  Red
01  Blue
10  Yellow
11  Green

Damage table (dddd)

Inflicted damage by 4-bit code
CodeDamageCodeDamage
00001100020
00012100125
00104101030
00115101135
01007110040
010110110150
011015111075
0111171111100

Weapon control commands

Byte 1 selects the command; byte 2 carries its value
Byte 1Byte 2Command
0x801–100Add X health units (never above the original value in the rifle settings)
0x811–100Add X rounds (never above the original value in the rifle settings)
0x82–Reserved
0x830x00Admin Kill
0x830x01Pause / Unpause
0x830x02Start Game
0x830x03Restore Defaults
0x830x04Respawn
0x830x05New Game (Immediate)
0x830x06Full Ammo
0x830x07End Game
0x830x08Reset Clock
0x830x09Change team colour (red becomes green and the other way round; yellow or green becomes red)
0x830x0AInitialize Player
0x830x0BExplode Player
0x830x0CNew Game (Ready)
0x830x0DFull Health
0x830x0EChange shooting power (50% becomes 99%; 50% becomes 49%)
0x830x0FFull Armor
0x830x10Double the player’s health units for the round; can be repeated until health reaches 255
0x830x11Sent by a checkpoint when it is captured
0x830x12Sent by an explosive device imitation when a bomb is defused
0x830x13Reserved
0x830x14Clear Scores
0x830x15Test Sensors
0x830xE8Stun Player
0x830x17Disarm Player
0x830x20Increase shooting power (next value in the damage table) until the end of the round or until the player is killed
0x830x21Raise the rate of fire to 750 shots per minute
0x830x22Double life until the end of the round (cannot be repeated; does not add health a second time)
0x84–Reserved
0x850x13Reserved
0x860x13Reserved
0x870x13Reserved
0x880x13Reserved
0x890x13Reserved
0x8A0x00–0x0FAdd X magazines (never above the original value in the rifle settings)
0x8B0x00–0x0FFirst aid kit: add health according to the damage table (never above the original value in the rifle settings)
0xA01–100Radiation: the player loses X health units
0xA11–100Anomaly: the player gains X health units (never above the original value in the rifle settings)
0xA2–Reserved (used by artefacts)
0xA30–7Reserved (used by artefacts)
0xA81–16Load game settings preset X: 0 Stormtrooper, 1 Hostage, 2 Last hero, 3 Zombie, 4 Commandos
0xA90–3Change team colour to X: 0 red, 1 blue, 2 yellow, 3 green
0xAA0–32Play sound X
0xB0−128–127Take away / give health from / to the red team
0xB1−128–127Take away / give health from / to the blue team
0xB2−128–127Take away / give health from / to the yellow team
0xB3−128–127Take away / give health from / to the green team
0xB40–3Respawn team X (0 red, 1 blue, …)
0xB50–3Pause team X (0 red, 1 blue, …)
0xB60–3Kill team X (0 red, 1 blue, …)
0xB70–3Full ammunition for team X (0 red, 1 blue, …)
0xB80–127Respawn the player with ID = X
0xB90–127Pause the player with ID = X
0xBA0–127Kill the player with ID = X
0xBB0–127Full ammunition for the player with ID = X
0xBE–0xFF–Reserved: weapon configuration commands over the IR channel

Example: respawn player 12

text
Byte 1 = 0xB8   respawn the player with ID = X
Byte 2 = 0x0C   X = 12

Questions about Data protocol

Is your laser tag equipment compatible with MilesTag 2?

Yes. The 4th generation was designed to be fully compatible with equipment that uses the international MILES2 protocol, and our extended protocol adds commands of its own. Because the protocol is shared, our game sets can work alongside equipment from other manufacturers that use MilesTag 2. Newer Alphatag equipment uses its own ALPHALINK protocol.

How is damage encoded in the shot packet?

Damage is a four-bit code in the shot packet. The table runs from 0000, which is 1 unit of damage, through values such as 0101 for 10 and 1000 for 20, up to 1111, which is 100. The same table is used by commands that step up shooting power or add first aid health.

What can the weapon control commands do?

Control commands are two-byte messages. Under 0x83 they cover admin kill, pause, start and end game, respawn, full ammo, full health, full armour, test sensors and clear scores. Other first bytes add health, rounds or magazines, change team colour, play a sound, load a settings preset, or act on a whole team or a single player ID.

Which protocol do the newer generations use?

According to our comparison of generations, the 9th (Smart RGB) and 10th (X-Generation) generations use MilesTag 2.0 with our 2018 update, while the 11th generation, Alphatag, uses the ALPHALINK protocol. The protocol described on this page is the 4th-generation version, which the later MilesTag-based generations build on.

Need help? Contact us

Tell us what you run and what you need: setup, firmware, spare parts, an upgrade or a new arena. Our team answers every message.

Cart (0)

Your cart is empty

Browse the shop