Traffic management certificates dedicated printer and control method
Technical field
The present invention relates to a kind of printer and control method, especially a kind of traffic management certificates dedicated printer and control method for vehicle supervision department's use.
Background technology
Along with the develop rapidly of China's economic society, public community's trip activity is frequent day by day, and automobile enters into family and becomes a reality, and number every year of automobile pollution and application to get motor vehicle driving license, the speed with two digits increased rapidly.
According to the pertinent regulations of " People's Republic of China's law on road traffic safety ", the public safety traffic management certificate mainly comprises the motor vehicle certificate of registration, vehicle registration certificate, motor vehicle be up to the standards sign, motor vehicle driving license and provisional license or the like.China's legal provisions, before vehicle is set out on a journey and is travelled, everyone should arrive motor vehicle public security organ's motor vehicle that vehicle management is applied for registration and obtain effectively " vehicle registration certificate " and " the motor vehicle certificate of registration ", and vehicle driver should be applied to get and obtain effectively " motor vehicle driving license " by examination of technical ability.
And impact printer common on the market or laser printer are all adopted when authorizing all kinds of traffic management certificates in the place of various places vehicle management in the past.Because the font that goes out of these printer prints and thickness and actual print position differ greatly, all kinds of traffic management certificates that cause all parts of the country to be authorized are write comments on a document style and are had nothing in common with each other, and have increased the difficulty that the road surface people's police distinguish the certificate true and falses such as driver's license/driving license.Simultaneously,, cause society's dealing false-trademark false evidence phenomenon outstanding, seriously endangered normal traffic administration order because some lawless persons can arbitrarily obtain these normal printer and be used to forge various certificates.For this reason, government agencies at all levels have higher requirement to management work such as traffic management certificates making and distribution, press for a kind of special dedicated printer, the standardization, the standardization that are used for all kinds of traffic management certificates such as the motor vehicle certificate of registration, vehicle registration certificate and motor vehicle driving license are made and management.Simultaneously, legal certificate also requires all kinds of certificates itself to have certain anti-counterfeiting performance.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, a kind of traffic management certificates dedicated printer and control method are provided, this printer adopts horizontal sliding stylus printing equipment, and is implemented on all kinds of traffic management certificates that adopt the papery card by special control interface and prints sytlized font.
According to technical scheme provided by the invention, described traffic management certificates dedicated printer comprises control circuit that is connected with microprocessor and word vehicle motor, chart drive motor and the printhead that is connected with control circuit, it is characterized in that: described microprocessor connects first read-only storage and second read-only storage, solidify universal character set and universal instruction set in described first read-only storage, solidified application-oriented character repertoir and special instruction set in described second read-only storage; Described microprocessor is connected random access memory with read-only storage; Microprocessor also is connected with the input/output interface circuit that is used for the PC dataphone.
Described application-oriented character repertoir is meant the spcial character collection of traffic management certificates special use, comprising: 52 capital and small letter English characters, 10 numerical characters and punctuation mark and mathematical operation symbol, totally 95 ASCII character characters.
Described special instruction set comprises: traffic management certificates standard form print command collection and special character print command collection.
Described traffic management certificates standard form print command collection is used for converting dot matrix image information to treating the reference formats such as print What, print position and font size of print data according to various certificate regulations; Comprise driver's license, driving license, the certificate of registration, motor vehicle the be up to the standards print command of sign, 5 standard forms of provisional license and 2 tetrad batch templates print command of driver's license and driving license.
Described special character print command collection is used for reading the spcial character that read-only storage solidifies, and converts each spcial character to dot matrix image.
Described every printer has unique machine code.
The control method of described printer comprises the steps:
The certificate request is printed in a, reception, determines requesting party's legitimacy; As do not conform to rule and can only print common character, then allow to print special character as legal;
B, receive the print data for the treatment of that the requesting party submits to;
C, the print command of traffic management certificates standard form and the special character print command of calling correspondence become dot matrix image with certificate data transaction to be printed;
D, by control circuit, driven in synchronism word vehicle motor, chart drive motor and printhead are printed relevant information at assigned address, and are withdrawed from certificate;
E, feed back an encrypted characters string that comprises printer machine code and print What to the requesting party.
Advantage of the present invention is: a kind of traffic management certificates private print equipment of built-in sytlized font is provided, and it uses the special font of unified standard to write comments on a document the printing related content on certificate by special-purpose type of drive and according to various credential production template.If use general driver, then can be used as the logical flatbed printer of a Daepori and use, all functions of common flatbed printer can be realized, but normal font can only be printed.
Description of drawings
Fig. 1 is the structural representation of printer of the present invention.
Fig. 2 is the workflow diagram of the control method of printer of the present invention.
The specific embodiment
The invention will be further described below in conjunction with drawings and Examples.
The vehicle management of various places public security organ dedicated printer and being used to is handled the PC computer 10 of motor vehicle registration and drive slip control business the printing parallel port join.The various application software that are used to handle motor vehicle registration and drive slip control business are installed on the described PC computer, are called for short service application software.
As shown in Figure 1: described dedicated printer comprises CPU microprocessor 2, I/F interface circuit 1, a ROM read-only storage 3 and the 2nd ROM read-only storage 4, RAM random access memory 5, is used for the control circuit 6 of control word vehicle motor 7, chart drive motor 8 and printhead 9, and various component of machine and stationary housing etc.Wherein: (1), I/F interface circuit 1 are a kind of data input/output interface circuit, are used for and outside PC computer 10 connections, receive the request of printing and print data, realize data communication and exchanges data between two distinct devices; (2), microprocessor 2 adopts typical SCM system, it is the core of dedicated printer entire equipment, it mainly receives print data from the PC computer 10 of outside, carrying out data operation handles, in RAM random access memory 5, read or store data, send various operational orders etc. by control circuit; (3), a ROM read-only storage 3 is used to deposit the Chinese characters in current use printing character library (6734 Chinese characters) that meets the GB18030 standard and is used to deposit the universal instruction set supervisor that control is printed; The 2nd ROM read-only storage 4 is used to deposit the spcial character collection (52 capital and small letter English characters, 10 numerical characters and punctuation mark, oeprator etc., totally 95 ASCII character character set) of traffic management certificates special use and is used to deposit the special instruction set supervisor that these sytlized fonts are printed in control; (4), RAM random access memory 5 is as buffering area, is used for depositing various data temporarily, comprising: intermediate data result in calculating process of the print data by 1 transmission of I/F interface circuit, CPU microprocessor 2, matrix of printed dots view data etc.; (5), word vehicle motor 7 is used to drive the printhead left assigned address that moves right; (6), chart drive motor 8 is used to drive various certificate paperboards and moves forward and backward assigned address, and the turnover of control certificate paperboard; (7), printhead 9 is used to drive 24 syringe needles and impacts dot matrix image on paperboard, the present invention has adopted 24 pin printheads, to improve the Chinese character printing quality; And, regulate printing interval and printing effect (8) and control circuit 6 is used for the position of control word vehicle motor 7, chart drive motor 8, printhead 9 and moves and printing, according to certificate paperboard thickness.
The user generally sends the accreditation order by PC computer 10 to dedicated printer, and the I/F interface circuit 1 at first service application software on requesting party PC computer 10 sends the affirmation instruction.Confirm that errorless back receives the data element that needs printing, and deposit in the RAM random access memory 5 by microprocessor 2.This data element is the data that are used to constitute the certificate of being asked, as: type of credential (that is, motor vehicle driving license, driving license, the certificate of registration, sign etc. is up to the standards), identification card number/number-plate number, name/car owner, Motor Number/ID code of vehicle, contact address, data of issue, licence issuing authority etc.
The type of credential that microprocessor 2 sends according to the requesting party, from a ROM read-only storage 3 and the 2nd ROM read-only storage 4, call the instruction of corresponding certificate stencil print command and special character respectively, the data element that need are printed converts the dot matrix image data to, and deposits in the RAM random access memory 5 temporarily.
Microprocessor 2 sends operational order and print data to control circuit 6, control circuit 6 control word vehicle motors 7 drive printhead 9 and move to assigned address, driven in synchronism chart drive motor 8 moves the certificate paperboard and moves to assigned address, and form and font print satisfactory certificate to control printhead 9 according to the rules.
After certificate is printed and is finished, the printer identification number that reads that microprocessor 2 calls in the ROM memory 3 is instructed, after utilizing the built-in encryption algorithm to generate the encrypted characters string, to these character strings of requesting party's PC computer 10 feedback, deposit Relational database in so that trace to the source management from now on by I/F interface circuit 1 by requesting party's service application software.
The present invention also comprises a distinctive ROM read-only storage that is used to solidify storage ASCII character application-oriented character repertoir and a plurality of special-purpose control instructions except comprising housing that general flatbed printer all possesses and control panel, built-in power panel, control mainboard, printhead, paper location and walking the transport sector.
As shown in Figure 2, the control method of printer of the present invention is as follows:
Receive and print the certificate request, determine requesting party's legitimacy; As do not conform to rule and can only print common character, then allow to print special character as legal;
Receive the print data for the treatment of of requesting party's submission;
Call corresponding print command of traffic management certificates standard form and special character print command, certificate data transaction to be printed is become dot matrix image;
By control circuit 6, driven in synchronism word vehicle motor 7, chart drive motor 8 and printhead 9 are printed relevant information at assigned address, and are withdrawed from certificate;
Feed back an encrypted characters string that comprises printer machine code and print What to the requesting party.
The various special-purpose control instruction of PRN device comprises: the legitimacy of (1), identification certificate management application software, read the special-purpose character library of ASCII character and the GB18030 standard Chinese character storehouse of curing respectively; (2), according to the requirement of standards such as various certificate styles and font size size, print certificate at each assigned address and write comments on a document content; (3), feed back dedicated printer device coding and print What automatically, guarantee that the information that uploads in public security organ's certificate management database can not distort, be convenient to tracing management with cipher mode.
Owing to adopted technique scheme, the present invention to have following advantage:
1, because the present invention has adopted sytlized font and private print control mode, namely in machine, solidifies oneself The ASCII character character sytlized font of creating by the driving control mode of special use, is guaranteed only to support the use Service application software just can print the certificate with special font, makes things convenient for the quick permit identification of road surface law enforcement people's police The true and false of part.
2, the printer machine coding that has uniqueness by setting, but certificate management application software automatic acquisition Dedicated printer coding and print What are used for equipment tracing management and responsibility investigation, from public security organ inside The problem such as stop to issue licence in violation of rules and regulations.
3, because the present invention has adopted the printing type of flat push type, all kinds of certificates all can be on the printing paper lateral paper guide Put down into clearing, Chinese character, special-purpose English and the digital ASCII character font printed on the realization certificate paperboard accurately do not have Mistake is guaranteed certificate standard, unification that nuclear in all parts of the country is sent out.
4, provide the certificate simply connected to print and two kinds of patterns of tetrad bulk print, increased work efficiency; The while root Certificate paper according to different-thickness is regulated printhead pressure automatically, guarantees the print quality of the motor vehicle certificate of registration And print speed.
5, because the present invention adopts universal driver and two kinds of control models of specific drivers, public security organ When printing general file, dedicated printer can be used as common flatbed printer and use. A list The inner printer that uses same model in position, with Effective Raise utilization rate of equipment and installations, minimizing service equipment cost also Save administrative spending.