Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for printing two-dimensional code by using 9-pin printer in embedded system

An embedded system and needle printer technology, applied in the field of two-dimensional code printing, can solve the problems of low printing resolution, increased two-dimensional code area, huge and complex algorithm library, etc., and achieve the effect of high reading rate

Active Publication Date: 2016-04-06
AEROSPACE INFORMATION
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, thermal printers are not suitable for fields such as invoice printing because the printed content cannot be stored for a long time
The problem with 9-pin printers is mainly that the printing resolution is low (generally ≤160dpi horizontally, ≤144dpi vertically), and the horizontal and vertical resolutions are different. The area of ​​the QR code printed by the 9-pin printer will also increase greatly, making it unable to meet the application requirements in many occasions
[0004] A method in the prior art to solve the problem that the area of ​​the two-dimensional code printed by the 9-pin printer is too large is as follows: after processing the two-dimensional code image with a standard algorithm of image processing, the two-dimensional code image is processed by the 9-pin printer Print
The disadvantage of this method is: the algorithm library required by this method is often relatively large and complex, and is not suitable for transplantation to low-end embedded systems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for printing two-dimensional code by using 9-pin printer in embedded system
  • Method and device for printing two-dimensional code by using 9-pin printer in embedded system
  • Method and device for printing two-dimensional code by using 9-pin printer in embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0020] A schematic diagram of the processing flow of a method for printing a two-dimensional code using a 9-pin printer in an embedded system provided by this embodiment is as follows figure 1 As shown, the following processing steps are included:

[0021] Step 11, according to the printing area size and printing resolution of the 9-pin printer, calculate the number of printing points corresponding to each rectangular unit of the logical matrix of the two-dimensional code to be printed, and each rectangular unit of the logical matrix represents the A basic unit in a QR code.

[0022] For a rectangular two-dimensional code, the generation algorithm provides an M*N logic matrix, each element in the logic matrix represents a basic unit in the two-dimensional code, which appears as black or white on the image. When the two-dimensional code stipulates that each basic unit is a rectangular square of equal area (this is the case for most mainstream two-dimensional codes at present),...

Embodiment 2

[0050] The specific structure of a device for printing a two-dimensional code using a 9-pin printer in an embedded system provided by this embodiment is as follows: figure 2 shown, including:

[0051] The number of print points calculation module 21 is used to calculate the number of print points corresponding to each rectangular unit of the logic matrix of the two-dimensional code that needs to be printed according to the print area size and print resolution of the 9-pin printer, and each rectangle of the logic matrix A unit represents a basic unit in the two-dimensional code;

[0052] The matrix conversion processing module 22 is used to map each rectangular unit of the logical matrix to the corresponding matrix of the printing pixel matrix of the 9-pin printer according to the number of printing dots corresponding to each rectangular unit of the logical matrix using a bitmap data structure unit, thereby converting the logic matrix into a printing pixel matrix of a 9-pin p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the invention provides a method and apparatus for printing a two-dimensional code by use of a 9-pin printer in an embedded system. The method mainly comprises calculating print points corresponding to each rectangular unit of a logic matrix of a two-dimensional code to be printed according to the size of a print area and print resolution of the 9-pin printer; according to the print points corresponding to each rectangular unit of the logic matrix, mapping each rectangular unit of the logic matrix to a corresponding matrix unit of a print pixel matrix of the 9-pin printer by use of a bitmap data structure; and thus converting the logic matrix into the print pixel matrix of the 9-pin printer. According to the command format of the 9-pin printer, the print pixel matrix of the 9-pin printer is converted into a stream of bytes of the printer. According to the embodiment of the invention, 2D code graphics satisfying the accuracy and graphics area requirements can be printed with the 9-pin printer in a low-end embedded environment, while a high literacy rate is ensured.

Description

technical field [0001] The invention relates to the technical field of two-dimensional code printing, in particular to a method and device for printing two-dimensional codes by using a 9-pin printer in an embedded system. Background technique [0002] Compared with the one-dimensional barcode, the two-dimensional code has the advantages of large information capacity, high confidentiality, strong damage resistance, and large backup. Therefore, it has been widely used in various commercial forms, bills, certificates and other fields in recent years. It can be said that the application of QR codes has become ubiquitous in our daily life. Embedded systems have developed rapidly in recent years, and they have wider applicability than desktop computers in many environments due to their convenience and low cost. Based on the above background, if two-dimensional codes can be printed in a low-end embedded environment where system resources are relatively scarce, it will have advanta...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): B41J2/22B41J3/01
Inventor 陈懿陈皓聂慧萍张磊高阳张亚明黄海东
Owner AEROSPACE INFORMATION
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products