Part 3 of TAK: From Two Phones to a Global Platform
Speaking Cursor on Target: Put Anything on the Map
When I first got two tablets talking, I wanted to know how on earth they were doing it. In the last article, we answered half of that question: they shout into a multicast group, and everyone listening hears them.
Now for the other half. What are they actually saying?
By the end of this article, you’ll be able to read a TAK message, and you’ll have a truck driving around your map that doesn’t exist. It takes fewer than 100 lines of Python, and no TAK libraries.
What you’ll need
- One TAK device from the last article, with a map showing your position
- A computer on the same network, with Python set up for the examples
- Your computer’s IP address (how to find it)
- The latitude and longitude of somewhere near you (how to find them)
The code is in our open source repo, tak-stack, under integrations/hello-cot.
Only run these examples on a network you control. A fake truck is harmless on your home Wi-Fi, but it doesn’t belong on a network that real teams are using.
A message has one job
Every Cursor on Target message, or CoT, is called an event, and an event answers a few simple questions:
| Question | Field | Example |
|---|---|---|
| Who is this? | uid | ANDROID-edbfafdf209da483 |
| What is it? | type | a-f-G-U-C |
| Where is it? | point | Latitude, longitude, height and accuracy |
| How do we know? | how | m-g, machine-generated from GPS |
| When was this true? | time, start | The moment it was sent |
| When should I stop trusting it? | stale | The moment it expires |
The stale field tells the receiver when this report should be treated as out of date.
Here’s a complete event. It’s the fake truck we’re about to create, with line breaks added so that you can read it:
<event version="2.0"
uid="hello-cot-truck-1"
type="a-f-G-E-V"
how="m-g"
time="2026-10-24T01:18:39.000Z"
start="2026-10-24T01:18:39.000Z"
stale="2026-10-24T01:19:09.000Z">
<point lat="51.050000" lon="-114.065000" hae="9999999" ce="10" le="10"/>
<detail>
<contact callsign="TRUCK-1"/>
<track course="90.0" speed="5"/>
</detail>
</event>
Everything above <detail> is the core of the message. Everything inside <detail> is optional, and it’s where applications add what they need.
A few of those fields deserve a closer look.
uid is the identity. Send a new message with the same UID, and the existing icon moves. Send one with a different UID, and a second icon appears. That’s also why the cloned devices in the last article couldn’t see each other: each thought that the other’s reports were its own.
hae, ce and le describe the position. They’re height above the ellipsoid, circular error and linear error. In other words: how high is it, and how sure are we? 9999999 is the conventional way of saying “unknown”.
how says where the data came from. m-g means a machine reported it from GPS, while h-e means a person entered it.
Decoding the type
a-f-G-E-V looks like a code you need a manual for, but it reads from left to right, and each part narrows things down:
| Part | Meaning |
|---|---|
a | An atom: a real thing in the world |
f | Friendly |
G | On the ground |
E | Equipment |
V | A vehicle |
Change f to h, for hostile, and the map draws a different symbol. The second letter can also be n for neutral or u for unknown. Your phone calls itself a-f-G-U-C: a friendly ground unit, combat.
That word “combat” shows where the format grew up. A search and rescue volunteer is not a combat unit, but the type still works, and you’ll see it on civilian devices everywhere.
There’s no need to memorise these. You just need to recognise the pattern, and to know that the type decides how the map draws your icon. When you want to look one up or choose one for your own data, use our guide to reading CoT types.
For the network nerds: not everything is an atom. Types starting with b are bits of data rather than things in the world, such as chat messages. Types starting with t are tasks, and a t-x-d-d event tells receivers to delete an item.
Listening in
Let’s hear what your device is really saying. Run the listener, using your computer’s IP address:
cd integrations/hello-cot
python listen.py --interface 192.168.0.120
Within a minute, you’ll see something like this. This one came from my BRAVO-1 device:
Binary message, 395 bytes
callsign: BRAVO-1
uid: ANDROID-edbfafdf209da483
type: a-f-G-U-C
how: m-g
position: 51.04750, -114.06000
sent: 01:13:27 UTC
stale: 01:14:42 UTC
team: Cyan, Team Member
There are two things to notice.
It’s binary, not XML. ATAK doesn’t send the text you saw earlier. It sends the same information in Protocol Buffers, which is more compact, and it matters when your link is a radio. You can spot these packets by their first three bytes: bf 01 bf. The listener uses the takproto library to decode them.
The message expires 75 seconds after it was sent. The device is saying: “This is where I am, and if you haven’t heard from me in 75 seconds, don’t rely on it.”
What else is in there?
The summary above leaves a few things out. Here’s more of what that report contained:
contact: endpoint="10.0.2.17:4242:tcp" phone="+15551234567" callsign="BRAVO-1"
status: battery: 100
takv: platform: "ATAK-CIV", version: "5.8.0.8"
track: course: 356.2
That report includes more than a position: a phone number, battery level, device details and an IP address, all sent over an unencrypted multicast group. The number here is a placeholder.
ATAK has a Publish Phone Number option under Contact Preferences, so check what your device is sharing before you use it on a network you don’t fully trust.
Put a truck on the map
Now it’s your turn to talk. Run this, using a position near you:
python hello_cot.py --lat 51.045 --lon -114.065 --interface 192.168.0.120
Look at your map. A vehicle called TRUCK-1 will appear and start driving in a circle.

