ArticleslgStudy

science

DotCode

DotCode 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 DotCode rather than just read about it. In short: DotCode is a two-dimensional (2D) matrix barcode invented in 2008 by Hand Held Products as a replacement for the outdated Code 128. At this time, it is issued by Association for Automatic Identification and Mobility (AIM) as “ISS DotCode Symbology Specification 4.0”.

DotCode — main illustration
DotCode — illustration

Key takeaways

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

Reference excerpt

DotCode is a two-dimensional (2D) matrix barcode invented in 2008 by Hand Held Products as a replacement for the outdated Code 128. At this time, it is issued by Association for Automatic Identification and Mobility (AIM) as “ISS DotCode Symbology Specification 4.0”. DotCode consists of sparse black round dots and white spaces on white background. In case of a black background the dots can be white. DotCode was developed to be used with high-speed industrial printers where printing accuracy can be low. Because DotCode by the standard does not require complicated elements like continuous lines or special shapes it can be applied with laser engraving or industrial drills. DotCode can be represented as rectangular array with minimal size of each side 5X dots. Maximal size of DotCode is not limited by the standard (as Code 128 is not limited) but practical limit is recommended as 100x99 which can encode around 730 digits, 366 alphanumeric characters or 304 bytes. As an extension of Code 128 barcode, DotCode allows more compact encoding of 8-bit data array and Unicode support with Extended Channel Interpretation feature. Additionally, DotCode provides much more data density and Reed–Solomon error correction which allows to restore partially damaged dotcodes. However, the main DotCode implementation, the same as Code 128, is effective encoding of GS1 data which is used in worldwide shipping and packaging industry.

History and standards DotCode barcode was invented in 2008 by Dr. Andrew Longacre from Hand Held Products company and standardized in 2009 by AIM as “Bar code symbology specification - DotCode”. In 2019 DotCode was reviewed as “ISS DotCode Symbology Specification 4.0”. Set of patents is registered, which are related with DotCode encoding and decoding:

United States Patent US20090200386A1 by Hand Held Products Inc "Machine readable 2D symbology printable on demand" United States Patent US20090200386A1 by Datalogic IP Tech SRL "System and method for extracting bitstream data in two-dimensional optical codes" Chinese Patent CN113297872A by Fuzhou Symbol Information Technology Co ltd "Dotcode identification method and equipment"

Application DotCode barcode can be used in the same way as Code 128 or any (2D) matrix barcode. At this time, it is used mostly to encode GS1 data in tobacco, alcoholic and non-alcoholic beverage, pharmaceutical and grocery industries. The main implementation at this time is in tobacco industry. Main advantages of DotCode are:

Full support and replacement of Code 128 codeset; Compact encoding of 8-bit data array; Unicode support with Extended Channel Interpretation feature; Effective encoding of GS1 data; Reed–Solomon error correction Ability to apply the barcode by high-speed industrial printers and other methods like laser engraving.

Barcode design DotCode represents data in rectangular structure which consists from black round dots and white spaces on white background or white round dots on black background. DotCode does not have finder pattern, like other 2D barcodes and it must be detected with slow blob detection algorithms like Gabor filter or Circle Hough Transform. All data, metadata and error correction codewords are encoded in the same dots array which does not have any visual difference. Here are some samples of DotCode:

DotCode symbol is constructed from the following elements:

Two mask bits which are represented on diagram as two green points; Data bits (data and error correction bits) which must be read from up to down (even barcode side) and from left to right (odd barcode side); Corner points, marked as red on diagram, which can be used as data bits or padding bits (black dots); Quiet zone at least 3X size of the dots. The DotCode bits array is represented as: (Two mask bits: M2, M1)(Data bits)(Corner bits, can be data or padding bits: C1 – C6) The data codewords in 0 – 112 range are encoded in 5-of-9 binary dot patterns which are encoded from 9 dots where 5 black dots and 4 white spaces. The rest of barcode matrix (rest from division on 9) is padded with black padding bits. The padding bits can be from 0 to 8. The logically DotCode bits array is represented as: (2 mask bits)(Data codewords 9 bits each)(Padding bits 0 – 8 bits) DotCode size has the following requirements:

Sum of DotCode width and height must be odd: (W+H)(mod2)=1; Minimal size of each side must be 5, maximal is not limited; It is recommended to use width and height to have at least 6 padding black bits where data bits capacity rest from division on 9 more or equal 6: 6<=(((W∗H)/2)−2)(mod9)

Data masking To minimize DotCode problematic symbols, the data codewords are masked to create others visual sequences. The mask pattern is applied only to data sequence and does not affect error correction codewords. DotCode standard has 4 mask pattern which are codded into 2 bits and placed as the first 2 bits of symbol bits array.

Error correction DotCode uses Reed–Solomon error correction with prime power of 3 and finite field 𝔽113 or GF(113). The data codewords is represented with values from 0 to 112 and mask value is counted as leading data codeword from 0 to 3. In this way the data protected array length is (1 + ND). But amount of error correction codewords is calculated only from ND: NC=3+(ND/2), where ND is data codewords and NC - error correction codewords. The resulting codewords NW with error correction codewords is: NW=(1+ND)+NC, where NW is all encoding codewords: 1 mask codeword + data codewords(ND) + error correction codewords(NC). Because Reed–Solomon error correction cannot correct amount of codewords which are more than polynomial, if NW happens to exceed 112, the data is split into error correction blocks: B=(NW+111)/112, where B is block counts. The data can be split into block in the following way, for each block ‘’’n’’’, for n equals 1 to B:

ND(block)=((1+ND)−(n−1)+(B−1))/B NW(block)=(NW−(n−1)+(B−1))/B NC(block)=NW(block)−ND(block) The error correction data NC is written after single data block ND in scrambled mode: (ND)(NC1_1)(NC2_1)(NC3_1)...(NC1_n)(NC2_m)(NC3_k)

Encoding DotCode encoding size is not limited by standard, but practical encoding size in 100x99 version which includes 4950 dots can encode 366 raw data codewords, 730 digits, 365 alphanumeric characters, or 304 bytes. The data message in DotCode is represented with data codewords from 0 to 112 which are encoded with 5-of-9 binary dot patterns. DotCode supports the following features:

… excerpt ends here. Continue reading the full article.

Illustrations

DotCode: Example of DotCode
Example of DotCode
DotCode illustration
DotCode illustration
DotCode: DotCode symbol structure
DotCode symbol structure

Worked examples

Example 1 — a first encounter with DotCode

Start with the simplest possible case. Write down what DotCode 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 DotCode 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 DotCode 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 DotCode

In research
DotCode 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 DotCode 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
DotCode is common in secondary-school and first-year university syllabi. It links to neighbouring topics Automatic identification and data capture, Barcodes, Encodings, so understanding it makes those chapters shorter.
In everyday life
Look for DotCode 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DotCode” →

How to study DotCode in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DotCode 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 DotCode out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DotCode in simple terms?

DotCode is a two-dimensional (2D) matrix barcode invented in 2008 by Hand Held Products as a replacement for the outdated Code 128. At this time, it is issued by Association for Automatic Identification and Mobility (AIM) as “ISS DotCode Symbology Specification 4.0”.

Why does DotCode 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 DotCode?

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 DotCode.

Tags

  • Automatic identification and data capture
  • Barcodes
  • Encodings

Keep exploring