<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>What the Baud</title><subtitle>Reverse engineering radio signals, one unknown burst at a time.</subtitle>
<link href="https://whatthebaud.com/feed.xml" rel="self"/><link href="https://whatthebaud.com/"/><id>https://whatthebaud.com/</id>
<updated>2026-11-26T12:00:00Z</updated>
<entry><title>How to take apart an unknown signal</title><link href="https://whatthebaud.com/posts/how-to-take-apart-an-unknown-signal/"/><id>https://whatthebaud.com/posts/how-to-take-apart-an-unknown-signal/</id><updated>2026-11-26T12:00:00Z</updated><author><name>What the Baud</name></author><summary>The order of work for an undocumented transmission, from a first capture to named fields in a frame.</summary><content type="html">&lt;p&gt;Every signal on this site gets the same treatment, in the same order.
Each step answers one question, and the answer decides what the next
step looks like. Skipping ahead is how you spend a weekend decoding
noise.&lt;/p&gt;
&lt;h2 id=&quot;capture-more-than-you-think-you-need&quot;&gt;1. Capture more than you
think you need&lt;/h2&gt;
&lt;p&gt;Record raw I/Q, not audio. An audio recording has already been
through somebody’s demodulator and filter, and both threw information
away.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sample at four times the occupied bandwidth or more, so the edges of
the signal are not sitting on the filter roll-off.&lt;/li&gt;
&lt;li&gt;Tune a little off the carrier. The spike most SDRs put at the centre
of the spectrum should not land on your signal.&lt;/li&gt;
&lt;li&gt;Capture many transmissions, and write down what the device was doing
for each one. Ten captures of the same button are worth less than one
capture each of ten buttons.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;measure-before-you-guess&quot;&gt;2. Measure before you guess&lt;/h2&gt;
&lt;p&gt;Look at the capture three ways before touching a demodulator.&lt;/p&gt;
&lt;table&gt;
&lt;colgroup&gt;
&lt;col style=&quot;width: 50%&quot; /&gt;
&lt;col style=&quot;width: 50%&quot; /&gt;
&lt;/colgroup&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;View&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Spectrogram&lt;/td&gt;
&lt;td&gt;Bandwidth, burst length, hopping, whether the energy sits in one
lump or two&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amplitude against time&lt;/td&gt;
&lt;td&gt;On-off keying shows up here immediately; a constant envelope rules
it out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Instantaneous frequency&lt;/td&gt;
&lt;td&gt;Two flat levels mean 2-FSK, four mean 4-FSK, a smooth wander means
something else&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Then get the symbol rate. Measure the shortest gap between two
transitions across a few bursts; the symbol period is that gap, and
everything longer is a multiple of it. A spectrum of the squared or
magnitude signal will show a line at the symbol rate and confirms the
number. Real products favour round figures: 1200, 2400, 4800, 9600,
38400, 50000, 100000. A measurement of 9.58 kBd is 9600 with a cheap
crystal.&lt;/p&gt;
&lt;h2 id=&quot;get-bits-any-bits&quot;&gt;3. Get bits, any bits&lt;/h2&gt;
&lt;p&gt;Demodulate with the simplest thing that works and slice at the symbol
rate. Do not worry yet about which level is a one. Write the bits out as
text, one burst per line, and line the bursts up under each other.&lt;/p&gt;
&lt;h2 id=&quot;find-the-frame&quot;&gt;4. Find the frame&lt;/h2&gt;
&lt;p&gt;Most packets start the same way:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;A &lt;strong&gt;preamble&lt;/strong&gt;, usually alternating bits
(&lt;code&gt;0xAA&lt;/code&gt; or &lt;code&gt;0x55&lt;/code&gt;), so the receiver can settle its
clock.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;sync word&lt;/strong&gt;, a fixed pattern that marks where the
data starts. It is the first thing after the preamble that is identical
in every burst.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;length&lt;/strong&gt; or a fixed size, then the payload, then a
check value.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the bits after the sync word look random in every capture,
including captures that should be identical, the data is probably
whitened or encoded. Check for Manchester coding first (the bit stream
never has more than two equal bits in a row), then for whitening (XOR
two captures that should differ by one field: the whitening cancels and
the difference is left).&lt;/p&gt;
&lt;h2 id=&quot;diff-your-way-to-the-fields&quot;&gt;5. Diff your way to the fields&lt;/h2&gt;
&lt;p&gt;This is where the notes from step one pay for themselves. Change one
thing on the device, capture, and compare.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Bits that never change are addresses, type codes or padding.&lt;/li&gt;
&lt;li&gt;Bits that count up by one are a sequence number or a rolling
counter.&lt;/li&gt;
&lt;li&gt;Bits that change when you change a setting are that setting.&lt;/li&gt;
&lt;li&gt;Bits at the end that change whenever anything else does are the
checksum.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;prove-it-with-the-checksum&quot;&gt;6. Prove it with the checksum&lt;/h2&gt;
&lt;p&gt;A field map is a theory until the check value agrees with it. Try the
common ones over every plausible span of the frame: an 8-bit sum, an
XOR, CRC-8, CRC-16 with the CCITT and IBM polynomials, each with both
bit orders and both usual initial values. When one of them matches on
every capture, you know where the frame really starts and ends, which
bit order is right and that your whitening guess was correct, all at
once.&lt;/p&gt;
&lt;p&gt;After that you can build a frame of your own, compute the check value
and see whether a receiver you own accepts it. A decoder that only reads
has been tested against your assumptions. One that can also write has
been tested against the device.&lt;/p&gt;
</content></entry>
</feed>
