CN203799365U - Printing data processing device - Google Patents
Printing data processing device Download PDFInfo
- Publication number
- CN203799365U CN203799365U CN201420054523.XU CN201420054523U CN203799365U CN 203799365 U CN203799365 U CN 203799365U CN 201420054523 U CN201420054523 U CN 201420054523U CN 203799365 U CN203799365 U CN 203799365U
- Authority
- CN
- China
- Prior art keywords
- parallel port
- print data
- data processing
- usb
- processing apparatus
- 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 - Lifetime
Links
- 238000012545 processing Methods 0.000 title claims abstract description 20
- 238000007639 printing Methods 0.000 title abstract description 16
- 238000006243 chemical reaction Methods 0.000 claims abstract description 20
- 238000012546 transfer Methods 0.000 claims description 5
- 230000008901 benefit Effects 0.000 abstract description 2
- 230000007547 defect Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 8
- 238000000034 method Methods 0.000 description 6
- 238000013461 design Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The utility model relates to a printing data processing device which is characterized in that a parallel port, a data conversion module and a USB interface are included, wherein the data conversion module is connected with the parallel port and used for receiving parallel port printing data and converting the parallel port printing data into text files, a USB printer drive module used for converting the text files into a PostScript format is arranged in the data conversion module, and the output end of the data conversion module is connected with an external USB printer through the USB interface. Compared with the prior art, the device has the advantages that the parallel port printing data can be directly output to the USB interface and printed through the external USB printer connected with the USB interface, the defects that an existing stylus printer is low in speed and loud in noise are overcome, and meanwhile a PC in a bank system does not need to be modified at all.
Description
Technical field
The utility model relates to a kind of print data processing apparatus.
Background technology
Current bank's print system sends to stylus printer mainly with the mode of 16 system data by parallel port greatly, then carries out data-printing by stylus printer, and the major defect of stylus printer is: print speed is slow, noise is large, the page is unintelligible.
And conventional laser printer in daily life work all needs in PC, just to complete normal printing with the corresponding drive installation of printer conventionally.And for banking system, because the requirement of confidentiality can not be carried out any peripheral operation to the PC in system.Therefore, the utmost point needs a kind of equipment, the parallel port print data of bank's print system output directly can be carried out to conversion process and become common laser to print the equipment that function prints.
Utility model content
Technical problem to be solved in the utility model is to provide a kind of print data processing apparatus for above-mentioned prior art, and this device can directly be changed parallel port print data to export to USB interface, prints by the external USB printer being connected with USB interface.
The utility model solves the problems of the technologies described above adopted technical scheme: a kind of print data processing apparatus, is characterized in that: comprise
Parallel port;
Be connected with described parallel port, for receiving parallel port print data, parallel port print data is converted to the data conversion module of PostScript form;
USB interface, the output terminal of described data conversion module is connected with outside USB printer by this USB interface.
The extensibility of considering practicality, dirigibility and the function of design, described data conversion module comprises ARM microprocessor and the FPGA module being connected with ARM microprocessor.
Described ARM microprocessor adopts the microprocessor chip that model is S3C2440, and described FPGA module adopts the programmable logic device (PLD) that model is EP2C5Q208, and FPGA module is mounted on the nGCS3 end of ARM microprocessor.
For saving space and shortening debugging cycle, adopt USB interface, parallel port to communicate by the mode of the form of connector or line and ARM microprocessor.
As improvement, the utility model also comprises the network interface being connected with ARM microprocessor.Network interface can be used for the download of program in the debug phase, the carry debugging of file, in use can be used for checking printer correlation parameter and realize server printing function.
Improve, the utility model also comprises the display screen interface being connected with ARM microprocessor again, realizes necessary man-machine interaction.
Improve, the utility model also comprises be connected with ARM microprocessor multiple from USB interface, can be used for the use of the USB device such as flash disk, USB keyboard from USB interface again, and user can be by deriving print data and correlation parameter and preserve from USB mouth.
Improve again, the utility model also comprises the second parallel port being connected with ARM microprocessor, parallel port is used for receiving PC while printing and holds the parallel port print data of sending, the second parallel port can directly connect a stylus printer, while printing for stylus printer, transmit file, the print data processing apparatus that the utility model provides like this, can realize USB laser printer and print, can also realize traditional stylus printer and print, realize the switching between different printers by button.
Improve, the utility model also comprises the power transfer module to data conversion module power supply again.
Compared with prior art, the utility model has the advantage of: parallel port print data directly can be changed and exported to USB interface, print by the external USB printer being connected with USB interface, solve the shortcoming that old-fashioned stylus printing motor speed is slow, noise is large, do not need the PC in banking system to make any change simultaneously.
Brief description of the drawings
Fig. 1 is the structured flowchart of print data processing apparatus in the utility model embodiment.
Embodiment
Below in conjunction with accompanying drawing, embodiment is described in further detail the utility model.
Print data processing apparatus as shown in Figure 1, it comprises parallel port 1, that be connected with described parallel port 1, for receiving parallel port print data, parallel port print data is converted to the data conversion module 2 of PostScript form; USB interface 3, the output terminal of described data conversion module 2 is connected with outside USB printer by this USB interface, the power transfer module 8 of powering to data conversion module 2.
For bank's print system, file is to send to stylus printer in the mode of 16 system numbers by parallel port, therefore, in the present embodiment, data conversion module receives the parallel port print data of 16 system numbers, the parallel port print data of 16 system numbers is the data of Escape code language, then the Data Format Transform of the parallel port print data of the 16 system numbers of receiving is become basic text by data conversion module, it is .txt file, this transfer process is routine techniques, final data modular converter is converted to PostScript form by the pre-loaded USB printer driver in inside by text and passes to outside USB printer and print.It is also routine techniques that text is converted to this transfer process of PostScript form, for example, become PostScript form then to pass to USB printer by USB interface with ASCII character formal transformation text.For LINUX system, PostScript produces printed document de facto standards, PostScript can term describes the content of each page in document as a kind of program language of maturation, it carries out same processing procedure to text and figure, and this has brought great dirigibility just to processing font.For the USB laser printer of most support PostScript, receive PostScript code language after data, just can directly be printed.
In the present embodiment, described data conversion module comprises ARM microprocessor 21 and the FPGA module 22 being connected with ARM microprocessor, and described printing control model is arranged in ARM microprocessor.
Based on the consideration of the factors such as chip performance, in the present embodiment, to adopt model be S3C2440 microprocessor to ARM microprocessor 21, and it is a 16/32 risc microcontroller based on ARM920T of being released by Samsung, and dominant frequency can reach 400MHz.This chip performance is higher, low in energy consumption, contain peripheral hardware in abundant sheet, be mainly used in handheld device and mobile terminal, it is EP2C5Q208 programmable logic device (PLD) that 22 of FPGA modules adopt the model of ALTERA company, and FPGA module is mounted on the nGCS3 end of ARM microprocessor.
In addition, the interior integrated large usb hub of ARM microprocessor 21 can be drawn at most 4 USB port, a main USB mouth, it is the USB interface 3 that aforementioned that mention with outside USB printer is connected, insert USB printer, remain three uses that can be used for the USB device such as flash disk, USB keyboard from USB mouth 4a, 4b, 4c, user can be by deriving print data and correlation parameter and preserve from USB mouth.ARM microprocessor 21 is also connected with a display screen interface 5 can realize necessary man-machine interaction.ARM microprocessor 21 is also connected with the second parallel port 6, wherein parallel port 1 receives PC when printing and holds the parallel port print data of sending, the second parallel port 6 can directly connect a stylus printer, while printing for stylus printer, transmit file, the print data processing apparatus that the utility model provides like this, can realize USB laser printer and print, can also realize traditional stylus printer and print, realize the switching between different printers by button.ARM microprocessor 21 is also connected with network interface 7, and network interface 7 can be used for the download of program in the debug phase, and the carry debugging of file, in use can be used for checking printer correlation parameter and realize server printing function.
The interior operation of ARM microprocessor 21 has flush type LINUX print system, and flush type LINUX print system is divided into following several part:
One, the USB Printer drive module of bottom kernel spacing, the USB printed driver in linux kernel space has been realized the agreement of USB printer bottom, be responsible for and the communicating by letter of USB interface, make the USB printer apparatus can plug and play, the program of user's space directly operates as a character device file printer to it, realize printing function;
Two, bus driver module, FPGA is mounted on the nGCS3 end of ARM, realizing application layer need to realize by writing bus driver the access of address date, realize the carry of FPGA in the mode of character device, in the driver of character device, realized the system calls such as open, close, read, write, application program can visit character device by device file.Consider function expansibility and design flexibility, the present embodiment adopts and drives the mode of writing to access bus.Use init function to carry out the mapping of nGCS3 address and the setting of control register.The address of control register BWSCON is that bit wide, waiting status, the high-low-position that 0x48000000 can be used for arranging each bus arranges etc.In the design, nGCS3 data bit width is 8, and [15 of BWSCON is set ... 12] position is 0000.Setup_cdev function, for generation of character type equipment, adds nocache in Mmap, even otherwise msync also not actual physics refresh;
Three, the data acquisition of user's space, parameter extraction and the conversion of PS file, if Data Labels effectively gathers current parallel port data and preserves in first file with the form of ASCII character, if being EOF 0x00, data finish when the inferior number of adopting, close current file and open next file if data are form feed character 0x0c, if data bit is 0x0D, 0x0A records the line number of current file, columns etc. are printed desired parameters, and from line increment number, in the time that reaching 65, line number numeration closes current file if there is no the effective information such as form feed character of standard, open next file and carry out follow-up write operation.When Data Labels position consecutive invalid reaches after 20000 times, finish current file data receiver.Finally according to each file printout parameter of preserving, txt file is converted to corresponding PS file and prints.
Claims (8)
1. a print data processing apparatus, is characterized in that: comprise
Parallel port;
Be connected with described parallel port, for receiving parallel port print data, parallel port print data is converted to the data conversion module of PostScript form;
USB interface, the output terminal of described data conversion module is connected with outside USB printer by this USB interface.
2. print data processing apparatus according to claim 1, is characterized in that: described data conversion module comprises ARM microprocessor and the FPGA module being connected with ARM microprocessor.
3. print data processing apparatus according to claim 2, it is characterized in that: described ARM microprocessor adopts the microprocessor chip that model is S3C2440, described FPGA module adopts the programmable logic device (PLD) that model is EP2C5Q208, and FPGA module is mounted on the nGCS3 end of ARM microprocessor.
4. print data processing apparatus according to claim 2, is characterized in that: also comprise the network interface being connected with ARM microprocessor.
5. print data processing apparatus according to claim 2, is characterized in that: also comprise the display screen interface being connected with ARM microprocessor.
6. print data processing apparatus according to claim 2, is characterized in that: also comprise be connected with ARM microprocessor multiple from USB interface.
7. print data processing apparatus according to claim 2, is characterized in that: also comprise the second parallel port being connected with ARM microprocessor.
8. print data processing apparatus according to claim 1, is characterized in that: also comprise the power transfer module to data conversion module power supply.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201420054523.XU CN203799365U (en) | 2014-01-28 | 2014-01-28 | Printing data processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201420054523.XU CN203799365U (en) | 2014-01-28 | 2014-01-28 | Printing data processing device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN203799365U true CN203799365U (en) | 2014-08-27 |
Family
ID=51381565
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201420054523.XU Expired - Lifetime CN203799365U (en) | 2014-01-28 | 2014-01-28 | Printing data processing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN203799365U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103744631A (en) * | 2014-01-28 | 2014-04-23 | 王华庭 | Printing data processing device |
-
2014
- 2014-01-28 CN CN201420054523.XU patent/CN203799365U/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103744631A (en) * | 2014-01-28 | 2014-04-23 | 王华庭 | Printing data processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203799365U (en) | Printing data processing device | |
CN103744631A (en) | Printing data processing device | |
CN201984777U (en) | LED (light-emitting diode) digital tube driving circuit | |
CN208848187U (en) | Intelligent printing device | |
CN102658733A (en) | Method and device for increasing printing speed by using single chip serial FLASH | |
CN2919393Y (en) | Multifunctional interface tax-controlled cash register mainboard | |
CN102103805A (en) | Multifunctional electronic pointer device with motion control function | |
CN104553347A (en) | Stylus printer system based on low-power-consumption bluetooth | |
CN201278146Y (en) | ATA interface signal capturing apparatus implemented based on FPGA | |
CN203350968U (en) | 3G network billing machine | |
CN206546584U (en) | A kind of intelligent electric meter handle type meter copying device | |
CN203376821U (en) | Network invoice printing integrated machine | |
CN202944020U (en) | Portable label printing apparatus | |
CN102364452A (en) | Realization method for thermal plugging use of PS2 interface keyboard and mouse | |
CN202275286U (en) | Digital-quantity field energy-saving controller | |
CN201555869U (en) | Carrier wave testing device | |
CN104850366A (en) | Printing task generating and controlling system for printer | |
CN204249572U (en) | Printer | |
CN205812041U (en) | A kind of LIN signal detection system | |
CN108819507A (en) | A kind of remote printer system and its Method of printing | |
CN202623543U (en) | Micro printer control panel integrating single chip and serial FLASH based on full instruction | |
CN201965772U (en) | Electronic reader with wireless printing function | |
CN201130385Y (en) | Apparatus for reading and printing ID card information | |
CN204695459U (en) | A kind of network tax control terminal | |
CN201716680U (en) | USB composite device for composite keyboard and fingerprint reader |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CX01 | Expiry of patent term | ||
CX01 | Expiry of patent term |
Granted publication date: 20140827 |