[KongchangAI]
ConceptCode128

Code 128

A high-density one-dimensional barcode specification supporting three code sets (A/B/C) and dynamic code set switching, widely used in logistics, warehousing and similar scenarios.

Timeline (last 90 days)

Oct 19

A user requested generating a Code 128 label for a warehouse bin location, with the content being the pure ASCII string BIN-7742-A.

Unverified50%
Oct 19

Two weeks after the barcode label was printed and affixed to the shelf, scanning it with a barcode scanner made the system display "almond" instead of the bin number.

Unverified50%
Oct 19

The root cause is that the generator wrote the raw string BIN-7742-A directly into the barcode, and the scanning side interpreted the leading B as the start character of Code 128 Code Set B, causing the overall parsing context of subsequent characters to shift.

Unverified50%
Oct 19

The label is technically a fully valid Code 128 barcode, it just encodes the wrong string.

Unverified50%
Oct 19

Code 128 defines three code sets (Code Set A, B, C), and the start character (Start A/B/C) determines the code set initially enabled by the decoder.

Unverified50%
Oct 19

Code 128's code set switch characters (Code A/B/C, Shift) can dynamically change the decoding context within the data stream.

Unverified50%
Oct 19

Code 128's mod 103 check character algorithm is: add the start character value plus the cumulative value of each data character (weighted by code set), then multiply by position weight (the start character has weight 1, increasing thereafter), and finally take the result modulo 103 to obtain the check character value.

Unverified50%
Oct 19

The mod 103 check digit can only detect symbol damage and misalignment during transmission or printing, and cannot detect semantic errors such as choosing the wrong start character during encoding.

Unverified50%
Oct 19

The developer's fixes include: adding mod 103 check character generation to the generator, rejecting suspicious leading characters by default (unless raw mode is explicitly enabled), and having the API return both the encoded value and the decoded value.

Unverified50%
Oct 19

The fixed generator has been packaged and released, including checksum validation and a raw mode option.

Unverified50%

1 more timeline events

All Facts (11)

Unverified

For industries that rely on barcodes, self-developed generators need to verify semantic alignment in addition to compliance, and conduct end-to-end testing with real scanning devices and target systems.

50%
Unverified

Code 128's mod 103 check character algorithm is: add the start character value plus the cumulative value of each data character (weighted by code set), then multiply by position weight (the start character has weight 1, increasing thereafter), and finally take the result modulo 103 to obtain the check character value.

50%
Unverified

The mod 103 check digit can only detect symbol damage and misalignment during transmission or printing, and cannot detect semantic errors such as choosing the wrong start character during encoding.

50%
Unverified

The developer's fixes include: adding mod 103 check character generation to the generator, rejecting suspicious leading characters by default (unless raw mode is explicitly enabled), and having the API return both the encoded value and the decoded value.

50%
Unverified

The root cause is that the generator wrote the raw string BIN-7742-A directly into the barcode, and the scanning side interpreted the leading B as the start character of Code 128 Code Set B, causing the overall parsing context of subsequent characters to shift.

50%
Unverified

The label is technically a fully valid Code 128 barcode, it just encodes the wrong string.

50%
Unverified

Code 128 defines three code sets (Code Set A, B, C), and the start character (Start A/B/C) determines the code set initially enabled by the decoder.

50%
Unverified

Code 128's code set switch characters (Code A/B/C, Shift) can dynamically change the decoding context within the data stream.

50%
Unverified

Two weeks after the barcode label was printed and affixed to the shelf, scanning it with a barcode scanner made the system display "almond" instead of the bin number.

50%
Unverified

A user requested generating a Code 128 label for a warehouse bin location, with the content being the pure ASCII string BIN-7742-A.

50%
Unverified

The fixed generator has been packaged and released, including checksum validation and a raw mode option.

50%

Source Articles