ArticleslgStudy

science

Tap code

Tap code is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Tap code rather than just read about it. In short: The tap code, sometimes called the knock code, is a way to encode text messages on a letter-by-letter basis in a very simple way. The message is transmitted using a series of tap sounds, hence its name.

Key takeaways

  • Tap code belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Tap code to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Tap code from memory before moving on to harder problems.

Reference excerpt

The tap code, sometimes called the knock code, is a way to encode text messages on a letter-by-letter basis in a very simple way. The message is transmitted using a series of tap sounds, hence its name. The tap code has been commonly used by prisoners to communicate with each other. The method of communicating is usually by tapping either the metal bars, pipes or the walls inside a cell.

Design The tap code is based on a Polybius square using a 5×5 grid of letters representing all the letters of the Latin alphabet, except for K, which is represented by C. Each letter is communicated by tapping two numbers, the first designating the row and the second (after a pause) designating the column. For example, to specify the letter "B", tap once, pause, and then tap twice. The listener only needs to discriminate the timing of the taps to isolate letters. To communicate the word "hello", the cipher would be the following (with the pause between each number in a pair being shorter than the pause between letters):

The letter "X" is used to break up sentences, and "K" for acknowledgements. Because of the difficulty and length of time required for specifying a single letter, prisoners often devise abbreviations and acronyms for common items or phrases, such as "GN" for Good night, or "GBU" for God bless you. By comparison, despite its messages being shorter, Morse code is harder to send by tapping or banging. Its short and long signals can be improvised as taps and thumps, or short and long whistles or scraping sounds, but tap codes are simpler to learn and can be used in a wider variety of situations. The tap system simply requires one to know the alphabet and the short sequence "AFLQV" (the initial letter of each row), without memorising the entire grid. For example, if a person hears four knocks, they can think "A... F... L... Q". If after a pause there are three knocks, they think "Q... R... S" to arrive at the letter S.

History

The origins of this encoding go back to the Polybius square of Ancient Greece. Like the "knock code", a Cyrillic script version is said to have been used by nihilist prisoners of the Russian czars. The knock code is featured in Arthur Koestler's 1941 work Darkness at Noon. Kurt Vonnegut's 1952 novel Player Piano also includes a conversation between prisoners using a form of tap code. The code used in the novel is more primitive and does not make use of the Polybius square (e.g. "P" consists of sixteen taps in a row). United States prisoners of war during the Vietnam War are most known for having used the tap code. It was introduced in June 1965 by four POWs held in the Hỏa Lò ("Hanoi Hilton") prison: Captain Carlyle "Smitty" Harris, Lieutenant Phillip Butler, Lieutenant Robert Peel, and Lieutenant Commander Robert Shumaker. Harris had heard of the tap code being used by prisoners in World War II and remembered a United States Air Force instructor who had discussed it as well. In Vietnam, the tap code became more widely used than Morse; despite messages taking longer to send, the system was easier to learn and could be applied in a wider variety of situations. Tap codes proved to be a very successful way for otherwise isolated prisoners to communicate. POWs would use the tap code in order to communicate to each other between cells in a way which the guards would be unable to pick up on. They used it to communicate everything from what questions interrogators were asking (in order for everyone to stay consistent with a deceptive story), to who was hurt and needed others to donate meager food rations. It was easy to teach and newly arrived prisoners became fluent in it within a few days. It was even used when prisoners were sitting next to each other but not allowed to talk, by tapping on another's thigh. U.S. Navy Rear Admiral Jeremiah Denton developed a vocal tap code of coughs, sniffs and sneezes. By overcoming isolation with the tap code, prisoners were said to be able to maintain a chain of command and keep up morale. In 1980, a doctor sentenced to life in solitary confinement in Somalia used tap code to share the entirety of Tolstoy's Anna Karenina, nearly 2 million letters, via tap code with fellow prisoners.

In popular culture In the 1990 video game Metal Gear 2: Solid Snake, the tap code is used by Dr. Drago Pettrovich Madnar to communicate to Solid Snake through a cell wall. In Season 2 Episode 2 of Person of Interest in 2012, the tap code is used by Harold Finch to discreetly leave breadcrumbs of his location to John Reese by encoding his location as tap code on a telephone. In the 2013 film Escape Plan, Ray Breslin use the tap code to secretly inform prisoners about the planned riot. In the 2015 video game Her Story, the main characters use the tap code to surreptitiously communicate. In Season 2 Episode 14 of The Flash in 2016, the masked prisoner in Zoom's lair uses the tap code to try to communicate with the others. In the 2021 film The Ice Road, the tap code is used on a metal pipe conduit by trapped miners to communicate with executives of the mining company.

See also Morse code Wabun code

References

External links Online Tap Code Encoder/Decoder Russian Prison Tap Codes L' Alfabeto Quadrato(Codice a Colpi) - An Degrida Artist An Degrida's Tap Code artistic illustration.

Worked examples

Example 1 — a first encounter with Tap code

Start with the simplest possible case. Write down what Tap code claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Tap code before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Tap code ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Tap code

In research
Tap code appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Tap code in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Tap code is common in secondary-school and first-year university syllabi. It links to neighbouring topics Classical ciphers, Encodings, so understanding it makes those chapters shorter.
In everyday life
Look for Tap code outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Tap code in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Tap code means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Tap code out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Tap code in simple terms?

The tap code, sometimes called the knock code, is a way to encode text messages on a letter-by-letter basis in a very simple way. The message is transmitted using a series of tap sounds, hence its name.

Why does Tap code matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Tap code?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Tap code.

Tags

  • Classical ciphers
  • Encodings

Keep exploring