CN100468311C - Method for spreading bar-code printers compatible code order - Google Patents

Method for spreading bar-code printers compatible code order Download PDF

Info

Publication number
CN100468311C
CN100468311C CNB2006101126727A CN200610112672A CN100468311C CN 100468311 C CN100468311 C CN 100468311C CN B2006101126727 A CNB2006101126727 A CN B2006101126727A CN 200610112672 A CN200610112672 A CN 200610112672A CN 100468311 C CN100468311 C CN 100468311C
Authority
CN
China
Prior art keywords
printer
code
print
printing
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006101126727A
Other languages
Chinese (zh)
Other versions
CN101135956A (en
Inventor
李长军
郝磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weisheng Science & Technology Developing Co Ltd Beijing
Original Assignee
Weisheng Science & Technology Developing Co Ltd Beijing
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weisheng Science & Technology Developing Co Ltd Beijing filed Critical Weisheng Science & Technology Developing Co Ltd Beijing
Priority to CNB2006101126727A priority Critical patent/CN100468311C/en
Publication of CN101135956A publication Critical patent/CN101135956A/en
Application granted granted Critical
Publication of CN100468311C publication Critical patent/CN100468311C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The method comprises: connecting a print controller between the main computer and the printer; said print controller is connected to the main computer and printer via a communication port; a new-code encoding program used for encoding the bar code content based on new coding formation is embedded into the print controller; defining a print expansion command used for printing a special bar code; the main computer sends down the print command to the communication port; the print controller receives and analyzes the print command, and sends down a relevant print command to the printer; if it's a normal print command, then directly sending it to the printer; if it's an expansion command, then encoding the print content based on a special encoding format, and generating a image, and then sending the command for printing the image; after receiving the command, the printer completes the print operation.

Description

A kind of method of spreading bar-code printers compatible code order
Technical field
The present invention relates to a kind of method of spreading bar-code printers compatible code order.
Background technology
The tradition bar code printer with print the main frame connected mode as shown in Figure 5, print between main frame and the bar code printer by the also communication that links to each other of parallel port or RS232 serial ports, carry out the printing of bar-code label by the host computer control printer.
At present the bar code printer of main flow is only supported the printing to the main flow code system, built-in main flow code system coded program, by host computer control, can be with the needs printed contents in the label appointed positions by specifying code system to encode and print.And in some sector application now, use special-purpose code system, and the user does not wish the content of open code system, in this case, general bar code printer just can not be printed.For the code system of new appearance, the printer of listing can not print it before it came out equally.
Summary of the invention
The method that the purpose of this invention is to provide a kind of spreading bar-code printers compatible code order, it utilizes the external print control unit of printer to realize by waiting that the print What of expanding the code system coding prints, and promptly expands the code system of printer compatibility.
For achieving the above object, the present invention takes following design proposal:
A kind of method of spreading bar-code printers compatible code order, described method step is as follows:
1) be connected one between main frame and printer and print controller, this print control unit is connected with main frame and printer by communication interface;
2) be embedded in can be with bar code content by waiting to expand the coded program that the code system form is encoded for print control unit;
3) definition is used to wait to expand the printing explosion command that code system is printed;
4) main frame issues print command by communication interface;
5) print control unit is resolved, is judged after receiving print command, if conventional print command, then normally be handed down to printer, if the printing extended instruction that defines in the step 3), then print What is encoded by the coded format of agreement bar code code system, and press the desired form generation of printer picture, issue the conventional print command of printing this picture at assigned address to printer then;
6) printer carries out corresponding operating by the instruction that receives, and finishes the printing of bar code.
Described communication interface connected mode depends on the interface specification of printer, is generally parallel port or RS232 serial ports.
Printing extended instruction described in the step 3) is used for printing the unsupported content of waiting to expand the code system establishment of printer, and it is for print control unit and print the protocol instructions that defines between the main frame.
Picture format by the desired form generation of printer picture described in the step 5) is the picture format that printer is supported.All bar code printers are all supported the printing to picture, but the printer model difference is to the requirement difference of picture format.
Advantage of the present invention is: by print control unit, can not change bar code printer hardware, the code system of the existing printer compatibility of expansion, the expanding printing machine scope of application.
Description of drawings
Fig. 1 print control unit of the present invention and bar code printer, print the schematic block diagram that is connected of main frame
The inner structure functional block diagram of Fig. 2 print control unit of the present invention
The process flow diagram that Fig. 3 bar code printer of the present invention is printed by print control unit expansion code system
Fig. 4 embodiment system connects block diagram
Bar code printer was connected schematic block diagram with the printing main frame during Fig. 5 tradition was used
Embodiment
The present invention is based on print control unit and realize that method to the expansion of bar-code printers compatible code order is to increase print control unit between printer and printing main frame, the embedded new code system coded program of print control unit, bar code content can be encoded by new code system form, generate the bar code picture, be handed down to printer and print content under the new code system editor by picture format.
Described print control unit includes microprocessor, host interface, printer interface, internal memory, power supply function module; Microprocessor calculates and controls, and host interface connects prints main frame, as: PC or other intelligent electronic devices; Printer interface connects printer, carries out communication with printer; Internal memory is used for storage microprocessor and calculates required data; Power supply is used for to other each functional module group power supplies.
Existing bar code printer is all supported the printing to the set form picture.Between printer and main frame, increase print control unit, increase the expanding printing instruction in host side, when printing normal code system (being the code system of printer compatibility), main frame issues corresponding print command, directly be forwarded to printer after print control unit is received, printer carries out corresponding actions or setting according to instruction.When needs are printed the incompatible code system (code system promptly to be expanded) of printer, issue this extended instruction by main frame, wherein comprise information such as printed contents, position.Print control unit is resolved after receiving extended instruction, by agreement bar code code system coded format print What is encoded, and presses the desired form generation of printer picture, issues the standard print instruction of printing this picture at assigned address to printer then.After printer is received picture is printed.
Described printing extended instruction is print control unit and prints the protocol instructions that defines between the main frame that it doesn't matter with the printer model that is connected.Print extended instruction and be used for printing printer code system unsupported to be expanded.
Described picture format is the picture format that printer is supported.All bar code printers are all supported the printing to picture, but the printer model difference is to the requirement difference of picture format.
The method that printer of the present invention is expanded compatible code system is to utilize print control unit 202 to link to each other with printing main frame 201 and bar code printer 203, connected mode as shown in Figure 1, host communication interface 204, printer communication interface 205 are consistent with the communication interface that conventional printer is connected with main frame, are parallel port or RS232 serial ports.
Print control unit is made up of functional module group such as microprocessor, host interface, printer interface, internal memory, power supplys, as shown in Figure 2.Microprocessor 301 calculates and controls, and selects 32 high-speed CPU processor for use; Host communication interface 302 connects prints main frame, as: PC or other intelligent electronic devices; Printer communication interface 303 connects printer, carries out communication with printer; Internal memory 304 is used for storage microprocessor and calculates required data; Power supply 305 is used for to other each functional module group power supplies.Above-mentioned host interface and printer interface are parallel port or RS232 serial ports, and both are consistent.
The method flow that prints machine expansion code system as shown in Figure 3, the concrete grammar step is as follows:
401: print beginning;
402: connect printer, print control unit, printing main frame by mode shown in Figure 2;
403: definition is used to print the extended instruction of expansion code system, and command parameter comprises key elements such as bar code content, code system, print position;
404: print main frame and issue print command;
405: print control unit is resolved the print command of receiving;
406: judge whether routine (printer compatibility) instruction;
407: be conventional instruction, directly be issued to printer;
408: be not conventional instruction (being extended instruction), then instruction resolved, extract key elements such as print What, position, code system, to printing content encoding, generate the picture of printer compatible format by the code system coded system;
409: generate the extended instruction of corresponding photo print, and be issued to printer;
410: printer is carried out the instruction of receiving, prints;
411: this prints end.
The present invention will be further described below in conjunction with specific embodiment
Embodiment---on SATO 408E printer, realize the method that Chinese letter co is printed
Chinese letter co is a kind of new two-dimensional bar code that China has independent intellectual property right, has superpower encode Chinese characters for computer ability, the whole Chinese characters that can represent regulation in " expansion of infotech-Chinese Character Set Code for Informati-baseset ", the expression Chinese character is most effective in the existing two-dimensional bar code.Chinese letter co also has high resisting breakage, anti-distortion ability, and maximum error correcting capability can reach 30%.Chinese letter co has also taken into full account the expression efficient of Chinese character information, the identical information content, and Chinese letter co is 90% of a quick response matrix code symbol area, is 63.7% of data matrix code code sign area.Chinese letter co has wide market application prospect, can be widely used in using in the demanding fields of real-time such as production line, logistics, bill.
Chinese letter co is not supported by the main flow printer as yet as emerging code system.The 408e printer of SATO is one of technical grade bar code printer of present main flow, supports the bar code printing of main flow code system (QR sign indicating number, PDF417 sign indicating number etc.), but does not support this emerging code system of Chinese letter co.Now utilize print control unit, on the 408e printer, realize the printing of Chinese letter co.
Print control unit all strengthens the parallel port by ECP with printing main frame and 408e bar code printer and is connected.Connect block diagram as shown in Figure 4, system is made up of SAT0408e printer 501, print control unit 502, PC 503, print control unit and printer communication interface 504 (the EPP pattern strengthens the parallel port), print control unit and PC communication interface 505 (the EPP pattern strengthens the parallel port).EPP is Enhanced Parallel Port, the enhanced high-speed parallel port, and this is a kind of novel parallel port mode that grows up on the basis of SPP, also is to use maximum parallel port modes now.Present the most general printer and PC connected mode.One of definition is used for the extended instruction that Chinese letter co is printed in the present embodiment, wherein comprises information such as print What, label position.
The instruction of 408e original print is as follows:
As need tag coordinate (horizontal stroke: 150, vertical: 720) locate to print the CODE39 bar code, bar code content is * 95000012345*
<V>720<H>150<B>102100*95000012345*
<B〉be the type slug code instruction, 102100 is parameter, concrete implication is referring to the SATO408e handbook.
Now with this content Chinese letter co format print, then need open up the print command of printing Chinese letter co, this instruction is by<HPS〉initial, by<HPE〉finish
As need tag coordinate (horizontal stroke: 150, vertical: 720) locate to print Chinese letter co, bar code content is<HPS〉<V 720<H 150<B 102100*95000012345*<HPE
Print control unit is resolved after receiving this extended instruction, content * 95000012345* is encoded by the Chinese letter co coded format and generates the bmp format picture, and issue printer prints with the photo print instruction, and the photo print instruction is:
<GM>aaaaa,n-n
A need print bmp file size (byte number)
The bmp file content that n need print
The overall flow process of printing conforms to the described flow process of Fig. 3, is not giving unnecessary details herein.By said method, can make the SATO 408e printer of not supporting Chinese letter co to print originally carry out the printing of Chinese letter co, expanded the range of application of printer.
Above-mentioned concrete form of implementation is clear and definite technology contents of the present invention, makes an explanation with not only limiting this concrete example narrow sense, in the scope of spirit of the present invention and claim, can do all changes and implements.

