Code
Signs sent to be read far off or by a machine — barcodes, QR codes, passports’ lines, radio, Morse, flags, telegraphs, tape, cards, line codes — made and read.
Line Codes
Draws bits as a line carries them and reads a signal back: Manchester as ECMA-81 (1984) and the Ethernet specification of 1982 define it, AMI by ITU-T G.701, and the substitutions of G.703’s Annex A — B3ZS and HDB3, B6ZS and B8ZS — and its CMI; Manchester and CMI tested on the standards’ own examples, the substitutions on bits of Unveil’s by their rules.
History, how it works, how it was checked, limits
History
A line carries no bits, only levels, and a receiver must find both the bits and the clock in them. Manchester puts a transition in the middle of every cell, so the clock comes with the data: Ethernet’s specification of 1982 and ECMA-81 (1984) used it at 10 Mbit/s. The telephone networks’ digital lines sent alternate mark inversion, a 1 a pulse of the opposite sign to the one before; a long run of zeros left the receiver without pulses to time by, and G.703’s codes put a deliberate violation of the rule in each such run, which the receiver takes out again. CMI, two levels again, serves its faster interfaces.
How it works
The bits typed are drawn in the code chosen and beside it in every code at once. In HDB3 and B3ZS a run of four or three zeros becomes 000V or B00V (00V or B0V), chosen so that the pulses between two violations are odd in number and the violations alternate in sign; B6ZS and B8ZS write 0VB0VB and 000VB0VB. A signal typed is read back by the same code: a violation is taken with the substitution it ends, and one that no substitution explains is named as an error.
How it was checked
The rules were read in the standards’ own pages. The tests draw ECMA-81’s four examples of p. 5 and G.703’s Figure A.1 exactly as printed, hold the violations of HDB3 and B3ZS to alternate and their counts of pulses to be odd, check B8ZS’s and B6ZS’s patterns after a positive and a negative pulse, and read every code back from its own signal and an altered one.
The tests hold 12 checks of this tool; 3 rest on outside material:
- A standard’s own vectors ECMA-81, 2nd edition (1984), p. 5: its four examples of Manchester phase-encoding, 000000000, 111111111, 101010101 and 101000110, each cell’s halves as drawn
- A standard’s own vectors ITU-T G.703 (04/2016), Annex A, Figure A.1: 0010111 in CMI, each 0 low then high, the 1s a whole interval at A1, A2, A1, A2
- A standard’s own vectors ITU-T G.701, item 9007: a violation has “the same polarity as the previous non-zero signal element”, so a signal’s first pulse is none: AMI − + −, HDB3 − 0 0 0 −, a B8ZS block first in the signal; CMI’s first 1 at either level
Limits
The AMI codes are drawn an element a whole interval: the codes’ elements, not the pulse shapes G.703 sets for each rate. Where a signal begins the first pulse is positive and the count of pulses starts from nothing, which the Recommendation leaves open; CMI’s first 1 is at the lower level, as Figure A.1 begins. G. E. Thomas’s opposite convention for Manchester, often cited, was not found in a print read and is not built.