In
digital communications
Data transmission and data reception or, more broadly, data communication or digital communications is the transfer and reception of data in the form of a digital bitstream or a digitized analog signal transmitted over a point-to-point o ...
, differential coding is a technique used to provide ''unambiguous'' signal reception when using some types of
modulation
In electronics and telecommunications, modulation is the process of varying one or more properties of a periodic waveform, called the '' carrier signal'', with a separate signal called the ''modulation signal'' that typically contains informat ...
. It makes data to be transmitted to depend not only on the current signal state (or symbol), but also on the previous one.
The common types of modulation that require differential coding include
phase-shift keying
Phase-shift keying (PSK) is a digital modulation process which conveys data by changing (modulating) the phase of a constant frequency reference signal (the carrier wave). The modulation is accomplished by varying the sine and cosine inputs ...
and
quadrature amplitude modulation.
Purposes of differential coding
When data is transmitted over twisted-pair wires, it is easy to accidentally insert an extra half-twist in the cable between the transmitter and the receiver. When this happens, the received signal is inverted.
Similarly for
BPSK. To demodulate BPSK, one needs to make a local oscillator ''synchronous'' with the remote one. This is accomplished by a
carrier recovery circuit. However, the integer part of the recovered carrier is ambiguous. There are ''n'' valid but not equivalent phase shifts between the two oscillators. For BPSK, ''n'' = 2; the symbols appear inverted or not.
Differential encoding prevents inversion of the signal and symbols, respectively, from affecting the data.
Assuming that
is a bit intended for transmission and
was the symbol just transmitted, then the symbol to be transmitted for
is
where
indicates
binary or
modulo-2 addition. On the decoding side,
is recovered as
That is,
depends only on a difference between the symbols
and
and not on their values (inverted or not).
There are several different
line code
In telecommunication, a line code is a pattern of voltage, current, or photons used to represent digital data transmission (telecommunications), transmitted down a communication channel or written to a storage medium. This repertoire of signals ...
s designed to be polarity insensitive
"Spread spectrum direct sequence"
by Daniel Kraus -- whether the data stream is inverted or not, the decoded data will always be correct.
The line code
In telecommunication, a line code is a pattern of voltage, current, or photons used to represent digital data transmission (telecommunications), transmitted down a communication channel or written to a storage medium. This repertoire of signals ...
s with this property include differential Manchester encoding
Differential Manchester encoding (DM) is a line code in digital frequency modulation in which data and clock signals are combined to form a single two-level self-synchronizing data stream. In various specific applications, this method is also call ...
, bipolar encoding, NRZI, biphase mark code, coded mark inversion, and MLT-3 encoding. coding ''
Conventional differential coding
A method illustrated above can deal with a data stream inversion (it is called ''180° ambiguity''). Sometimes it is enough (e.g. if BPSK is used or if other ambiguities are detected by other circuits, such as a Viterbi decoder or a frame synchronizer) and sometimes it isn't.
Generally speaking, a ''differential coding'' applies to ''symbols'' (these are not necessary the same symbols as used in the modulator). To resolve ''180° ambiguity'' only, bits are used as these symbols. When dealing with ''90° ambiguity'', pairs of bits are used, and triplets of bits are used to resolve ''45° ambiguity'' (e.g. in 8PSK).
A ''differential encoder'' provides the () operation, a ''differential decoder'' - the () operation.
Both differential encoder and differential decoder are discrete linear time-invariant systems. The former is recursive and IIR, the latter is non-recursive and thus FIR
Firs (''Abies'') are a genus of 48–56 species of evergreen coniferous trees in the family (biology), family Pinaceae. They are found on mountains throughout much of North America, North and Central America, Europe, Asia, and North Africa. The ...
. They can be analyzed as digital filters.
A ''differential encoder'' is similar to an analog integrator. It has an impulse response
In signal processing and control theory, the impulse response, or impulse response function (IRF), of a dynamic system is its output when presented with a brief input signal, called an impulse (). More generally, an impulse response is the reac ...
:
and a transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a mathematical function that theoretically models the system's output for each possible input. They are widely used ...
:
A ''differential decoder'' is thus similar to an analog differentiator, its impulse response being
:
and its transfer function
:
Note that in binary (modulo-2) arithmetic, addition and subtraction (and positive and negative numbers) are equivalent.
Generalized differential coding
Using the relation is not the only way of carrying out differential encoding. More generally, it can be any function provided that an equation has one and only one solution for any and .
Applications
Differential coding is widely used in satellite
A satellite or artificial satellite is an object intentionally placed into orbit in outer space. Except for passive satellites, most satellites have an electricity generation system for equipment on board, such as solar panels or radioiso ...
and radio relay communications together with PSK and QAM modulations.
Drawbacks
Differential coding has one significant drawback: it leads to error multiplication. That is, if one symbol such as was received incorrectly, two incorrect symbols and would be at the differential decoder's output, see:
and . This approximately doubles the BER
''Ziziphus mauritiana'', also known as Indian jujube, Indian plum, Chinese date, Chinese apple, ber, and dunks is a tropical fruit tree species belonging to the family Rhamnaceae. It is often confused with the closely related Chinese jujube (' ...
at signal-to-noise ratios for which errors rarely occur in consecutive symbols.
Other techniques to resolve a phase ambiguity
Differential coding is not the only way to deal with a phase ambiguity. The other popular technique is to use '' syncwords'' for this purpose. That is, if a ''frame synchronizer'' detects repeated inverted sync-words, it inverts the whole stream. This method is used in DVB-S
Digital Video Broadcasting – Satellite (DVB-S) is the original DVB standard for Satellite Television and dates from 1995, in its first release, while development lasted from 1993 to 1997. The first commercial applications was by Star TV in Asia ...
.
See also
* Phase-shift keying
Phase-shift keying (PSK) is a digital modulation process which conveys data by changing (modulating) the phase of a constant frequency reference signal (the carrier wave). The modulation is accomplished by varying the sine and cosine inputs ...
* Satellite modem
External links and references
{{Reflist
* INTELSAT
Intelsat S.A. (formerly INTEL-SAT, INTELSAT, Intelsat) is a multinational satellite services provider with corporate headquarters in Luxembourg and administrative headquarters in Tysons Corner, Virginia, United States. Originally formed as ...
Earth Station Standard IESS-308
* DVB framing structure, channel coding and modulation for 11/12 GHz satellite services (EN 300 421)
Data transmission