Claims (5)

1, a kind of method of spreading bar-code printers compatible code order is characterized in that described method step is as follows:
1) be connected one between main frame and printer and print controller, this print control unit is connected with main frame and printer by communication interface;
2) print control unit is embedded in can encode waits to expand the code system coded program by waiting to expand with bar code content by the code system form;
3) definition is used to wait to expand the printing explosion command that code system is printed;
4) main frame issues print command by communication interface;
5) print control unit is resolved, is judged after receiving print command, if the print command of printer compatibility, then normally be handed down to printer, if extended instruction is treated in the printing that defines in the step 3), then print What is encoded by the coded format of printers compatible code order, and press the desired form generation of printer picture, issue the conventional print command of printing this picture at assigned address to printer then;
6) printer carries out corresponding operating by the instruction that receives, and finishes the printing of bar code.
2, the method for spreading bar-code printers compatible code order according to claim 1 is characterized in that: the printing explosion command parameter that is used for special code system printing that defines in the described step 3) comprises size, the size of bar code content, print position, bar code and prints key element.
3, the method for spreading bar-code printers compatible code order according to claim 1 is characterized in that: described print control unit includes microprocessor, host interface, printer interface, internal memory, power supply; Microprocessor calculates and controls, and host interface connects prints main frame; Printer interface connects printer, and the microprocessor of print control unit carries out communication to realize the communication between print control unit and printer by printer interface and printer; Internal memory is used for storage microprocessor and calculates required data; Power supply is used for to microprocessor, host interface, printer interface, internal memory power supply.
4, the method for spreading bar-code printers compatible code order according to claim 1, the printing extended instruction described in its step 3) is used for printing printer code system unsupported to be expanded, and it is for print control unit and print the protocol instructions that defines between the main frame.
5, the method for spreading bar-code printers compatible code order according to claim 1, the picture format by the desired form generation of printer picture described in its step 5) is the picture format that printer is supported.
CNB2006101126727A 2006-08-29 2006-08-29 Method for spreading bar-code printers compatible code order Expired - Fee Related CN100468311C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101126727A CN100468311C (en) 2006-08-29 2006-08-29 Method for spreading bar-code printers compatible code order

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101126727A CN100468311C (en) 2006-08-29 2006-08-29 Method for spreading bar-code printers compatible code order