TRUCK-1 doesn’t exist. It’s a Python script, and the map treats it like anything else.
If nothing appears, make sure you’ve panned the map to the position you chose. If it’s still missing, send straight to the device’s IP address, which skips multicast altogether:
python hello_cot.py --lat 51.045 --lon -114.065 --target 192.168.0.42:4242
Port 4242 is where ATAK listens for direct messages. Sending directly to port 6969 doesn’t work, because that port is for multicast.
Here’s the heart of the script. It’s only building a string, and sending it:
def build_event(lat, lon, course):
now = datetime.now(timezone.utc)
stale = now + timedelta(seconds=STALE_SECONDS)
return (
'<?xml version="1.0" encoding="UTF-8"?>'
f'<event version="2.0" uid="{UID}" type="{COT_TYPE}" how="m-g" '
f'time="{cot_time(now)}" start="{cot_time(now)}" stale="{cot_time(stale)}">'
f'<point lat="{lat:.6f}" lon="{lon:.6f}" hae="9999999" ce="10" le="10"/>'
f'<detail><contact callsign="{CALLSIGN}"/>'
f'<track course="{course:.1f}" speed="5"/></detail>'
"</event>"
).encode()
ATAK accepted the XML message and drew the truck without any registration or TAK-specific SDK.
Notice that the script sends XML, while ATAK itself sends binary. ATAK accepted both over multicast, which makes XML a friendly way to learn.
Open your Contacts list while the truck is driving, and you won’t find it there. Only your map shows it. The Contacts list needs an endpoint, an address to reach something on, and our truck doesn’t send one. Add an endpoint to the truck’s contact line, and it joins the list.
Now stop
Press Ctrl+C, and watch the map.
The truck stays where it was. Nothing tells the map that the script has gone. Each message said that it was good for 30 seconds, and once that time has run out, the icon darkens.

The truck hasn’t moved or vanished. The map is telling you that this information is out of date.
No one sent a “goodbye” message. The sender just went quiet, and the expiry time did the rest. It’s why the stale field matters so much, and it’s how the shelter health check from the first article would work: keep checking in, and if you stop, the map notices.
Give it more than 30 seconds, because the display lags behind the expiry. The truck was still bright at 28 seconds and dark by 75, and BRAVO-1 took 90 to 110 seconds to turn grey on a 75-second expiry. stale is when the information expires, not a precise timer on the display.
Try this next
You’ve got all you need to experiment. In hello_cot.py:
- Change the affiliation. Set
COT_TYPEtoa-h-G-E-Vand see how the symbol changes. - Stay in one place. Set
RADIUS_DEGREESto0, and you’ve made the shelter health check. Give it a callsign likeSHELTER-1. - Add a second truck. Run a second copy with a different
UID, then try it with the sameUIDand see what happens. - Use real data. Replace the circle with a position from a GPS tracker, an API or a sensor.
Anything that can produce a position and a timestamp can now be on your map, in a few lines of code.
A word of caution
Anything on the network can inject a fake truck, and your map believed it right away. It would have believed a-h-G-E-V, a hostile vehicle, just as readily.
On a mesh like this, nothing proves that a message is real. That’s fine for learning, but it’s a serious limit for a real operation.
What you’ve built
You can now read a CoT event, decode a type, listen to a mesh and put your own data on a TAK map. You’ve also seen how expiry affects what the map displays.
There’s a whole world of clients, servers and tools built around this one simple message.
Next up: we’ll step back and map out that world, so that you can make sense of all those names.
