Barcode Technology

Barcode History

Barcode Label Paper

Barcode Printer

Barcode Application

Inventory Management

AI Barcode QRCode

Barcode Scanner

Barcode Software

Barcode Software B

Barcode Software C

Barcode Software D

Barcode Software E

New Technology A

New Technology B

Robot Technology

Barcode Types

Barcode Types B

Barcode Types C

Barcode Types D

Barcode Types E

Barcode Types F

Electronic Technology

Psychology at Work

Barcode Technology and Barcode Software Related   <<< Back to Directory <<<

Base 256 mode of Data Matrix codes

Detailed Explanation of Base 256 Mode in Data Matrix Codes

Data Matrix codes use different encoding modes to efficiently represent various types of data. One such mode is the Base 256 mode, which is specifically designed for encoding byte-oriented data. Here's a detailed breakdown of how Base 256 mode works:

1. Structure of Base 256 Mode Data

The encoded data in Base 256 mode consists of:

1)Length Indicator: Indicates the length of the data bytes.

2)Data Bytes: The actual data to be encoded.

2. Encoding the Length

The length indicator is encoded based on the length of the data bytes:

For lengths 1 to 249, the length is encoded as a single byte.

For lengths 250 and above, the length is encoded as two bytes using the following formula:

3. Avoiding Long Strings of Zeros

Long strings of zeros in the encoded message can cause issues with scanning the Data Matrix symbol. To mitigate this, the length and data bytes are obscured using a pseudorandom value R(n)R(n)R(n).

4. Pseudorandom Value Calculation

The pseudorandom value R(n)R(n)R(n) is calculated as: R(n)=(149×n)mod??255+1R(n) = (149 \times n) \mod 255 + 1R(n)=(149×n)mod255+1 Here, nnn is the position in the byte stream (starting from 1).

5. Obscuring the Data

To obscure the data, each byte (including the length byte(s)) is modified by adding the corresponding pseudorandom value R(n)R(n)R(n): Obscured Byte=(Original Byte+R(n))mod??256\text{Obscured Byte} = (\text{Original Byte} + R(n)) \mod 256Obscured Byte=(Original Byte+R(n))mod256

Example

Let's walk through an example to see how this works in practice.

Given:

Data to encode: 'Hello'

ASCII values: [72, 101, 108, 108, 111]

Length of data: 5

Step-by-Step Encoding:

Encoded Byte Stream: [155, 116, 38, 195, 88, 241]

This process ensures that the Data Matrix code is less likely to have long strings of zeros, enhancing its reliability when scanned.

Summary

Base 256 mode starts with a length indicator followed by the actual data bytes.

Length encoding varies based on the length of data.

Pseudorandom values are used to obscure the length and data bytes to avoid long strings of zeros.

The pseudorandom value is calculated as (149×n)mod??255+1(149 \times n) \mod 255 + 1(149×n)mod255+1 where nnn is the byte position.

The obscured bytes are computed by adding the pseudorandom values to the original bytes modulo 256.

By following these steps, Data Matrix codes in Base 256 mode ensure robust and efficient encoding of byte-oriented data.

 

EasierSoft Barcode Label Design & Bulk Printing Software

---- Use Excel Data to Batch Print Barcodes on Label Sheets or Roll Labels  

---- How to use this barcode software

Download:  Free Barcode Software + Barcode Label Designer

Download Free Barcode Software at Softonic

     Download at CNET

Once you obtain a GS1/UPC/EAN barcode, or other barcode type and QR code, you can use our free software to batch print barcode labels onto Roll label paper using a professional label printer, or to batch print barcodes onto Avery 5160 label sheets using a regular laser or inkjet printer. Our software has free and paid versions.

The free version fully meets your needs for batch printing GS1/UPC/EAN barcodes. The paid version can import data from Excel and databases to batch print barcode labels with different values.

How to Start

Input Data

Import Excel Data

Print Barcode

Barcode Format

Label Designer

All Screen Shot

Export Barcode Image

Save Template

Output Word Excel

How to Use & FAQ:

Save settings

Serial number generator

The supported barcode types

Load Excel data (pro)

Manually copy data from Excel files

Filter some data for printing

Edit imported barcode data

Input data (Pro)

Label Designer

Edit data in Label designer

Label Designer - Add new label

Label Designer - Printing

Set the barcode label format to be printed

Other Barcode Label Format Settings

Barcode types supported by this program

Barcode Label Font Settings

Configuring the Barcode Print Rotation

Text Alignment for Barcode Labels

Automatically Adjusting Barcode Width

Text Beneath the Barcode

Configuring Barcode Size

Auto Calculate the Barcode Size

Export Barcode images

Export Barcode Image Format

File Names for Exported Barcode

Resolution of Exported Barcode Images

Fixed Folder for Exporting Barcode

Default Barcode Image Export Format

Print bulk barcodes quickly

Print barcodes to Avery 5160 label

How to bulk Barcode Printing

Sample - Avery 5162 (2x7) Label Sheet

Example: Print barcodes to 5*3cm roll

Example: Print barcodes to 5161 label

Example: Print barcodes to 5162 label

Example: Print barcodes to 5163 label

Example: Print barcodes to 5164 label

Example: Print portrait orientation 5164

Example: Print barcodes to 5167 label

Example: Print barcodes to 5168 label

Example: Print portrait orientation 5168

Example: Print barcodes to 5169 label

Example: Print barcodes to 5660 label

Example: Print barcodes to 5661 label

Example: Print barcodes to 5662 label

Example: Print barcodes to 5663 label

Example: Print barcodes to 5664 label

Example: Print portrait orientation 5664

Example: Print barcodes to 5873 label

Example: Print barcodes to 5874 label

Highlights

Excel integration: Import data directly from Excel to generate and print barcodes in bulk.

Label designer: Create complex labels with multiple barcodes, text, logos, and shapes.

Batch printing: Print thousands of barcodes at once using standard inkjet/laser printers or professional barcode printers.


Flexible editions:

Standard Edition: Simple batch printing with Excel data.

Professional Edition: Adds command-line automation for workflow integration.

Label Designer Edition: Advanced design features for complex labels.


Why Choose Our Barcode Solutions?

Cost-effective: Free online generator and permanent free desktop version available.

Easy to use: No technical expertise required—just input data and print.

Versatile: Supports nearly all 1D and 2D barcode types, including QR codes.

Trusted: Recommended by CNET and widely downloaded by users worldwide.


Suitable Use Cases

Small businesses and startups needing quick barcode labels for products.

Retailers and online sellers managing inventory with batch barcode printing.

Manufacturers requiring sequential or custom barcode labels for packaging.

Educational and testing environments where barcodes are used for tracking.

 

 

CONTACT

cs@easiersoft.com

If you have any question, please feel free to email us.

 

https://free-barcode.com

 

<<< Back to Directory <<<     Barcode Generator     Barcode Freeware     Privacy Policy