Publications (2)

Publication Number Publication Date
CN101135956A CN101135956A (en) 2008-03-05
CN100468311C true CN100468311C (en) 2009-03-11

Family

ID=39160069

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101126727A Expired - Fee Related CN100468311C (en) 2006-08-29 2006-08-29 Method for spreading bar-code printers compatible code order

Country Status (1)

Country Link
CN (1) CN100468311C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515571A (en) * 2019-08-29 2019-11-29 厦门市思芯微科技有限公司 A kind of image data Bluetooth transmission print system and method based on dither algorithm
CN113110809B (en) * 2021-06-10 2021-09-28 珠海纳思达信息技术有限公司 Printing system, print content processing method, and terminal
CN113805961B (en) * 2021-08-27 2023-09-15 中国航空无线电电子研究所 Product software and hardware compatibility management method based on compatibility list file

Also Published As

Publication number Publication date
CN101135956A (en) 2008-03-05

Similar Documents

Publication Publication Date Title
CN105278894B (en) Print control, print system and printing control method
CN100468311C (en) Method for spreading bar-code printers compatible code order
US9720885B2 (en) Detection of UTF-16 encoding in streaming XML data without a byte-order mark and related printers, systems, methods, and computer program products
CN101094118A (en) Test system and method for peripheral equipment of terminal
CN102799978A (en) Warehouse management system and management method
WO2014156130A1 (en) Print control device, print device, data processing method, and print control device setting method
JPH07175613A (en) Pos system, control method therefor and pos printer
CN102279831A (en) Automatic registering method of serial communication terminal
JP2003291423A (en) Printer, printer controlling method, pos system, program for executing the methods by computer, and recording medium with the program recorded
KR102193821B1 (en) Recording device and data generation method
CN109515006A (en) A kind of thermal printing machine control system
CN101969498B (en) Braille short message printing equipment
US20140285844A1 (en) Print Control Method, Print Control Device, and Storage Medium
US9524130B2 (en) Control device, control method of a control device, and storage medium to generate and output a control command compatible with a second printing device that differs structurally from the first printing device
US8908226B2 (en) Information processing device, control method of an information processing device, and storage medium storing a program executed by a control unit of the information processing device
JP2003154709A (en) Printer and printing method
CN107066219A (en) A kind of network printing method of relay protection device of intelligent substation
CN104553347A (en) Stylus printer system based on low-power-consumption bluetooth
CN201215659Y (en) Intelligent bar-code scanning and printing machine
JP2006198794A (en) Power consumption control method of printer and printer
CN104850366A (en) Printing task generating and controlling system for printer
CN103389899A (en) Label manufacturing system
CN107728965A (en) The method and system of word in a kind of bar code printer automatic printing
KR200411071Y1 (en) Label supply system
CN101497294B (en) Electric iron equipment for branding anti-counterfeit mark

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090311

Termination date: 20180829

CF01 Termination of patent right due to non-payment of annual fee